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
App is in testing config (test_basics.AppTest)
def bGcW(YKHO): YKHO.assertTrue(wk5E.config['TESTING'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zmu8(P4t4):\n assert P4t4.testing", "def zmu8():\n assert not LUif().testing\n assert LUif(LV7V).testing", "def zmu8():\n assert not mvm2.create_app().testing\n assert mvm2.create_app({'TESTING': True}).testing", "def bGcW(YKHO):\n YKHO.assertFalse(P4t4.config['SECRET_KEY'] == 'my_preci...
[ "0.8668405", "0.85153544", "0.8505037", "0.8208351", "0.8200938", "0.81275815", "0.76655614", "0.7630378", "0.75359917", "0.74892235", "0.745675", "0.745582", "0.74472284", "0.7415486", "0.73453236", "0.72559136", "0.72388124", "0.72212666", "0.7210432", "0.7203444", "0.71951...
0.86457294
2
Return True if the backend graph is directed. The Gremlinbacked datastore is always directed.
def mwdm(YKHO) -> bool: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mwdm(YKHO):\n return YKHO.G.is_directed()", "def mwdm(YKHO):\n return YKHO.graph_properties.directed", "def mwdm(YKHO) -> bool:\n return YKHO._directed", "def mwdm(yvY1):\n return yvY1.is_directed()", "def mwdm(YKHO):\n return True", "def mwdm(YKHO):\n return YKHO.directed", "def ...
[ "0.79627573", "0.78262556", "0.7661164", "0.75749224", "0.7518689", "0.746787", "0.746787", "0.7348088", "0.7265645", "0.7102285", "0.70416903", "0.61883163", "0.61317015", "0.5777387", "0.5670721", "0.5663669", "0.56486577", "0.5641953", "0.563757", "0.5622453", "0.5592876",...
0.7716199
2
Determine if a cached value from the given compare time is still valid
def BYy1(YKHO, KS8Z: str, h6wm: float): return h6wm > YKHO._last_study_mapping_update_times[KS8Z]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deVW(a1PO):\n return float(a1PO) > ITS7.time()", "def YCas(YKHO):\n if Hy7s.path.isfile(YKHO.cache_filename):\n uMSR = Hy7s.path.getmtime(YKHO.cache_filename)\n vHj7 = ITS7()\n if uMSR + YKHO.cache_max_age > vHj7:\n return True\n return False", "def pWyj(YKHO, ITS7:...
[ "0.6786222", "0.6448674", "0.64324737", "0.63750684", "0.630569", "0.63012683", "0.6299927", "0.6272141", "0.6211941", "0.6175154", "0.61743593", "0.61084133", "0.6042745", "0.6010127", "0.6009563", "0.60086095", "0.6004558", "0.59777814", "0.5974766", "0.5972415", "0.5965831...
0.0
-1
Delete participant_groups by Participant Group IDs
def PFnm(YKHO, uLHa: List[str]=None) -> None: if not uLHa: return None with YKHO.table_access_condition, YKHO._get_connection() as w2B8: Z9rn = w2B8.cursor() fWLS = '' if uLHa: vt6Y = ','.join([f'"{GV32}"' for GV32 in uLHa]) fWLS = f'AND prolific_participa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qG2T(YKHO, DVCd):\n pmON = '/members/%s/groups/remove' % YKHO.member['member_id']\n nPrm = {'group_ids': DVCd}\n if YKHO.member.account.adapter.put(pmON, nPrm):\n YKHO._dict = dict((WKvO for WKvO in YKHO._dict.items() if WKvO[0] not in DVCd))", "def aDK0(YKHO, uLHa: List[str]=None) -> None:\n...
[ "0.7311787", "0.71487516", "0.7011263", "0.68069136", "0.67244774", "0.6704495", "0.66740835", "0.6641592", "0.65757996", "0.6495186", "0.6485396", "0.64465976", "0.64452267", "0.6428455", "0.64257216", "0.6414882", "0.63549817", "0.6336999", "0.6336016", "0.632371", "0.62640...
0.79611284
0
Duration of current playing media in seconds.
def AR9O(YKHO): if YKHO.app_id == LCj5: return None AXRM = YKHO._media_status()[0] return AXRM.duration if AXRM else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AR9O(YKHO):\n return YKHO._table.active_track_total_time.total_seconds()", "def AR9O(YKHO):\n if (YKHO._playing_localfile or YKHO._playing_spotify or YKHO._slave_mode or YKHO._playing_mediabrowser or YKHO._playing_mass) and YKHO._state != nI7g:\n return YKHO._duration\n else:\n return ...
[ "0.84306645", "0.8335323", "0.83195865", "0.82777256", "0.82241994", "0.822305", "0.7930684", "0.7795198", "0.7728614", "0.76679045", "0.7623727", "0.7617457", "0.751701", "0.75141466", "0.74585915", "0.7447879", "0.7447879", "0.7447879", "0.7447879", "0.7447879", "0.7447879"...
0.8074582
6
Artist of current playing media (Music track only).
def wBza(YKHO): AXRM = YKHO._media_status()[0] return AXRM.artist if AXRM else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wBza(YKHO):\n return YKHO._state.get('artist', None)", "def wBza(YKHO):\n return YKHO.coordinator.data.nowplaying[YKHO.zone.SourceID].CurrSong.Artists", "def wBza(YKHO):\n return YKHO._media_artist", "def wBza(YKHO):\n return YKHO._media_artist", "def SRvf(YKHO):\n return YKHO._media_alb...
[ "0.86874646", "0.85988027", "0.8364579", "0.8364579", "0.8197227", "0.81845474", "0.7796168", "0.7759904", "0.7709477", "0.7638341", "0.76134145", "0.7604214", "0.7216594", "0.70622", "0.69644237", "0.664528", "0.6623426", "0.6593583", "0.6548443", "0.6520028", "0.6481482", ...
0.85100645
2
Album artist of current playing media (Music track only).
def SRvf(YKHO): AXRM = YKHO._media_status()[0] return AXRM.album_artist if AXRM else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SRvf(YKHO):\n return YKHO._media_album_artist", "def p63k(YKHO) -> h8nf[str]:\n return YKHO.album_artist", "def wBza(YKHO):\n return YKHO._state.get('artist', None)", "def COOc(YKHO):\n return YKHO.coordinator.data.nowplaying[YKHO.zone.SourceID].CurrSong.Album", "def wBza(YKHO):\n AXRM =...
[ "0.81840837", "0.7835972", "0.7712547", "0.7702581", "0.7554247", "0.7536851", "0.7434496", "0.72885025", "0.72885025", "0.7223202", "0.7175744", "0.7165362", "0.71355593", "0.71222913", "0.7099083", "0.7094133", "0.6977519", "0.69404376", "0.68596905", "0.6855399", "0.685407...
0.84469926
0
Episode of current playing media (TV Show only).
def qDYq(YKHO): AXRM = YKHO._media_status()[0] return AXRM.episode if AXRM else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lmli():\n fufm = x4au.get().objects.all()\n for WZHJ in fufm:\n if WZHJ.flight.group:\n try:\n xgXB = nshl(gCuF.XGDS_VIDEO_GET_EPISODE_FROM_NAME)(WZHJ.flight.group.name)\n return xgXB\n except:\n pass\n return None", "def Dt2_...
[ "0.6934281", "0.6746794", "0.6712165", "0.6654626", "0.6633293", "0.6572893", "0.64877284", "0.62584066", "0.61310756", "0.6034781", "0.6034651", "0.5998257", "0.59886754", "0.5972742", "0.59479594", "0.59300554", "0.5926739", "0.5904139", "0.58850104", "0.58233595", "0.58165...
0.8226775
0
Name of the current running app.
def kvcN(YKHO): return YKHO._chromecast.app_display_name if YKHO._chromecast else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kvcN(YKHO) -> str:\n return YKHO._app_name", "def kvcN(YKHO):\n return YKHO._app_name", "def kvcN(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'app_name')", "def W0tD():\n return GPtr.APP_NAME", "def kvcN(YKHO):\n return YKHO._app_name", "def wk5E(YKHO) -> str:\n B7c0 = ...
[ "0.8613469", "0.8589207", "0.84504217", "0.83667713", "0.8312501", "0.82835007", "0.8204041", "0.8153177", "0.8153177", "0.8016665", "0.8007741", "0.79585636", "0.7892773", "0.7882123", "0.78177106", "0.77182496", "0.77128357", "0.7517927", "0.74986947", "0.74986947", "0.7498...
0.729358
27
Method that tests unsucceeded `create` method of Suggested Topic class object.
def j2st(YKHO): qsJ6 = Wqvn.objects.get(id=301) a94w = Z6ia.create(owner=qsJ6, name='name', description=None) YKHO.assertIsNone(a94w)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lkQK(YKHO):\n qsJ6 = Wqvn.objects.get(id=301)\n a94w = Z6ia.create(owner=qsJ6, name='name', description='description')\n YKHO.assertIsInstance(a94w, Z6ia)", "def Qchj(YKHO):\n CBIr = BfDw.create_user()\n rlUa = BfDw.create_topic(YKHO.category)\n aM_I = BfDw.create_comment(topic=rlUa)\n p...
[ "0.81488794", "0.6388328", "0.630519", "0.62200063", "0.61642885", "0.5938463", "0.58879864", "0.5836021", "0.5724208", "0.5717265", "0.5694818", "0.5686947", "0.56767154", "0.5663233", "0.56482834", "0.5613224", "0.5601721", "0.5600852", "0.5573624", "0.5564065", "0.55499464...
0.8154706
0
Method that tests 'get_all' method of SuggestedTopics class object.
def j0q4(YKHO): with TMAJ.patch('suggestedtopics.models.cache') as uNoy: with TMAJ.patch('suggestedtopics.models.pickle') as s0bn: uNoy.__contains__.return_value = True s0bn.load.return_value = True Z0Dr = Z6ia.get_all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w63p(YKHO):\n vVJM = Z6ia.objects.all()\n Z0Dr = Z6ia.get_all()\n YKHO.assertEqual(list(vVJM), list(Z0Dr))", "def L4IC(YKHO):\n for r8hN in YKHO.models:\n AdpB = r8hN.topics\n YKHO.assertTrue(isinstance(AdpB, X0oz.SFrame))\n YKHO.assertEqual(AdpB.num_rows(), 25)\n YKHO...
[ "0.7913183", "0.64284724", "0.62716407", "0.5990252", "0.5962689", "0.5945319", "0.5941812", "0.5759044", "0.5701067", "0.56907225", "0.56774795", "0.5657713", "0.55916345", "0.5575331", "0.5572797", "0.55670506", "0.5543632", "0.5538378", "0.549383", "0.54784185", "0.5475497...
0.7623733
1
Method that tests 'get_all' method of SuggestedTopics class object.
def w63p(YKHO): vVJM = Z6ia.objects.all() Z0Dr = Z6ia.get_all() YKHO.assertEqual(list(vVJM), list(Z0Dr))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j0q4(YKHO):\n with TMAJ.patch('suggestedtopics.models.cache') as uNoy:\n with TMAJ.patch('suggestedtopics.models.pickle') as s0bn:\n uNoy.__contains__.return_value = True\n s0bn.load.return_value = True\n Z0Dr = Z6ia.get_all()", "def L4IC(YKHO):\n for r8hN in YKH...
[ "0.76230043", "0.64270616", "0.6270716", "0.59887433", "0.5960977", "0.59443295", "0.5941821", "0.57601297", "0.57004356", "0.56896794", "0.5676449", "0.5658479", "0.55895734", "0.5574232", "0.5572608", "0.5566461", "0.55438894", "0.5538875", "0.5493661", "0.5479861", "0.5475...
0.79119927
0
Number of profiles in this Profiles object.
def ySw4(YKHO): return YKHO._nprofiles
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def asDG(YKHO):\n return len(YKHO.__users)", "def QhXp(YKHO):\n if not YKHO._profiles:\n YKHO.GetAllProfiles()\n return YKHO._profiles", "def QhXp(YKHO):\n return YKHO._profiles", "def QhXp(YKHO):\n return YKHO._profiles", "def CeEE(tR6v):\n assert isinstance(tR6v, dict)\n retur...
[ "0.7029895", "0.6642839", "0.6615187", "0.6615187", "0.6601933", "0.6480705", "0.62588745", "0.62426597", "0.62356067", "0.6223385", "0.61923814", "0.6177046", "0.6174073", "0.61656374", "0.6163472", "0.6158623", "0.6132954", "0.6132809", "0.6125924", "0.61203516", "0.6095080...
0.8791688
0
Uses the class attribute Emailer._config to connect to SMTP client.
def XaJF(YKHO): YKHO._smtp = c5_3.SMTP(host=YKHO._config.host, port=YKHO._config.port) YKHO._smtp.ehlo() YKHO._smtp.starttls() YKHO._smtp.login(YKHO._config.sender_email, YKHO._config.password) YKHO._connected = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zb09():\n print('INFO: Setting up SMTP variables...')\n Fv2L = kwpV()\n Fv2L.read(Hy7s.path.join(Hy7s.path.abspath(Hy7s.path.dirname(xAKo)), '.', 'smtp.conf'))\n Hlmj = {'server': Fv2L.get('smtp', 'smtp_server'), 'login': Fv2L.get('smtp', 'smtp_login'), 'password': Fv2L.get('smtp', 'smtp_password')...
[ "0.7072876", "0.69906664", "0.67638105", "0.6386244", "0.6318851", "0.6307825", "0.62603664", "0.6239821", "0.6209453", "0.59868085", "0.59112954", "0.582289", "0.57935023", "0.5718859", "0.56930685", "0.5673814", "0.56400454", "0.5622428", "0.5608501", "0.5579572", "0.553708...
0.59974766
9
Generate a neatly formatted full name.
def e1yb(cntZ, XVAW, Hpmo=''): if Hpmo: eHMM = cntZ + ' ' + Hpmo + ' ' + XVAW else: eHMM = cntZ + ' ' + XVAW return eHMM.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T37t(YKHO):\n YKHO.full_name = YKHO.first + ' ' + YKHO.last", "def eHMM(YKHO) -> str:\n mWFP = f'{YKHO.last_name} {YKHO.first_name}'\n if YKHO.middle_name:\n mWFP += ' ' + YKHO.middle_name\n return mWFP", "def e1yb(cntZ, XVAW):\n eHMM = f'{cntZ} {XVAW}'\n return eHMM.title()", "d...
[ "0.84015906", "0.8262383", "0.8231049", "0.8229208", "0.8199836", "0.8191048", "0.8168978", "0.81436765", "0.8132338", "0.81308675", "0.8123386", "0.80716896", "0.80716896", "0.80716896", "0.80230886", "0.80207074", "0.8016316", "0.79988605", "0.79969", "0.79969", "0.79969", ...
0.76526946
87
Returns true if track labels have already been assigned to a given frame
def cDko(YKHO, lFAT): return YKHO._frame_labels[lFAT] is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kvP3(YKHO, UXqs):\n return UXqs in YKHO.get_labels()", "def kvP3(YKHO, UXqs):\n return UXqs in YKHO.labels", "def kvP3(YKHO, UXqs):\n return UXqs in YKHO.labels", "def kvP3(YKHO, UXqs):\n return UXqs == YKHO.label", "def kvP3(YKHO, UXqs):\n return UXqs in YKHO.labels", "def OAI2(rfQU, ...
[ "0.6462645", "0.64227855", "0.6422614", "0.6338353", "0.62672585", "0.61824983", "0.60186857", "0.5974276", "0.5969538", "0.58716065", "0.58103716", "0.57967025", "0.5790005", "0.5789058", "0.5760368", "0.5760037", "0.5759478", "0.5759478", "0.5738486", "0.5736193", "0.571848...
0.69120014
0
This function calculates qn values by constructing a list of q values starting from q0 up to qn, and returning the last one
def pF70(exwG, XP5J): ... list = [] VSQP = 1 Wc20 = 1 list.append(VSQP) list.append(Wc20) for YRbF in range(exwG - 2): YRbF += 0 BQwf = (1 - XP5J) * Wc20 + XP5J * (1 - XP5J) * VSQP list.append(BQwf) VSQP = Wc20 Wc20 = BQwf return list
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unTU(vexM):\n return [vexM[1], vexM[0], vexM[3], vexM[2]]", "def Mnn7(vexM):\n epBp = oyIN.zeros(len(vexM) - 1, int)\n for YRbF in range(len(vexM) - 1):\n epBp[YRbF] = oyIN.ceil(vexM[YRbF] / 2 + vexM[YRbF + 1] / 2)\n return oyIN.concatenate([[0], epBp, [L0bE - 1]])", "def A2Y0(T8ck, rb2p...
[ "0.66430557", "0.6498868", "0.6292246", "0.62038547", "0.61917627", "0.60583544", "0.60085726", "0.5942998", "0.59386873", "0.5937982", "0.59218794", "0.5878637", "0.58481634", "0.5837961", "0.5837881", "0.58155376", "0.58154905", "0.5802288", "0.5796448", "0.57915133", "0.57...
0.60844547
5
Takes a list of float values and creates a padded torch.Tensor.
def KVH6(YKHO, Ty9i: TorchscriptPreprocessingInput) -> ht2j.Tensor: if ht2j.jit.isinstance(Ty9i, x1iM[ht2j.Tensor]): return YKHO.forward_list_of_tensors(Ty9i) if ht2j.jit.isinstance(Ty9i, x1iM[str]): return YKHO.forward_list_of_strs(Ty9i) raise ValueError(f'Unsupported input: {Ty9i}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RnIX(fUYa: torch.Tensor, KHPh: int):\n GCiI = len(fUYa)\n wzH_ = max((WKvO.size(0) for WKvO in fUYa))\n hVLt = fUYa[0].new(GCiI, wzH_, *fUYa[0].size()[1:]).fill_(KHPh)\n for YRbF in range(GCiI):\n hVLt[YRbF, :fUYa[YRbF].size(0)] = fUYa[YRbF]\n return hVLt", "def Dt8l(UHhk, C7vt, eusk=No...
[ "0.7406693", "0.70428735", "0.6466515", "0.6323249", "0.62024957", "0.60464835", "0.60222167", "0.6001368", "0.59981996", "0.59465325", "0.5926647", "0.5863943", "0.58620673", "0.5842579", "0.5789935", "0.5789883", "0.57518977", "0.5749336", "0.5729196", "0.5676192", "0.56408...
0.0
-1
Returns a config value
def OP2O(YKHO, H5ew: str) -> ImMB: return YKHO.variables[H5ew]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZR0i(YKHO, mWFP):\n if mWFP in YKHO.config_values:\n return YKHO.config_values[mWFP]", "def BWXx(YKHO) -> str:\n return YKHO._config.get('value')", "def ge7L(YKHO, XLMv, H5ew):\n return GPtr.get(XLMv, H5ew)", "def x0PB(mWFP):\n\n def NMoC():\n try:\n return GPtr.get('...
[ "0.83533496", "0.80241734", "0.79516804", "0.772929", "0.7663415", "0.7605796", "0.75783", "0.7518339", "0.747167", "0.74433523", "0.7403487", "0.7380993", "0.7370448", "0.7341626", "0.7287305", "0.7253601", "0.72316563", "0.72029024", "0.7199229", "0.7188936", "0.7181148", ...
0.0
-1
Returns the current config variable
def tgzD() -> h8nf[PSrQ]: return kNfJ.get()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPtr(YKHO):\n return YKHO.namespace['config']", "def GPtr(YKHO):\n return YKHO[OtOl]", "def GPtr(YKHO):\n return jYL9().config.config[YKHO.key]", "def X3mR(mWFP):\n return ogJ0().get(mWFP)", "def wLv7(YKHO):\n return YKHO.__config", "def wLv7(YKHO):\n return YKHO.__config", "def w...
[ "0.7465803", "0.7437359", "0.738738", "0.73662037", "0.71334124", "0.71334124", "0.71334124", "0.71334124", "0.71334124", "0.71334124", "0.71334124", "0.71334124", "0.71334124", "0.71334124", "0.71334124", "0.71334124", "0.71334124", "0.71334124", "0.71334124", "0.71334124", ...
0.6623554
93
Load requirements from a pip requirements file.
def VnMZ(Ux0P): try: c4qg = (zFiD.strip() for zFiD in open(Ux0P)) return [zFiD for zFiD in c4qg if zFiD and (not zFiD.startswith('#'))] except OSError: return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jjxV():\n c4qg = (zFiD.strip() for zFiD in open('Pipfile'))\n orYQ = [zFiD for zFiD in c4qg]\n V_8U = orYQ.index('[packages]') + 1\n ixQc = orYQ.index('[requires]') - 1\n fA3L = list(map(lambda WKvO: WKvO.replace(' = \"', '').replace('\"', ''), orYQ[V_8U:ixQc]))\n return fA3L", "def b8V_(nd...
[ "0.7140471", "0.69411206", "0.6918211", "0.6898259", "0.6884532", "0.6796581", "0.67297643", "0.6702323", "0.6694401", "0.6694401", "0.6565847", "0.65304285", "0.6509914", "0.6489069", "0.6451843", "0.63243556", "0.63096094", "0.6305995", "0.6304723", "0.6291954", "0.6272886"...
0.0
-1
Returns the given HTML with all tags stripped. This is a copy of django.utils.html.strip_tags, except that it adds some whitespace in between replaced tags to make sure words are not erroneously concatenated.
def PKBK(BWXx): return ZbWC.sub('<[^>]*?>', ' ', ILZP(BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbe0(_R2e):\n import re\n l5Ny = _R2e\n c_NS = [{'>\\\\s+': u'>'}, {'\\\\s+': u' '}, {'\\\\s*<br\\\\s*/?>\\\\s*': u'\\n'}, {'<head>.*<\\\\s*(/head|body)[^>]*>': u''}, {'<a\\\\s+href=\"([^\"]+)\"[^>]*>.*</a>': u''}, {'[ \\\\t]*<[^<]*?/?>': u''}, {'^\\\\s+': u''}]\n for eD8c in c_NS:\n for G1H...
[ "0.81393677", "0.81104815", "0.79820424", "0.7756733", "0.7708477", "0.76916313", "0.7668854", "0.75973123", "0.75973123", "0.75871766", "0.75851536", "0.7555502", "0.7548902", "0.7544044", "0.75279355", "0.7509415", "0.74946666", "0.74862015", "0.74829584", "0.74829584", "0....
0.67829764
53
Test creation of product in db
def FBLI(YKHO): BzZr = msfn.objects.first() RL4V = msfn.objects.last() hc9l = f'{BzZr.code} -- {BzZr.name} -- {BzZr.schedule} -- {BzZr.spl}' YKHO.assertEqual(str(BzZr), hc9l) YKHO.assertNotEqual(str(RL4V), hc9l)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PCgi(YKHO):\n YKHO._create_model('product', YKHO.product_data, ['name', 'description', 'image_link', 'price'])", "def CW30(YKHO):\n YKHO.assertEqual(msfn.objects.count(), 2)\n pB3N = {'name': 'New product', 'category': YKHO.category_1.id, 'sku': '11111111', 'description': 'New product description', ...
[ "0.84601223", "0.8094423", "0.8065334", "0.79718393", "0.7751315", "0.77269304", "0.7685652", "0.7644878", "0.7614808", "0.7580474", "0.74933785", "0.7444505", "0.74412197", "0.7417311", "0.74115133", "0.7408773", "0.73953843", "0.73321605", "0.73079616", "0.7274021", "0.7238...
0.74196386
13
Tokenize the EnglishFrench dataset.
def WFzB(l5Ny, paGB=None): JZXy, pan_ = ([], []) for YRbF, zFiD in enumerate(l5Ny.split('\n')): if paGB and YRbF > paGB: break SQ3m = zFiD.split('\t') if len(SQ3m) == 2: JZXy.append(SQ3m[0].split(' ')) pan_.append(SQ3m[1].split(' ')) return (JZXy, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yvzw(_dZy):\n b0j5 = H6bL()\n jWWN = b0j5.tokenize(_dZy.lower())\n return jWWN", "def wr3U(l5Ny):\n l5Ny = ZbWC.sub('[^a-zA-Z0-9]', ' ', l5Ny.lower())\n s2mk = dFss(l5Ny)\n s2mk = [GFnk().lemmatize(GIN8) for GIN8 in s2mk if GIN8 not in UKxK]\n return s2mk", "def u75o():\n EcVT = isx...
[ "0.64626545", "0.6432136", "0.63859737", "0.63650376", "0.6340642", "0.6323382", "0.62788206", "0.61670893", "0.6163081", "0.6136805", "0.6135087", "0.61167455", "0.61159277", "0.60797167", "0.6076323", "0.6063401", "0.60584503", "0.60016334", "0.59698486", "0.5962869", "0.59...
0.0
-1
Return the iterator and the vocabularies of the translation dataset.
def moHo(Ep8u, AIZ9, paGB=600): l5Ny = Rukm(bZy9()) JZXy, pan_ = WFzB(l5Ny, paGB) hbWx = zoYt(JZXy, min_freq=2, reserved_tokens=['<pad>', '<bos>', '<eos>']) GRGc = zoYt(pan_, min_freq=2, reserved_tokens=['<pad>', '<bos>', '<eos>']) SemH, YgTe = NXOg(JZXy, hbWx, AIZ9) MBEB, WXIp = NXOg(pan_, GRGc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xYxb(YKHO):\n YKHO.parse_transcript()\n YKHO.purge_words()\n YKHO.analyze_words()\n YKHO.sort_word_analysis()", "def MiPu(YKHO):\n g4y1, Crrw = YKHO.read_data()\n print('read finished')\n _3lE, CrDJ = YKHO.gen_word_label_index()\n print('vocab process finished')\n rsIM = YKHO.trans...
[ "0.66708165", "0.62934643", "0.6140089", "0.6073963", "0.6058157", "0.60472083", "0.60271215", "0.5885215", "0.5861043", "0.5831339", "0.57146364", "0.5694714", "0.5667509", "0.5655051", "0.5632006", "0.56251043", "0.5623835", "0.5607366", "0.5568643", "0.55617714", "0.555515...
0.0
-1
Perform softmax operation by masking elements on the last axis.
def Ibo7(EcVT, hmll): if hmll is None: return U78l.functional.softmax(EcVT, dim=-1) else: ROpF = EcVT.shape if hmll.dim() == 1: hmll = ht2j.repeat_interleave(hmll, ROpF[1]) else: hmll = hmll.reshape(-1) EcVT = rWMo(EcVT.reshape(-1, ROpF[-1]), hmll,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.expand_dims(oyIN.max(WKvO, axis=-1), axis=-1))\n return uw5A / oyIN.expand_dims(uw5A.sum(axis=-1), axis=-1)", "def N93T(WKvO):\n JNn7 = WKvO.shape\n if len(WKvO.shape) > 1:\n jbXL = oyIN.max(WKvO, axis=1)\n WKvO -= jbXL.reshape((WKvO.shape[0...
[ "0.7728093", "0.76540774", "0.755771", "0.7533926", "0.74397534", "0.7415308", "0.73890746", "0.7380633", "0.73651373", "0.7327089", "0.730505", "0.730505", "0.7289658", "0.72878665", "0.7286687", "0.72709596", "0.72696495", "0.726443", "0.72391045", "0.72330284", "0.72330284...
0.0
-1
Return the sum of time.
def sum(YKHO): return sum(YKHO.times)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sum(YKHO):\n return pTmx(YKHO, stat='sum')", "def QwIJ(YKHO):\n with YKHO.lock:\n if YKHO.tend == 0:\n wjRY = -1\n else:\n wjRY = YKHO.tend - YKHO.tstart\n return wjRY", "def RGHr(YKHO):\n d1TC = YKHO.clean_obs_times()\n return VEDo.sum(d1TC[:, 1] - d1TC[:...
[ "0.771545", "0.7003199", "0.69464904", "0.69291514", "0.68037593", "0.6803497", "0.66858596", "0.6638962", "0.66272086", "0.6532529", "0.64491063", "0.6448546", "0.64167005", "0.6415029", "0.63799405", "0.63728005", "0.6360416", "0.63578796", "0.63459677", "0.6345115", "0.632...
0.7676582
3
Download and extract a zip/tar file.
def x5Qp(mWFP, xtX7=None): IznC = BsfS(mWFP) oEge = Hy7s.path.dirname(IznC) h_xa, YBcr = Hy7s.path.splitext(IznC) if YBcr == '.zip': ytgA = AvK2.ZipFile(IznC, 'r') elif YBcr in ('.tar', '.gz'): ytgA = VAiu.open(IznC, 'r') else: assert False, 'Only zip/tar files can be ext...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bo6m(bD7m, RQz2='.'):\n St3z = Kf9k(bD7m)\n AvK2 = KGdO(aKaX(St3z.read()))\n AvK2.extractall(path=RQz2)", "def BsfS():\n geh0 = G4JS.get(rOmR, stream=True)\n nUeQ = open(bkJI, 'wb')\n nUeQ.write(geh0.content)\n with AvK2.ZipFile(bkJI, 'r') as PDgC:\n PDgC.extractall()\n nUeQ.cl...
[ "0.77640665", "0.75466156", "0.7488906", "0.74230695", "0.74208057", "0.74110913", "0.7349301", "0.7332468", "0.73241496", "0.73225963", "0.7294297", "0.72637457", "0.7244374", "0.7242405", "0.72403973", "0.7215931", "0.71965367", "0.71807736", "0.7064334", "0.7055785", "0.70...
0.7105519
18
Split text lines into word or character tokens.
def wr3U(Nqlg, eOtH='word'): if eOtH == 'word': return [zFiD.split() for zFiD in Nqlg] elif eOtH == 'char': return [list(zFiD) for zFiD in Nqlg] else: print('ERROR: unknown token type: ' + eOtH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(l5Ny):\n return l5Ny.split(' ')", "def O85a(Nqlg):\n return", "def wr3U(YKHO, l5Ny: str) -> ['token']:\n s2mk = []\n GIN8 = ''\n for hcXw in l5Ny:\n if hcXw in vIwR.ascii_uppercase:\n GIN8 += hcXw.lower()\n elif hcXw in vIwR.ascii_lowercase or hcXw in vIwR.digit...
[ "0.7567518", "0.74264103", "0.74043775", "0.72504884", "0.71198", "0.7098041", "0.7047674", "0.70413697", "0.7035768", "0.701771", "0.69855034", "0.69731724", "0.69402796", "0.69257873", "0.6905738", "0.69048613", "0.6899457", "0.6895861", "0.6894406", "0.689058", "0.68888366...
0.73633885
3
action_scores of shape (batch, num_action_cands) action_mask of shape (batch, num_action_cands)
def m9Nf(Y_sg: torch.Tensor, DBe9: torch.Tensor) -> ht2j.Tensor: fmgu = (Y_sg - Y_sg.min(dim=1, keepdim=True)[0] + 1e-05) * DBe9 return fmgu.argmax(dim=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _tFa(YKHO, iBIi):\n return YKHO._dqn(YKHO.get_dqn_state(iBIi))[0].detach().numpy()", "def ov5p(pR3T):\n if pR3T is None:\n return []\n if type(pR3T) == list:\n W061 = oyIN.array(pR3T)\n elif type(pR3T) != oyIN.ndarray:\n W061 = oyIN.array(pR3T.cpu()).copy()\n else:\n ...
[ "0.6208378", "0.59804124", "0.5917529", "0.58936703", "0.57873505", "0.572659", "0.5675336", "0.5633573", "0.5620895", "0.5590206", "0.5586422", "0.55637527", "0.5549526", "0.5499729", "0.5492791", "0.5470186", "0.5447316", "0.5443749", "0.54360235", "0.5434696", "0.54285395"...
0.5836872
4
Returns the call/put price corresponding the implied vol at strike K
def aCJd(YKHO, nMvt, cSFF='Call'): return YKHO.IV.price_from_vol(YKHO.smile_func(nMvt), YKHO.f, nMvt, YKHO.T_expiry, payoff=cSFF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vZUt(YKHO, qjHC):\n if YKHO._vol_type == 'LogNormal':\n o4sw = YKHO._deal_terms['underlyer'].spot_value\n nMvt = YKHO._deal_terms['payoff'].payoff_terms['strike']\n n26c = YKHO._deal_terms['maturity'] - YKHO._pricing_date\n Mkmy = FEUY[YKHO._deal_terms['CSA']].short_rate\n ...
[ "0.74730724", "0.72675455", "0.70773613", "0.70316756", "0.6866724", "0.6865428", "0.67700785", "0.6473597", "0.64252746", "0.63514227", "0.634056", "0.6305643", "0.63045806", "0.6284474", "0.61870676", "0.6160804", "0.6160804", "0.6160804", "0.61449486", "0.6058198", "0.6036...
0.7444923
1
Probability density function of the underlyer, derived by differentiating twice the model implied call prices with respect to the strike.
def kzAT(YKHO, nMvt): return VVyp(YLnl(YKHO.option_price, payoff='Call'), nMvt, dx=EIyC / 10, n=2, order=3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DMkZ(A90d, KG9w, LVAh):\n nMvt = len(KG9w['counts'])\n ywwl = sum(KG9w['counts'])\n assert LVAh >= 0 and LVAh <= nMvt\n if LVAh < nMvt:\n return RKD7((KG9w['counts'][LVAh] - A90d['d']) / (A90d['alpha'] + ywwl))\n elif LVAh == nMvt:\n return RKD7((A90d['alpha'] + A90d['d'] * nMvt) /...
[ "0.6059916", "0.6055147", "0.6046978", "0.59971094", "0.5987896", "0.598393", "0.5967974", "0.5934836", "0.5818869", "0.5782429", "0.57336473", "0.5710351", "0.57036066", "0.56798124", "0.5569836", "0.5547724", "0.55355376", "0.5527198", "0.5523163", "0.55132097", "0.55124503...
0.5550777
15
return a string containing the object in a pretty formated version
def format(YKHO, YEnM): return qQXR.dumps(YEnM, sort_keys=True, indent=4, separators=(',', ': '))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HRRg(YKHO, YEnM):\n if YKHO.pretty:\n return CgYo.pformat(YEnM)\n else:\n return str(YEnM)", "def H2bK(YKHO) -> str:\n ...", "def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())", "def WnCY(YKHO):\n return YKHO._tree.toStringPrettyPrint()", "def gTzM(YKHO) -> str:\n re...
[ "0.807015", "0.80332047", "0.76868", "0.76223564", "0.75916594", "0.756914", "0.756914", "0.7537861", "0.7513253", "0.7513253", "0.7513253", "0.7513253", "0.7513253", "0.7513253", "0.7513253", "0.7513253", "0.7513253", "0.7513253", "0.7513253", "0.7513253", "0.7513253", "0....
0.0
-1
return a list of concept classes that match the given prefix
def XOGL(YKHO, y0cW: str, DuqQ: str='eng', U2d5: str='eng', JZXy: Union[str, List[str]]=['dbpedia', 'custom'], B2Dn: int=1, UHFx: int=20, uTjs: ReturnInfo=YmQb(), **B2fa): assert B2Dn > 0, 'page parameter should be above 0' NArs = {'prefix': y0cW, 'lang': DuqQ, 'conceptLang': U2d5, 'source': JZXy, 'page': B2Dn,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MlQ6(YKHO, y0cW: str) -> x1iM[str]:\n if not YKHO.starts_with(y0cW):\n return []\n if YKHO.search(y0cW):\n return [y0cW]\n ZbOB = YKHO.root\n for Npgh in y0cW:\n ZbOB = ZbOB.children.get(Npgh)\n return YKHO._get_word(y0cW, ZbOB)", "def bsC9(y0cW):\n with D7d3, D7d3.curs...
[ "0.63769776", "0.6048061", "0.60433567", "0.587656", "0.583887", "0.57681125", "0.57679045", "0.5767587", "0.5692277", "0.5622705", "0.5620777", "0.55592585", "0.5542315", "0.5525467", "0.5497741", "0.5459923", "0.5453932", "0.54335916", "0.53916717", "0.53893685", "0.5383738...
0.5906344
3
return the URI of the source group that best matches the name
def Y1be(YKHO, Yj8_: str): hHld = YKHO.suggestSourceGroups(Yj8_) if hHld is not None and isinstance(hHld, list) and (len(hHld) > 0) and ('uri' in hHld[0]): return hHld[0]['uri'] return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfrf(YKHO, *qIxc):\n return _VfD.GroupsExtension_getURI(YKHO, *qIxc)", "def u_Qo(YKHO, _63S):\n if not _63S:\n JZXy = YKHO._default_source\n else:\n JZXy = YKHO._sources.get(_63S)\n if not JZXy:\n raise tCGT(_63S or '<default>')\n return JZXy", "def Maus(YKHO):\n _sef...
[ "0.62811434", "0.6188032", "0.6106267", "0.5954231", "0.58817136", "0.58752364", "0.5858591", "0.580521", "0.57376444", "0.56671643", "0.56523913", "0.56210285", "0.55978084", "0.55902463", "0.55665797", "0.5522302", "0.55100167", "0.54542893", "0.54542893", "0.54542893", "0....
0.7802163
0
return event type uri that is the best match for the given label
def yC7V(YKHO, h9NV: str): hHld = YKHO.suggestEventTypes(h9NV) if hHld is not None and isinstance(hHld, list) and (len(hHld) > 0) and ('uri' in hHld[0]): return hHld[0]['uri'] return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oshq(YKHO, LJGO: str):\n hHld = YKHO.suggestCategories(LJGO)\n if hHld != None and isinstance(hHld, list) and (len(hHld) > 0) and ('uri' in hHld[0]):\n return hHld[0]['uri']\n return None", "def lgIp(AiZN):\n return KXx7[AiZN]", "def ZXSu(YKHO, hBMs: str, DuqQ: str='eng', c7pe: Union[str...
[ "0.5890905", "0.5888158", "0.5736647", "0.57230157", "0.57189935", "0.56664103", "0.5650868", "0.5550143", "0.5519739", "0.54728514", "0.5453214", "0.5382518", "0.53772074", "0.533073", "0.5309743", "0.52296954", "0.51811314", "0.5180448", "0.5166474", "0.51578933", "0.514757...
0.7921001
0
Function returns a reduced Term object
def A4Sb(xYvp): _1qI, zDMu = xYvp Aofo = '' for d6pt, HkJz in enumerate(_1qI): Aofo += HkJz if HkJz == zDMu[d6pt] else '-' return aw0m(Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, *qIxc, **YSA3):\n return YKHO.transform(aw0m.__call__(YKHO, *qIxc, **YSA3))", "def nrOS(YKHO, *qIxc: TermLike) -> 'Term':\n return aw0m(YKHO, qIxc)", "def nSVa(YKHO):\n return YKHO.__term", "def nSVa(YKHO):\n return YKHO.__term", "def nSVa(YKHO):\n return YKHO.__term", "def ...
[ "0.6299694", "0.6096665", "0.5878431", "0.5878431", "0.5878431", "0.5878431", "0.5878431", "0.5878431", "0.5878431", "0.5878431", "0.5878431", "0.5758068", "0.56476766", "0.55836403", "0.5566976", "0.5552307", "0.55443543", "0.553262", "0.5525708", "0.55073017", "0.5463503", ...
0.0
-1
Function uses itertools.combinations to generate possible permutations of minterms and xterms
def fr5W(NHn2): return Hs6x.combinations(NHn2, 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p2Oz(fUYa):\n if not fUYa:\n yield []\n else:\n for WKvO, fUYa in z2aV(fUYa):\n for bEXe in p2Oz(fUYa):\n yield ([WKvO] + bEXe)", "def mhLU(YKHO):\n M6QM = YKHO.do_steps()\n YKHO.option = [G1Hx for G1Hx, Ty9i in M6QM.items()]\n Aofo = Hs6x.product(*(Ty9i...
[ "0.63869417", "0.62922204", "0.6280528", "0.60896415", "0.60720867", "0.6060668", "0.6060022", "0.6006552", "0.5943192", "0.59218216", "0.59115046", "0.5862979", "0.586069", "0.58377963", "0.5827487", "0.5826101", "0.5818908", "0.57880336", "0.57866234", "0.576338", "0.575172...
0.6309878
1
Get training args for runner._launch_aip_training. The training args contain the inputs/outputs/exec_properties to the tfx.scripts.run_executor module.
def ElhI(YKHO, chwN, m4Nl, T6F7, Umos, GgE5, rjee) -> cuzp[I2jr, ImMB]: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ElhI(YKHO, chwN: Dict[Text, List[types.Artifact]], m4Nl: Dict[Text, List[types.Artifact]], T6F7: Dict[Text, Any], Umos: Text, GgE5: Dict[Text, Any], rjee: Optional[Text]) -> cuzp[I2jr, ImMB]:\n GgE5 = GgE5.copy()\n Z9Tn = J7OP.jsonify_artifact_dict(chwN)\n G9jH.info(\"json_inputs='%s'.\", Z9Tn)\n D...
[ "0.70724356", "0.6887883", "0.68650603", "0.6819622", "0.6720383", "0.6570948", "0.6565429", "0.65353024", "0.6483057", "0.6375926", "0.6367454", "0.63338363", "0.6326136", "0.6322333", "0.6315006", "0.629442", "0.62928957", "0.6290497", "0.6287055", "0.62419564", "0.61994785...
0.7656704
0
Get training args for runner._launch_aip_training. The training args contain the inputs/outputs/exec_properties to the tfx.scripts.run_executor module.
def ElhI(YKHO, chwN: Dict[Text, List[types.Artifact]], m4Nl: Dict[Text, List[types.Artifact]], T6F7: Dict[Text, Any], Umos: Text, GgE5: Dict[Text, Any], rjee: Optional[Text]) -> cuzp[I2jr, ImMB]: GgE5 = GgE5.copy() Z9Tn = J7OP.jsonify_artifact_dict(chwN) G9jH.info("json_inputs='%s'.", Z9Tn) Do7x = J7OP....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ElhI(YKHO, chwN, m4Nl, T6F7, Umos, GgE5, rjee) -> cuzp[I2jr, ImMB]:\n pass", "def xbm0():\n ayhE = _Fei.get_train_args_schema().fields\n if OgAD == 0:\n ayhE['num_gpus'] = V_D6.Int(missing=0, description='Number of GPUs to train on (one node only). If set to zero...
[ "0.7657387", "0.6888748", "0.68656194", "0.682167", "0.67204", "0.6571265", "0.6566474", "0.6535822", "0.6482168", "0.63752997", "0.6367284", "0.6333624", "0.6325504", "0.6321786", "0.63143045", "0.62942094", "0.62941766", "0.6291347", "0.6287213", "0.6240908", "0.61983275", ...
0.70728606
1
Get training args for runner._launch_aip_training. The training args contain the inputs/outputs/exec_properties to the tfx.scripts.run_executor module.
def ElhI(YKHO, chwN: Dict[Text, List[types.Artifact]], m4Nl: Dict[Text, List[types.Artifact]], T6F7: Dict[Text, Any], Umos: Text, GgE5: Dict[Text, Any], rjee: Optional[Text]) -> cuzp[I2jr, ImMB]: GgE5 = GgE5.copy() Z9Tn = J7OP.jsonify_artifact_dict(chwN) G9jH.info("json_inputs='%s'.", Z9Tn) Do7x = J7OP....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ElhI(YKHO, chwN, m4Nl, T6F7, Umos, GgE5, rjee) -> cuzp[I2jr, ImMB]:\n pass", "def ElhI(YKHO, chwN: Dict[Text, List[types.Artifact]], m4Nl: Dict[Text, List[types.Artifact]], T6F7: Dict[Text, Any], Umos: Text, GgE5: Dict[Text, Any], rjee: Optional[Text]) -> cuzp[I2jr, ImMB]:\n GgE5 = GgE5.copy()\n Z9T...
[ "0.7656112", "0.7071737", "0.68881834", "0.6817965", "0.6719776", "0.65706426", "0.6564103", "0.65336037", "0.6483007", "0.6375374", "0.6366846", "0.6333173", "0.6325439", "0.6321799", "0.63139856", "0.62937886", "0.62911975", "0.62895596", "0.6287303", "0.62421274", "0.61994...
0.6864444
3
Construct a toplevel widget with the parent MASTER.
def FIMM(YKHO, LDIG=None, gWCW={}, **YSA3): if YSA3: gWCW = OkPV((gWCW, YSA3)) dDGN = () for LDta in ['screen', 'class_', 'class', 'visual', 'colormap']: if LDta in gWCW: wEf2 = gWCW[LDta] if LDta[-1] == '_': y7GR = '-' + LDta[:-1] else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, LDIG, Hghu=ra1W, **YSA3):\n LQRw.__init__(YKHO, LDIG, **YSA3)\n YKHO.main_frame = LQRw(YKHO, bd=1)\n YKHO.main_frame.pack()", "def FIMM(YKHO, LDIG=None):\n super().__init__(LDIG)\n YKHO.master = LDIG\n YKHO.master.title(\"Joe's Automotive\")\n YKHO.master.geometry('560x600')\n...
[ "0.69735175", "0.67381746", "0.669472", "0.668831", "0.6686077", "0.6609715", "0.6572637", "0.6540365", "0.6484257", "0.64818954", "0.6438975", "0.64249706", "0.6423365", "0.64200574", "0.6408428", "0.63591474", "0.6356483", "0.63561195", "0.63275886", "0.62708426", "0.626065...
0.6029286
36
testuser1 has a 'testing' subnamespace, testuser2 tries to see its permissions but fails.
def BS1b(YKHO): MOPg = {'accept': 'application/json'} YKHO.addBasicAuthHeader(MOPg, 'testuser2', 'secret') pmON = muwo.sep.join([muwo.namespaceCategoryName, 'testuser1', 'testing']) for XeOP in w0rQ.actionsByCategory[muwo.namespaceCategoryName]: Csk6 = YKHO.getPage(pmON, headers=MOPg, queryDict=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CWUc(YKHO, _63S, CBIr):\n if not _63S.owners.filter(id=CBIr.id).count():\n raise Bx6I.PermissionDenied('The namespace listed on your filename must match one of the namespaces you have access to.')", "def PIJh(YKHO):\n pass", "def D5GN(YKHO):\n pass", "def kxP3(YKHO):\n pass", "def c7...
[ "0.6429766", "0.6371066", "0.6243876", "0.6156751", "0.6154213", "0.61048347", "0.6101933", "0.60836434", "0.60561347", "0.6050891", "0.6036248", "0.60299695", "0.6001029", "0.5991596", "0.59487164", "0.5943904", "0.5931206", "0.5913553", "0.5899936", "0.58955866", "0.5859986...
0.66301256
0
Plot rank1 nearest neighbor confusion matrix. Rows and columns are different ethnicitygender. The value in row x and column y is the error rate that each image of ethnicitygender x and its rank1 nearest neighbor of ethnicitygender y is not the same person
def YsYU(mUkZ, JEeW, EIel=None): nPrm = rLdf.read_csv(mUkZ) CL5K = nPrm['path'].to_list() RDhP = Rlcz(CL5K, JEeW, ext_feat='npy') nPrm = oRm1(nPrm, 'path') nPrm['id'] = nPrm['path'].apply(lambda WKvO: '/'.join(WKvO.split('/')[:-1])).astype('category') WuwS = gKk5(nPrm['path'].apply(lambda WKvO: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(YKHO):\n pTn1 = beib.from_learner(YKHO.learn)\n pTn1.plot_confusion_matrix()", "def LwSz(Bcwd, tGDF):\n JI1i = QrM1.figure(figsize=(10, 10))\n QrM1.imshow(Bcwd, interpolation='nearest', cmap=QrM1.cm.Blues)\n QrM1.title('Confusion matrix')\n QrM1.colorbar()\n wIWT = oyIN.arange(len(t...
[ "0.62481976", "0.5850511", "0.5787129", "0.57802856", "0.57566446", "0.5724097", "0.5712232", "0.57106066", "0.57067007", "0.56925535", "0.5681571", "0.5677563", "0.5672164", "0.56678575", "0.56661797", "0.56371564", "0.56120133", "0.5598198", "0.5593582", "0.5592196", "0.558...
0.5498344
34
Get the dict of all the models.
def fihw(YKHO): return YKHO.__modelDict
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ArHU(YKHO):\n YKHO.load()\n return YKHO._models", "def FYrf(YKHO):\n return YKHO.config.models()", "def NMoC():\n return {'model_ids': TwsR.get_model_ids()}", "def eqaJ(YKHO):\n return YKHO.__models.keys()", "def FYrf(YKHO):\n FYrf = []\n for wHSX in YKHO.bundles.values():\n ...
[ "0.7804294", "0.76579976", "0.75055176", "0.74330866", "0.74149823", "0.7380831", "0.7361207", "0.7147118", "0.70524144", "0.701926", "0.7019033", "0.7019033", "0.69760513", "0.6950567", "0.6934331", "0.69281614", "0.6834468", "0.68259096", "0.6761999", "0.6757449", "0.674159...
0.66702574
24
True if the array is on GPU.
def ozbH(YKHO) -> bool: return YKHO._current_device_index != XA9e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cBXO(YKHO):\n return YKHO._tensor.is_cuda", "def cBXO(YKHO):\n return YKHO.share.is_cuda", "def cBXO(YKHO):\n return next(YKHO.parameters()).is_cuda", "def cBXO(YKHO):\n return next(YKHO.parameters()).is_cuda", "def cBXO(YKHO):\n return next(YKHO.parameters()).is_cuda", "def cBXO(YKHO)...
[ "0.8066833", "0.80317914", "0.7962641", "0.7962641", "0.7962641", "0.7962641", "0.76606196", "0.7649934", "0.7581296", "0.7256203", "0.7212082", "0.71569055", "0.7072309", "0.69844073", "0.6894186", "0.6885231", "0.6819945", "0.679821", "0.6741122", "0.6666283", "0.6656444", ...
0.75827485
8
Returns the entropy of a discrete distribution p
def oqGu(XP5J): assert (XP5J >= 0).all() assert abs(oyIN.sum(XP5J) - 1) < 1e-06 return -oyIN.sum(XP5J * oyIN.log(XP5J + 1e-12))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pUHp(XP5J):\n return 2 ** oyIN.sum(-XP5J * oyIN.log2(XP5J + 1e-10))", "def oqGu(V6IE):\n DdOm = V6IE.copy()\n DdOm[DdOm == 0] = oyIN.nan\n return oyIN.nansum(oyIN.multiply(DdOm, oyIN.log2(1 / DdOm)))", "def oqGu(XP5J: torch.Tensor):\n WyJz = (XP5J > 0).to(XP5J.device)\n SGf8 = ht2j.finfo(...
[ "0.8535428", "0.8026321", "0.7933022", "0.7899416", "0.7778248", "0.7755773", "0.7616017", "0.7574335", "0.7550206", "0.75214255", "0.74680275", "0.7442331", "0.7418228", "0.73868614", "0.7344822", "0.7340159", "0.7325228", "0.7321643", "0.73122334", "0.7301384", "0.728359", ...
0.8559822
0
Extends masses array with columns of zeros for missing energies.
def gYpn(qoMH, qbnw, kQKO): qbnw = list(qbnw) ywwl = kQKO.shape[0] Ylbp = oyIN.zeros((ywwl, len(qoMH))) for YRbF, VYvU in enumerate(qoMH): if VYvU not in qbnw: Ylbp[:, YRbF] = oyIN.zeros((ywwl,)) else: Ylbp[:, YRbF] = kQKO[:, qbnw.index(VYvU)] return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mrBC(YKHO, ymG_):\n ZxUr = oyIN.empty(ymG_['observed_variable'].shape)\n ZxUr[:] = oyIN.nan\n for G1Hx in YKHO.obs_table_columns:\n if G1Hx not in list(ymG_.columns):\n G9jH.debug('Adding missing cdm colum with empty values: %s', G1Hx)\n ymG_[G1Hx] = ZxUr\n return ymG_"...
[ "0.5828517", "0.5681226", "0.55303085", "0.5472589", "0.54533696", "0.5409089", "0.54075205", "0.5340413", "0.5293353", "0.5269589", "0.5262647", "0.5260811", "0.5245497", "0.5217069", "0.5212759", "0.5197485", "0.5173649", "0.5173649", "0.5170683", "0.5164495", "0.5139979", ...
0.6560954
0
Calculate the Surface Area of a Cuboid. >>> surface_area_cuboid(1, 2, 3) 22 >>> surface_area_cuboid(0, 0, 0) 0 >>> surface_area_cuboid(1.6, 2.6, 3.6) 38.56 >>> surface_area_cuboid(1, 2, 3)
def DrHW(u54L: float, iR7F: float, H2v2: float) -> float: if u54L < 0 or iR7F < 0 or H2v2 < 0: raise ValueError('surface_area_cuboid() only accepts non-negative values') return 2 * (u54L * iR7F + iR7F * H2v2 + u54L * H2v2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fEMe(LyOL: float) -> float:\n if LyOL < 0:\n raise ValueError('surface_area_cube() only accepts non-negative values')\n return 6 * LyOL ** 2", "def cPLc(HEZd):\n return HEZd", "def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())", "def Q3Hq(LyOL):\n f0tD = LyOL ** 3\n ...
[ "0.6666402", "0.64514595", "0.64180577", "0.6362404", "0.6269711", "0.6249463", "0.62020266", "0.6193033", "0.617231", "0.6169103", "0.61569345", "0.60257256", "0.60193086", "0.5955302", "0.590112", "0.5897125", "0.5896731", "0.589559", "0.58863145", "0.58802015", "0.5876737"...
0.75224274
0
Calculate the Surface Area of a Sphere.
def GkWz(r1VO: float) -> float: if r1VO < 0: raise ValueError('surface_area_sphere() only accepts non-negative values') return 4 * mM0K * r1VO ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWK7(r1VO: float) -> float:\n if r1VO < 0:\n raise ValueError('surface_area_hemisphere() only accepts non-negative values')\n return 3 * mM0K * r1VO ** 2", "def sFSh(r1VO: number) -> FGW3:\n f0tD = 4 * mM0K * r1VO * r1VO\n return f0tD", "def nSsG(r1VO):\n f0tD = 4 * epAf.pi * r1VO ** ...
[ "0.75944006", "0.7547221", "0.74640936", "0.7159024", "0.71472585", "0.66771775", "0.6609041", "0.6607308", "0.6575029", "0.6481573", "0.64479804", "0.6444091", "0.64219826", "0.6398195", "0.6333034", "0.6320497", "0.6280175", "0.6243655", "0.6232985", "0.6222155", "0.6218048...
0.77417064
0
Calculate the Surface Area of a Hemisphere.
def BWK7(r1VO: float) -> float: if r1VO < 0: raise ValueError('surface_area_hemisphere() only accepts non-negative values') return 3 * mM0K * r1VO ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())", "def B7Mv(qRbE, B1Wx):\n D00u = B1Wx ** 2.0\n bwg9 = 2.0 * B1Wx ** 2.0\n gpRq = ((qRbE[0:-1, 0:-1] - qRbE[0:-1, 1:]) ** 2.0 + D00u) ** 0.5\n E43s = ((qRbE[0:-1, 0:-1] - qRbE[1:, 0:-1]) ** 2.0 + D00u) ** 0.5\n gL_5 = ((qRbE[0:-1, 0...
[ "0.72399956", "0.7046556", "0.69472444", "0.68784386", "0.67994255", "0.67446357", "0.67176634", "0.6669289", "0.6648197", "0.6646721", "0.6634711", "0.6555099", "0.6460852", "0.63712317", "0.6334383", "0.63145924", "0.63024366", "0.629782", "0.6238995", "0.62154955", "0.6206...
0.73289835
0
Calculate the Surface Area of a Cone.
def fh_L(r1VO: float, H2v2: float) -> float: if r1VO < 0 or H2v2 < 0: raise ValueError('surface_area_cone() only accepts non-negative values') return mM0K * r1VO * (r1VO + (H2v2 ** 2 + r1VO ** 2) ** 0.5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())", "def B7Mv(YKHO) -> float:\n return 4 * oyIN.pi * YKHO.radius ** 2", "def tGq1(YKHO):\n tGq1 = YKHO.sideLength ** 2 * 6\n return tGq1", "def ivpi(YKHO) -> float:\n return YKHO.area()", "def cPLc(HEZd):\n return HEZd", "def ...
[ "0.7281637", "0.70571977", "0.6995431", "0.69417614", "0.68043363", "0.6756402", "0.66293764", "0.66006935", "0.6541381", "0.6532924", "0.65126425", "0.6484024", "0.64582616", "0.6379687", "0.63465464", "0.63313115", "0.6306597", "0.63061565", "0.63036686", "0.6277776", "0.62...
0.6303602
19
Calculate the Surface Area of a Conical Frustum. >>> surface_area_conical_frustum(1, 2, 3) 45.511728065337266 >>> surface_area_conical_frustum(4, 5, 6) 300.7913575056268 >>> surface_area_conical_frustum(0, 0, 0) 0.0 >>> surface_area_conical_frustum(1.6, 2.6, 3.6) 78.57907060751548 >>> surface_area_conical_frustum(1, 2,...
def D2C8(MnI8: float, uwps: float, H2v2: float) -> float: if MnI8 < 0 or uwps < 0 or H2v2 < 0: raise ValueError('surface_area_conical_frustum() only accepts non-negative values') tq3G = (H2v2 ** 2 + (MnI8 - uwps) ** 2) ** 0.5 return mM0K * (tq3G * (MnI8 + uwps) + MnI8 ** 2 + uwps ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())", "def msu7(YKHO, iLki):\n return XC5k.contourArea(iLki)", "def B7Mv(YKHO) -> float:\n return 4 * oyIN.pi * YKHO.radius ** 2", "def ivpi(YKHO) -> float:\n return YKHO.area()", "def tGq1(YKHO):\n tGq1 = YKHO.sideLength ** 2 * 6\n ...
[ "0.6291956", "0.58364004", "0.5753722", "0.57246095", "0.5682314", "0.5677191", "0.5626083", "0.5558596", "0.5558541", "0.55439174", "0.55187523", "0.5473769", "0.54420286", "0.537165", "0.5346501", "0.53398824", "0.53286076", "0.5327467", "0.5319384", "0.5314725", "0.5282321...
0.61237943
1
Calculate the Surface Area of a Cylinder.
def YkOx(r1VO: float, H2v2: float) -> float: if r1VO < 0 or H2v2 < 0: raise ValueError('surface_area_cylinder() only accepts non-negative values') return 2 * mM0K * r1VO * (H2v2 + r1VO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B7Mv(YKHO) -> float:\n return 4 * oyIN.pi * YKHO.radius ** 2", "def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())", "def tGq1(YKHO):\n tGq1 = YKHO.sideLength ** 2 * 6\n return tGq1", "def CKYB(r1VO: number, H2v2: number) -> FGW3:\n f0tD = 2 * mM0K * r1VO * (r1VO + H2v2)\n r...
[ "0.7548897", "0.749687", "0.74844456", "0.74813986", "0.7271498", "0.72686654", "0.71798384", "0.7160601", "0.7061284", "0.7021645", "0.7017651", "0.69561744", "0.6951494", "0.6949457", "0.6934319", "0.6928398", "0.6916603", "0.6916603", "0.69163173", "0.6913666", "0.6912519"...
0.72211707
6
Calculate the Area of a Torus.
def KFhA(Bho0: float, YRk4: float) -> float: if Bho0 < 0 or YRk4 < 0: raise ValueError('surface_area_torus() only accepts non-negative values') if Bho0 < YRk4: raise ValueError('surface_area_torus() does not support spindle or self intersecting tori') return 4 * pow(mM0K, 2) * Bho0 * YRk4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO) -> ht2j.Tensor:\n FlUN = YKHO.tensor\n f0tD = (FlUN[:, 2] - FlUN[:, 0]) * (FlUN[:, 3] - FlUN[:, 1])\n return f0tD", "def f0tD(YKHO) -> float:\n raise NotImplementedError", "def f0tD(YKHO):\n f0tD = 0\n XVAW = YKHO._coordinates[-1]\n for Z9rn in YKHO._coordinates:\n f0...
[ "0.7800431", "0.7706884", "0.75886077", "0.7577049", "0.75663716", "0.7547722", "0.75137764", "0.75137764", "0.75086504", "0.7508373", "0.7478298", "0.7464217", "0.7462269", "0.7459668", "0.74048436", "0.7402549", "0.7401049", "0.7399664", "0.7391779", "0.73916525", "0.737006...
0.0
-1
Calculate the area of a square. >>> area_square(10) 100 >>> area_square(0) 0 >>> area_square(1.6) 2.5600000000000005 >>> area_square(1)
def eqzy(LyOL: float) -> float: if LyOL < 0: raise ValueError('area_square() only accepts non-negative values') return LyOL ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eqzy(vC9B):\n WKvO = vC9B * vC9B\n return WKvO", "def Rqyz(TVTK: number, H2v2: number) -> FGW3:\n f0tD = TVTK * H2v2\n return f0tD", "def FmDM(HEZd):\n return HEZd ** 2", "def f0tD(WKvO, LVAh):\n return WKvO * LVAh / 2", "def f0tD(YKHO):\n if isinstance(YKHO.crs, xPYB):\n iO...
[ "0.7286142", "0.72473055", "0.7205924", "0.7182893", "0.7121043", "0.7083093", "0.70261645", "0.70175433", "0.6921208", "0.6849839", "0.6845397", "0.68417615", "0.6837337", "0.67906415", "0.6776792", "0.6761042", "0.6683266", "0.6667608", "0.6652926", "0.6637591", "0.6605035"...
0.7561725
0
Calculate area of triangle when the length of 3 sides are known.
def VjxP(zPAF: float, BsXG: float, t_of: float) -> float: if zPAF < 0 or BsXG < 0 or t_of < 0: raise ValueError('area_triangle_three_sides() only accepts non-negative values') elif zPAF + BsXG < t_of or zPAF + t_of < BsXG or BsXG + t_of < zPAF: raise ValueError('Given three sides do not form a t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cGOR(zPAF: number, BsXG: number, t_of: number) -> FGW3:\n KCHu = (zPAF + BsXG + t_of) / 2\n f0tD = PZyS(KCHu * (KCHu - zPAF) * (KCHu - BsXG) * (KCHu - t_of))\n return PZyS(KCHu * (KCHu - zPAF) * (KCHu - BsXG) * (KCHu - t_of))", "def r9On(GQra, gz9R, uC0l):\n H6Lc = (GQra + gz9R + uC0l) / 2\n f...
[ "0.8733833", "0.86254233", "0.82618403", "0.80721945", "0.7990782", "0.79050994", "0.78296477", "0.77779496", "0.773841", "0.7719263", "0.7699428", "0.7680037", "0.761518", "0.75288564", "0.7486223", "0.74066657", "0.7402571", "0.7341327", "0.72961754", "0.72634614", "0.72093...
0.8315102
2
Calculate the area of a ellipse. >>> area_ellipse(10, 10) 314.1592653589793 >>> area_ellipse(10, 20) 628.3185307179587 >>> area_ellipse(0, 0) 0.0 >>> area_ellipse(1.6, 2.6) 13.06902543893354 >>> area_ellipse(10, 20)
def ahwq(reHN: float, Yqe6: float) -> float: if reHN < 0 or Yqe6 < 0: raise ValueError('area_ellipse() only accepts non-negative values') return mM0K * reHN * Yqe6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kdDi(ZbMh: number, PKYb: number) -> FGW3:\n f0tD = mM0K * ZbMh * PKYb\n return f0tD", "def kdDi(aTLP, pan_):\n pan_, ZHfW = pan_\n if aTLP.size(2) != 4:\n raise ValueError(f'Prediction must be 4-dimensional (x, y, r1, r2), but got preds.shape[2] = {aTLP.size(2)}')\n ILBk = aTLP[:, :, 2]...
[ "0.7569128", "0.7252887", "0.70606506", "0.67599463", "0.66614044", "0.6620491", "0.65754545", "0.65114665", "0.6509608", "0.64492077", "0.63622475", "0.6348709", "0.6340304", "0.63310313", "0.63249993", "0.63071716", "0.62976605", "0.6270165", "0.6263262", "0.6239973", "0.62...
0.811346
0
Calculate the area of a regular polygon.
def h2D1(BA7i: int, u54L: float) -> float: if not isinstance(BA7i, int) or BA7i < 3: raise ValueError('area_reg_polygon() only accepts integers greater than or equal to three as number of sides') elif u54L < 0: raise ValueError('area_reg_polygon() only accepts non-negative values as length of a ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gdLg(j5tF):\n z1Rg = Rgf5(j5tF)\n P6bq = f4Oi(j5tF[-1], z1Rg)\n Ty9i = f4Oi(j5tF[0], z1Rg)\n jzdc = 0.5 * L3jt(Mxem(P6bq, Ty9i))\n for YRbF in range(0, len(j5tF) - 1):\n P6bq = Ty9i\n Ty9i = f4Oi(j5tF[YRbF + 1], z1Rg)\n jzdc += 0.5 * L3jt(Mxem(P6bq, Ty9i))\n return jzdc",...
[ "0.8058221", "0.8032072", "0.80290425", "0.775125", "0.7730882", "0.7655108", "0.7603578", "0.75836736", "0.7458248", "0.7318181", "0.7303265", "0.7278403", "0.7259592", "0.7246163", "0.72038543", "0.7143232", "0.70988834", "0.7087016", "0.70269674", "0.69372404", "0.69024974...
0.7105422
16
Generate a random string of letters and digits
def Zfgd(FVpJ=1000): PdTY = vIwR.ascii_letters + vIwR.digits return ''.join((tuKI.choice(PdTY) + '\r\n' for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q_QB():\n yvT9 = ''\n for bGrB in range(24):\n yvT9 += Acvy(C1SZ)\n return yvT9", "def drFW():\n return GLL2(char_choice=vIwR.ascii_letters + vIwR.digits)", "def hcjz(exwG):\n return ''.join((tuKI.choice(vIwR.ascii_letters) for bGrB in range(exwG)))", "def _yz_(gzVs=10):\n U5bT =...
[ "0.86016387", "0.84852463", "0.8366202", "0.83620757", "0.83602", "0.8158604", "0.8123532", "0.81143093", "0.8089975", "0.80873764", "0.8011259", "0.7957295", "0.79525083", "0.794848", "0.7927194", "0.79182523", "0.7897885", "0.788374", "0.787901", "0.7854035", "0.78254104", ...
0.7398179
82
Tests get_regular_master when 'Variable Font Origin' custom parameter name is used with master set to 'Regular Text'. This is the current default custom parameter name in the Glyphs editor / glyphs source file specification.
def FYfp(): fcvf = Hy7s.path.join('tests', 'data', 'CustomParameterVFO.glyphs') o9av = TVNV(fcvf) assert o9av.customParameters['Variation Font Origin'] is None APmz = o9av.customParameters['Variable Font Origin'] assert APmz == 'ACC63F3E-1323-486A-94AF-B18797A154CE' Dn78 = False for LDIG in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i07I(QquE, ZK3Z=None):\n assert len(QquE) > 0\n if ZK3Z is not None:\n for o9av in QquE:\n if o9av.info.styleName == ZK3Z:\n return o9av\n msS9 = BgBU(QquE)\n if not msS9:\n msS9 = 'Regular'\n for o9av in QquE:\n if o9av.info.styleName == msS9:\n ...
[ "0.69350207", "0.6909895", "0.6648281", "0.5223326", "0.5092955", "0.4946685", "0.46939337", "0.468453", "0.46685544", "0.46685544", "0.4646657", "0.4641774", "0.46350524", "0.4610456", "0.45767817", "0.45586544", "0.45528513", "0.45253748", "0.45107546", "0.45049223", "0.447...
0.75802004
0
Tests get_regular_master when 'Variation Font Origin' custom parameter name is used with master set to 'Regular Text'. This custom parameter name is not used in current releases of the Glyphs editor / glyphs source file specification.
def XELQ(): fcvf = Hy7s.path.join('tests', 'data', 'CustomParameterVFO.glyphs') o9av = TVNV(fcvf) del o9av.customParameters['Variable Font Origin'] o9av.customParameters['Variation Font Origin'] = 'Regular Text' assert o9av.customParameters['Variable Font Origin'] is None MpXb = o9av.customParam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYfp():\n fcvf = Hy7s.path.join('tests', 'data', 'CustomParameterVFO.glyphs')\n o9av = TVNV(fcvf)\n assert o9av.customParameters['Variation Font Origin'] is None\n APmz = o9av.customParameters['Variable Font Origin']\n assert APmz == 'ACC63F3E-1323-486A-94AF-B18797A154CE'\n Dn78 = False\n ...
[ "0.7359684", "0.67687136", "0.6363678", "0.51723284", "0.50032544", "0.48569408", "0.48275173", "0.47787303", "0.4668857", "0.4668857", "0.4658506", "0.4607545", "0.46026233", "0.45687926", "0.45522752", "0.45285955", "0.4505046", "0.44999492", "0.4479202", "0.44763657", "0.4...
0.69167006
1
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(mOq1, YKHO).__init__(*qIxc, **c_sp) if YKHO.header is None: YKHO.header = kKAJ.msg.Header() if YKHO.namespace is None: YKHO.namespace = '' if YKHO.id is None: YKHO.id = '' if YKHO.prefix...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ...
[ "0.7794351", "0.7719884", "0.7719884", "0.7686347", "0.76253426", "0.7562994", "0.74395365", "0.7416649", "0.73515975", "0.730761", "0.7279932", "0.72373426", "0.72264934", "0.7223775", "0.7223775", "0.72189564", "0.72111243", "0.72111243", "0.72111243", "0.72111243", "0.7211...
0.0
-1
Reward at state. Optional action makes this into the reward for performing the action at state. MUST `set_world_state` before this
def vOGg(YKHO): if YKHO.num_steps >= YKHO.timeout: return YKHO.fail_penalty return YKHO.default_reward
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, QTBn, XeOP, AUO5, vOGg):\n gnPz.raiseNotDefined()", "def vZna(YKHO, vOGg, QTBn):\n YKHO.sum_rewards += vOGg\n YKHO.episode_steps += 1\n QTBn = oyIN.array(QTBn)\n XeOP = YKHO.policy(QTBn)\n YKHO.replay_buffer.append(YKHO.last_state, YKHO.last_action, vOGg, 0, QTBn)\n if YKHO.re...
[ "0.70163804", "0.69934577", "0.6972369", "0.69639444", "0.693336", "0.6870321", "0.6836065", "0.68152875", "0.681367", "0.68106467", "0.6810196", "0.68010736", "0.6797167", "0.67968327", "0.67484176", "0.66801345", "0.66743845", "0.6645795", "0.66411126", "0.66180277", "0.660...
0.0
-1
Creates a new queue with the defined settings. All settings except qid must exist.
def De13(pX8t): NCls = GGod() N1p7 = NCls.cursor() N1p7.execute(JrtD) pX8t['qid'] = N1p7.lastrowid N1p7.execute(VOzx, w67B(pX8t)) N1p7.close() NCls.commit() w0rQ.add_permission_list(c3oq(pX8t['admins']), pX8t['qid'], w0rQ.ADMIN) if pX8t.has_key('managers'): w0rQ.add_permissio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W_VD(YKHO, **B2fa):\n mWFP = YKHO.generate_random_name()\n return YKHO.clients('zaqar').queue(mWFP, **B2fa)", "def De13(YKHO):\n Q64Y = YKHO.generate_name()\n try:\n gGq6 = YKHO.sqs.create_queue(QueueName=Q64Y)\n except Exception as e:\n raise RuntimeError('SQS could create queue...
[ "0.7581136", "0.70347965", "0.69530344", "0.65396017", "0.6517988", "0.650838", "0.6362824", "0.63077843", "0.62122697", "0.6168579", "0.61568266", "0.6059989", "0.6057603", "0.59346896", "0.5918184", "0.59084517", "0.58973634", "0.5895379", "0.58948785", "0.58845586", "0.581...
0.80698436
0
Retrieves the queue_settings associated with qid.
def Siot(Jajo): NCls = GGod() usx6 = FgzD(qByh, (Jajo,)) if not usx6 or len(usx6) == 0: raise iHv3.Error('The queue does not exist.') return usx6[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LKz8(YKHO, Q64Y, ekCf=''):\n if ekCf == '':\n ekCf = YKHO.project_id\n bD7m = '%sprojects/%s/queues/%s?oauth=%s' % (YKHO.url, ekCf, Q64Y, YKHO.token)\n TBsA = YKHO.__get(bD7m)\n gGq6 = qQXR.loads(TBsA)\n return gGq6", "def De13(pX8t):\n NCls = GGod()\n N1p7 = NCls.cursor()\n N1...
[ "0.6426058", "0.6181275", "0.60460794", "0.60399467", "0.60134006", "0.6009682", "0.5998501", "0.596838", "0.5869374", "0.5869374", "0.5869374", "0.5869374", "0.5869374", "0.5869374", "0.5869374", "0.5869374", "0.5869374", "0.5864781", "0.57995844", "0.5773101", "0.57453996",...
0.84848475
0
Add a vertical line corresponding to line at the specified temperature.
def glOC(YKHO, zFiD, ovGo=None): YKHO._checkfigure() O_Up = YKHO._get_linedict(zFiD) zFiD = O_Up['line'] if ovGo is None: ovGo = O_Up['Tc'] qfpW = zFiD.get_c() s9gC = YKHO.axes.axvline(ovGo, color=qfpW, ls='--') O_Up['vlines'].append(s9gC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def noqX(YKHO, E3oo: datetime=None) -> None:\n YKHO._logger.debug('running')\n for MPlV in YKHO.figure.get_axes():\n if E3oo:\n YKHO._vlines.append(E3oo)\n MPlV.axvline(E3oo)\n YKHO.refresh_self()\n else:\n for zFiD in YKHO._v_lines:\n ...
[ "0.6347238", "0.6204931", "0.61713815", "0.6061019", "0.5882949", "0.5863026", "0.57749057", "0.5748844", "0.56307054", "0.5602868", "0.55812764", "0.5558648", "0.55533946", "0.5510339", "0.5501377", "0.542325", "0.5418261", "0.5417373", "0.5402615", "0.53853005", "0.536729",...
0.81121063
0
Change the scale of the y axis.
def ZxUn(YKHO, MyIQ, HjSI=0.0001): YKHO._checkfigure() if MyIQ == 'symlog': YKHO.axes.set_yscale(MyIQ, linthreshy=HjSI) else: YKHO.axes.set_yscale(MyIQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZxUn(YKHO, BWXx='linear'):\n for aNZO in YKHO._subaxes:\n aNZO.set_yscale(BWXx)\n YKHO.figure.canvas.draw()", "def sIkt(YKHO, N5og, MIMK):\n if N5og == MIMK:\n MIMK += 0.1\n YKHO.scaleLock.acquire()\n YKHO.scaley = [N5og, MIMK]\n YKHO.scaleLock.release()", "def ZRnD(YKHO, K3...
[ "0.83540624", "0.7639247", "0.76304406", "0.7609599", "0.7424399", "0.7308757", "0.7259377", "0.72316325", "0.7127579", "0.7097566", "0.7009638", "0.6943726", "0.69134957", "0.6899598", "0.6857216", "0.6814696", "0.67792916", "0.6751122", "0.6750558", "0.67136586", "0.6713658...
0.77396965
1
Show and redraw the figure. Generally not useful if HKEPlotter is being used to serve up figures to a different frontend, but is useful for interactive use of HKEPlotter on its own.
def JmFt(YKHO): YKHO.figure.show() YKHO.figure.canvas.draw()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t7YG(YKHO):\n YKHO.draw()", "def O3ZI(YKHO):\n qjJM.show()", "def gCKv(YKHO):\n XwDJ = QrM1.figure()\n cy1C = XwDJ.canvas.manager\n cy1C.canvas.figure = YKHO.figure\n YKHO.figure.set_canvas(cy1C.canvas)\n QrM1.show(block=False)", "def gCKv(YKHO, **B2fa):\n YKHO.renderers = {}\n ...
[ "0.7442054", "0.72985405", "0.72740227", "0.7139864", "0.7054566", "0.70101815", "0.6959752", "0.6950756", "0.68631804", "0.68610996", "0.68610996", "0.68610996", "0.6855939", "0.66993093", "0.668948", "0.668948", "0.65383893", "0.64258283", "0.6350744", "0.63269967", "0.6323...
0.7369711
1
Change this CIGAR string, starting at base `at` (integer) by
def ZA7r(YKHO, khtY, exwG, _QSz): YKHO._changed = True AmzP = 0 for YNK6, f60s in enumerate((a1PO[0] for a1PO in YKHO._tokens)): if AmzP + f60s > _QSz: break AmzP += f60s wXAI = (exwG, khtY) gIpM = _QSz - AmzP yvT9 = YKHO._tokens[0:YNK6] for YRbF in range(YNK6, le...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kHOa(YRbF, exwG):\n return str(YRbF).zfill(exwG)", "def vIwR(YKHO, PISu, UGqn, exwG):\n exwG = int(exwG)\n if PISu < 10:\n PISu = '00' + str(PISu)\n elif PISu < 100:\n PISu = '0' + str(PISu)\n if exwG < 10:\n exwG = '0' + str(exwG)\n if UGqn < 10:\n UGqn = '00' +...
[ "0.59899414", "0.58692604", "0.5826843", "0.5657849", "0.55905974", "0.5525048", "0.54885286", "0.5405841", "0.53604394", "0.53604394", "0.53569674", "0.53217363", "0.5308425", "0.52913743", "0.5268704", "0.5261682", "0.52560335", "0.5253637", "0.52421796", "0.5230379", "0.52...
0.49945837
44
No sigmoid in forward because we are going to use BCEWithLogitsLoss Which applies sigmoid for us when calculating a loss
def KVH6(YKHO, g4y1): WKvO, e5kH = g4y1 bySB = YKHO.arch(WKvO) if YKHO.n_meta_features: s968 = YKHO.meta(e5kH) bySB = ht2j.cat((kNmr, s968), dim=1) return YKHO.ouput(bySB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c2Ky(YKHO, WKvO):\n YKHO.z_h = oyIN.dot(WKvO, YKHO.w_ih) + YKHO.b_h\n YKHO.a_h = YKHO.sigmoid(YKHO.z_h)\n YKHO.z_o = oyIN.dot(YKHO.a_h, YKHO.w_ho) + YKHO.b_o\n KuUe = YKHO.sigmoid(YKHO.z_o)\n return KuUe", "def KVH6(YKHO, _Iob, eZic):\n Aofo = None\n Aofo = -1 * (oyIN.multiply(eZic, oyIN...
[ "0.718558", "0.7111254", "0.70874214", "0.70765215", "0.7072784", "0.703616", "0.7004094", "0.70040655", "0.6996144", "0.69507974", "0.69271636", "0.69134355", "0.68908584", "0.6888275", "0.68787265", "0.6857336", "0.68468887", "0.68463176", "0.6829951", "0.6828119", "0.68076...
0.0
-1
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistantType, PhL6: ConfigEntry): yT1k = all(await V7ok.gather(*[ajET.config_entries.async_forward_entry_unload(PhL6, UksD) for UksD in jjXj])) if yT1k: ajET.data[Sugg].pop(PhL6.unique_id) return yT1k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET, PhL6):\n yT1k = await ajET.config_entries.async_forward_entry_unload(PhL6, 'climate')\n return yT1k", "async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:\n ajET.data.pop(Sugg)\n return True", "async def async_unload_entry(ajET: HomeAssis...
[ "0.697284", "0.6888074", "0.6779855", "0.6747459", "0.6689002", "0.6657831", "0.66162205", "0.6603433", "0.65925974", "0.65595686", "0.65411645", "0.6507643", "0.6507643", "0.6507643", "0.6507643", "0.64977276", "0.64931643", "0.6486601", "0.6486601", "0.6486601", "0.6486601"...
0.64135826
39
Load the model, training and evaluation configs for PET from the given command line arguments.
def ntnM(qIxc) -> AzJI[T2WR, hxjC.TrainConfig, hxjC.EvalConfig]: xUE2 = T2WR(model_type=qIxc.model_type, model_name_or_path=qIxc.model_name_or_path, wrapper_type=qIxc.wrapper_type, task_name=qIxc.task_name, label_list=qIxc.label_list, max_seq_length=qIxc.pet_max_seq_length, verbalizer_file=qIxc.verbalizer_file, cac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dCXb():\n Mxb7 = 'Flag overwrites config value if set, used for HPO and PBT runs primarily'\n wvEv = j1Jz.ArgumentParser('train.py')\n Vtxw = wvEv.add_argument\n Vtxw('config', nargs='?', default='configs/hello.yaml')\n Vtxw('-d', '--distributed', choices=['ddp-file', 'ddp-mpi', 'cray'])\n Vt...
[ "0.64883953", "0.6423853", "0.6339392", "0.63173246", "0.63055223", "0.6296296", "0.6258348", "0.6205302", "0.6176762", "0.61579216", "0.61514276", "0.61273324", "0.6091553", "0.6090854", "0.60844326", "0.608109", "0.6078909", "0.607694", "0.6071167", "0.60487896", "0.6036241...
0.6690745
0
Returns mean score between tasks in pipeline that can be used for early stopping.
def jy6L(e5kH): i7Gs = list() N89E = e5kH['pipeline'] YAq3 = e5kH['accuracy'] if 'tagger' in N89E: i7Gs.append(YAq3['tags_acc']) if 'morphologizer' in N89E: i7Gs.append((YAq3['morphs_acc'] + YAq3['pos_acc']) / 2) if 'parser' in N89E: i7Gs.append((YAq3['uas'] + YAq3['las']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b_bN(YKHO):\n return YKHO._total_cpu['value'] / YKHO._total_cpu['count'] if YKHO._total_cpu['count'] else 0", "def p1kx(YKHO, D5gV):\n raise NotImplementedError('must subclass and implement score(task)')", "def eyjh(YKHO):\n return sum(YKHO.scores) / len(YKHO.scores)", "def LonD(HODG):\n retu...
[ "0.6135161", "0.60931313", "0.60613865", "0.5927177", "0.5919117", "0.59168655", "0.58380854", "0.58222544", "0.5811924", "0.57893497", "0.5779506", "0.57702696", "0.5763837", "0.5745407", "0.57277334", "0.5717946", "0.571239", "0.568665", "0.567822", "0.567822", "0.567822", ...
0.6233691
0
Load pretrained weights for the 'tokentovector' part of the component models, which is typically a CNN. See 'spacy pretrain'. Experimental.
def YXrq(K9NE, hksT): with hksT.open('rb') as jQJk: vbtS = jQJk.read() sAYn = [] for mWFP, UksD in K9NE.pipeline: if hasattr(UksD, 'model') and UksD.model.has_ref('tok2vec'): UksD.get_ref('tok2vec').from_bytes(vbtS) sAYn.append(mWFP) return sAYn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(YKHO):\n if YKHO.ckpt_flag:\n na1r('Skip Loading Pre-trained Model......')\n elif YKHO.params.pre_trained_from is not None and Hy7s.path.exists(YKHO.params.pre_trained_from):\n try:\n na1r('Loading Pre-trained Model at %s' % YKHO.params.pre_trained_from)\n Hj7O = ...
[ "0.6386861", "0.63678175", "0.6225031", "0.62216717", "0.61162937", "0.6101295", "0.6054075", "0.6042603", "0.6018365", "0.59910965", "0.59458715", "0.5943918", "0.59387076", "0.5920058", "0.5915071", "0.59099936", "0.59086907", "0.5901546", "0.59015244", "0.58882916", "0.588...
0.6853876
0
Attempt to find the resource directory for the python package of the ChRIS plugin. It usually looks like /usr/local/lib/python3.9/sitepackages/something If unsuccessful, return empty string.
def MHmo(YKHO, XvGd: str, e5kH: dict) -> str: try: return YKHO.interrogate_python_package_location(XvGd, e5kH) except JaPI: return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HeD1(YKHO, MYR7):\n try:\n from pkg_resources import resource_filename\n return resource_filename(__name__, MYR7)\n except ImportError:\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), MYR7)", "def MfYP():\n return GkAb(xAKo).parent", "def dS_M() -> str:\n v_nO = [Hy7s.path...
[ "0.6721056", "0.6668326", "0.6601748", "0.6568538", "0.6526997", "0.64291966", "0.63636035", "0.63410276", "0.62239856", "0.6217715", "0.6213123", "0.6172258", "0.6157969", "0.61543185", "0.613424", "0.61182326", "0.60999566", "0.6063436", "0.6055837", "0.60502505", "0.604980...
0.70710635
0
Create a new API class for your application. 'root' shoudl be your base route, and routes is a mapping of routeshortname > path suffix for your API.
def ExMO(tk5Y, **iAwL): lhy8 = {'root': UB0I(tk5Y)} for cll5, pmON in iAwL.iteritems(): lhy8[cll5] = lambda YKHO, hGN5: YKHO.sender.send_path(pmON, hGN5) return type('API', (MWb8,), lhy8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif():\n P4t4 = L2w0(__name__, instance_relative_config=False)\n P4t4.config.from_object('config.Config')\n nNXP = fyIx(P4t4)\n with P4t4.app_context():\n from .flights import TicketRoute, FlightRoute\n nNXP.add_resource(TicketRoute, '/api/tickets')\n nNXP.add_resource(FlightR...
[ "0.73801404", "0.7200694", "0.71829164", "0.6970352", "0.671085", "0.67097706", "0.67093503", "0.6705557", "0.6694073", "0.66517067", "0.6583034", "0.6547196", "0.64564484", "0.64072907", "0.6406355", "0.6401527", "0.63456136", "0.63084906", "0.62602186", "0.6221953", "0.6214...
0.75148106
0
Init function. This first defines the network compression model that implements layer removal/shrinkage and training to get reward. It also obtains the number of layers, and the network state shape, number_of_layers x number_of_parameters_for_each_layer. This method also defines action_space and observation_space for G...
def FIMM(YKHO, GPtr={}): bGrB, DRJQ = qoAZ() or8S = DRJQ.rfind('/') DRJQ = DRJQ[or8S + 1:] YKHO.network = JW03(prefix=DRJQ) YKHO.num_actions = YKHO.network.get_action_space() YKHO.input_shape = YKHO.network.get_observation_space() YKHO.reward = YKHO.network.get_reward() YKHO.done = False...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, begE, JheY, RTQI, ph8c):\n super(AAZi, YKHO).__init__(begE, JheY, RTQI, ph8c)\n YKHO.layer_sizes = [(768, 768), (768, 768), (768, 512)]\n YKHO.build_model()", "def iObY(YKHO) -> None:\n YKHO.activation = YKHO.params['activation']\n YKHO.batchsize: int = YKHO.params['batchsize']\n ...
[ "0.6963171", "0.67967623", "0.6782904", "0.67258465", "0.66817856", "0.66595465", "0.66574657", "0.6555321", "0.655193", "0.6515325", "0.64991766", "0.648771", "0.6485449", "0.6467087", "0.6460257", "0.64164853", "0.64157426", "0.6414727", "0.6405644", "0.6402848", "0.6392700...
0.6200549
50
Converts a list of strings to a string by concatenating all elements of the list
def Xwve(aPd6): hlel = '' for KCHu in aPd6: hlel = hlel + KCHu return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def whrw(list):\n vIwR = ''\n for WKvO in list:\n vIwR = vIwR + str(WKvO)\n return vIwR", "def KCQd(JTgH):\n o9EA = ''\n for LihS in JTgH:\n o9EA += str(LihS)\n return o9EA", "def hrsK(J5jX):\n return ' '.join((gTzM(ZfUD) for ZfUD in J5jX))", "def hrsK(n_L_):\n return ' ...
[ "0.845377", "0.7836319", "0.7773371", "0.7705512", "0.7661951", "0.7658474", "0.7595569", "0.7587454", "0.7479857", "0.7459654", "0.74586385", "0.7406689", "0.7406689", "0.7394045", "0.7386286", "0.7349678", "0.7333463", "0.733121", "0.7291625", "0.7260772", "0.71728444", "...
0.652098
56
r""" Initialize a collision with two wavefunctions, presumably a nucleus and a proton. One must implement the wilson line, though the order of the arguments does not matter. In the case that both wavefunctions implement the wilson line, the first (wavefunction1) will be used as such. In the case that neither implement ...
def FIMM(YKHO, DaHO: Wavefunction, H0Fk: Wavefunction): XyE5 = callable(getattr(DaHO, 'wilsonLine', None)) NmI2 = callable(getattr(H0Fk, 'wilsonLine', None)) if not XyE5 and (not NmI2): raise Exception('Neither of the wavefunctions passed to Collision(Wavefunction, Wavefunction) implement the wilson...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pFnc(YKHO):\n i_Or = u6J9(Uoby('test_forcefields/test_forcefield.offxml'), Uoby('test_forcefields/tip3p.offxml'))\n N9D1 = UnlI.from_file(Uoby(Hy7s.path.join('systems', 'monomers', 'water.sdf')))\n tlxW = aFk5.from_molecules([N9D1, N9D1])\n J_Kc = i_Or.create_openmm_system(tlxW)\n tHjx = [eHNT f...
[ "0.5363549", "0.53437185", "0.5282484", "0.4975989", "0.49336395", "0.49139965", "0.4913422", "0.4866941", "0.485196", "0.4840935", "0.4831913", "0.48300686", "0.48231012", "0.48094025", "0.47987574", "0.47694734", "0.47500825", "0.47249275", "0.47237548", "0.4697747", "0.467...
0.781818
0
Get current date and time with the format= .
def xOZo(L03z=Byma.record_name_format): wzkt = qcWV.now() return wzkt.strftime(L03z)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EUP2():\n wzkt = JRYC.datetime.now()\n LLuI = wzkt.strftime('%d/%m %H:%M')\n return LLuI", "def f1rh():\n return B72W().strftime('%Y%m%d-%H%M%S')", "def vHj7():\n wzkt = qcWV.datetime.now()\n ITS7 = wzkt.strftime('%Y-%m-%d %H:%M:%S:%f')\n return ITS7", "def EUP2():\n return qcWV.d...
[ "0.8194152", "0.7987566", "0.7932862", "0.79326594", "0.79113275", "0.7893641", "0.78934723", "0.78358227", "0.7831609", "0.7829139", "0.7818449", "0.78158355", "0.7813814", "0.78097653", "0.775849", "0.77103084", "0.76516235", "0.764516", "0.76419735", "0.7633488", "0.762019...
0.7465342
35
Get the seconds of the string.
def u5RZ(ppPa): GVIx = ppPa.split(Byma.record_name_sep) if len(GVIx) == 5: for BWXx in GVIx: if not tIyV(BWXx): return Byma.return_value_invalid_datetime_value Aofo = int(GVIx[0]) * 31622400 Aofo += int(GVIx[1]) * 2592000 Aofo += int(GVIx[2]) * 86400 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tm89(YKHO, KCHu):\n WbTE = 0\n for YRbF in KCHu.split('-'):\n if 'h' in YRbF:\n WbTE = WbTE + int(YRbF.split('h')[0]) * 3600\n if 'm' in YRbF:\n WbTE = WbTE + int(YRbF.split('m')[0]) * 60\n if 's' in YRbF:\n WbTE = WbTE + int(YRbF.split('s')[0])\n ...
[ "0.7766101", "0.7115368", "0.71104825", "0.7041365", "0.70393634", "0.70393634", "0.6951356", "0.69008636", "0.6872411", "0.6872411", "0.68332404", "0.68117046", "0.66860545", "0.6683153", "0.6572782", "0.65385103", "0.65095", "0.65092576", "0.6505078", "0.6484745", "0.642686...
0.58662844
53
Convert a dictionary to a list.
def PTjv(nPrm): try: Aofo = list(nPrm.items()) return Aofo except Exception as err: print(XObx) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KZkN(cmPJ):\n sjXb = []\n hkxX = []\n for H5ew, BWXx in cmPJ.iteritems():\n sjXb.append(H5ew)\n hkxX.append(BWXx)\n return [sjXb, hkxX]", "def eqLo(dict: Dict, X0NW: str='name', rAxx: str='value'):\n if not p7VF(dict):\n raise AttributeError(\"Argument must be a dictionary...
[ "0.82195216", "0.80905014", "0.80083996", "0.7971248", "0.7794634", "0.7763368", "0.7755257", "0.7734761", "0.741443", "0.741443", "0.73810256", "0.73580605", "0.71780914", "0.7127262", "0.71178746", "0.7070168", "0.70463735", "0.7015465", "0.6966923", "0.6900855", "0.6895519...
0.7301802
12
Crops to center of image with padding then scales to target size.
def D_oy(NuEi, N0ky): ROpF = ZylS.image.extract_jpeg_shape(NuEi) l5eN = ROpF[0] Kmi0 = ROpF[1] s6FB = ZylS.cast(0.875 * ZylS.cast(ZylS.minimum(l5eN, Kmi0), ZylS.float32), ZylS.int32) uXUM = (l5eN - s6FB + 1) // 2 _gfS = (Kmi0 - s6FB + 1) // 2 aC5g = ZylS.stack([uXUM, _gfS, s6FB, s6FB]) L...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HK1Q(LNo8, JZXy=(218, 178, 3), pan_=128):\n H2v2, TVTK, YwkQ = JZXy\n LY6y = oyIN.ceil((H2v2 - pan_) / 2).astype(int)\n B3RG = oyIN.ceil((TVTK - pan_) / 2).astype(int)\n return LNo8[LY6y:LY6y + pan_, B3RG:B3RG + pan_, :]", "def UYga(YKHO, LNo8, hgjH, zNig):\n fXzF, JPqE = hgjH\n wJAG, dEV_ ...
[ "0.7128099", "0.70488757", "0.68803775", "0.6781932", "0.6731713", "0.67305714", "0.6663504", "0.664844", "0.6613311", "0.6602656", "0.6566218", "0.65391105", "0.65155274", "0.64812684", "0.6468684", "0.6438739", "0.6353911", "0.632617", "0.6314719", "0.6305832", "0.63000154"...
0.58932555
50
Get box regression transformation deltas (dx, dy, dw, dh) that can be used to transform the `src_boxes` into the `target_boxes`. That is, the relation ``target_boxes == self.apply_deltas(deltas, src_boxes)`` is true (unless any delta is too large and is clamped).
def rPGf(YKHO, wBAe, NMT2): assert isinstance(wBAe, ht2j.Tensor), type(wBAe) assert isinstance(NMT2, ht2j.Tensor), type(NMT2) gBrK = 1 ylaY = wBAe[:, 2] - wBAe[:, 0] + gBrK jUt3 = wBAe[:, 3] - wBAe[:, 1] + gBrK nNPG = wBAe[:, 0] + 0.5 * ylaY nVdz = wBAe[:, 1] + 0.5 * jUt3 nAKo = NMT2[:, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zQ6Y(YKHO, a1kB, oUSw):\n assert ht2j.isfinite(a1kB).all().item(), 'Box regression deltas become infinite or NaN!'\n oUSw = oUSw.to(a1kB.dtype)\n gBrK = 1\n _SEp = oUSw[:, 2] - oUSw[:, 0] + gBrK\n tsWE = oUSw[:, 3] - oUSw[:, 1] + gBrK\n hpig = oUSw[:, 0] + 0.5 * _SEp\n HXha = oUSw[:, 1] + ...
[ "0.699108", "0.6511962", "0.645136", "0.6319423", "0.6214895", "0.6214895", "0.61235464", "0.60987717", "0.56899726", "0.55584025", "0.55373454", "0.54795", "0.54542905", "0.54477835", "0.5432317", "0.54260546", "0.537766", "0.5244466", "0.523219", "0.5218577", "0.51628095", ...
0.84701025
0
Load all test cases and return a unittest.TestSuite object.
def rN75(DWkG, filter): NxB3 = DuvM.TestSuite() for Mkmy, Csk6, eHNT in Hy7s.walk(eH4Y): MJH2 = Hy7s.path.relpath(Mkmy, Hy7s.path.dirname(eH4Y)).replace(Hy7s.path.sep, '.') for nUeQ in eHNT: Ux0P, YBcr = Hy7s.path.splitext(nUeQ) if YBcr == '.py' and (not nUeQ.startswith('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NxB3():\n i8WE = DuvM.TestSuite()\n for Niws in Q1nc:\n r8hN = ANWz.import_module('pyroclast.test.' + Niws)\n for exwG in dir(r8hN):\n Z9rn = getattr(r8hN, exwG)\n if SV4_(Z9rn):\n KCHu = DuvM.TestLoader().loadTestsFromTestCase(Z9rn)\n i8W...
[ "0.8478419", "0.8108045", "0.80656457", "0.80470455", "0.8037982", "0.8037982", "0.79625636", "0.7948463", "0.7787993", "0.774353", "0.77031124", "0.768088", "0.7679084", "0.76632", "0.7583168", "0.75241446", "0.7513062", "0.75110626", "0.7492876", "0.7442735", "0.7425314", ...
0.6891633
56
Makes PyTorch DataLoaders for extraction.
def ppOY(i0XC, lNai=None, Ep8u=1, I7Gy=0): if lNai is None and Ep8u != 1: import warnings Ep8u = 1 warnings.warn('Since you wish to use variable image sizes, setting batch_size=1.\nDealing with variable inputs is not trivial.', RuntimeWarning) return {Tuqy: hYOi(i0XC / Tuqy, lNai, Ep8u, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K1Op(YKHO) -> ht2j.utils.data.DataLoader:\n return ht2j.utils.data.DataLoader(YKHO.dataset_train, **YKHO.dl_kwargs)", "def hxDW():\n ZRAy = '../dataset/train/'\n lXoe = Ymkf.Compose([Ymkf.Resize((224, 224)), Ymkf.ToTensor(), Ymkf.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])])\n ppBc = ...
[ "0.7184117", "0.7172089", "0.7103049", "0.70585805", "0.7023571", "0.69776785", "0.6923268", "0.6862011", "0.6858555", "0.6841408", "0.6834583", "0.68124217", "0.6796105", "0.6769847", "0.6736129", "0.6662132", "0.664149", "0.6600465", "0.65924054", "0.65893775", "0.65822655"...
0.0
-1
Returns the minimax action using self.depth and self.evaluationFunction
def bk5W(YKHO, Ov5A): """*** YOUR CODE HERE ***""" Xz9E = Ov5A.getLegalActions(0) Xz9E.remove('Stop') Cwt5 = float('-inf') UqYS = float('inf') wCkm = o5oX.STOP p1kx = float('-inf') for XeOP in Xz9E: aUGN = Ov5A.generateSuccessor(0, XeOP) hgQX = max(p1kx, r2u1(YKHO, aUGN, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0, BZN_), YKHO.depth)\n if gnPz > SkJr or SkJr == float('-inf'):\n SkJr = gnPz\n XeOP = BZN_\...
[ "0.7482665", "0.7383559", "0.71806973", "0.7110041", "0.70884514", "0.70694935", "0.70683014", "0.7048308", "0.70055133", "0.69651455", "0.69642085", "0.69604385", "0.6945924", "0.68998593", "0.6895832", "0.688605", "0.6826282", "0.6767276", "0.6758028", "0.6751636", "0.67054...
0.0
-1
Returns an action. You can use any method you want and search to any depth you want. Just remember that the minicontest is timed, so you have to trade off speed and computation. Ghosts don't behave randomly anymore, but they aren't perfect either they'll usually just make a beeline straight towards Pacman (or away from...
def bk5W(YKHO, Ov5A): """*** YOUR CODE HERE ***""" gnPz.raiseNotDefined()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bk5W(YKHO, Ov5A):\n return YKHO.minimax(Ov5A, YKHO.depth, 0)", "def bk5W(YKHO, Ov5A):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n\n def jgkB(Ov5A, YW2j, YWSi):\n if YWSi >= Ov5A.getNumAgents():\n YWSi = 0\n YW2j += 1\n if YW2j == YKHO.depth or Ov5A.isWin() or Ov5A.isLo...
[ "0.6819004", "0.6791531", "0.67102724", "0.6693187", "0.6638914", "0.6618938", "0.6614788", "0.66092956", "0.6582351", "0.6573214", "0.6567215", "0.65612036", "0.65345424", "0.6523664", "0.65080947", "0.6482032", "0.64712214", "0.64578146", "0.64441186", "0.6432857", "0.64244...
0.0
-1
Returns the timezone as an hour/minute offset in the form "+HHMM" or "HHMM".
def VAxv(_szS): if _szS.tm_isdst == 1 and ITS7.daylight: UdQj = ITS7.altzone else: UdQj = ITS7.timezone Tvk5 = '-' if UdQj > 0 else '+' UdQj = abs(UdQj) msyo = UdQj / 60 % 60 xGcH = UdQj / 3600 return '%s%02d%02d' % (Tvk5, xGcH, msyo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def depI():\n rIAI = T3H1()\n pbSB = rIAI.utcoffset(qcWV.datetime.now()).total_seconds() // cRge\n return OZOv(pbSB)", "def Bqzo(vgXP):\n if isinstance(vgXP, fCoM):\n vgXP = vgXP.total_seconds() // 60\n Zihr = '-' if vgXP < 0 else '+'\n nQIw = '%02d%02d' % divmod(abs(vgXP), 60)\n mWFP...
[ "0.7235955", "0.67034847", "0.6700693", "0.66685057", "0.6638393", "0.66248596", "0.6586953", "0.6572008", "0.65655357", "0.64952195", "0.64378357", "0.6383715", "0.6347221", "0.63229084", "0.6319341", "0.62767327", "0.62652457", "0.6222787", "0.62033075", "0.61946964", "0.61...
0.71226084
1
Declare a the queue as highly available, passing in a list of nodes the queue should live on. If no nodes are passed, the queue will be declared across all nodes in the cluster.
def SIc7(YKHO, Ziit=None): if Ziit: YKHO._arguments['x-ha-policy'] = 'nodes' YKHO._arguments['x-ha-nodes'] = Ziit else: YKHO._arguments['x-ha-policy'] = 'all' if 'x-ha-nodes' in YKHO._arguments: del YKHO._arguments['x-ha-nodes'] return YKHO.declare()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YtN8(YKHO):\n YKHO._channel.queue_declare(queue=YKHO._queue_name, durable=True)\n print('Queue declared....')", "def nFDi(YKHO):\n gGq6 = dxPS.queue(verbose=not YKHO.quiet)\n if YKHO.q == 'ember':\n dr8x = 12\n npfx = dr8x if YKHO.cpus is None else min(YKHO.cpus, dr8x)\n ZWWE...
[ "0.62286747", "0.60477805", "0.58977777", "0.5751411", "0.5699497", "0.5601299", "0.5536529", "0.5517704", "0.55171967", "0.54711384", "0.54707986", "0.5445398", "0.5411856", "0.54114914", "0.5409894", "0.53511775", "0.5346529", "0.5311034", "0.52988267", "0.5228136", "0.5223...
0.57938516
3
Displays image and the topn predicted probabilities in a bar graph
def JBo6(LNo8, aTLP): QrM1.imshow(LNo8) QrM1.axis('off') QrM1.figure() 'labels = ("BEANS", "CAKE","CANDY","CEREAL","CHIPS",\n "CHOCOLATE", "COFFEE", "CORN", "FISH", "FLOUR",\n "HONEY", "JAM", "JUICE", "MILK", "NUTS","OIL","PASTA",\n "RICE", "SODA", "SPICES", "SUGAR", "TE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBo6(LNo8, aTLP):\n QrM1.imshow(LNo8)\n QrM1.axis('off')\n QrM1.figure()\n T4Wy = list(reversed(range(len(aTLP))))\n E_uF = [zTi3[2] for zTi3 in aTLP]\n Crrw = (zTi3[1] for zTi3 in aTLP)\n QrM1.barh(T4Wy, E_uF, alpha=0.5)\n QrM1.yticks(T4Wy, Crrw)\n QrM1.xlabel('Probability')\n Qr...
[ "0.7922684", "0.77978665", "0.7721485", "0.769006", "0.76070917", "0.71370405", "0.70984143", "0.7009505", "0.68326867", "0.6766593", "0.6606671", "0.6594294", "0.6510035", "0.64082754", "0.63103276", "0.63035893", "0.62614477", "0.6234734", "0.6204136", "0.62028116", "0.6188...
0.7603528
5
At this moment `name` bound to the group of "positive events" defined in config (i.e. "settings_yaml.yaml"). But in future implementation the naming principle could be changed.
def oUkS(YKHO, mWFP): if YKHO.data_provider.get_events_count > 10: G9jH.debug('Start training model') YTVa = YKHO.data_provider.get_events() jQ3Z = YKHO.data_provider.events_to_dataframe(YTVa) G9jH.info('Started parsing configs: {}'.format(jQ3Z.shape)) y7O6 = dict() if YKHO.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jkf2(YKHO, jkf2):\n YKHO['event_name'] = jkf2", "def jUNJ(mWFP):\n KCHu.setConfigName(mWFP)", "def mWFP(YKHO, mWFP):\n pass", "def mWFP(YKHO):\n return YKHO.config['name']", "def Ejoh(YKHO):\n pass", "def EjQv(YKHO, jkf2, BWXx='1'):\n if YKHO.validate_supply_name(jkf2, 'events/'):\n...
[ "0.6007125", "0.5761646", "0.5601685", "0.56003094", "0.5599171", "0.5488947", "0.5475686", "0.53462094", "0.53240913", "0.53206116", "0.53188646", "0.5305123", "0.53017944", "0.52758616", "0.5275524", "0.52629584", "0.52628016", "0.5255684", "0.5232966", "0.5196814", "0.5167...
0.0
-1
Tests the return of `load_cri_image` function
def yBou(YKHO, pmON): HCmI = BfDw.cmd_output(stderr='time="2020-07-02T08:02:46Z" level=debug msg="unpacking 1 images"', stdout='unpacking k8s.gcr.io/my-image:3.1 (sha256:3efe4ff64c93123e1217b0ad6d23b4c87a1fc2109afeff55d2f27d70c55d8f73)...done') gt3f = CFMy(return_value=HCmI) with Po4F.dict(apu5.__salt__, {'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hShg(YKHO):\n pass", "def SGAQ(YKHO):\n YKHO.delayDisplay('Starting the test')\n import urllib\n LUgU = (('http://slicer.kitware.com/midas3/download?items=5767', 'FA.nrrd', R6Bn.util.loadVolume),)\n for bD7m, mWFP, DWkG in LUgU:\n AesY = R6Bn.app.temporaryPath + '/' + mWFP\n if n...
[ "0.69967496", "0.6590686", "0.65902233", "0.6497048", "0.6327282", "0.6300939", "0.62152237", "0.62148", "0.62034553", "0.61346054", "0.6108102", "0.6102628", "0.6064511", "0.60624236", "0.60367256", "0.60231346", "0.60110754", "0.59880245", "0.5982799", "0.59773093", "0.5951...
0.8183807
0
Get the specified JSON input file's contents as a dict
def CklR(Ux0P=''): import json with open(Ux0P) as cSAc: TLbt = json.load(cSAc) return TLbt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CQ2n(Emd4, eZ_W):\n with open(eZ_W, 'rb') as eHNT:\n return qQXR.load(eHNT)", "def CQ2n(Emd4, eZ_W):\n with open(eZ_W, 'rb') as eHNT:\n return qQXR.load(eHNT)", "def CQ2n(Emd4, eZ_W):\n with open(eZ_W) as eHNT:\n return qQXR.load(eHNT)", "def CQ2n(Emd4, eZ_W):\n with open...
[ "0.7587827", "0.7587827", "0.7569293", "0.7569293", "0.75602573", "0.753806", "0.7389315", "0.7381221", "0.73781174", "0.7354496", "0.7349716", "0.73322374", "0.73126495", "0.7310526", "0.7288044", "0.728155", "0.7277607", "0.7270094", "0.7233338", "0.7233158", "0.72300816", ...
0.7359419
9
Return an array of item comparisons, avoiding selfcomparisons.
def sYWR(onTE): return oyIN.array([onTE[YRbF] == onTE[r845] for YRbF in range(len(onTE)) for r845 in range(YRbF + 1, len(onTE))])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ewz8(YKHO):\n return YKHO.item_comparer_value", "def dy5g(YKHO, CZxs, AhJh):\n return eHkp(YKHO.GetItemText(CZxs), YKHO.GetItemText(AhJh))", "def uTFf(Emd4, *q3OH):\n return Emd4(*(JNUI(q3g4, YRbF) for YRbF in q3OH))", "def qk7K(YKHO, *qIxc):\n return gEqO.citem_locator_t_compare(YKHO, *qIxc)...
[ "0.58421564", "0.56897765", "0.5672012", "0.5588486", "0.5552559", "0.5403639", "0.5401066", "0.53403103", "0.5271652", "0.5211439", "0.51990104", "0.5190706", "0.5167556", "0.51661444", "0.51609856", "0.5154473", "0.51290977", "0.5125599", "0.5107754", "0.5106961", "0.510658...
0.48618746
46
Return version key to use given a specific version. For example, if a dictionary only has instructions for version 'generic', will return 'generic' given any version string. Raises `ValueError` if no key could be found for requested version.
def rkfH(YKHO, DpZH): if YKHO._generic_only: return a2AD else: YKHO.check_version_exists(DpZH) return DpZH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FmW0(YKHO, pNGv):\n return YKHO.dict[str(pNGv)]", "def z6lS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'key_version')", "def kaPv(YKHO, H5ew, DpZH=None):\n if DpZH is None:\n if H5ew not in YKHO._data:\n raise KeyError('No value associated with any version of %s' % H5ew)\n ...
[ "0.7516901", "0.6918039", "0.6749801", "0.6605578", "0.6401275", "0.6225745", "0.620228", "0.619842", "0.6191113", "0.6155921", "0.6147764", "0.60847867", "0.6057561", "0.60508114", "0.5988967", "0.59874403", "0.59791094", "0.59724796", "0.5945546", "0.59303916", "0.58354455"...
0.8208527
0
Creates a keras regularizer.
def VTXN(type, jtyf, V70B): if type == 'l1': lQ3t = bdPE.regularizers.l1(jtyf) elif type == 'l2': lQ3t = bdPE.regularizers.l2(V70B) elif type == 'l1_l2': lQ3t = bdPE.regularizers.l1_l2(jtyf, V70B) else: lQ3t = None return lQ3t
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uuk7(YKHO, R5ZC=yjPc.l1(0.1)):\n YKHO.list_cnn[-1].kernel_regularizer = R5ZC", "def fWH1(YKHO, R5ZC):\n for gEmA in YKHO.prenet_layers:\n for _mSQ in gEmA.trainable_variables:\n if 'bias' not in _mSQ.name:\n if _mSQ.dtype.base_dtype == ZylS.float16:\n ...
[ "0.6614855", "0.6163753", "0.6110547", "0.60351515", "0.5921308", "0.5716683", "0.56689423", "0.5552135", "0.54837906", "0.5478638", "0.546309", "0.5458307", "0.54565173", "0.5401835", "0.53959936", "0.5376531", "0.5373115", "0.5337177", "0.5316122", "0.53155696", "0.52800167...
0.6125757
2
Return a strategy that holds if and only if pending >= x or player reaches goal.
def xza2(WKvO): def OuMq(QTBn): XP5J, RuJL, Sl6z, GBx4 = QTBn return 'hold' if GBx4 >= WKvO or RuJL + GBx4 >= xi3E else 'roll' OuMq.__name__ = 'hold_at(%d)' % WKvO return OuMq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xza2(WKvO):\n\n def OuMq(QTBn):\n XP5J, RuJL, Sl6z, GBx4 = QTBn\n return 'hold' if GBx4 >= WKvO or RuJL + GBx4 >= xi3E else 'roll'\n OuMq.__name__ = 'hold_at(%d)' % WKvO\n return OuMq", "def OjyN(QTBn):\n XP5J, RuJL, Sl6z, GBx4 = QTBn\n if RuJL + GBx4 >= xi3E:\n return 1\n...
[ "0.7355454", "0.60242695", "0.6023155", "0.5951468", "0.5937637", "0.572351", "0.5663513", "0.56209296", "0.56154317", "0.56149787", "0.5597981", "0.55769897", "0.556702", "0.55660975", "0.5485379", "0.54448724", "0.5435684", "0.54253024", "0.5404603", "0.5403368", "0.5395781...
0.7068357
1
A strategy that maximizes the expected difference between my final score and my opponent's.
def wfXG(QTBn): return r8IL(QTBn, ffDk, _oen, zmYF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def amIj(p1kx, qhbw):\n ftQ2, G1Hx = (qhbw // 10 + 1, 1)\n jjpt = p1kx > qhbw\n dMYj = (xi3E - p1kx) / (xi3E - qhbw)\n JBMS = DC_Y(3)(p1kx, qhbw)\n if xi3E - p1kx <= ftQ2:\n return 0\n while G1Hx < 4:\n if jjpt and p1kx >= xi3E - (3 * G1Hx - 1):\n return G1Hx\n G1H...
[ "0.7319641", "0.7241692", "0.72058785", "0.70882905", "0.69610775", "0.6886896", "0.688641", "0.6814296", "0.6810675", "0.67275155", "0.67186815", "0.6703836", "0.6694766", "0.6693455", "0.6671631", "0.666438", "0.6662398", "0.66298085", "0.6617561", "0.6569686", "0.6525511",...
0.6654747
17