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
Test that a user can't get comment an article without comment.
def J4MD(YKHO): KIfG = GmgC.as_view() bD7m = gxEw('comments:all_comments', kwargs={'slug': 'not'}) QePW = YKHO.request_factory.get(bD7m) rliA(QePW, user=YKHO.user) geh0 = KIfG(QePW, slug='not') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_NOT_FOUND) YKHO.assertEqual(geh0.data['detail'], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fqmi(YKHO):\n l3QS = YKHO.create_article()\n s5ru = l3QS.data['data']['slug']\n aM_I = YKHO.create_comment(s5ru)\n pQGt = aM_I.data.get('id')\n yahq = YKHO.client.post('/api/articles/{}/comments/{}/dislike/'.format(s5ru, pQGt), format='json')\n YKHO.assertEqual(yahq.data['detail'], 'Authentic...
[ "0.76351005", "0.75312877", "0.7369479", "0.7343418", "0.7150594", "0.7097288", "0.6996603", "0.69933003", "0.69720614", "0.69572514", "0.68653774", "0.6829459", "0.6820777", "0.67756164", "0.67501163", "0.6711789", "0.66973674", "0.6688171", "0.6685842", "0.66706496", "0.665...
0.75715566
1
Test that a user can get comments successfully.
def qk8m(YKHO): KIfG = GmgC.as_view() bD7m = gxEw('comments:all_comments', kwargs={'slug': YKHO.slug}) QePW = YKHO.request_factory.get(bD7m) rliA(QePW, user=YKHO.user) geh0 = KIfG(QePW, slug=YKHO.slug) YKHO.assertIsInstance(geh0.data, list) YKHO.assertNotEqual(geh0.data, None) YKHO.asser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dmhZ(YKHO):\n CBIr, bGrB = mv1M.objects.get_or_create(username='r_d_james')\n YKHO.client.force_login(user=CBIr)\n geh0 = YKHO.client.post(gxEw('comment', kwargs={'pk': 1}), {'content': 'test_comment'}, follow=True)\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertEqual(geh0.context['comme...
[ "0.7774073", "0.768221", "0.7218581", "0.718259", "0.718259", "0.71750855", "0.7138755", "0.7125821", "0.70856535", "0.70539343", "0.70300686", "0.7018674", "0.6921636", "0.6919255", "0.6913642", "0.6913642", "0.6863918", "0.6863177", "0.68442166", "0.6834104", "0.6819782", ...
0.7276062
2
Test that user can like a comment successfully.
def ZRfc(YKHO): tTee = hP3p.as_view() QePW = YKHO.request_factory.put(YKHO.likes_url, args=[YKHO.slug, YKHO.pk]) rliA(QePW, user=YKHO.user) geh0 = tTee(QePW, slug=YKHO.slug, pk=YKHO.pk) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK) YKHO.assertIn(geh0.data['Message'], 'You have successfull...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fctW(YKHO):\n YKHO.register_and_login(YKHO.user)\n geh0 = YKHO.dislike(YKHO.slug, YKHO.pk)\n geh0 = YKHO.like(YKHO.slug, YKHO.pk)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)", "def Ut6_(YKHO):\n l3QS = YKHO.create_article()\n s5ru = l3QS.data['data']['slug']\n aM_I = YKHO.crea...
[ "0.8681997", "0.8390076", "0.80604815", "0.792088", "0.7566836", "0.7560907", "0.752998", "0.74519217", "0.73067063", "0.7205783", "0.71968365", "0.7192173", "0.7180303", "0.71631867", "0.71525973", "0.71449155", "0.7141951", "0.7085347", "0.7078071", "0.706975", "0.70643455"...
0.7744673
4
Test that user can unlike an article successfully.
def fpPN(YKHO): tTee = hP3p.as_view() QePW = YKHO.request_factory.put(YKHO.likes_url, args=[YKHO.slug, YKHO.pk]) rliA(QePW, user=YKHO.user) geh0 = tTee(QePW, slug=YKHO.slug, pk=YKHO.pk) QePW = YKHO.request_factory.put(YKHO.likes_url, args=[YKHO.slug, YKHO.pk]) rliA(QePW, user=YKHO.user) geh0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lBM3(YKHO):\n YKHO.test_create_post_if_authorized()\n m8z6 = T97t.objects.first()\n GOck = YKHO.client.post('/posts/{}/like/'.format(m8z6.id))\n geh0 = YKHO.client.get('/posts/')\n YKHO.assertEqual(1, m8z6.like_count)\n omcb = YKHO.client.delete('/posts/{}/unlike/'.format(m8z6.id))\n mFeZ ...
[ "0.73000973", "0.6989665", "0.6989207", "0.69372016", "0.6908145", "0.6870239", "0.68600583", "0.68418396", "0.68254447", "0.68228596", "0.68100065", "0.68004924", "0.6784878", "0.67688084", "0.67560124", "0.6736569", "0.67333704", "0.6623393", "0.66102785", "0.6588812", "0.6...
0.69209033
4
Test that user can dislike an article successfully.
def AmTQ(YKHO): tTee = YEYT.as_view() QePW = YKHO.request_factory.put(YKHO.dislikes_url, args=[YKHO.slug, YKHO.pk]) rliA(QePW, user=YKHO.user) geh0 = tTee(QePW, slug=YKHO.slug, pk=YKHO.pk) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK) YKHO.assertIn(geh0.data['Message'], 'You have successf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H37q(YKHO):\n l3QS = YKHO.create_article()\n s5ru = l3QS.data['data']['slug']\n aM_I = YKHO.create_comment(s5ru)\n pQGt = aM_I.data.get('id')\n YKHO.client.post('/api/articles/{}/comments/{}/dislike/'.format(s5ru, pQGt), HTTP_AUTHORIZATION='Bearer ' + YKHO.token, format='json')\n yahq = YKHO....
[ "0.81584626", "0.8119643", "0.8104808", "0.8096565", "0.80448264", "0.7958924", "0.79212475", "0.77391833", "0.76359546", "0.76271796", "0.76176566", "0.7612914", "0.7546446", "0.7503524", "0.74348533", "0.73699903", "0.73602104", "0.7342331", "0.7333138", "0.7299064", "0.721...
0.75898683
12
Test that user can undislike an article successfully.
def djAW(YKHO): tTee = YEYT.as_view() QePW = YKHO.request_factory.put(YKHO.dislikes_url, args=[YKHO.slug, YKHO.pk]) rliA(QePW, user=YKHO.user) geh0 = tTee(QePW, slug=YKHO.slug, pk=YKHO.pk) QePW = YKHO.request_factory.put(YKHO.dislikes_url, args=[YKHO.slug, YKHO.pk]) rliA(QePW, user=YKHO.user) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPyX(YKHO):\n YKHO.register_and_login(YKHO.user)\n geh0 = YKHO.dislike(YKHO.slug, YKHO.pk)\n geh0 = YKHO.dislike(YKHO.slug, YKHO.pk)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)", "def Y906(YKHO):\n pass", "def H37q(YKHO):\n l3QS = YKHO.create_article()\n s5ru = l3QS.data['da...
[ "0.7905363", "0.7759381", "0.77124405", "0.7678893", "0.7567645", "0.7554881", "0.748163", "0.74699044", "0.7421567", "0.7386982", "0.73635435", "0.7360085", "0.73404807", "0.71663237", "0.71115327", "0.7090257", "0.704743", "0.70045847", "0.69745964", "0.69643444", "0.695743...
0.7339238
13
Test disliking a comment that does not exist.
def MKkC(YKHO): tTee = YEYT.as_view() QePW = YKHO.request_factory.put(YKHO.dislikes_url, args=[YKHO.slug, 10]) rliA(QePW, user=YKHO.user) geh0 = tTee(QePW, slug=YKHO.slug, pk=10) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_NOT_FOUND) YKHO.assertEqual(geh0.data['detail'], 'A comment with thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPyX(YKHO):\n YKHO.register_and_login(YKHO.user)\n geh0 = YKHO.dislike(YKHO.slug, YKHO.pk)\n geh0 = YKHO.dislike(YKHO.slug, YKHO.pk)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)", "def sC2u(YKHO):\n YKHO.register_and_login(YKHO.user)\n geh0 = YKHO.dislike('fakeslug', YKHO.pk)\n ...
[ "0.79831547", "0.7937957", "0.77274394", "0.7690226", "0.7528081", "0.7507808", "0.74464935", "0.74413633", "0.7397577", "0.73910254", "0.73740256", "0.7344021", "0.7305988", "0.72613406", "0.72333425", "0.72009057", "0.7075381", "0.69355273", "0.6885557", "0.6838955", "0.671...
0.76227295
4
Load model from cli. Derived classes must implement this method if they support loading from disk.
def O5RJ(Emd4, uqvc): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(GSyo, ZGE9, uqvc):\n try:\n qv1X = YWSi.LoadModelRequest()\n qv1X.url = uqvc\n qv1X.name = ZGE9\n return GSyo.LoadModel(qv1X)\n except Exception as e:\n print(tTpl)\n return None", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKH...
[ "0.7446762", "0.72958946", "0.72958946", "0.72958946", "0.72958946", "0.7250405", "0.7250405", "0.7221808", "0.71514755", "0.71183693", "0.7103398", "0.70769465", "0.70123446", "0.6954813", "0.6888106", "0.68874305", "0.687193", "0.6855653", "0.6853079", "0.6844049", "0.68379...
0.7082303
11
Get layer kwargs Returns 'KwargDict' Layer KwargDict
def B2fa(YKHO): return YKHO._kwargs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qc2q(YKHO):\n return YKHO.kwargs if YKHO.kwargs else {}", "def B2fa(Emd4, **B2fa):\n return QKqJ()", "def NURA(YKHO):\n return dict()", "def lVGv(YKHO) -> GySg[str, ImMB]:\n fhcK = YKHO._task_layer_sizes + [YKHO._num_targets]\n z8wt = Fz20.xavier_initializer(uniform=True, seed=None, dtype=...
[ "0.7218834", "0.70271945", "0.69553506", "0.68922687", "0.67470396", "0.6721837", "0.66993374", "0.6629859", "0.6618604", "0.6605077", "0.65599036", "0.65405804", "0.6534459", "0.6473182", "0.6461213", "0.6419663", "0.63899785", "0.6361537", "0.63544166", "0.63454926", "0.634...
0.66963685
7
Returns a Blob instance for the given path.
def vxw0(YKHO, pmON, bf9h): HCmI = YKHO.cmd('cat-file') HCmI.raw(True) HCmI.batch = '%(objectsize)' if isinstance(bf9h, QMSQ): bf9h = bf9h.encode('utf8') HCmI.stdin('%s:%s' % (bf9h, pmON)) yvT9 = HCmI.run() sdCG = yvT9.readline() if not sdCG or sdCG.strip().endswith('missing'): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FTlF(YKHO, pmON):\n raise NotImplementedError('%s remote type does not implement get_blob' % YKHO.__class__.__name__)", "def FTlF(YKHO, A_Oz: str) -> jv1k.Blob:\n return YKHO.src_bucket.get_blob(f'{YKHO.src_path}{A_Oz}')", "def f3u7(pmON: Path) -> vWSL:\n nPrm = pmON.read_bytes()\n m6Me = g5Ba....
[ "0.77016085", "0.72267485", "0.71636343", "0.70245755", "0.6920274", "0.6820434", "0.67208695", "0.6667061", "0.6504161", "0.6437348", "0.6317676", "0.6304682", "0.62440485", "0.6187615", "0.61593944", "0.6125722", "0.6125722", "0.6092232", "0.60839176", "0.6026637", "0.60233...
0.6438851
9
Return the timestamp of the last commit.
def bS9m(YKHO): RmfS = YKHO.for_each_ref(pattern='refs/heads/', sort='-committerdate', count=1) for WBAH, bGrB, bGrB in RmfS: jSYO = YKHO.commit(WBAH) return jSYO.committer_epoch return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xk3X(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'latest_commit_time')", "def kYoL(YKHO):\n axC8 = f'{YKHO.openpecha_api}/commits/master'\n bjLQ = G4JS.get(url=axC8).json()\n return bjLQ['sha']", "def V0Bk(YKHO):\n if not YKHO._last_commit:\n YKHO._last_commit = gnPz.run(['git'...
[ "0.8436393", "0.80933833", "0.79257", "0.79039377", "0.7875837", "0.7875569", "0.784683", "0.7720262", "0.76949614", "0.75870013", "0.75100446", "0.7504375", "0.740783", "0.7400117", "0.738624", "0.7285012", "0.7285012", "0.7273011", "0.7252906", "0.7209663", "0.72092736", ...
0.8580901
0
Build parsed values for Recovered Instrument Data Particle. Take something in the hex data values and turn it into a particle with the appropriate tag. SampleException If there is a problem with sample creation
def bWqp(YKHO): QCiX = (qcWV.datetime(2000, 1, 1) - qcWV.datetime(1900, 1, 1)).total_seconds() t29l, MJDo, nPrm = YKHO.raw_data ycBG = int(nPrm[:5], 16) Q3Ge = int(nPrm[5:10], 16) CJ2p, lcOE = BlNT.unpack('<HI', MRxC.a2b_hex(nPrm[10:22])) YKHO.set_internal_timestamp(timestamp=lcOE + QCiX) xC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bWqp(YKHO):\n xMdN = MRxC.b2a_hex(YKHO.raw_data[cZwH])\n PL7m = xMdN[6:8] + xMdN[4:6] + xMdN[2:4] + xMdN[0:2]\n G91o = JsUu(PL7m)\n YKHO.set_internal_timestamp(timestamp=G91o)\n try:\n tlTe = MRxC.b2a_hex(YKHO.raw_data[og76])\n CJ2p = tlTe[12:14] + tlTe[10:12]\n except (ValueErr...
[ "0.7285363", "0.71999913", "0.7085443", "0.70720756", "0.702304", "0.69850963", "0.6929883", "0.6898732", "0.6795535", "0.67914504", "0.6735895", "0.6692179", "0.66709626", "0.65833336", "0.64716005", "0.64649516", "0.64526236", "0.64118266", "0.61817074", "0.617008", "0.6150...
0.71043
2
Inserts element x into list lst such that x is less than or equal to the next element and returns the resulting list.
def jKP8(WKvO, yv6U): oeNL = TgwQ(WKvO, yv6U) yv6U.insert(oeNL, WKvO) return yv6U
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(yv6U: List[int], Ty9i: int) -> None:\n if len(yv6U) == 0:\n yv6U.append(Ty9i)\n return None\n YRbF = len(yv6U) - 1\n while YRbF != 0:\n if yv6U[YRbF] > Ty9i:\n yv6U.insert(YRbF, Ty9i)\n return None\n YRbF -= 1\n if YRbF == 0:\n yv6U.inse...
[ "0.69490373", "0.6814454", "0.67499393", "0.67212915", "0.6625558", "0.66118646", "0.6512375", "0.6482438", "0.647045", "0.646389", "0.6418447", "0.6408646", "0.6398023", "0.6388233", "0.6273125", "0.6270168", "0.62502307", "0.61444616", "0.6117916", "0.61117667", "0.6097559"...
0.6898796
1
Inserts a word into the trie.
def JPHp(YKHO, GIN8: str) -> None: for YRbF in range(1, len(GIN8)): if GIN8[:YRbF] not in YKHO._trie: YKHO._trie[GIN8[:YRbF]] = False YKHO._trie[GIN8] = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, GIN8: str) -> None:\n jvSB = YKHO.node\n for YRbF in GIN8:\n if YRbF not in jvSB.char:\n jvSB.char[YRbF] = ep_x()\n jvSB = jvSB.char[YRbF]\n if jvSB.isword is False:\n jvSB.isword = True", "def JPHp(YKHO, GIN8: str) -> None:\n XP5J = YKHO.root\n for Y...
[ "0.89349246", "0.8875727", "0.88754433", "0.88664436", "0.8845666", "0.88351166", "0.8829387", "0.88241696", "0.88215303", "0.88025844", "0.87970716", "0.87917984", "0.87870646", "0.8786165", "0.8785743", "0.87801075", "0.8779744", "0.87764865", "0.87708014", "0.8767584", "0....
0.8140462
100
Returns if the word is in the trie.
def TgwQ(YKHO, GIN8: str) -> bool: return YKHO._trie.get(GIN8, False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYXB(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n return False\n tk5Y = tk5Y[Z9rn]\n return tk5Y.end_of_word", "def DUe0(YKHO, ZOCz, GIN8):\n if type(GIN8) != str:\n raise TypeError('Trie only works on str!')...
[ "0.82730556", "0.8268669", "0.8264989", "0.821454", "0.8189983", "0.81762034", "0.81695247", "0.81329536", "0.7981468", "0.7973667", "0.7966321", "0.79540753", "0.7881218", "0.7876813", "0.78663623", "0.7835046", "0.7812851", "0.7811768", "0.7795306", "0.77902055", "0.7787897...
0.7819606
16
Returns if there is any word in the trie that starts with the given prefix.
def BYxH(YKHO, y0cW: str) -> bool: return y0cW in YKHO._trie
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYxH(YKHO, y0cW):\n GIN8 = y0cW\n if not GIN8:\n return True\n nsYX = GIN8[0]\n if nsYX not in YKHO.trie_map:\n return False\n Tifd = YKHO.trie_map[nsYX]\n for YRbF in range(1, len(GIN8)):\n LihS = GIN8[YRbF]\n if LihS not in Tifd.childMap:\n return Fals...
[ "0.864127", "0.84551805", "0.8414806", "0.8414771", "0.8405867", "0.8380701", "0.83692425", "0.8334764", "0.8326628", "0.8326001", "0.82389534", "0.82286847", "0.8172065", "0.81589025", "0.8151146", "0.8146269", "0.8114849", "0.80100894", "0.7982403", "0.7982403", "0.79544055...
0.84394795
2
Get the URL for the image of an emoji, or a list of emojis.
async def link(YKHO, OaeV, iYc4: commands.Greedy[discord.PartialEmoji]): if len(iYc4) == 0: raise fQbk('You need to input at least one emoji .') Q1PJ = ZOrr.Embed(colour=gxBI.success, description='') for JUOb in iYc4: Q1PJ.description = str(Q1PJ.description) + str(JUOb.url) + '\n' Q1PJ.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def get_emoji_url(YKHO, OaeV, JUOb: Union[discord.Emoji, discord.PartialEmoji, str]):\n if isinstance(JUOb, (ZOrr.Emoji, ZOrr.PartialEmoji)):\n await OaeV.send(str(JUOb.url))\n else:\n await OaeV.send(JUOb)", "async def emoji_from_url(YKHO, OaeV, kIqR, LNo8=None):\n await YKHO.has_vo...
[ "0.71527696", "0.6458119", "0.64115155", "0.62418735", "0.6217751", "0.61773956", "0.61386824", "0.60536146", "0.595745", "0.5909611", "0.58954066", "0.5821462", "0.5819475", "0.579439", "0.5790324", "0.57273185", "0.5712541", "0.57004374", "0.56995213", "0.56924367", "0.5677...
0.64356536
2
Upload an emoji from a URL or image.
async def emoji_from_url(YKHO, OaeV, kIqR, LNo8=None): await YKHO.has_voted(OaeV) if LNo8 is None: if len(OaeV.message.attachments) == 0: LNo8 = kIqR kIqR = None qwnb = None if LNo8: try: LNo8 = await i4A0.convert(ctx=OaeV, argument=LNo8) i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AwJp(YKHO, kIqR, FAJu):\n BGqR = jth9(YKHO._base_form_data)\n BGqR['name'] = kIqR\n with open(FAJu, 'rb') as nUeQ:\n RRlC = {'img': nUeQ}\n AwJp = YKHO.session.post(YKHO._upload_url, data=BGqR, files=RRlC, allow_redirects=False)\n if AwJp.status_code != cwhV.found:\n wDJt = Izn...
[ "0.7269304", "0.70893735", "0.70153266", "0.6542588", "0.6451414", "0.64488196", "0.64406544", "0.6423169", "0.6344083", "0.62235504", "0.6028949", "0.5849144", "0.57275254", "0.570143", "0.5666997", "0.56655616", "0.56617665", "0.5656149", "0.56468", "0.554779", "0.54969865"...
0.73824024
0
Convert somebody's pfp (profile picture) to an emoji.
async def pfp(YKHO, OaeV, tgfs: discord.Member=None, mqAw=None): if tgfs is None: tgfs = OaeV.message.author C2vo = {'title': ZbWC.sub('[^\\w]', '', tgfs.display_name if not mqAw else mqAw), 'image': str(tgfs.avatar_url).replace('?size=1024', '?size=128')} await egc0(OaeV, C2vo, success_message=f"Em...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZjwF(YKHO, l5Ny):\n l5Ny = ZbWC.sub(':', '', l5Ny)\n l5Ny = ZbWC.sub('…', '', l5Ny)\n l5Ny = ' '.join(ZbWC.findall('[\\\\u0020-\\\\u007F\\\\u00A0-\\\\u00FF\\\\u0100-\\\\u017F\\\\u0180-\\\\u024F]+', l5Ny))\n l5Ny = YKHO.emoji_patterns.sub('', l5Ny)\n return l5Ny", "def eEI5(YKHO, NAnm):\n ...
[ "0.58808124", "0.5856682", "0.5670563", "0.5666697", "0.5622775", "0.5535385", "0.55336624", "0.553229", "0.5511468", "0.5496748", "0.547772", "0.5457434", "0.54388845", "0.5422191", "0.5388914", "0.53676385", "0.53039765", "0.5302978", "0.52969384", "0.52949595", "0.5293866"...
0.63885045
0
will give len of linked list
def len(YKHO): UHFx = 0 ycBG = YKHO.head while ycBG != None: ycBG = ycBG.next UHFx += 1 return UHFx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n u54L = 0\n if YKHO.head is not None:\n aCLL = YKHO.head\n u54L = 1\n while aCLL.pointer_next is not None:\n u54L += 1\n aCLL = aCLL.pointer_next\n return u54L", "def u54L(YKHO):\n exwG = 0\n AsCw = YKHO.head\n while AsCw != None:\n ...
[ "0.8801627", "0.8725729", "0.86512965", "0.8645055", "0.8639847", "0.8631721", "0.86077356", "0.8606425", "0.8600874", "0.85847336", "0.856506", "0.85502434", "0.8547467", "0.854607", "0.85375154", "0.8518319", "0.85031104", "0.84990263", "0.84952474", "0.84639496", "0.845234...
0.85565805
11
Returns a Placeholder that represents an input artifact.
def input(H5ew: str) -> xHrW: return xHrW(Cd04.Placeholder.Type.INPUT_ARTIFACT, H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hlel(H5ew: str) -> xHrW:\n return xHrW(Cd04.Placeholder.Type.OUTPUT_ARTIFACT, H5ew)", "def input(nPrm, ZI14='', mWFP=None):\n return MFCX(nPrm, ZI14, name=mWFP)", "def ZBvg(dGC4: str) -> str:\n return \"{{{{$.inputs.artifacts['{}'].uri}}}}\".format(dGC4)", "def mD0V(YKHO):\n pass", "def oc7...
[ "0.65463805", "0.6515696", "0.6251187", "0.62126225", "0.60123026", "0.5903133", "0.5783845", "0.5783845", "0.5783845", "0.5783845", "0.5783845", "0.5783845", "0.5783845", "0.5783845", "0.5783845", "0.5783845", "0.5702011", "0.5449642", "0.5446399", "0.54317594", "0.54154384"...
0.8197155
0
Returns a Placeholder that represents an output artifact. It is the same as input(...) function, except it is for output artifacts.
def hlel(H5ew: str) -> xHrW: return xHrW(Cd04.Placeholder.Type.OUTPUT_ARTIFACT, H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def input(H5ew: str) -> xHrW:\n return xHrW(Cd04.Placeholder.Type.INPUT_ARTIFACT, H5ew)", "def jSIZ(YKHO) -> h8nf[str]:\n pass", "def nJ_I(eHNT):\n\n def h3Xc(*qIxc, **B2fa):\n return qIxc[0] if len(qIxc) > 0 else None\n return h3Xc", "def o1oC(d7pR):\n return ('out_hidden', d7pR)", "...
[ "0.6624481", "0.6115616", "0.5959393", "0.5912452", "0.5897567", "0.57943773", "0.57426715", "0.5722134", "0.56977606", "0.5682208", "0.5673252", "0.5667195", "0.5661423", "0.5652152", "0.56454563", "0.5642281", "0.56331915", "0.5608551", "0.5608551", "0.5601858", "0.5601132"...
0.77695817
0
Adds a neo4j edge and its nodes to networkX, no return.
def IOr4(fkk4, iNbq): JZXy = iNbq.start_node pan_ = iNbq.end_node AsUj(fkk4, JZXy) AsUj(fkk4, pan_) q6_Z = iNbq.get_properties() q6_Z['id'] = iNbq._id fkk4.add_edge(JZXy._id, pan_._id, q6_Z) return fkk4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, D70y):\n YKHO.edges.add(frozenset(D70y))\n for Q6kx in D70y:\n YKHO.add_node(Q6kx)", "def A609(YKHO, *qIxc):\n return PZpo.PNEANetMP_AddEdge(YKHO, *qIxc)", "def A609(YKHO, *qIxc):\n return PZpo.PNEANet_AddEdge(YKHO, *qIxc)", "def rz7z(YKHO, D70y):\n JYV8, mheE = D70y.node...
[ "0.7251419", "0.724798", "0.72444415", "0.7210304", "0.72072226", "0.7190849", "0.71665597", "0.71664613", "0.7149241", "0.7130888", "0.7128902", "0.7123653", "0.7121516", "0.7119044", "0.7094239", "0.70895183", "0.7083776", "0.70619303", "0.7060856", "0.7053446", "0.70308", ...
0.71720153
6
Throw a ValueError if X contains NaN or infinity.
def dihG(EcVT: Union[ArrayLike, _SparseMatrix], *, gZeu: bool=...) -> None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wESl(WKvO):\n if not oyIN.isfinite(WKvO.sum()):\n raise ValueError('Only finite numbers are supported.')", "def mLt_(EcVT):\n EcVT = oyIN.asanyarray(EcVT)\n if EcVT.dtype.char in oyIN.typecodes['AllFloat'] and (not oyIN.isfinite(EcVT.sum())) and (not oyIN.isfinite(EcVT).all()):\n raise...
[ "0.75315857", "0.7357189", "0.72701716", "0.7255983", "0.7028601", "0.6951593", "0.6904697", "0.6901691", "0.6889109", "0.67721003", "0.67460114", "0.6714668", "0.6709829", "0.66902375", "0.6685321", "0.6620768", "0.66133124", "0.659747", "0.6585486", "0.6571313", "0.65277237...
0.64335644
24
Converts an arraylike to an array of floats. The new dtype will be np.float32 or np.float64, depending on the original type. The function can create a copy or modify the argument depending on the argument copy.
def oet3(EcVT: Union[ArrayLike, _SparseMatrix], *, jth9: bool=..., QSG5: Union[bool, Literal['allow-nan']]=...) -> gyIm: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ih2E(qY0f, yDqo=None):\n if yDqo is None:\n yDqo = qY0f.dtype\n if yDqo == 'float32':\n tJvs = qU2L.vtkFloatArray()\n elif yDqo == 'float64':\n tJvs = qU2L.vtkDoubleArray()\n else:\n raise ValueError('Wrong format of input array, must be float32 or float64')\n if len(...
[ "0.7554053", "0.7502752", "0.7323117", "0.72800285", "0.7150634", "0.7046534", "0.6992189", "0.69884413", "0.69646263", "0.69578135", "0.6886154", "0.68723834", "0.68073183", "0.67416847", "0.6700006", "0.6683411", "0.6658244", "0.65563583", "0.65563583", "0.654492", "0.65262...
0.67576176
13
Turn seed into a np.random.RandomState instance
def p11e(yokr: Optional[Union[int, RandomState]]) -> nRUW: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yokr(o5eM: int=0):\n QTBn = oyIN.random.get_state()\n oyIN.random.seed(o5eM)\n yield\n oyIN.random.set_state(QTBn)", "def to59(YKHO):\n yokr = YKHO._params['seed'] if 'seed' in YKHO._params else None\n t3eI = oyIN.random.RandomState(seed=yokr)\n return t3eI", "def yokr(YKHO, yokr=None)...
[ "0.81446713", "0.79128796", "0.785195", "0.7828628", "0.7740097", "0.7720192", "0.7710479", "0.7703763", "0.7688521", "0.76800525", "0.7675717", "0.7630015", "0.7630015", "0.75635767", "0.7493095", "0.7488491", "0.74784714", "0.7457473", "0.7457473", "0.7388638", "0.7385628",...
0.0
-1
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Calculates the upper bandwidth of the matrix A.
def lUK_(k0lF): exwG, bGrB = k0lF.shape for YRbF in range(exwG - 1, 0, -1): Oejw = oyIN.diag(k0lF, YRbF) if not oyIN.allclose(Oejw, 0): return YRbF return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zH1o(qiCx, DKvd):\n h5h2 = 1\n if qiCx:\n h5h2 /= qiCx\n return oyIN.around(h5h2 * DKvd, decimals=3)", "def B725(k0lF):\n HN6s = k0lF.shape[0]\n co3n = k0lF.shape[1]\n if k0lF.getformat() == 'csr':\n return z2TE(k0lF.indices, k0lF.indptr, HN6s)\n elif k0lF.getformat() == 'c...
[ "0.6187242", "0.59291756", "0.57145745", "0.56106746", "0.5572828", "0.55515236", "0.54919994", "0.5445172", "0.5437933", "0.5313043", "0.52718043", "0.5261118", "0.5257676", "0.5240426", "0.5236044", "0.5234008", "0.5227545", "0.5203714", "0.5192756", "0.5119715", "0.5107420...
0.6704219
0
Returns the hafnian of a matrix.
def Tyoo(k0lF, lGbz=False, znBS=True, LL2J=1e-05, rU28=1e-08, gmTb=True, OS2K=False, eAYh=1000): PsOK(k0lF, rtol=LL2J, atol=rU28) FutO = k0lF.shape if FutO == (0, 0): return 1 if FutO[0] % 2 != 0 and (not lGbz): return 0.0 if oyIN.allclose(oyIN.diag(oyIN.diag(k0lF)), k0lF, rtol=LL2J,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gRoL(k0lF):\n r8hN = k0lF.nrows()\n exwG = k0lF.ncols()\n C7Ls = jth9(k0lF)\n KkY2 = UOV2(exwG)\n assert C7Ls - k0lF * KkY2 == r8iy\n return (C7Ls, KkY2)", "def IHiF(vb7U):\n return vb7U.H", "def K9JA(YKHO):\n Csk6 = YKHO.dims[0]\n A8Xr = YKHO.fc1_pos.weight - YKHO.fc1_neg.weight...
[ "0.66950196", "0.66921985", "0.66049486", "0.63817155", "0.6374834", "0.6333466", "0.632992", "0.6242505", "0.615648", "0.6084467", "0.6064469", "0.6056277", "0.6040718", "0.6037325", "0.5978093", "0.59735835", "0.5970081", "0.5940722", "0.5933495", "0.5917861", "0.5905593", ...
0.0
-1
Returns the object ID for this object. >>> doc = resultSet.getResults()[0] >>> doc.getObjectId()
def BXIp(YKHO): if YKHO._objectId is None: if YKHO.xmlDoc is None: YKHO.logger.debug('Both objectId and xmlDoc were None, reloading') YKHO.reload() lhy8 = YKHO.getProperties() YKHO._objectId = Cl27(lhy8['cmis:objectId']) return YKHO._objectId
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NBcv(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'object_id')", "def OyzV(YKHO):\n return YKHO._objID", "def NBcv(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_id')", "def NBcv(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_id')", "def unpH(YKHO):\n return YKHO.o.get('_id', None)",...
[ "0.7369627", "0.7363448", "0.72714317", "0.72714317", "0.7229594", "0.722366", "0.71253324", "0.70499647", "0.6994989", "0.698026", "0.698026", "0.698026", "0.698026", "0.69098336", "0.6795353", "0.67798126", "0.67672306", "0.67243737", "0.67134374", "0.6671528", "0.6664202",...
0.6610458
31
Returns a dict of the object's properties. If CMIS returns an empty element for a property, the property will be in the dict with a value of None. >>> props = doc.getProperties()
def ehYw(YKHO): if YKHO._properties == {}: if YKHO.xmlDoc is None: YKHO.reload() vHss = YKHO.xmlDoc.getElementsByTagNameNS(Lh85, 'properties')[0] for Q6kx in [tTpl for tTpl in vHss.childNodes if tTpl.nodeType == tTpl.ELEMENT_NODE and tTpl.namespaceURI == Lh85]: sOaD =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ehYw(YKHO):\n if YKHO._properties == {}:\n vHss = YKHO._xmlDoc.getElementsByTagNameNS(Lh85, 'properties')[0]\n for Q6kx in [tTpl for tTpl in vHss.childNodes if tTpl.nodeType == tTpl.ELEMENT_NODE]:\n sOaD = Q6kx.attributes['propertyDefinitionId'].value\n if Q6kx.childNodes...
[ "0.7851543", "0.7501523", "0.7209446", "0.71886533", "0.7157582", "0.7027938", "0.6851952", "0.68190515", "0.6814225", "0.6810633", "0.6795777", "0.6791722", "0.67800176", "0.67541975", "0.67510134", "0.67510134", "0.6747498", "0.6747498", "0.6742464", "0.6742464", "0.6742317...
0.7824987
1
Creates a relationship between this object and a specified target object using the relationship type specified. Returns the new
def jRsT(YKHO, SHWa, bB8f): if isinstance(bB8f, str): bB8f = Cl27(bB8f) lhy8 = {} lhy8['cmis:sourceId'] = YKHO.getObjectId() lhy8['cmis:targetId'] = SHWa.getObjectId() lhy8['cmis:objectTypeId'] = bB8f CC5Z = KtH4(YKHO._repository, properties=lhy8) bD7m = YKHO._getLink(PrNq) asser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jRsT(YKHO, NNKS, SHWa, CPwe):\n return NNKS.createRelationship(SHWa, CPwe)", "def dzc8(YKHO, FYCJ, type, *qIxc, **B2fa):\n nPrm = YKHO._post(YKHO._lookup('create_relationship'), {'to': FYCJ._uri, 'type': type, 'data': MKPt(*qIxc, **B2fa)})\n return YKHO._spawn(HhH_, nPrm['self'], index=nPrm)", "de...
[ "0.8618092", "0.7699872", "0.7310462", "0.70739514", "0.6984375", "0.68812287", "0.67934495", "0.66157174", "0.6550359", "0.65223193", "0.64714336", "0.63704294", "0.62213427", "0.61715096", "0.610886", "0.60578597", "0.6041089", "0.5998075", "0.59854937", "0.59679794", "0.59...
0.7652129
2
Returns the URL used to retrieve this object.
def xSkb(YKHO): bD7m = YKHO._getLink(Sy0P) assert len(bD7m) > 0, 'Could not determine the self link.' return bD7m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKhs(YKHO) -> str:\n return YKHO.__url", "def bD7m(YKHO):\n return YKHO.__url", "def bD7m(YKHO):\n return YKHO.__url", "def hKhs(YKHO):\n return YKHO.__url", "def hKhs(YKHO):\n return YKHO.url", "def FvYA(YKHO):\n return YKHO.url", "def hKhs(YKHO):\n return YKHO.url", "def hK...
[ "0.8397765", "0.8333019", "0.8333019", "0.83242595", "0.82612616", "0.82553065", "0.82538533", "0.82538533", "0.82125443", "0.8212266", "0.81900346", "0.81900346", "0.81900346", "0.81900346", "0.81900346", "0.81900346", "0.81900346", "0.81900346", "0.81900346", "0.81900346", ...
0.0
-1
Returns this repository's unique identifier >>> repo = client.getDefaultRepository() >>> repo.getRepositoryId() u'83beb297a6fa4ac5844b98c871c0eea9'
def dvIW(YKHO): if YKHO._repositoryId is None: if YKHO.xmlDoc is None: YKHO.reload() YKHO._repositoryId = YKHO.xmlDoc.getElementsByTagNameNS(Lh85, 'repositoryId')[0].firstChild.data return YKHO._repositoryId
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TNvK(YKHO):\n return YKHO._payload['repository']['id']", "def TNvK(YKHO):\n return YKHO.repo.id", "def TNvK(YKHO):\n return YKHO._repo_id", "def gr7t(ejh1):\n return ejh1.split('/')[-1]", "def TNvK(YKHO) -> 'outputs.GoogleDevtoolsContaineranalysisV1alpha1RepoIdResponse':\n return qe4Y.ge...
[ "0.75586075", "0.7319682", "0.7147562", "0.6827321", "0.66970474", "0.6618485", "0.6530565", "0.65129143", "0.64624506", "0.6414463", "0.6351886", "0.6312714", "0.62941885", "0.62803125", "0.627502", "0.62360096", "0.62135184", "0.61831856", "0.616659", "0.616659", "0.6163721...
0.77721226
0
Returns a dict of repository information. >>> repo = client.getDefaultRepository()>>> repo.getRepositoryName() u'Main Repository' >>> info = repo.getRepositoryInfo()
def WQUF(YKHO): if not YKHO._repositoryInfo: if YKHO.xmlDoc is None: YKHO.reload() L7nQ = YKHO.xmlDoc.getElementsByTagNameNS(APdp, 'repositoryInfo')[0] for Q6kx in L7nQ.childNodes: if Q6kx.nodeType == Q6kx.ELEMENT_NODE and Q6kx.localName != 'capabilities' and (Q6kx.lo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DhkP(YKHO):\n return None", "def BAN4() -> gfMz:\n try:\n boHx = tgM5.Repo()\n except tgM5.InvalidGitRepositoryError:\n return gfMz(git_sha='', uri=GPp0, is_dirty=True)\n else:\n return gfMz(git_sha=boHx.head.commit.hexsha, uri=next(boHx.remote('origin').urls), is_dirty=boHx....
[ "0.77838105", "0.77411073", "0.76817983", "0.75788766", "0.72322905", "0.70804334", "0.70063126", "0.7000832", "0.6932989", "0.6931267", "0.6894736", "0.6785943", "0.67062855", "0.66826296", "0.66656226", "0.6587316", "0.65475476", "0.65444195", "0.6529112", "0.65061903", "0....
0.7337159
4
Creates a relationship of the specific type between a source object
def jRsT(YKHO, NNKS, SHWa, CPwe): return NNKS.createRelationship(SHWa, CPwe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xOIG(YKHO, DLnL: TestData) -> None:\n for YRbF, AIu6 in enumerate(DLnL['observation']):\n assert mgWk.from_id(YRbF + 1).source.type.id == LSFv.from_id(AIu6['source_id']).type.id", "def jRsT(YKHO, SHWa, bB8f):\n if isinstance(bB8f, str):\n bB8f = Cl27(bB8f)\n lhy8 = {}\n lhy8['cmis:s...
[ "0.67881", "0.66413486", "0.6595134", "0.6217983", "0.6192247", "0.61494523", "0.6141117", "0.6089015", "0.6073767", "0.60643435", "0.60608613", "0.5971184", "0.5970816", "0.59613", "0.59192044", "0.5918457", "0.5908522", "0.59059286", "0.58934295", "0.5883746", "0.5866776", ...
0.79315984
0
Returns True if this page contains a prev link. Not all CMIS providers implement prev links consistently. >>> resultSet.hasPrev() True
def CbLe(YKHO): if YKHO._getLink(bhqv): return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HdMg(YKHO):\n return YKHO.page > 1", "def HdMg(YKHO):\n return YKHO.page > 1", "def HdMg(YKHO):\n return YKHO.page > 1", "def HdMg(YKHO):\n return YKHO.page > 1", "def HdMg(YKHO):\n return YKHO.page > 1", "def HdMg(YKHO):\n return YKHO.page > 1", "def HdMg(YKHO):\n return YKHO....
[ "0.8198812", "0.8198812", "0.8198812", "0.8198812", "0.8198812", "0.8198812", "0.8198812", "0.8025211", "0.744914", "0.69822013", "0.6548205", "0.65108913", "0.6474183", "0.6275306", "0.62690383", "0.6260776", "0.6214059", "0.62018484", "0.6149064", "0.6104741", "0.61001825",...
0.8673663
0
Returns True if this page contains a first link. Not all CMIS providers implement first links consistently. >>> resultSet.hasFirst() True
def diyH(YKHO): if YKHO._getLink(eAqh): return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s4hW(YKHO) -> bool:\n return YKHO.prev is None and YKHO.next is not None", "def s4hW(YKHO):\n return YKHO.prev == None", "def s4hW(YKHO):\n if YKHO.local_index == 0:\n return True\n else:\n return False", "def s4hW(YKHO) -> bool:\n return YKHO.pointer.get_previous() is None",...
[ "0.7169736", "0.6761465", "0.66476375", "0.65668386", "0.6202754", "0.61172086", "0.60974807", "0.6086383", "0.60808367", "0.60808367", "0.59946364", "0.59265167", "0.5919522", "0.5893841", "0.5885586", "0.58682996", "0.5853304", "0.5853304", "0.5853304", "0.5781453", "0.5779...
0.8376601
0
Returns True if this page contains a last link. Not all CMIS providers implement last links consistently. >>> resultSet.hasLast() True
def XxFL(YKHO): if YKHO._getLink(_q2K): return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V5s8(YKHO) -> bool:\n return YKHO.prev is not None and YKHO.next is None", "def V5s8(YKHO):\n return YKHO.next_addr == 0", "def V5s8(YKHO, B2Dn) -> bool:\n if YKHO.PER_PAGE * B2Dn.num >= YKHO.MAX:\n return True\n return B2Dn.num >= YKHO.page_count", "def O4SP(YKHO):\n return ZYgz.PT...
[ "0.7900544", "0.7542874", "0.73410195", "0.6970569", "0.69004476", "0.6894199", "0.6879317", "0.677754", "0.67766935", "0.67764664", "0.67679834", "0.6683843", "0.6367664", "0.63564205", "0.63395214", "0.63067263", "0.6239087", "0.61643565", "0.61475307", "0.61467826", "0.606...
0.87722266
0
Removes the specified object from this folder. The repository must support unfiling for this to work.
def MPHb(YKHO, sReH): if not YKHO._repository.getCapabilities()['Unfiling']: raise bkyz('This repository does not support unfiling') v5po = YKHO._repository.getCollectionLink(qwYn) qIxc = {'removeFrom': YKHO.getObjectId()} YKHO._cmisClient.binding.post(v5po.encode('utf-8'), YKHO._cmisClient.user...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MPHb(YKHO, UTAq):\n pass", "def uat1(YKHO, YEnM):\n YKHO.objects.remove(YEnM)", "def uat1(YKHO, WBAH):\n raise NotImplementedError", "def UYmI(YKHO):\n YKHO.client.delete_object(YKHO.container_name, YKHO.object_name)", "def kSdD(YKHO, YEnM):\n pass", "def uat1(YKHO, object):\n retur...
[ "0.7789985", "0.7543436", "0.7489338", "0.7426632", "0.73698556", "0.7299812", "0.7278737", "0.72344", "0.71960187", "0.71915627", "0.7154261", "0.7153828", "0.7137719", "0.71345377", "0.7101765", "0.7081668", "0.7073782", "0.7068429", "0.7053293", "0.6999431", "0.699475", ...
0.70076585
19
Returns the type ID for this object.
def e8ol(YKHO): if YKHO._typeId is None: if YKHO.xmlDoc is None: YKHO.reload() YKHO._typeId = Cl27(YKHO._getElementValue(Lh85, 'id')) return YKHO._typeId
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EhYO(YKHO):\n return YKHO._type_id", "def QZXZ(YKHO) -> int:\n ...", "def type(YKHO):\n return YKHO._type_class.id if YKHO._type_class else None", "def unpH(YKHO):\n return YKHO.name", "def EhYO(YKHO) -> str:\n if YKHO._type is not None:\n return YKHO._type\n try:\n YKHO...
[ "0.88704985", "0.8283015", "0.81538045", "0.81152064", "0.80856913", "0.8062735", "0.7769348", "0.77465194", "0.75871634", "0.7546978", "0.74730796", "0.747051", "0.74647486", "0.7442475", "0.7442475", "0.7442475", "0.7442475", "0.7442475", "0.7442475", "0.7442475", "0.744247...
0.78282434
6
Returns the object ID of the object that changed.
def BXIp(YKHO): if YKHO._objectId is None: lhy8 = YKHO.getProperties() YKHO._objectId = Cl27(lhy8['cmis:objectId']) return YKHO._objectId
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vTkD(YKHO):\n return YKHO._ptr.contents.objid", "def OyzV(YKHO):\n return YKHO._objID", "def id(YKHO):\n return YKHO.object_id", "def St8f(YKHO):\n return YKHO.props['object_id']", "def St8f(YEnM):\n if YEnM.is_saved():\n return YEnM.key().id_or_name()\n else:\n return N...
[ "0.73403394", "0.7211511", "0.7207333", "0.7174828", "0.7119874", "0.7020007", "0.7010595", "0.6971118", "0.6971118", "0.69412744", "0.69181705", "0.6900077", "0.6879977", "0.6846945", "0.6759708", "0.67126226", "0.6671431", "0.6671431", "0.66638666", "0.66622347", "0.6521964...
0.0
-1
Getter for the rendition's stream ID
def AJ6q(YKHO): if YKHO.xmlDoc.attributes.has_key('streamId'): return YKHO.xmlDoc.attributes['streamId'].value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MLMj(YKHO):\n return YKHO.stream_id_", "def MLMj(YKHO):\n MLMj = aTac()\n YKHO._api.LITE_get_stream_id(YKHO._network, dWW6(MLMj))\n return MLMj.value", "def lxk1(cuiw, MLMj):\n return JJXN.get_by_id(cuiw.account, MLMj)", "def Ez51(YKHO):\n return YKHO.settings.stream_slug", "def lZfr(...
[ "0.83173174", "0.72411096", "0.7023723", "0.6970909", "0.6670861", "0.66405916", "0.6548142", "0.64072", "0.63983434", "0.6375101", "0.63358474", "0.63041365", "0.63041365", "0.6288345", "0.62754345", "0.62715036", "0.62713563", "0.626989", "0.6267134", "0.6202652", "0.620221...
0.7231367
2
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None id = cmPJ.get('Id') LRYM = cmPJ.get('backupRunType') C7ms = qRGs.models.data_lock_config.DataLockConfig.from_dictionary(cmPJ.get('datalockConfig')) if cmPJ.get('datalockConfig') else None MRzA = cmPJ.get('daysToKeep') pSDG = cmPJ.get('mu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.83722425", "0.8335738", "0.8215464", "0.8167521", "0.8167521", "0.81483614", "0.8051766", "0.80300796", "0.8013641", "0.79792094", "0.79221934", "0.7919166", "0.79183745", "0.79125935", "0.7906434", "0.79004663", "0.78967476", "0.7886129", "0.78760797", "0.78543913", "0.78...
0.0
-1
Test that when creating a simulated file reader with an integer number of lines to skip, no ValueError is raised.
def O3ee(YKHO): with open(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'corpus.json'), 'r') as eHNT: YKHO.assertTrue(o8_l(g5js(), eHNT, skip_lines=1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d5ks(YKHO):\n with open(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'corpus.json'), 'r') as eHNT:\n YKHO.assertRaises(ValueError, o8_l, g5js(), eHNT, skip_lines=-1)", "def fXA7(YKHO):\n lb0Y = m3PB([Hy7s.path.dirname(xAKo) + '/test_wrong_length.en', Hy7s.path.dirname(xAKo) + '/test_file.de'])\n f...
[ "0.78029263", "0.77126783", "0.7392501", "0.71958435", "0.71901447", "0.7173962", "0.7012257", "0.6984343", "0.6955605", "0.693665", "0.679981", "0.67341757", "0.6726897", "0.6715491", "0.66721624", "0.6634015", "0.66210604", "0.6520548", "0.6507312", "0.6481072", "0.6473297"...
0.7684166
2
Test that when creating a simulated file reader with a negative number of lines to skip, a ValueError is raised.
def d5ks(YKHO): with open(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'corpus.json'), 'r') as eHNT: YKHO.assertRaises(ValueError, o8_l, g5js(), eHNT, skip_lines=-1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fXA7(YKHO):\n lb0Y = m3PB([Hy7s.path.dirname(xAKo) + '/test_wrong_length.en', Hy7s.path.dirname(xAKo) + '/test_file.de'])\n for YRbF in range(0, 10):\n lb0Y.read_next_lines()\n YKHO.assertRaises(Exception, lb0Y.read_next_lines)", "def YfEG(YKHO):\n with open(Hy7s.path.join(Hy7s.path.dirnam...
[ "0.7660838", "0.76178133", "0.74294204", "0.72906584", "0.72823477", "0.7181419", "0.71090174", "0.70983875", "0.7065907", "0.6870219", "0.6746289", "0.67318517", "0.6728017", "0.66856873", "0.66810733", "0.66773725", "0.6634676", "0.66070676", "0.65670115", "0.65666956", "0....
0.8400258
0
Test that when creating a simulated file reader that skips no lines, no ValueError is raised.
def NQBt(YKHO): with open(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'corpus.json'), 'r') as eHNT: YKHO.assertTrue(o8_l(g5js(), eHNT, skip_lines=0))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d5ks(YKHO):\n with open(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'corpus.json'), 'r') as eHNT:\n YKHO.assertRaises(ValueError, o8_l, g5js(), eHNT, skip_lines=-1)", "def fXA7(YKHO):\n lb0Y = m3PB([Hy7s.path.dirname(xAKo) + '/test_wrong_length.en', Hy7s.path.dirname(xAKo) + '/test_file.de'])\n f...
[ "0.77737343", "0.74178845", "0.7357529", "0.720008", "0.7169206", "0.71524763", "0.7123706", "0.70598465", "0.7017845", "0.7008563", "0.6994745", "0.6986814", "0.6973326", "0.69429606", "0.6888422", "0.6866522", "0.6862636", "0.6837795", "0.6824828", "0.6791409", "0.67441267"...
0.7217014
3
Test that when creating a simulated file reader that skips a positive number of lines, no ValueError is raised.
def BQXX(YKHO): with open(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'corpus.json'), 'r') as eHNT: YKHO.assertTrue(o8_l(g5js(), eHNT, skip_lines=1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d5ks(YKHO):\n with open(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'corpus.json'), 'r') as eHNT:\n YKHO.assertRaises(ValueError, o8_l, g5js(), eHNT, skip_lines=-1)", "def fXA7(YKHO):\n lb0Y = m3PB([Hy7s.path.dirname(xAKo) + '/test_wrong_length.en', Hy7s.path.dirname(xAKo) + '/test_file.de'])\n f...
[ "0.7959878", "0.7747094", "0.7396305", "0.7313201", "0.7228178", "0.718739", "0.71692085", "0.7035413", "0.68957275", "0.6892178", "0.68309736", "0.6796416", "0.6704297", "0.66582936", "0.6657913", "0.6611", "0.6603098", "0.6601342", "0.65885544", "0.6569732", "0.6559328", ...
0.74919325
2
Test that when creating a simulated file reader with a negative number of seconds to skip, a ValueError is raised.
def YfEG(YKHO): with open(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'corpus.json'), 'r') as eHNT: YKHO.assertRaises(ValueError, o8_l, g5js(), eHNT, skip_time=-1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XOl6(YKHO):\n with open(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'corpus.json'), 'r') as eHNT:\n YKHO.assertTrue(o8_l(g5js(), eHNT, skip_time=1))", "async def test_read_skip_excess_time(YKHO):\n \"\"\"\n Calculate the number of lines that should be skipped.\n \"\"\"\n EdbX = 0\n ...
[ "0.7545794", "0.75248826", "0.7230281", "0.722559", "0.7165944", "0.70436776", "0.697873", "0.68269646", "0.6815065", "0.6775889", "0.65290326", "0.6519521", "0.6446342", "0.6416705", "0.6404149", "0.6343928", "0.6297113", "0.62602437", "0.62583876", "0.62518126", "0.62343127...
0.82326114
0
Test that when creating a simulated file reader that skips a positive number of seconds, no ValueError is raised.
def XOl6(YKHO): with open(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'corpus.json'), 'r') as eHNT: YKHO.assertTrue(o8_l(g5js(), eHNT, skip_time=1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YfEG(YKHO):\n with open(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'corpus.json'), 'r') as eHNT:\n YKHO.assertRaises(ValueError, o8_l, g5js(), eHNT, skip_time=-1)", "async def test_read_skip_excess_time(YKHO):\n \"\"\"\n Calculate the number of lines that should be skipped.\n \"\"\"\n...
[ "0.77688265", "0.7335972", "0.72161156", "0.6979822", "0.69116193", "0.68224627", "0.67795974", "0.6751684", "0.67373097", "0.6712333", "0.66654253", "0.6432528", "0.6343407", "0.6334417", "0.6323168", "0.62420386", "0.6224295", "0.6173946", "0.6135057", "0.6090201", "0.60605...
0.74740565
1
Find most highly corredated series and calcluate MSE between y variable and the correlated series
def BX1v(I4ms, HTwu, cz4f): qaAi = I4ms.drop(index=I4ms.index[cz4f]) bSmD = qaAi.corr() RiNE = bSmD.loc[HTwu, :].sort_values(ascending=False)[:2].index sets = I4ms.loc[:, RiNE].iloc[cz4f, :].values bo34.debug('corrVal: %s', str(sets.round(2).tolist())) f_W_ = SDab(sets[:, 0], sets[:, 1]) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hkHB(WKvO, LVAh):\n aPTL = 2 * oyIN.std(LVAh) * oyIN.std(WKvO) * (1 - NXWQ.pearsonr(WKvO, LVAh)[0])\n xJMy = oug5(WKvO, LVAh) ** 2\n E30d = (oyIN.std(WKvO) - oyIN.std(LVAh)) ** 2\n ny2L = aPTL + xJMy + E30d\n return (ny2L, aPTL, xJMy, E30d)", "def iAxY(PjQx, LVAh):\n PjQx = oyIN.ravel(PjQx)...
[ "0.68572456", "0.6273699", "0.6196291", "0.6151954", "0.6098281", "0.6068324", "0.6056456", "0.603914", "0.6021635", "0.6011176", "0.59693646", "0.5945471", "0.59378475", "0.59334064", "0.59133387", "0.5907689", "0.58795816", "0.5872128", "0.5858605", "0.5839877", "0.5815799"...
0.649599
1
Sets the name of this ApiJob.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SO5G(YKHO, mWFP):\n YKHO.job['job']['reference']['jobId'] = mWFP + '_' + str(qxeD.uuid4())[:8]", "def WelX(YKHO, s32t):\n if s32t is not None and (not isinstance(s32t, str)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: api_name EXPECTED TYPE: str', None, None)\n YKHO.__api_name = s32t\n YKHO....
[ "0.73871917", "0.71712077", "0.71712077", "0.71643203", "0.71643203", "0.71643203", "0.71643203", "0.71643203", "0.71643203", "0.71643203", "0.71643203", "0.71510494", "0.7150514", "0.71237534", "0.7113773", "0.70963675", "0.70963675", "0.70963675", "0.70963675", "0.70963675", ...
0.0
-1
Sets the enabled of this ApiJob.
def etR_(YKHO, etR_): YKHO._enabled = etR_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def etR_(YKHO, etR_):\n YKHO._enabled = etR_", "def RMjT(YKHO, etR_: bool) -> None:\n ...", "def RMjT(YKHO, etR_=True):\n YKHO.enabled = etR_", "def etR_(YKHO, etR_: bool):\n YKHO._enabled = etR_", "def rD6f(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(T...
[ "0.7155059", "0.7035389", "0.7006432", "0.70010597", "0.69643587", "0.69643587", "0.69643587", "0.69641775", "0.69641775", "0.69641775", "0.69641775", "0.69415766", "0.6940671", "0.68239635", "0.6822608", "0.6822608", "0.6809167", "0.6804589", "0.6804589", "0.6803788", "0.680...
0.7092099
3
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, kF6Y): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Inits MovieClass with title and trailer_youtube_url.
def FIMM(YKHO, EiNU, rDEk): dcYa = ap79() print('Recovering Movie Data {}'.format(EiNU)) sV3k = dcYa.search_movie(EiNU) LHvA = dcYa.get_movie(sV3k[0].movieID) YKHO.title = LHvA.get('title') YKHO.poster_image_url = LHvA.get('full-size cover url') YKHO.rating = LHvA.get('rating') YKHO.dire...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, EiNU, pTZR, GXjR, RUE3):\n YKHO.title = EiNU\n YKHO.storyline = pTZR\n YKHO.poster_image_url = GXjR\n YKHO.trailer_youtube_url = RUE3", "def FIMM(YKHO, EiNU, pTZR, GXjR, RUE3):\n YKHO.title = EiNU\n YKHO.storyline = pTZR\n YKHO.poster_image_url = GXjR\n YKHO.trailer_youtube...
[ "0.8287601", "0.82640123", "0.82640123", "0.82640123", "0.82356936", "0.8230916", "0.8230916", "0.8230916", "0.82282573", "0.82282573", "0.82282573", "0.82282573", "0.82282573", "0.82282573", "0.82282573", "0.81953084", "0.81953084", "0.81953084", "0.81938565", "0.819338", "0...
0.78229105
45
Returns boundaries of tree crowns in the imageself. Implementation of canopies thresholding and watershed segmentation.
def Fplm(YpkZ, ytZy=30, Tm2h=10, plBE=1, Ls0t=False): if Ls0t: with qmLP.catch_warnings(): qmLP.simplefilter('ignore') YpkZ = XZOm(YpkZ) nnyd = IAWS(YpkZ, ytZy) LmqL = nnyd > plBE * D7QA(nnyd) lxob = oyIN.copy(nnyd) lxob[LmqL == False] = 0 fPhY = PHci(lxob, min_di...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def khVc(YKHO):\n CyQp = oyIN.abs(YKHO.circle_mask())\n A4yP = oyIN.nanmedian(CyQp)\n zGSQ = oyIN.nanmin(CyQp)\n CyQp = oyIN.nan_to_num(CyQp)\n dkC_ = CyQp > A4yP * 1.4\n N7Kd = (CyQp < A4yP * 0.6) & (CyQp > zGSQ)\n BUF6 = dkC_ + N7Kd\n return BUF6", "def toW_(YKHO):\n return None", ...
[ "0.6340948", "0.6317675", "0.62542266", "0.61510134", "0.6149662", "0.61182094", "0.6105979", "0.60897666", "0.60381955", "0.6035238", "0.601725", "0.6013412", "0.6013102", "0.59826595", "0.598236", "0.5977669", "0.5947679", "0.5946582", "0.59389913", "0.59227026", "0.5898331...
0.0
-1
Patch request, only updates fields provided in the request.
def Po4F(YKHO, QePW, _sei=None): ZMzz = IyFz.SessionCheckSerializer(data=QePW.data, partial=True) if ZMzz.is_valid(): ZHem = ZMzz.data.get('tag_id') eZf1 = ZMzz.data.get('prefix_type') SiVo = FXGE.timezone('Asia/Kolkata') vHj7 = qcWV.now(SiVo) 'Indian timezone' tr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Po4F(YKHO, QePW: Request, *qIxc: tuple, **B2fa: dict) -> oGir:\n return YKHO.partial_update(QePW, *qIxc, **B2fa)", "def Po4F(YKHO, QePW: Request, *qIxc: tuple, **B2fa: dict) -> oGir:\n return YKHO.partial_update(QePW, *qIxc, **B2fa)", "def Po4F(YKHO, QePW, _sei=None):\n return oGir({'method': 'PAT...
[ "0.78259414", "0.78259414", "0.77902895", "0.7658568", "0.76215595", "0.75732845", "0.7346889", "0.7346889", "0.7346889", "0.7346889", "0.7346889", "0.7346889", "0.7346889", "0.7346889", "0.7346889", "0.7346889", "0.7346889", "0.7346889", "0.7346889", "0.7346889", "0.7346889"...
0.0
-1
Imports labels for ILSVRC2012 Validation set and stores them in list Label is stored at array index corresponding to each image's ID
def Te1x(): Aofo = [None] * (sEgf.val_set_size + 1) with open('Data/ILSVRC2012_img_val_labels.txt', 'r') as nPrm: for zFiD in nPrm: Ux0P = zFiD.split(' ')[0] AJZG = int(Ux0P[-11:-5]) UXqs = int(zFiD.split(' ')[1]) Aofo[AJZG] = UXqs return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Te1x(YKHO, QMAG, XEbe):\n LNo8 = XC5k.imread(QMAG)\n Y6U4, f8GA, bGrB = LNo8.shape\n with open(XEbe, 'r') as eHNT:\n SPkM = eHNT.readlines()\n Crrw = []\n for zFiD in SPkM:\n EKkb = [float(YRbF) for YRbF in zFiD.split()]\n lnYx = int(EKkb[0])\n WKvO = EKkb[1] * f8GA\n...
[ "0.6989088", "0.6867966", "0.6729507", "0.6725468", "0.6713072", "0.6696057", "0.6662799", "0.6655439", "0.6643329", "0.66384184", "0.6635313", "0.6625479", "0.6603517", "0.6599603", "0.65915537", "0.6584113", "0.65767187", "0.6575472", "0.6566938", "0.6557499", "0.654593", ...
0.7647618
0
Determine Accuracy of Top5 predictions on Validation set. This is NOT an honest test accuracy, because validation can be used in training. Labels of test set are not available.
def jA1G(): Crrw = Te1x() Ux0P = 'Data/ILSVRC2012_img_val_predictions.txt' wjRY = 0 gXXc = 0 with open(Ux0P, 'r') as nPrm: for zFiD in nPrm: Ux0P = zFiD.split(' ')[0] AJZG = int(Ux0P[-11:-5]) N6Z1 = [int(mLGw.strip()) for mLGw in zFiD.split()[1:]] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JQPP(Y8eF, aMgO):\n return ZylS.keras.metrics.top_k_categorical_accuracy(Y8eF, aMgO, 5)", "def vjyh(YKHO, hlel, pan_, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = pan_.size(0)\n bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))\n ...
[ "0.7398622", "0.7175297", "0.71711946", "0.71584046", "0.71523947", "0.7129546", "0.70808536", "0.7080422", "0.7072061", "0.70695025", "0.70625293", "0.7052212", "0.70517355", "0.7048203", "0.70382744", "0.7036306", "0.7036306", "0.7036306", "0.7036306", "0.7036306", "0.70363...
0.0
-1
Initialize the centroids of clusters so that a respective distance between respective ones can be more than a predetermined value.
def N8Fv(YKHO, RA_F): crlQ, z8Mv = YKHO.X.shape or8S = oyIN.random.randint(0, crlQ) YKHO.centroids = YKHO.X[[or8S]] while len(YKHO.centroids) < YKHO.k: or8S = oyIN.random.randint(0, crlQ) SkC9 = YKHO.X[or8S] if oyIN.all(Zxt2.linalg.norm(YKHO.centroids - SkC9, axis=1) > RA_F): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rBJQ(YKHO):\n for YRbF in range(YKHO.n_of_clusters):\n if not YRbF:\n YKHO.centroids[YRbF] = tuKI.choice(YKHO.data)\n continue\n Y9lF = [epAf.pow(aFLv(WKvO, YKHO.centroids[:YRbF])[1], 2) for WKvO in YKHO.data]\n YKHO.centroids[YRbF] = tuKI.choices(population=YKHO.d...
[ "0.8244827", "0.81328696", "0.8126924", "0.7942847", "0.7834945", "0.7774297", "0.77026236", "0.7697934", "0.76942897", "0.76170325", "0.7612424", "0.7572827", "0.7554661", "0.75282866", "0.7505761", "0.74774486", "0.74711376", "0.7460716", "0.745597", "0.73782223", "0.730934...
0.6843755
59
Calculates the date rounded up to the nearest hour or day
def zI6H(_c1T, a1PO='hour'): if a1PO == 'hour': return _c1T.replace(microsecond=0, second=0, minute=0) + qcWV.timedelta(hours=1) elif a1PO == 'day': return _c1T.replace(microsecond=0, second=0, minute=0, hour=0) + qcWV.timedelta(days=1) else: raise LookupError("Can't find the date ce...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rvw2(Csk6):\n return Csk6 - fCoM(Csk6.weekday())", "def q5uJ(Csk6):\n wx6A, ohcp, SG6Y, gqtN, VAJu = Csk6.timetuple()[:5]\n if 30 <= VAJu:\n Mkmy = qcWV.datetime(wx6A, ohcp, SG6Y, gqtN) + qcWV.timedelta(hours=1)\n else:\n Mkmy = qcWV.datetime(wx6A, ohcp, SG6Y, gqtN)\n return Mkmy...
[ "0.68139917", "0.63301", "0.61359704", "0.5932772", "0.5906245", "0.5823333", "0.5769958", "0.57641375", "0.5751088", "0.5727688", "0.5723331", "0.5722528", "0.5637123", "0.5628066", "0.56264395", "0.5590987", "0.5588209", "0.5559567", "0.5511559", "0.55059034", "0.5498662", ...
0.63867277
1
Return path to filename, the current directory and the data directory are searched for filename.
def ehj4(Ux0P: str) -> GkAb: if GkAb(Ux0P).exists(): return Ux0P GL4G = 2 Irfy = GkAb(xAKo).parents[GL4G] return Irfy.joinpath('data', Ux0P)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OyQC(Ux0P):\n AU6t = Hy7s.path.dirname(Hy7s.path.realpath('__file__'))\n rKZV = Hy7s.path.join(AU6t, 'data', Ux0P)\n return rKZV", "def twhy(Ux0P=''):\n return Hy7s.path.join(i0XC, Ux0P)", "def s8df(YKHO, Ux0P):\n wd8X = Hy7s.path.dirname(xAKo)\n return Hy7s.path.join(wd8X, '..', 'data', ...
[ "0.83464205", "0.82222176", "0.8139687", "0.81052524", "0.81052524", "0.77950716", "0.7695391", "0.76508456", "0.760439", "0.76005554", "0.75619334", "0.75316834", "0.7514326", "0.74188757", "0.7412095", "0.74059886", "0.7402347", "0.7368275", "0.7312721", "0.73098767", "0.73...
0.6971523
37
Encode the source utterance how you see fit, as long as you return a tuple of tensors. By default, embeds the source utterance and feeds it to the source encoder. Note that when subclassing this module, the decoder_hidden_size should be the same as the encoder's hidden size.
def q5qG(YKHO, JZXy: Dict[str, torch.LongTensor]) -> AzJI[ht2j.FloatTensor, ht2j.FloatTensor]: fsvI = YKHO.source_field_embedder(JZXy) VfbI = gnPz.get_text_field_mask(JZXy) ndFA = YKHO.encoder(fsvI, VfbI) return ndFA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kLcZ(YKHO, ak_X, EO3_):\n if YKHO.training and YKHO.args['word_dropout']:\n ZHfW = YKHO.new_tensor(ak_X.size()).fill_(1.0 - YKHO.args['word_dropout']).bernoulli().long()\n ak_X = ak_X * ZHfW + (1 - ZHfW) * YKHO.vocab.unk\n Wnph = YKHO.src_embed(ak_X)\n if YKHO.args['encoder'] == 'cnn':\n...
[ "0.6386322", "0.62065333", "0.61715174", "0.6132307", "0.6064534", "0.60257155", "0.5994599", "0.5877318", "0.58541405", "0.57407314", "0.56943846", "0.5595507", "0.559145", "0.5572256", "0.556972", "0.55656385", "0.5554886", "0.5549405", "0.554201", "0.5512378", "0.5512378",...
0.6139775
3
Log Errors caused by Updates.
def P1dF(JyK9, QdZT, P1dF): bo34.warning('Update "%s" caused error "%s"', QdZT, P1dF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)", "def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')", "def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err...
[ "0.7895395", "0.788395", "0.78750193", "0.7873498", "0.78300834", "0.7790406", "0.7785151", "0.77837753", "0.77837753", "0.77837753", "0.77837753", "0.77837753", "0.7781314", "0.77660847", "0.7746185", "0.7746185", "0.7746185", "0.7746185", "0.7746185", "0.7746185", "0.774618...
0.75354177
78
Inform users how to use the bot.
def yKcO(QdZT: Update, QpfX: CallbackContext) -> None: QdZT.message.reply_text('Use /add <address> <name> to add to watchlist\nUse /remove <name> to remove from watchlist\nUse /watchlist to see the current watchlist')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def about(OaeV):\n await OaeV.send('Luidenka Bot v1.0')\n await OaeV.send('A Discord Server bot made by Luidenka.')", "def help(JyK9, QdZT):\n QdZT.message.reply_text('Gatanta que o seu username é autorizado a receber mensagens pelo site.')", "def U34r(JyK9, QdZT):\n QdZT.message.reply_text(X...
[ "0.7147645", "0.7059176", "0.6937917", "0.693236", "0.6911035", "0.6895119", "0.68155795", "0.6773892", "0.67633003", "0.67546016", "0.6679586", "0.66673505", "0.6666918", "0.66052437", "0.65634", "0.65633035", "0.6532617", "0.6528488", "0.6503302", "0.6501312", "0.65000707",...
0.0
-1
Generate a DataFrame from all the relevant merged_list information.
def XFBo(NA4w, PrcG): NWPp = rLdf.DataFrame.from_records(NA4w) NWPp.columns = ['Chromosome', 'Position1', 'Position2', 'Sample_Pos', 'Sequence ID', 'PCR_Prod_Len', 'Forward', 'Reverse'] NWPp['Product GC%'] = PrcG NWPp['ForwardPrimLen'] = [len(uWb6) for uWb6 in NWPp['Forward']] NWPp['ReversePrimLen']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ECpX(OtVm):\n jQ3Z = rLdf.DataFrame(OtVm)\n jQ3Z.drop(labels='_links', axis=1, inplace=True)\n NSNj = ['merge_fields', 'interests', 'location', 'stats']\n K2kF = [jQ3Z]\n for vXX7 in NSNj:\n if vXX7 in jQ3Z.columns:\n K2kF.append(glb4(jQ3Z[vXX7]))\n jQ3Z.drop(labels=...
[ "0.69620156", "0.63629395", "0.63421863", "0.61710006", "0.61685264", "0.6135508", "0.61348563", "0.61212665", "0.6079463", "0.5921731", "0.5911408", "0.5904494", "0.5887673", "0.5859679", "0.5844632", "0.5794094", "0.57795644", "0.57778656", "0.5765992", "0.57605857", "0.574...
0.0
-1
Write the data to recreate this SparkJob to a JSON file
def ebVv(YKHO): Ux0P = Hy7s.path.join(ycms, '.sparkhpc%s' % YKHO.jobid) with open(Ux0P, 'w') as ytgA: qQXR.dump(YKHO.prop_dict, ytgA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y2pM(YKHO):\n with open(YKHO.jsonpath, 'w') as nUeQ:\n nPrm = FyMh.encode(YKHO.data)\n nUeQ.write(nPrm)", "def mZZM(YKHO):\n nUeQ = YKHO.filename + '.json'\n with open(nUeQ, 'w') as jY1r:\n qQXR.dump(YKHO.data, jY1r)", "def uP8n(Emd4, nPrm):\n gIsw = str(int(ITS7.time())) +...
[ "0.7413896", "0.7347065", "0.7319618", "0.7246137", "0.7131342", "0.7017886", "0.70121133", "0.7006323", "0.69721836", "0.6946581", "0.69379187", "0.6919424", "0.6904192", "0.6894478", "0.6884688", "0.68445945", "0.6831582", "0.6824543", "0.68180907", "0.67787683", "0.6775908...
0.70374846
5
Retrieve the spark master address for jobid
def Iiy5(YKHO, OEYZ, njyT=None, vYBr=60): if YKHO._job_started(OEYZ): FDU2 = ITS7.time() while ITS7.time() - FDU2 < vYBr: m0e6 = YKHO._peek() bo34.debug('job_peek = %s' % m0e6) Gsi3 = ZbWC.findall(njyT, m0e6) if len(Gsi3) > 0: break ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ysS5(YKHO, OEYZ, vYBr=60):\n return YKHO._get_master(OEYZ, regex='(spark://\\\\S+:\\\\d{4})', timeout=vYBr)", "def rH_c(oCfW):\n return oCfW.master.id if oCfW.master else oCfW.id", "def Gsi3(YKHO):\n return YKHO._master_url(YKHO.jobid)", "def APRq(YKHO):\n return ('localhost', 8081)", "def ...
[ "0.7707699", "0.7177261", "0.67682093", "0.67338467", "0.6604425", "0.63029647", "0.63029647", "0.63029647", "0.62120855", "0.6206284", "0.61654556", "0.6163341", "0.60655594", "0.60623074", "0.60438997", "0.60357785", "0.6021864", "0.6021864", "0.6021864", "0.6021864", "0.60...
0.71814936
1
Retrieve the spark master address for jobid
def ysS5(YKHO, OEYZ, vYBr=60): return YKHO._get_master(OEYZ, regex='(spark://\\S+:\\d{4})', timeout=vYBr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iiy5(YKHO, OEYZ, njyT=None, vYBr=60):\n if YKHO._job_started(OEYZ):\n FDU2 = ITS7.time()\n while ITS7.time() - FDU2 < vYBr:\n m0e6 = YKHO._peek()\n bo34.debug('job_peek = %s' % m0e6)\n Gsi3 = ZbWC.findall(njyT, m0e6)\n if len(Gsi3) > 0:\n ...
[ "0.71814936", "0.7177261", "0.67682093", "0.67338467", "0.6604425", "0.63029647", "0.63029647", "0.63029647", "0.62120855", "0.6206284", "0.61654556", "0.6163341", "0.60655594", "0.60623074", "0.60438997", "0.60357785", "0.6021864", "0.6021864", "0.6021864", "0.6021864", "0.6...
0.7707699
0
Creates an instance of this client using the provided credentials file.
def eWUZ(Emd4, Ux0P, *qIxc, **B2fa): Vt89 = zOZf.Credentials.from_service_account_file(Ux0P) B2fa['credentials'] = Vt89 return Emd4(*qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def adK6(Emd4, *, bD7m: str, NtEF: Union[str, StrStorage], jTXt: Union[str, StrStorage], emKz: Optional[FileTransfer]=None) -> i9zE:\n return i9zE(client=WX3b.from_credentials(url=bD7m, username=NtEF, password=jTXt), file_transfer=emKz)", "def vuB2(Nu1S=None, QpfX=None, mwuo=None, MYjm=None, QDug=None, NtEF=N...
[ "0.7249915", "0.7053171", "0.68975395", "0.68081045", "0.6802571", "0.6738844", "0.67199385", "0.6675532", "0.6666354", "0.6666354", "0.6666354", "0.6666354", "0.6666354", "0.6646984", "0.6643617", "0.66432035", "0.66432035", "0.66432035", "0.6623292", "0.6605768", "0.6520598...
0.6660721
13
Return a fullyqualified project_agent string.
def lkAE(Emd4, bNKA): return yszQ.api_core.path_template.expand('projects/{project}/agent', project=bNKA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k4lr(Emd4, bNKA):\n return yszQ.api_core.path_template.expand('projects/{project}/agent', project=bNKA)", "def ogIG(YWSi):\n if YWSi is None:\n return None\n xK7f = ulYZ.get_hgnc_id(YWSi.name)\n if xK7f is not None:\n return xK7f + '@HGNC'\n CexN = YWSi.db_refs\n for _63S in [...
[ "0.72150344", "0.6451349", "0.63643926", "0.6137764", "0.61088085", "0.6041218", "0.598997", "0.5969613", "0.5934205", "0.5918508", "0.5916128", "0.5916128", "0.5916128", "0.5916128", "0.5916128", "0.5916128", "0.5916128", "0.5916128", "0.5916128", "0.5916128", "0.5916128", ...
0.7351953
0
apply Sobel filter to image with orientation and threshold
def UFR4(VXjJ, ENzu, idx7=10, WZcn=15): mS2J = XC5k.Sobel(VXjJ, XC5k.CV_64F, 1, 0, ksize=WZcn) YdmJ = XC5k.Sobel(VXjJ, XC5k.CV_64F, 0, 1, ksize=WZcn) if ENzu == 'x': H9dw = mS2J elif ENzu == 'y': H9dw = YdmJ else: H9dw = oyIN.sqrt(mS2J ** 2 + YdmJ ** 2) XBju = oyIN.absolu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(VXjJ):\n ITiw = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY)\n KCHu = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2HLS)[:, :, 2]\n linG = kvsN.abs_sobel_thresh(KCHu, 'x', 7, (20, 100))\n vj8j = kvsN.abs_sobel_thresh(KCHu, 'y', 7, (10, 100))\n yBsX = kvsN.abs_sobel_thresh(ITiw, 'x', 7, (30, 100))\n v...
[ "0.76707435", "0.73938507", "0.69213873", "0.69109154", "0.6881894", "0.68143886", "0.6766634", "0.67632186", "0.6726644", "0.67221826", "0.6720249", "0.67182034", "0.67173415", "0.66987574", "0.66693854", "0.661075", "0.6608705", "0.6574659", "0.6574395", "0.6560857", "0.655...
0.69998354
2
Renders the Resume app home template
def kZiy(QePW): AjQy = ESGb.objects.first() QpfX = {'res': AjQy} return _1tc(QePW, 'resume/home.html', QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n GHKn = JRYC.datetime.now()\n return TvZl('resume/home.html', current_year=GHKn.year)", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html', site_title=P4t4.co...
[ "0.8176281", "0.7739138", "0.77184546", "0.77056515", "0.768094", "0.7646372", "0.7626652", "0.7626652", "0.7615017", "0.7593167", "0.75843245", "0.75843245", "0.75843245", "0.75843245", "0.75843245", "0.75843245", "0.75843245", "0.75843245", "0.75843245", "0.75843245", "0.75...
0.755332
52
Initializes a CoverageDistribution class. Computes the coverage distribution of a CoverageRDD. This RDD can have data for multiple samples.
def FIMM(YKHO, KG9w, pOeb, mvm2=1.0, nkck=10, Dx9r=False): YKHO.sc = KG9w.sparkContext YKHO.sample = mvm2 YKHO.rdd = pOeb.toDF().rdd.map(lambda Mkmy: ((Mkmy['optSampleId'], Mkmy['count'] - Mkmy['count'] % nkck), int(Mkmy['end']) - int(Mkmy['start']))) NhaF.__init__(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, KG9w, OxAa, mvm2=1.0):\n YKHO.sc = KG9w.sparkContext\n YKHO.sample = mvm2\n YKHO.rdd = OxAa.toDF().rdd.map(lambda Mkmy: ((Mkmy['readGroupSampleId'], len(Mkmy['sequence'])), 1))\n NhaF.__init__(YKHO)", "def FIMM(YKHO, KG9w, OxAa, mvm2=1.0):\n YKHO.sc = KG9w.sparkContext\n YKHO.sam...
[ "0.6451402", "0.63130736", "0.5995993", "0.59863853", "0.59077597", "0.5868562", "0.55470127", "0.5529419", "0.55125266", "0.54759276", "0.5464998", "0.5330604", "0.52719074", "0.5224736", "0.522077", "0.5219085", "0.51192576", "0.51005673", "0.50968856", "0.50924814", "0.506...
0.72426975
0
This default evaluation function just returns the score of the state. The score is the same one displayed in the Pacman GUI. This evaluation function is meant for use with adversarial search agents (not reflex agents).
def fHT3(rfNN): return rfNN.getScore()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fHT3(Ov5A):\n return Ov5A.getScore()", "def fHT3(Ov5A):\n return Ov5A.getScore()", "def fHT3(Ov5A):\n return Ov5A.getScore()", "def b7La(YKHO, QTBn):\n iBIi, oyg0, YPaw = QTBn\n return phK_(oyg0, iBIi)", "def fHT3(rfNN):\n return rfNN.getScore()", "def fHT3(rfNN: GameState):\n re...
[ "0.8075255", "0.80543035", "0.80543035", "0.79382104", "0.7678121", "0.7661832", "0.7643688", "0.7634644", "0.7594122", "0.7594122", "0.7594122", "0.7594122", "0.7594122", "0.7594122", "0.7594122", "0.7594122", "0.7594122", "0.7594122", "0.75034684", "0.74896246", "0.74896246...
0.755428
25
The homepage for meal plan
def d6pt(QePW): return _1tc(QePW, 'meal_plan/index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s6RS():\n return TvZl('homepage.html', items=[])", "def C_QL():\n return TvZl('home/index.html', title='Siluria Technologies')", "def IC8O():\n return TvZl('index.html', survey=_WCs)", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n l_7H = HlLx.read_all_news()\n BkYD = HlLx.r...
[ "0.72151357", "0.71776175", "0.717218", "0.7134816", "0.71185446", "0.7106145", "0.7103439", "0.70982224", "0.7097955", "0.70874816", "0.707246", "0.7063186", "0.70583504", "0.7027797", "0.70263416", "0.70050526", "0.70032513", "0.7001228", "0.70003676", "0.6988985", "0.69888...
0.71151376
5
get_sim_info_for_all_sims_with_last_name_generator(last_name) Retrieve a SimInfo object for each and every Sim with the specified Last Name.
def nodR(Emd4, zp3f: str) -> bDy6[tEMa]: from sims4communitylib.utils.sims.common_sim_name_utils import CommonSimNameUtils zp3f = zp3f.lower() def c26w(K_jW: SimInfo) -> bool: return CommonSimNameUtils.get_last_name(K_jW).lower() == zp3f return Emd4.get_sim_info_for_all_sims_generator(include_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F9TC(Emd4, c9ua: str, zp3f: str) -> bDy6[tEMa]:\n from sims4communitylib.utils.sims.common_sim_name_utils import CommonSimNameUtils\n c9ua = c9ua.lower()\n zp3f = zp3f.lower()\n\n def BdCG(K_jW: SimInfo) -> bool:\n return CommonSimNameUtils.get_first_name(K_jW).lower() == c9ua and CommonSimN...
[ "0.762208", "0.74638486", "0.6287302", "0.5796931", "0.57635987", "0.57007664", "0.56589204", "0.564322", "0.55732065", "0.55081713", "0.5354363", "0.52878714", "0.5257116", "0.5237751", "0.5210749", "0.518918", "0.51673484", "0.51117873", "0.51063865", "0.50717235", "0.50710...
0.8839318
0
Returns the namespace (account) for the request, computed from the auth info and headers
def _63S(): try: jRxN = QePW.headers.get('x-anchore-account') if jRxN: return jRxN else: return t62m.identity.user_account except: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fiXC(YKHO):\n Ylbp = YKHO.get('/namespaces')\n return Ylbp.data['namespace']", "def fiXC(YKHO):\n Ylbp = YKHO.get('/namespaces')\n return Ylbp.data['namespace']", "def PIA6(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_account_namespace')", "def _63S(YKHO) -> qe4Y.Input[str]:\n return ...
[ "0.6526563", "0.6526563", "0.6357958", "0.61109036", "0.61109036", "0.61109036", "0.61109036", "0.61087084", "0.598851", "0.59167916", "0.59167916", "0.59167916", "0.59167916", "0.59167916", "0.59167916", "0.59167916", "0.59167916", "0.59167916", "0.59167916", "0.59167916", "...
0.77207595
0
Initialize the ship and set its starting position.
def FIMM(YKHO, IMTv): super().__init__() YKHO.screen = IMTv.screen YKHO.settings = IMTv.settings YKHO.screen_rect = IMTv.screen.get_rect() YKHO.image = a9eO.image.load('images/ship.bmp') YKHO.rect = YKHO.image.get_rect() YKHO.rect.midbottom = YKHO.screen_rect.midbottom YKHO.x = float(YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, YqMg, Vjhr):\n YKHO.screen = Vjhr\n YKHO.setting = YqMg\n YKHO.image = a9eO.image.load(Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.realpath(xAKo)), '..', 'images', 'ship.png'))\n YKHO.rect = YKHO.image.get_rect()\n YKHO.screen_rect = Vjhr.get_rect()\n YKHO.rect.centerx = YKHO.screen...
[ "0.70874274", "0.70435274", "0.7010543", "0.6998576", "0.6994357", "0.6945604", "0.6940863", "0.69190407", "0.6873152", "0.6863655", "0.684175", "0.6829651", "0.6805538", "0.6793473", "0.6751288", "0.675022", "0.6741371", "0.6721009", "0.67179126", "0.6711942", "0.6711268", ...
0.6305321
57
Returns the frame buffer name for a given renderPass renderLayer and camera combination. Optionally, this command can apply a name truncation algorithm so that the frameBuffer name will respect the maximum length imposed by the destination file format, if applicable.
def Nsvv(*qIxc, **B2fa): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nsvv(*qIxc, **B2fa):\n pass", "def efw4(YKHO) -> str:\n raise NotImplementedError()", "def o4K8(OrXA, mWFP):\n return OrXA + '.' + mWFP[:-6] + '_buffer'", "def NNiK() -> str:\n ...", "def yaVs(a5M_: int, YBcr=GPtr.FRAMES_OUTPUT_FORMAT) -> str:\n iUrc = 6\n G3Fq = max(iUrc - len(str(a5...
[ "0.68636376", "0.6016901", "0.5855043", "0.5769104", "0.5665201", "0.56595963", "0.5645855", "0.56337446", "0.563203", "0.54721034", "0.5421317", "0.53160816", "0.5249026", "0.5174264", "0.51664346", "0.5159599", "0.5122885", "0.507", "0.50579023", "0.50470656", "0.5040649", ...
0.6916167
0
The showShadingGroupAttrEditor command opens up the attribute editor for the current object's shadinggroup information. Derived from mel command `maya.cmds.showShadingGroupAttrEditor`
def e6wV(*qIxc, **B2fa): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e6wV(*qIxc, **B2fa):\n pass", "def dhhh(YKHO, ts4w, iHO3, uOe2):\n pass", "def AW_P(YKHO):\n Aofo = Wim0(YKHO, YKHO.layers[1].img_dict, Z33s.project_data['groups']['deco']).result\n if Aofo is not None:\n Z33s.project_data['groups']['deco'] = Aofo\n YKHO.reload_groups()", "def k...
[ "0.83056843", "0.5289371", "0.50472844", "0.5020717", "0.49509603", "0.49128023", "0.49021643", "0.48718214", "0.48549235", "0.48503515", "0.4791105", "0.47268808", "0.47155392", "0.47018564", "0.47017068", "0.47017068", "0.46892238", "0.46705687", "0.4604869", "0.4578304", "...
0.8298925
1
Normalize the image between o and 1
def wODJ(VXjJ): if len(VXjJ.shape) == 3: pUPQ = len(VXjJ) else: pUPQ = 1 Mkmy, Z9rn = VXjJ.shape VXjJ = oyIN.reshape(VXjJ, (pUPQ, Mkmy, Z9rn)) _YGI = oyIN.empty(VXjJ.shape, dtype=VXjJ.dtype) for YRbF in range(pUPQ): _YGI[YRbF] = cF9X(VXjJ[YRbF] - VXjJ[YRbF].min(),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(VXjJ):\n import numpy as oyIN\n min, max = (oyIN.min(VXjJ), oyIN.max(VXjJ))\n if max == min:\n return VXjJ\n return (VXjJ - oyIN.min(VXjJ)) / oyIN.ptp(VXjJ)", "def kwsU(YKHO):\n YKHO.img = YKHO.img.astype(oyIN.float32) / 255.0\n YKHO.img -= YKHO.img.mean()", "def NkkI(LNo8):\n...
[ "0.8134702", "0.80940706", "0.806797", "0.79938376", "0.7980768", "0.793973", "0.793973", "0.78992635", "0.78724855", "0.7865158", "0.7860546", "0.7837695", "0.7824301", "0.78221464", "0.78118134", "0.7795317", "0.7778225", "0.7758274", "0.7752367", "0.772687", "0.7713733", ...
0.73185545
49
Validates the given data against the set minimum and maximum value thresholds for the column max
def sBY3(YKHO, wOGa: ExpectationConfiguration, Wbxz: Dict, UuRd: dict=None, M4Yl: ExecutionEngine=None): n2Pr = Wbxz.get('column.aggregate.max') dgIT = YKHO.get_success_kwargs(wOGa).get('min_value') fg9D = YKHO.get_success_kwargs(wOGa).get('strict_min') bQ6z = YKHO.get_success_kwargs(wOGa).get('max_valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def llvz(YKHO, dgIT, bQ6z):\n if dgIT is not None and bQ6z is not None:\n if bQ6z <= dgIT:\n BJsk.terminate('min value %s is greater than max value %s' % (dgIT, bQ6z))", "def OUvo(bySB, nPrm):\n JvQp = [ppxT[V_n5.get_basename(eHNT)].get('max', oyIN.inf) for eHNT in bySB]\n eRPr = [ppxT...
[ "0.6984124", "0.6924169", "0.6825479", "0.6618566", "0.661683", "0.6599336", "0.6590384", "0.6544162", "0.65354353", "0.65160286", "0.6483377", "0.645955", "0.63989246", "0.6362962", "0.6362532", "0.6298487", "0.62910706", "0.6280688", "0.6268441", "0.6264508", "0.62624705", ...
0.6329378
15
Sets the longitude of this KapuaPosition.
def fopC(YKHO, fopC): YKHO._longitude = fopC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fopC(YKHO, fopC: float):\n YKHO._longitude = fopC", "def fopC(YKHO, fopC: float):\n YKHO._longitude = fopC", "def fopC(YKHO, fopC: float):\n YKHO._longitude = fopC", "def fopC(YKHO, fopC: float):\n YKHO._longitude = fopC", "def fopC(YKHO, fopC):\n if fopC is None:\n raise ValueErr...
[ "0.82719296", "0.82719296", "0.82719296", "0.82719296", "0.80049187", "0.7903764", "0.77885926", "0.77228117", "0.7311223", "0.72804874", "0.7276809", "0.7246125", "0.72290665", "0.7226142", "0.7186443", "0.714906", "0.7078837", "0.70755535", "0.7041086", "0.7041086", "0.7041...
0.8196187
4
Sets the latitude of this KapuaPosition.
def _UuI(YKHO, _UuI): YKHO._latitude = _UuI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _UuI(YKHO, _UuI: float):\n YKHO._latitude = _UuI", "def _UuI(YKHO, _UuI: float):\n YKHO._latitude = _UuI", "def _UuI(YKHO, _UuI: float):\n YKHO._latitude = _UuI", "def _UuI(YKHO, _UuI):\n if _UuI is None:\n raise ValueError('Invalid value for `latitude`, must not be `None`')\n YKHO....
[ "0.80234814", "0.80234814", "0.80234814", "0.77791023", "0.76840705", "0.76702523", "0.75890267", "0.7561548", "0.7456839", "0.7435151", "0.7416813", "0.7254859", "0.70552325", "0.69727695", "0.6966138", "0.6920164", "0.68159497", "0.6804808", "0.6752043", "0.6647946", "0.659...
0.8024011
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.8043786
95
[ListOf String] > [ListOf String] Strips all comments from a given list of lines
def olv6(yagq): EESs = [] r_da = False SpqX = False for zFiD in yagq: zFiD, r_da = ox_p(zFiD, r_da) zFiD, SpqX = g22w(zFiD, SpqX) EESs.append(zFiD) return EESs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lvfG(Nqlg):\n AHFD = []\n for zFiD in Nqlg:\n if TgwQ('^!', zFiD):\n continue\n b_bB = ''\n for hcXw in zFiD:\n if hcXw == '!':\n continue\n b_bB = b_bB + hcXw\n AHFD.append(b_bB)\n return AHFD", "def bSLV(whSy):\n BwKB =...
[ "0.78926206", "0.7843767", "0.781587", "0.76682293", "0.76633805", "0.763048", "0.7556487", "0.7341093", "0.7301579", "0.7187163", "0.7134631", "0.693601", "0.6861881", "0.68514264", "0.6772878", "0.6742665", "0.6737728", "0.6717711", "0.66623724", "0.6641815", "0.6543269", ...
0.809984
0
String > String Strips multiline comments from a given line
def g22w(zFiD, o22t): Eoln = [] SpqX = o22t T8WB = False for d6pt, hcXw in enumerate(zFiD): if hcXw == '#' and zFiD[d6pt + 1] == '|': SpqX = True if not SpqX and (not T8WB): Eoln.append(hcXw) if T8WB: T8WB = False if hcXw == '|' and zFi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QDjs(vIwR):\n return ZbWC.sub('//(.*?)\\n', '\\n', vIwR)", "def bSLV(zFiD):\n GYIr = '^(\\\\s*#)'\n if ZbWC.search(GYIr, zFiD) is not None:\n return '\\n'\n else:\n Frqk = '#\\\\s*\\\\w*(?!.*[\\'\\\\\"]\\\\))'\n hHld = ZbWC.search(Frqk, zFiD)\n if hHld is not None:\n ...
[ "0.8269452", "0.81880873", "0.79896474", "0.79457825", "0.7907036", "0.78757596", "0.7822568", "0.781637", "0.7781811", "0.77547854", "0.77007824", "0.76837724", "0.76790524", "0.76149344", "0.7476469", "0.74199915", "0.7416449", "0.74101394", "0.7384458", "0.7337491", "0.730...
0.67641157
50
String > String Strips semicolon based comments from a given line
def ox_p(zFiD, QcgF): Eoln = [] r_da = QcgF for hcXw in zFiD: if hcXw == '"': r_da = not r_da if hcXw != ';' or r_da: Eoln.append(hcXw) if hcXw == ';' and (not r_da): break return (''.join(Eoln), r_da)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CGao(YKHO, zFiD):\n return YKHO.comments.sub('', zFiD).strip()", "def bSLV(KCHu, mh5P):\n RI88 = ZbWC.sub(';[^\\n]*\\n', '\\n', KCHu)\n return RI88", "def Nl0P(zFiD):\n idn_ = zFiD.find('//')\n if idn_ != -1 and (not oSf7(zFiD[:idn_])):\n zFiD = zFiD[:idn_].rstrip()\n return zARZ.s...
[ "0.79400957", "0.7890955", "0.7882725", "0.7863441", "0.7847941", "0.784441", "0.7825638", "0.7757662", "0.773703", "0.773582", "0.7720073", "0.7634378", "0.76261914", "0.75979185", "0.7554088", "0.755404", "0.7544399", "0.7442677", "0.74370885", "0.74150425", "0.7336366", ...
0.77350134
10
Remove comments from dump to reduce differences between dumps
def SCRU(gIsw): _gvj = open(gIsw + 'clean_file', 'w') for zFiD in open(gIsw, 'r'): if not zFiD.startswith('-- TOC') and (not zFiD.startswith('-- Dependencies')) and (not zFiD.startswith('-- Started')) and (not zFiD.startswith('-- Completed')): _gvj.write(zFiD) else: _gvj....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bSLV(OYTZ):\n with open(OYTZ, 'r+') as eHNT:\n nPrm = eHNT.readlines()\n for mLGw, zFiD in enumerate(nPrm):\n nPrm[mLGw] = ZbWC.sub(ZbWC.compile('!-.*?\\n'), '\\n', nPrm[mLGw])\n eHNT.seek(0)\n eHNT.writelines(nPrm)\n eHNT.truncate()", "def EqT2(nPrm):\n Yl...
[ "0.6753912", "0.6578343", "0.64977026", "0.6437036", "0.6429283", "0.64246595", "0.6385977", "0.6334455", "0.63028306", "0.62903416", "0.6248499", "0.6226367", "0.62168294", "0.61968476", "0.61479473", "0.61402106", "0.6120544", "0.6114153", "0.610043", "0.6091167", "0.605996...
0.5809396
36
Create a paginator for an operation.
def oL8A(YKHO, hTqE: str=None) -> NIbP: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n p...
[ "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "...
0.76366186
41
Count the number features in this BedTool. Number of features in BED file. Does the same thing as len(self), which actually just calls this method. Only counts the actual features. Ignores any track lines, browser lines, lines starting with a "", or blank lines.
def UHFx(YKHO): return sum((1 for bGrB in YKHO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cUEj(YKHO):\n return YKHO._features_count", "def buHm(YKHO):\n raise NotImplemented", "def HkL2(YKHO) -> int:\n return YKHO._call_java('numFeatures')", "def HkL2(YKHO) -> int:\n return YKHO._call_java('numFeatures')", "def HkL2(YKHO) -> int:\n raise NotImplementedError()", "def HkL2(YK...
[ "0.773686", "0.76552445", "0.7637487", "0.7637487", "0.7623087", "0.7611212", "0.7533418", "0.7386435", "0.73849326", "0.7232926", "0.7095511", "0.70043087", "0.69925106", "0.6955726", "0.69035286", "0.68771875", "0.68292624", "0.67981523", "0.6763815", "0.6754564", "0.675332...
0.0
-1
Return the total number of bases covered by this interval file. Does a self.merge() first to remove potentially multiplecounting bases.
def ZnTl(YKHO): Fg_i = YKHO.merge() Ceo7 = 0 for RDhP in Fg_i.features(): Ceo7 += len(RDhP) return Ceo7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sKhR(YKHO):\n return sum(YKHO.validNucsDict)", "def dYeg(YKHO):\n vFZ1 = 0.0\n if hasattr(YKHO, '_exclusive_regions'):\n for f0tD in YKHO._exclusive_regions:\n vFZ1 += f0tD\n for zn0c in YKHO:\n vFZ1 += zn0c.area\n return vFZ1", "def Ceo7(YKHO):\n return sum(YKHO....
[ "0.6970054", "0.67325765", "0.6576437", "0.6507998", "0.6471312", "0.6460151", "0.63352364", "0.6301698", "0.62914616", "0.6254889", "0.62214524", "0.6171061", "0.6165639", "0.6163843", "0.6162111", "0.613719", "0.6058423", "0.60267353", "0.60153055", "0.60084283", "0.6008418...
0.70193195
0
Returns a normalization instance for use by featurefuncs.add_color(). `vmin` and `vmax` set the colormap bounds; if not specified then these will be determined from the scores in the BED file. `log`, if True, will put the scores on a log scale; of course be careful if you have negative scores
def JrTy(YKHO, MynD=None, n4wC=None, RKD7=False): HLrQ = YKHO.field_count() if YKHO.file_type != 'bed' or HLrQ < 5: raise ValueError('colorizing only works for BED files with score fields') import matplotlib import numpy as oyIN if RKD7: CkYf = matplotlib.colors.LogNorm() else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tt78(UabR):\n if UabR == 'adrift':\n MynD, n4wC = (1, 10000.0)\n elif UabR == 'beach':\n MynD, n4wC = (1, 10000.0)\n return Jw9H.LogNorm(vmin=MynD, vmax=n4wC)", "def CkYf(YKHO):\n Yd35, ZfiU = YKHO.range.value\n return Jw9H.Normalize(vmin=Yd35, vmax=ZfiU)", "def Rov3(YKHO, MynD...
[ "0.63600016", "0.6281163", "0.6119053", "0.6082867", "0.5965511", "0.5868022", "0.5638664", "0.56186366", "0.5582026", "0.554843", "0.55454737", "0.54856944", "0.5460689", "0.5409901", "0.540809", "0.5401386", "0.5390024", "0.53853214", "0.5383516", "0.5375751", "0.53620565",...
0.8401752
0
Wraps samtools to iterate over a BAM, yielding lines.
def FIMM(YKHO, wOb_, hllL=False): YKHO.stream = wOb_ YKHO.header_only = hllL if not gCuF._samtools_installed: XN37._check_for_samtools() if isinstance(YKHO.stream, exCv): YKHO.cmds = [Hy7s.path.join(gCuF._samtools_path, 'samtools'), 'view', wOb_] if hllL: YKHO.cmds.ap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PSTY(YKHO):\n N5Pj = wEAF.make_sam_reader(z3xZ.genomics_core_testdata('test.bam'), use_index=False)\n with N5Pj:\n OxJJ = N5Pj.iterate()\n for bGrB in Ni9Y(10):\n dixj = list(Hs6x.islice(OxJJ, 10))\n YKHO.assertEqual(len(dixj), 10)\n dixj = list(Hs6x.islice(OxJJ...
[ "0.6773033", "0.6674894", "0.66662574", "0.6423612", "0.63959605", "0.63792026", "0.61788726", "0.61557585", "0.6016835", "0.597739", "0.594563", "0.59319615", "0.5859384", "0.5853314", "0.58494055", "0.58375174", "0.579244", "0.579244", "0.579244", "0.5791044", "0.57834184",...
0.0
-1
Convert items in `x` to a string, and replace tabs with pipes in Interval string representations. Put everything into an R vector and return as one big string.
def JMUT(WKvO): DumB = [] for YRbF in WKvO: if isinstance(YRbF, gaAR.Interval): YRbF = str(YRbF).replace('\t', '|') DumB.append('"%s"' % YRbF) return 'c(%s)' % ','.join(DumB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uKoG(WKvO, UMN4, TDw3='~', umwa=True):\n D7KI = Rl1K(WKvO, UMN4, force_inf=umwa)\n Zu65 = oyIN.array([TDw3.join((str(jzdc), str(Fg_i))) for jzdc, Fg_i in zip(D7KI[:, 0], D7KI[:, 1])])\n return Zu65", "def qPI3(WKvO):\n return ' '.join((str(Y7fn) for Y7fn in WKvO))", "def D6BI(YKHO, WKvO):\n ...
[ "0.663277", "0.614994", "0.59159136", "0.58982307", "0.5881965", "0.5881965", "0.5802662", "0.5802662", "0.57984424", "0.5790409", "0.5766464", "0.57621914", "0.5691621", "0.55780625", "0.55193174", "0.54579705", "0.5400666", "0.53982353", "0.5363051", "0.53457296", "0.525107...
0.68357944
0
Set some hyper parameters to their initial value according to some priori knowledges.
def TYnZ(YKHO): if YKHO.info['num_features'] == 0: if YKHO.info['directed']: YKHO.info['dropedge_rate'] = 0.5 YKHO.info['chosen_models'] = ['ResGCN', 'GraphConvNet', 'GraphSAGE'] YKHO.info['ensemble_threshold'] = 0.01 else: YKHO.info['dropedge_rate'] =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OHQy(YKHO):\n YKHO.gamma = 0.005\n YKHO.lambda_user = 0.01\n YKHO.lambda_item = 0.01\n YKHO.num_epochs = 15\n YKHO.lambda_u_bias = 0.001\n YKHO.lambda_i_bias = 0.001\n YKHO.lambda_implicit = 0.005", "def E69q(YKHO):\n YKHO.initializeModelParams()", "def E69q(YKHO):\n YKHO.initial...
[ "0.7044712", "0.6976488", "0.6976488", "0.68384373", "0.67068005", "0.66308624", "0.6575573", "0.655197", "0.6526837", "0.65139186", "0.6511176", "0.6483987", "0.64677024", "0.64527637", "0.63940626", "0.6378825", "0.6377012", "0.6370819", "0.6358463", "0.6351995", "0.6350065...
0.0
-1