query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns an m by m matrix with a 1 in the ith row, jth column.
def ut5U(r8hN, YRbF, r845): ycBG = oyIN.zeros((r8hN, r8hN)) ycBG[YRbF, r845] = 1.0 return ycBG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UzrR(ywwl, E3D9):\n return EgHt(ywwl, E3D9, 1)", "def XP5J(r845):\n vb7U = H4yH.dok_matrix((2 ** (r845 - 1) + 1, 2 ** r845 + 1))\n vb7U[:, 0::2] = H4yH.eye(2 ** (r845 - 1) + 1)\n vb7U[:, 1::2] = H4yH.diags([0.5, 0.5], [0, -1], shape=(2 ** (r845 - 1) + 1, 2 ** (r845 - 1)))\n return vb7U.T", "...
[ "0.7236549", "0.710702", "0.7030919", "0.7012151", "0.6830982", "0.6798917", "0.67826694", "0.67507976", "0.67392623", "0.6660555", "0.66524684", "0.66390026", "0.66205305", "0.6602065", "0.6540611", "0.6530877", "0.65127176", "0.648476", "0.6476498", "0.6458742", "0.6458214"...
0.57376355
98
Returns a x by x matrix with h(k) for the first k entries, and zeros otherwise.
def TP_I(WKvO, G1Hx): ycBG = oyIN.zeros((WKvO, WKvO)) ycBG[:G1Hx, :G1Hx] = MKlR(G1Hx) return ycBG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dmqF(YKHO):\n CbQS = oyIN.zeros((YKHO.data.M - 1, YKHO.N - 1))\n rBKH = oyIN.zeros(YKHO.N - 1)\n for YRbF in range(YKHO.N - 1):\n rBKH[YRbF] = 1\n CbQS[:, YRbF] = YKHO.H(rBKH)\n rBKH[:] = 0\n return CbQS", "def VA0I(WKvO, MKlR):\n Csk6 = WKvO.ndim\n return nMvt(WKvO / M...
[ "0.66559", "0.6365408", "0.6196087", "0.61661196", "0.61586094", "0.6139568", "0.60903484", "0.60631824", "0.6020168", "0.59975123", "0.5930589", "0.59212816", "0.5907626", "0.59039396", "0.5868087", "0.58615744", "0.58290976", "0.58240736", "0.5768274", "0.5765401", "0.57549...
0.8340726
0
Returns if given number exists in an array
def jUbz(qw7D: list[int], BWXx: int, yKcO: Optional[int]=None, Os4s: Optional[int]=None) -> int: if yKcO is None or Os4s is None: yKcO, Os4s = (0, len(qw7D) - 1) if yKcO < 0 or yKcO > Os4s: return -1 x1fj = (yKcO + Os4s) // 2 if qw7D[x1fj] == BWXx: return x1fj if qw7D[x1fj] <...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W8rq(WKvO, ezWE):\n if jUbz(WKvO, ezWE, 0, len(ezWE) - 1) != -1:\n return True\n else:\n return False", "def vtfo(qw7D, _H7L):\n for YRbF in _H7L:\n if qw7D == YRbF:\n return True\n return False", "def sjXf(YKHO, H5ew: int) -> bool:\n return H5ew in YKHO.array...
[ "0.72533804", "0.7139825", "0.7137335", "0.7074576", "0.6996238", "0.6960931", "0.6908794", "0.68919504", "0.6873522", "0.686627", "0.6810139", "0.66923845", "0.661635", "0.65839404", "0.65169406", "0.6481749", "0.6456724", "0.6406125", "0.6372436", "0.6339774", "0.62828565",...
0.0
-1
Basic validation of the rolls string followed by construction of the running_totals and frame_results lists based on that rolls str.
def zPKT(YKHO): if not ZbWC.fullmatch('[0-9/X]{0,21}', YKHO.rolls): bo34.error(f'Roll string {YKHO.rolls} does not appear to be valid') raise pAkd(f'Roll string {YKHO.rolls} does not appear to be valid') YKHO.frame_results: cuzp[int, O06W] = {1: {1: None, 2: None}, 2: {1: None, 2: None}, 3: {1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A9Og(YKHO, ZWKj):\n if not ZWKj[0].isdigit():\n ZWKj = ZWKj[1:]\n return ZWKj[0].isdigit() and ZWKj[1] == 'd' and ZWKj[2].isdigit()", "async def format_roll(YKHO, mHzO, G3WP, PJWX=False, r7oU=None):\n if G3WP['failure']:\n T8b1 = 'TEST FAILED\\n'\n else:\n T8b1 = 'Test succee...
[ "0.59835625", "0.58430463", "0.57856953", "0.5767676", "0.5720664", "0.56537664", "0.56516975", "0.5556279", "0.5528442", "0.55109787", "0.5495079", "0.5409787", "0.53615296", "0.5356645", "0.5341804", "0.5332034", "0.5321741", "0.5280865", "0.52785075", "0.52722955", "0.5214...
0.6470913
0
Plot the prior and posterior CDF of passengers arrival rate.
def zWT0(YKHO, tk5Y='redline1'): jeUK.Clf() jeUK.PrePlot(2) f2rf = YKHO.prior_lam.MakeCdf().Scale(60) m8z6 = YKHO.post_lam.MakeCdf().Scale(60) jeUK.Cdfs([f2rf, m8z6]) jeUK.Save(root=tk5Y, xlabel='Arrival rate (passengers / min)', ylabel='CDF', formats=i_QS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C9Wf(OS6F, P6v9):\n print('DETCurve')\n QrM1.figure()\n LZpg, aNZO = QrM1.subplots(figsize=(10, 10), dpi=600)\n QrM1.plot(OS6F, P6v9)\n QrM1.yscale('log')\n QrM1.xscale('log')\n lsDj = [0.001, 0.002, 0.005, 0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 20, 50]\n aNZO.get_xaxis().set_maj...
[ "0.6212222", "0.60270727", "0.5857676", "0.5793245", "0.57669586", "0.57343674", "0.570384", "0.56139237", "0.55390215", "0.55154395", "0.5499867", "0.5480585", "0.54766935", "0.5463551", "0.5463317", "0.5458409", "0.5427547", "0.5387493", "0.5374262", "0.5312023", "0.5311491...
0.6213316
0
Makes the Pmf of mean zb. Values stored in mean_zbs.
def MBws(YKHO): return CN_8.Pmf(YKHO.mean_zbs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GXJw(YKHO, iow3=None, ut5U=0, k19e=0):\n if isinstance(iow3, ZnK7):\n ut5U = iow3.E\n k19e = iow3.pz\n KMvS = ut5U / epAf.sqrt(ut5U ** 2 - k19e ** 2)\n O3KW = k19e / epAf.sqrt(ut5U ** 2 - k19e ** 2)\n yvT9 = ZnK7([KMvS * YKHO.E - O3KW * YKHO.pz, YKHO.px, YKHO.py, KMvS * YKHO.pz - O3KW...
[ "0.63783157", "0.6144569", "0.604918", "0.60107005", "0.5976748", "0.5870998", "0.5841481", "0.58012635", "0.5736773", "0.5680483", "0.5630439", "0.5574471", "0.5555191", "0.55481666", "0.55186707", "0.5514949", "0.5419952", "0.5419274", "0.54155135", "0.53944606", "0.539123"...
0.8626778
0
get a list of dicts with a version key and find the highest version using PEP440 to compare the different versions
def xmMG(OQEO): return max(OQEO, key=lambda WKvO: DpZH.parse(str(WKvO['version'])))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BL4T(_Z1k):\n RBVF = tO_Y(GMHI('mapname'), _Z1k)\n return ap4g(t7im, RBVF)", "def t7im(fUYa):\n return max(fUYa, key=GMHI('modified'))", "def Y_kF(nPrm):\n hmMn = []\n ScHw = {}\n for ZfUD in nPrm:\n if not ScHw:\n ScHw = ZfUD\n if uifH(ZfUD) == uifH(ScHw):\n ...
[ "0.74166965", "0.7376107", "0.7031989", "0.70092595", "0.6800435", "0.67428356", "0.6641474", "0.6575436", "0.657297", "0.6521181", "0.6429861", "0.6419584", "0.6416703", "0.6398144", "0.6385907", "0.63718194", "0.6359128", "0.6356242", "0.6279967", "0.62718225", "0.6267992",...
0.66799915
6
Clear cache for this document
def djRh(P8oC, EoAK): Aofo = False C0ak = _qLf(v1dD) for G03T in C0ak.keys(): Iy_7 = C0ak[G03T] Y9i3 = 'True' H5ew = '/cached/' + P8oC + '/doc/' + str(EoAK) + ' ' + str(EoAK) + ' ' + Y9i3 H5ew = H5ew.encode() try: BWXx = Iy_7.get(H5ew) RKD7.deb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ORNU(YKHO):\n pass", "def ORNU(YKHO):\n YKHO._cache = {}", "def ORNU(YKHO):\n YKHO._cache = {}", "def Y7Bk(YKHO) -> None:\n YKHO.cache.clear()", "def dSBO(YKHO):\n YKHO.__caches.clear()", "def sCEQ(YKHO):\n YKHO.algorithm.clear()", "def ORNU(Emd4):\n Emd4._cache = dict()\n E...
[ "0.79751444", "0.7915751", "0.7915751", "0.77309215", "0.76407886", "0.75965583", "0.7588127", "0.75694877", "0.7530813", "0.7509898", "0.7504574", "0.7489947", "0.74794793", "0.74357456", "0.74344593", "0.74256516", "0.742394", "0.7423078", "0.74113977", "0.7411213", "0.7408...
0.71056044
45
Returns a specified number of contiguous elements from the start of the source stream. 1 take(5, source) 2 source | take(5)
def _iMd(UHFx: int, JZXy: AsyncObservable[T]) -> vk0F[Kt_s]: if UHFx < 0: raise ValueError() if not UHFx: return lsmZ() return XMfy(UHFx, JZXy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _iMd(OxJJ, exwG):\n return list(Hs6x.islice(OxJJ, exwG))", "def V6FO(WKvO):\n YRbF = 0\n while YRbF < len(WKvO):\n YRbF += 1\n yield WKvO[:YRbF]", "def _iMd(OxJJ, exwG):\n return zhES.islice(OxJJ, exwG)", "def _iMd(exwG, OxJJ):\n return list(Hs6x.islice(OxJJ, exwG))", "def ...
[ "0.67131764", "0.66938466", "0.66004336", "0.6527916", "0.64922965", "0.64922965", "0.64922965", "0.6461681", "0.64050406", "0.63440776", "0.6287134", "0.62731475", "0.62070674", "0.6125276", "0.6122458", "0.6121469", "0.6075329", "0.6056214", "0.605436", "0.6038282", "0.6021...
0.56198233
57
takes series of quantities coerces to dataframe adds column where values are percentages of total
def wx7a(IWsN): DrQ4 = rLdf.DataFrame({'counts': IWsN}) DrQ4['pcts'] = DrQ4['counts'].apply(lambda WKvO: round(WKvO / DrQ4['counts'].sum() * 100, 2)) return DrQ4.sort_index()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ne9N(jQ3Z):\n _Nd4 = ['rP', 'rK', 'gP', 'gK', 'cPK', 'dP', 'dK']\n for vexM in _Nd4:\n jQ3Z[vexM + 't'] = jQ3Z[vexM + 'm'] + jQ3Z[vexM + 'e']\n return jQ3Z", "def SfOE(jQ3Z: pd.DataFrame, MvTt: list, Zj1x: str, Cfou: str='percent_') -> rLdf.DataFrame:\n for iVRZ in MvTt:\n ipvZ = Cf...
[ "0.7053532", "0.6838629", "0.6678932", "0.6606544", "0.63525176", "0.61870956", "0.6178466", "0.6141462", "0.61375463", "0.6108276", "0.60671586", "0.6064716", "0.6045859", "0.5923137", "0.59184545", "0.5876431", "0.5836846", "0.58306134", "0.58285123", "0.5822961", "0.580571...
0.684372
1
takes dataframe w/a column of value count dictionaries aggregates dictionaries creates new dataframe where rows are keys in the the aggregate dictionary return dataframe with additional columns for later processing
def k2jH(jQ3Z, S1QX='rt_loc_counts'): _eDm = GqRP(jQ3Z[S1QX]) DrQ4 = wx7a(_eDm) DrQ4['codes'] = DrQ4.index DrQ4['screen_name'] = jQ3Z.loc[0]['screen_name'] DrQ4['text'] = 'Count: ' + DrQ4['counts'].astype(str) + ' ' + 'Percentage: ' + DrQ4['pcts'].astype(str) return DrQ4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def REiA(YKHO):\n xDcj = {'query': {'bool': {'must': [{'query_string': {'analyze_wildcard': 'true', 'query': 'message:atANDmessage:horizon4ANDfields.environment:mapng_at'}}]}}, 'sort': [{'timestamp_mili': {'order': 'asc'}}], 'aggs': {'time_buckets': {'date_histogram': {'field': 'timestamp_mili', 'interval': 'da...
[ "0.6421732", "0.63265914", "0.61956644", "0.6167018", "0.6108377", "0.6102769", "0.6067764", "0.6031232", "0.602915", "0.6028392", "0.5880788", "0.5866792", "0.58484644", "0.583622", "0.582006", "0.58053684", "0.5775644", "0.5772151", "0.57687205", "0.5765875", "0.57554615", ...
0.6908238
0
Load json object from PATHNAME returning its representation.
def PSj2(uvd8='/Users/evenson/work/linkedin/var/mine/li/-3_E-JEwUj/d:2013-09-22.json'): eHNT = open(uvd8) return qQXR.load(eHNT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lc9H(pmON: Path) -> dict:\n return _1kr(s=pmON.read_text())", "def lc9H(pmON: PathLike):\n with open(pmON, 'r') as eHNT:\n return qQXR.load(eHNT)", "def cHgC(RsFk: typing.List[str], YEnM: typing.Dict[str, typing.Any]) -> laHg.Any:\n if RsFk:\n return cHgC(RsFk[1:], YEnM[RsFk[0]])\n ...
[ "0.66114503", "0.655032", "0.65181506", "0.6505443", "0.64890224", "0.6465779", "0.6462228", "0.64248157", "0.63741773", "0.63727814", "0.63611776", "0.63275033", "0.6288107", "0.62565285", "0.62439734", "0.62419444", "0.62366986", "0.6226988", "0.6195231", "0.6184102", "0.61...
0.610234
27
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None _bsB = cmPJ.get('fileLocation') EmDV = cmPJ.get('shouldRestoreSpfileOrPfile') return Emd4(_bsB, EmDV)
{ "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
Returns entities that do not have any of the kinds listed in entity_kinds.
def bGX6(YKHO, *C6KU): return YKHO.exclude(entity_kind__in=C6KU) if C6KU else YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bGX6(YKHO, *C6KU):\n return YKHO.get_queryset().is_not_any_kind(*C6KU)", "def v8fV(YKHO, *C6KU):\n return YKHO.filter(entity_kind__in=C6KU) if C6KU else YKHO", "def ZhHF(YKHO, eJTR):\n Aofo = []\n for G1Hx in YKHO._entities.keys():\n if YKHO._entity_is_kind_of(G1Hx, eJTR):\n A...
[ "0.7121241", "0.65045446", "0.63277465", "0.6094157", "0.59833837", "0.57755524", "0.569329", "0.5611066", "0.56109214", "0.5423016", "0.54084665", "0.53773665", "0.5159748", "0.51352614", "0.51180565", "0.51147324", "0.510891", "0.5106411", "0.509116", "0.504311", "0.5040055...
0.80811894
0
Returns entities that do not have any of the kinds listed in entity_kinds.
def bGX6(YKHO, *C6KU): return YKHO.get_queryset().is_not_any_kind(*C6KU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bGX6(YKHO, *C6KU):\n return YKHO.exclude(entity_kind__in=C6KU) if C6KU else YKHO", "def v8fV(YKHO, *C6KU):\n return YKHO.filter(entity_kind__in=C6KU) if C6KU else YKHO", "def ZhHF(YKHO, eJTR):\n Aofo = []\n for G1Hx in YKHO._entities.keys():\n if YKHO._entity_is_kind_of(G1Hx, eJTR):\n ...
[ "0.8080329", "0.6504775", "0.6329378", "0.60937303", "0.5983258", "0.57754207", "0.5693302", "0.56119347", "0.5611681", "0.5422261", "0.5408648", "0.5379045", "0.5159447", "0.5133622", "0.5118985", "0.5115372", "0.5108523", "0.5106909", "0.5089404", "0.5042019", "0.50403845",...
0.7120221
1
Returns all of the sub entities of this entity. The returned entities may be filtered by chaining any of the functions in EntityFilter.
def v6c1(YKHO): return [Mkmy.sub_entity for Mkmy in YKHO.sub_relationships.all()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TqW1(YKHO):\n return [Mkmy.super_entity for Mkmy in YKHO.super_relationships.all()]", "def MMe4(YKHO):\n return list(YKHO._entity_set)", "def MMe4(YKHO) -> x1iM[ahCL]:\n return YKHO._entities", "def S5vx(YKHO, *A7Gx):\n if A7Gx:\n if len(A7Gx) == 1:\n BtPS = aYQa.objects.fil...
[ "0.6629638", "0.6561414", "0.64876443", "0.639925", "0.6371097", "0.62875515", "0.6268177", "0.6250327", "0.6228703", "0.62247956", "0.6218361", "0.6217169", "0.61870956", "0.61852896", "0.6113635", "0.6092438", "0.60526735", "0.5985144", "0.59666055", "0.59445477", "0.593595...
0.8169832
0
Returns all of the super entities of this entity. The returned super entities may be filtered by chaining methods from EntityFilter.
def TqW1(YKHO): return [Mkmy.super_entity for Mkmy in YKHO.super_relationships.all()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TqW1(YKHO, Sjf9):\n return []", "def d473(YKHO) -> x1iM[TjLA]:\n GCyX = []\n if YKHO.get_superior() is None:\n return GCyX\n else:\n GCyX.append(YKHO.get_superior())\n GCyX.extend(YKHO.get_superior()._get_all_superiors())\n return GCyX", "def v6c1(YKHO):\n return ...
[ "0.71792966", "0.6784561", "0.6778253", "0.66531825", "0.64436686", "0.6202645", "0.613164", "0.6130247", "0.6087216", "0.60014457", "0.59091496", "0.58460665", "0.58025455", "0.5768181", "0.575092", "0.5702805", "0.56665254", "0.5664448", "0.56641316", "0.56611127", "0.56173...
0.83111554
0
Return all the entities in the group. Because groups can contain both individual entities, as well as whole groups of entities, this method acts as a convenient way to get a queryset of all the entities in the group.
def wvoi(YKHO, ksfB=True): return YKHO.get_all_entities(return_models=True, is_active=ksfB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EAja(YKHO, uOe2):\n QTBn = hGyi(YKHO._h, uOe2, None)\n if QTBn is None:\n YKHO._error(\"Failed to find group '{}'\".format(uOe2))\n return []\n BWXx = QTBn['attributes'].get('entity_id', None)\n if BWXx is None:\n YKHO._error(\"Failed to get entities of group '{}'\".format(uOe2...
[ "0.6887612", "0.67962945", "0.6756083", "0.66383797", "0.6586073", "0.64262414", "0.6421217", "0.63259554", "0.6315655", "0.625433", "0.62163866", "0.6216361", "0.6202723", "0.6197023", "0.6187684", "0.6135567", "0.6135567", "0.6063289", "0.60504234", "0.604912", "0.604058", ...
0.6311717
9
Add many entities and subentity groups to this EntityGroup.
def pPoB(YKHO, Ud51): AO0n = [Y99R(entity_group=YKHO, entity=LEXu, sub_entity_kind=h_qO) for LEXu, h_qO in Ud51] _EYN = Y99R.objects.bulk_create(AO0n) return _EYN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uVcJ(Emd4, MMe4):\n for LEXu in MMe4:\n Emd4.add_entity(LEXu)", "def MMe4(YKHO, bgTp: List[Entity]) -> None:\n for LEXu in bgTp:\n YKHO.AddEntity(entity=LEXu)", "def FJj_(YKHO, MMe4: Iterable[Entity]) -> None:\n for LEXu in MMe4:\n YKHO.append(LEXu)", "def H2v5(YKHO, LEXu, u...
[ "0.67653066", "0.6278873", "0.6260825", "0.6257857", "0.60218257", "0.5973994", "0.5948184", "0.5918839", "0.57125235", "0.5691729", "0.56852835", "0.5677598", "0.56343806", "0.56282026", "0.5607757", "0.55793345", "0.55477005", "0.55477005", "0.5540704", "0.54906434", "0.546...
0.7103812
0
Builds a dict with keys of entity kinds if and values are another dict. Each of these dicts are keyed off of a super entity id and optional have an 'all' key for any group that has a null super entity.
def jAoh(HHUq=None, ksfB=True): if HHUq is None: HHUq = pGMN.objects.get_membership_cache(is_active=ksfB) QwY9 = {} Oseb = set() P4fL = set() hTlt = set() for hE03, AO0n in HHUq.items(): for g2g3, pwJb in AO0n: if pwJb: QwY9.setdefault(pwJb, {}) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r8Yh(YKHO) -> dict[str, list[mgWk]]:\n autH: dict[str, list[mgWk]] = {}\n for rNYq in YKHO._observations:\n if (H5ew := rNYq.entity_id) is None:\n continue\n autH.setdefault(H5ew, []).append(rNYq)\n for yDmv in autH.values():\n if len(yDmv) == 1:\n continue\n...
[ "0.58527666", "0.55532026", "0.55523217", "0.5519736", "0.5475017", "0.5446659", "0.53937036", "0.5352859", "0.5341068", "0.5277682", "0.5263352", "0.52352536", "0.52352536", "0.5233551", "0.5231173", "0.5230426", "0.5211906", "0.51893777", "0.5169825", "0.5168178", "0.513142...
0.53226304
9
For each specified configuration, returns True if any of the links of the manipulator collides with any of the points, and False otherwise. Use the function Polygon.is_collision to check if each link of the manipulator is in collision.
def Hpnv(YKHO, q7In, LTIa): AVA5 = len(q7In[0]) xLtN = oyIN.zeros(AVA5) for YRbF in range(AVA5): Bkgm, c5oU, DUWO = MsTn().kinematic_map(q7In[:, YRbF]) if c5oU.is_collision(LTIa).any(): xLtN[YRbF] = 1 elif DUWO.is_collision(LTIa).any(): xLtN[YRbF] = 1 retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def USzR(YKHO, HjlY):\n with YKHO.env:\n YKHO.obj.SetTransform(HjlY.T)\n YKHO._enable_robots_collision(False)\n for YRbF in Ni9Y(2):\n YKFs = oyIN.dot(HjlY.T, YKHO.bimanual_T_rel[YRbF])\n YKHO.robots[YRbF].Enable(True)\n rlnY = YKHO.manips[YRbF].FindIKSoluti...
[ "0.63075143", "0.61441076", "0.5982743", "0.5932288", "0.59219664", "0.5853594", "0.58466446", "0.5808916", "0.5795179", "0.5788311", "0.5768627", "0.57064486", "0.56891274", "0.56778336", "0.5638335", "0.56193507", "0.56098145", "0.5600063", "0.5600063", "0.5599067", "0.5588...
0.55069023
24
Gets the symbol of this Protein.
def o61b(YKHO): return YKHO._symbol
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DUQK(YKHO):\n return YKHO.symbol", "def o61b(YKHO):\n return YKHO.get_symbol(YKHO.code)", "def DUQK(YKHO):\n return YKHO._symbol", "def LRuN(YKHO):\n return YKHO.__sym", "def DUQK(YKHO):\n return YKHO.__symbol", "def o61b(YKHO) -> str:\n return YKHO.value[0]", "def o61b(YKHO) -> s...
[ "0.8468191", "0.8451178", "0.83437663", "0.83251953", "0.824192", "0.80708575", "0.7924911", "0.77956027", "0.7749551", "0.7681143", "0.75571537", "0.75169337", "0.75061005", "0.74121124", "0.73989284", "0.7368736", "0.7322023", "0.72763026", "0.7111145", "0.71006924", "0.710...
0.827845
4
Sets the chromosome of this Protein.
def q7V9(YKHO, q7V9): YKHO._chromosome = q7V9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r3Zb(YKHO, q7V9):\n YKHO.value = YKHO.geneType.mutator(YKHO.value, q7V9)", "def q7V9(YKHO):\n return YKHO._chromosome", "def NBZ7(YKHO, B3jp):\n YKHO.bed = B3jp\n YKHO._reset_seq()", "def r9hn(YKHO, q7V9):\n YKHO.populationQ.append(DM04.IndividualGAIntegerVar(YKHO._n_var, YKHO._n_gen_var, ...
[ "0.64984167", "0.6186246", "0.59636664", "0.5736454", "0.5594996", "0.55598074", "0.5550654", "0.5478769", "0.5459289", "0.5459289", "0.5451358", "0.54056", "0.5281362", "0.5266301", "0.5208615", "0.5196964", "0.51965564", "0.5191111", "0.51754326", "0.51754326", "0.5173283",...
0.8016263
0
Gets the locus_supplementary_data of this Protein.
def AjKW(YKHO): return YKHO._locus_supplementary_data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AjKW(YKHO, AjKW):\n YKHO._locus_supplementary_data = AjKW", "def uENz(YKHO):\n return YKHO._supp_feat", "def HfUH(YKHO):\n return YKHO.template.triptype.gets_supplemental", "def zST2(YKHO) -> h8nf[ImMB]:\n return qe4Y.get(YKHO, 'supplemental_settings')", "def hx3m(YKHO):\n return YKHO._u...
[ "0.7006928", "0.612946", "0.60300386", "0.5596172", "0.5550023", "0.55484813", "0.53954536", "0.53207153", "0.5304788", "0.529922", "0.5277761", "0.5258123", "0.51821667", "0.517407", "0.51735336", "0.51718694", "0.5166234", "0.5137701", "0.5137701", "0.51264995", "0.51045424...
0.89982295
0
Gets the description of this Protein.
def JBZA(YKHO): return YKHO._description
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KUG7(YKHO):\n return YKHO.theDescription", "def JBZA(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'description')", "def JBZA(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'description')", "def JBZA(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'description')", "def JBZA(YKHO...
[ "0.76897883", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", "0.7689471", ...
0.0
-1
Gets the refseq of this Protein.
def jbZp(YKHO): return YKHO._refseq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jV1y(YKHO):\n return YKHO._refseqprotein", "def jV1y(YKHO):\n return YKHO._refseqprotein", "def GXLl(YKHO):\n return YKHO._refseqmrna", "def GXLl(YKHO):\n return YKHO._refseqmrna", "def Aexp(YKHO):\n return YKHO.seq", "def Q6uT(YKHO):\n return YKHO.subseq_sequence", "def Q6uT(YKHO...
[ "0.8763226", "0.8763226", "0.7213632", "0.7213632", "0.71909505", "0.6934804", "0.69109374", "0.68274504", "0.68274504", "0.667114", "0.6671122", "0.66610587", "0.6650029", "0.653358", "0.6521757", "0.65211916", "0.65139425", "0.6503475", "0.64838", "0.6452401", "0.6447277", ...
0.86110115
2
Sets the refseq of this Protein.
def jbZp(YKHO, jbZp): YKHO._refseq = jbZp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jV1y(YKHO, jV1y):\n YKHO._refseqprotein = jV1y", "def jV1y(YKHO, jV1y):\n YKHO._refseqprotein = jV1y", "def rzQJ(YKHO, wPJ_):\n YKHO.seq = wPJ_", "def GXLl(YKHO, GXLl):\n YKHO._refseqmrna = GXLl", "def GXLl(YKHO, GXLl):\n YKHO._refseqmrna = GXLl", "def QR_O(YKHO, bf9h):\n YKHO._refe...
[ "0.84552985", "0.84552985", "0.695091", "0.6850101", "0.6850101", "0.6754489", "0.667949", "0.667949", "0.6610486", "0.6327069", "0.62826395", "0.62382567", "0.62382567", "0.62382567", "0.6231899", "0.6151785", "0.6119508", "0.6061145", "0.6061145", "0.6061145", "0.6061145", ...
0.84606606
0
Gets the label of this Protein.
def UXqs(YKHO): return YKHO._label
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DeTJ(YKHO):\n return YKHO._label", "def DeTJ(YKHO):\n return YKHO._label", "def bzNK(YKHO):\n return YKHO._label", "def bzNK(YKHO):\n return YKHO._label", "def DeTJ(YKHO):\n return YKHO.label", "def DeTJ(YKHO):\n return YKHO.label", "def DeTJ(YKHO):\n return YKHO.label", "def...
[ "0.83133495", "0.83133495", "0.82545376", "0.82545376", "0.8232171", "0.8232171", "0.8232171", "0.8232171", "0.8232171", "0.8232171", "0.8232171", "0.82161087", "0.82161087", "0.82161087", "0.81471753", "0.8094057", "0.8031713", "0.8031713", "0.8031713", "0.8031713", "0.80317...
0.80163693
67
Gets the type of this Protein.
def type(YKHO): return YKHO._type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRul(YKHO):\n return YKHO.p_type", "def E3wu(YKHO):\n return YKHO._tipo", "def YwLH(YKHO):\n return YKHO._type", "def YwLH(YKHO):\n return YKHO._type", "def E3wu(YKHO):\n return YKHO._tipo", "def FRul(YKHO):\n return YKHO.type", "def FRul(YKHO):\n return YKHO.type", "def FRul...
[ "0.7822998", "0.76479", "0.7432986", "0.7432986", "0.7427476", "0.74234915", "0.74234915", "0.74234915", "0.74155325", "0.74155325", "0.73943883", "0.73943883", "0.73943883", "0.73860073", "0.73824704", "0.73824704", "0.73824704", "0.73824704", "0.73824704", "0.73824704", "0....
0.0
-1
Gets the ensembl of this Protein.
def INIQ(YKHO): return YKHO._ensembl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def awHX(YKHO):\n return YKHO.config['DATABASE']['refGenome']", "def Ys0y(YKHO):\n return YKHO._getGenomeOfLayer(YKHO._hid_layer)", "def Qyld(YKHO):\n return YKHO._entrezgene", "def Qyld(YKHO):\n return YKHO._entrezgene", "def yG53(YKHO):\n return YKHO._ebi", "def aRKO(YKHO):\n return Y...
[ "0.63337135", "0.6308485", "0.6126586", "0.6126586", "0.5960129", "0.5874521", "0.5871947", "0.57367694", "0.5687709", "0.55741405", "0.5553568", "0.5531128", "0.55064744", "0.54522526", "0.545058", "0.5429353", "0.53836244", "0.53726715", "0.53726715", "0.5329141", "0.532193...
0.8547151
0
Gets the refseqprotein of this Protein.
def jV1y(YKHO): return YKHO._refseqprotein
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jbZp(YKHO):\n return YKHO._refseq", "def h4YC(YKHO):\n return YKHO.protein", "def jV1y(YKHO, jV1y):\n YKHO._refseqprotein = jV1y", "def jV1y(YKHO, jV1y):\n YKHO._refseqprotein = jV1y", "def Bn4P(YKHO):\n YKHO.getCDSsequence()\n from Bio.Seq import Seq\n from Bio.Alphabet import IUP...
[ "0.7632618", "0.74159384", "0.7054118", "0.7054118", "0.70229274", "0.6895265", "0.6817284", "0.67524165", "0.67524165", "0.67492115", "0.6543758", "0.65048885", "0.64942664", "0.6437521", "0.6355579", "0.6256206", "0.62224317", "0.6211583", "0.6211583", "0.6174376", "0.61572...
0.92898744
0
Gets the omim of this Protein.
def eOvW(YKHO): return YKHO._omim
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qrlu(YKHO):\n return YKHO._omino", "def TEbv(YKHO):\n return YKHO._oem", "def TEbv(YKHO):\n return YKHO._oem", "def aaOl(YKHO):\n return YKHO.__pim_oif", "def wNJN(YKHO):\n return YKHO._mo", "def gHsx(YKHO):\n return VuMl.getOmega(YKHO)", "def JCpK(YKHO):\n return YKHO._moid", ...
[ "0.7548727", "0.68044215", "0.68044215", "0.6351405", "0.6329776", "0.6284206", "0.62661934", "0.62661934", "0.62661934", "0.62661934", "0.62661934", "0.615055", "0.60957605", "0.6070324", "0.60615385", "0.6032191", "0.6031028", "0.6025633", "0.5981207", "0.5957654", "0.59060...
0.8243171
0
Gets the hgncid of this Protein.
def vyNJ(YKHO): return YKHO._hgncid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gOvz(YKHO):\n return ZYgz.TIntHSI_GetPrimHashCd(YKHO)", "def gOvz(YKHO):\n return ZYgz.TStrIntPr_GetPrimHashCd(YKHO)", "def gOvz(YKHO):\n return ZYgz.TInt64HSI_GetPrimHashCd(YKHO)", "def gOvz(YKHO):\n return ZYgz.TCnCom_GetPrimHashCd(YKHO)", "def oUzD(YKHO):\n return YKHO._horse_pid", ...
[ "0.6532878", "0.64592254", "0.6455541", "0.6429862", "0.63992864", "0.6397711", "0.63943166", "0.63713247", "0.6340098", "0.633682", "0.63258326", "0.63241404", "0.630954", "0.6308666", "0.62987125", "0.62884533", "0.62874836", "0.6285469", "0.62803334", "0.6277393", "0.62727...
0.8237846
0
Gets the ec_number of this Protein.
def KcR0(YKHO): return YKHO._ec_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def meor(YKHO):\n return YKHO.e_number", "def FMGz(YKHO):\n return YrrP[YKHO.ec_lvl][YKHO.ver]", "def V9i7(YKHO) -> int:\n ...", "def FYSn(YKHO):\n return len(YKHO.proteins)", "def rgCO(YKHO, *qIxc):\n return PZpo.PNEANetMP_GetEId(YKHO, *qIxc)", "def hMpO(YKHO):\n return YKHO._ekatte_co...
[ "0.76121414", "0.70150065", "0.6538271", "0.6481409", "0.62795836", "0.6259136", "0.62356603", "0.619571", "0.6189482", "0.6094269", "0.6070794", "0.6041073", "0.6017147", "0.59791756", "0.5973421", "0.5899298", "0.58903784", "0.58903784", "0.58830273", "0.5878174", "0.586675...
0.8487959
0
Gets the id of this Protein.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO):\n return YKHO._id_program", "def unpH(YKHO):\n return YKHO.id", "def unpH(YKHO):\n return YKHO.id", "def unpH(YKHO):\n return YKHO.id", "def unpH(YKHO):\n return YKHO.id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n...
[ "0.75561357", "0.7481414", "0.7481414", "0.7481414", "0.7481414", "0.74653643", "0.74653643", "0.74653643", "0.74653643", "0.74653643", "0.74653643", "0.74653643", "0.74653643", "0.74653643", "0.74653643", "0.74616814", "0.74616814", "0.74616814", "0.7445067", "0.7445067", "0...
0.0
-1
Gets the uniprot of this Protein.
def b7SB(YKHO): return YKHO._uniprot
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h4YC(YKHO):\n return YKHO.protein", "def PZMH(YKHO):\n return YKHO._response.get('protein')", "def yRVw(YKHO):\n if YKHO.record != None and 'uniprot_ids' in YKHO.record:\n return YKHO.record['uniprot_ids'][0]\n else:\n return None", "def PATg(YKHO) -> ayxD.dsl.protein:\n retu...
[ "0.71919155", "0.67825395", "0.6731547", "0.6676772", "0.65543026", "0.64753777", "0.6093815", "0.601999", "0.601999", "0.5930782", "0.5918737", "0.58431125", "0.58307564", "0.58226955", "0.58226955", "0.57804465", "0.569465", "0.5675017", "0.56344706", "0.56314814", "0.55811...
0.8567064
0
Gets the arm of this Protein.
def j4jS(YKHO): return YKHO._arm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w_LF(YKHO):\n return YKHO.armamento", "def j4jS(YKHO) -> h8nf[A89p]:\n if YKHO.generator_run is None:\n return None\n CB0V = mkTU(YKHO.generator_run)\n if len(CB0V.arms) == 0:\n return None\n elif len(CB0V.arms) > 1:\n raise ValueError('Generator run associated with this t...
[ "0.7128318", "0.68936116", "0.6729313", "0.66887254", "0.6498367", "0.6354614", "0.6332549", "0.6295262", "0.6289326", "0.62621826", "0.6252104", "0.6215201", "0.6118064", "0.6105941", "0.6098894", "0.6089209", "0.6072208", "0.605404", "0.6052939", "0.60180825", "0.59963584",...
0.8258908
0
Encode Images. Encodes images given in `images`, if the image can be encoded (i.e. it is a tensor).
def ziGw(YKHO, Yw_3: List[object]) -> AzJI[x1iM[int], ht2j.Tensor]: jTP1 = kEF0 = None AMx8 = [YRbF for YRbF, VXjJ in enumerate(Yw_3) if VXjJ is not None and isinstance(VXjJ, ht2j.Tensor)] if AMx8: jTP1 = [] kEF0 = [] qQ2L = ht2j.stack([Yw_3[YRbF] for YRbF in AMx8]) xHON = YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kLcZ(YKHO, Yw_3: torch.Tensor, Y5Km: Optional[torch.Tensor]=None) -> ht2j.Tensor:\n yvT9 = YKHO.images_to_tokens(Yw_3, prepend_class_token=True)\n return YKHO.encoder(yvT9, Y5Km)", "def ziGw(C3ST, xkjI, Ep8u=128):\n return XTiz.vstack([C3ST.task.encode_images(Wc9F) for Wc9F in gnPz.grouper(xkjI, Ep8...
[ "0.7089967", "0.6984421", "0.6908312", "0.67816234", "0.67046005", "0.65444595", "0.6481598", "0.64769673", "0.63904095", "0.6318538", "0.6318538", "0.626437", "0.62635714", "0.62498325", "0.62461895", "0.62121457", "0.61761403", "0.61032593", "0.6086426", "0.60807145", "0.60...
0.7718862
0
Encode images with context. Encodes tokens (if given) and images (if given) separately. Combines via concatenation, where images are added to the end of the tensor.
def KVH6(YKHO, DmkH: torch.Tensor, ICup: List[object]) -> AzJI[ht2j.Tensor, ht2j.Tensor]: i1sy = Z6D3 = None kEF0 = NfCg = None if DmkH is not None: i1sy, Z6D3 = super().forward(DmkH) if ICup is not None: kEF0, NfCg = YKHO.encode_images(ICup) if all((mktQ is None for mktQ in [i1sy, k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kLcZ(YKHO, Yw_3: torch.Tensor, Y5Km: Optional[torch.Tensor]=None) -> ht2j.Tensor:\n yvT9 = YKHO.images_to_tokens(Yw_3, prepend_class_token=True)\n return YKHO.encoder(yvT9, Y5Km)", "def kLcZ(YKHO, Yw_3, GXPF, EvQg=False):\n return YKHO.encoder(Yw_3, GXPF, EvQg)", "def __TK(YKHO, Yw_3, v7iA, KndY):...
[ "0.67688465", "0.6463513", "0.6425175", "0.6388826", "0.6269178", "0.6255862", "0.61536205", "0.60494894", "0.5978387", "0.5930872", "0.59153557", "0.59121025", "0.57942677", "0.5747311", "0.5668041", "0.56511253", "0.5617098", "0.559803", "0.5562773", "0.5556782", "0.5551937...
0.6265584
5
Load the weights stored in a TF1 checkpoint to TF2 Keras model.
def EVn8(V1C0: Text, GPtr: MobileNetV2Config=fg0Q()): NvBn = ['ExponentialMovingAverage'] Xu6h = ['RMSProp', 'global_step', 'loss'] QVtu = BfDw.generate_layer_weights_map(checkpoint_path=V1C0, include_filters=NvBn, exclude_filters=Xu6h, use_mv_average=True) hoIr = X191.mobilenet_v2(config=GPtr) BfDw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W1Xa():\n vbtS = oyIN.load(dC43, encoding='latin1').item()\n for gEmA in C3ST.layers:\n if gEmA.name in vbtS.keys():\n PvFr = vbtS[gEmA.name]\n gEmA.set_weights((PvFr['weights'], PvFr['biases']))", "def SUd8(YKHO, V1C0):\n YKHO.triplet_model.load_weights(V1C0)", "def Q...
[ "0.72000086", "0.71051615", "0.6857053", "0.68137264", "0.6801928", "0.6801928", "0.67958146", "0.6792443", "0.67730224", "0.67560023", "0.6755135", "0.67524564", "0.6733587", "0.67225236", "0.6708903", "0.6702554", "0.6702554", "0.67013633", "0.6699087", "0.66851157", "0.667...
0.0
-1
Constructor. Sets context and request as instance attributes.
def FIMM(YKHO, QpfX, QePW): YKHO.context = QpfX YKHO.request = QePW oykL.need()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, QpfX, QePW):\n YKHO.context = QpfX\n YKHO.request = QePW", "def FIMM(YKHO, QpfX, QePW):\n YKHO.context = QpfX\n YKHO.request = QePW", "def FIMM(YKHO, QpfX, QePW):\n YKHO.context = QpfX\n YKHO.request = QePW", "def FIMM(YKHO, QePW):\n YKHO._request = QePW", "def FIMM(YKHO...
[ "0.8781171", "0.8781171", "0.81343836", "0.8097673", "0.8062398", "0.80150086", "0.79489136", "0.79489136", "0.7924913", "0.7924913", "0.7897916", "0.7807631", "0.76113397", "0.7472244", "0.7443363", "0.7430285", "0.73918104", "0.7366738", "0.735063", "0.728338", "0.7251611",...
0.7343648
19
Initialise rush hour game.
def FIMM(YKHO, iBIi): YKHO.initBoard = iBIi.replace('\n', '') YKHO.size = int(epAf.sqrt(len(YKHO.initBoard))) YKHO.vehicles = YKHO.getVehicles(YKHO.initBoard) if YKHO.size % 2 == 0: YKHO.yGoal = YKHO.size // 2 - 1 else: YKHO.yGoal = YKHO.size // 2 YKHO.moves = dict() YKHO.hue...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, iBIi):\n Mkmy.RushHour.__init__(YKHO, iBIi)\n YKHO.currentBoard = YKHO.initBoard\n YKHO.currentVehicles = YKHO.vehicles\n YKHO.count = 0\n YKHO.carX = YKHO.getCar(YKHO.currentVehicles, 'X')\n YKHO.moves[YKHO.currentBoard] = ()", "def xpFp(YKHO):\n JnVq = YKHO.create_raw_board(...
[ "0.6558788", "0.65369767", "0.6517276", "0.6440744", "0.6384888", "0.6381134", "0.63428724", "0.6280909", "0.6258452", "0.62479544", "0.62300223", "0.61772907", "0.6173586", "0.612989", "0.6129476", "0.6098811", "0.60975623", "0.6078841", "0.60753894", "0.60722876", "0.606712...
0.0
-1
Convert list of vehicles to a board.
def VrB7(YKHO, wdIo): iBIi = [] for YRbF in range(YKHO.size): rdlD = [] for r845 in range(YKHO.size): rdlD.append('.') iBIi.append(rdlD) for FMwV in wdIo: for YRbF in range(FMwV.length): if FMwV.orientation == 'V': iBIi[FMwV.yBegin + YR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QJ4n(ezWE: list) -> list:\n iBIi = ['-'] * 9\n for d6pt, VmPb in enumerate(ezWE):\n if d6pt % 2:\n iBIi[VmPb] = 'o'\n else:\n iBIi[VmPb] = 'x'\n return iBIi", "def CSB6(YKHO, iBIi):\n ZWCE = []\n wdIo = []\n for YRbF in range(len(iBIi)):\n WKvO = Y...
[ "0.6152945", "0.6048851", "0.5601251", "0.553862", "0.5518812", "0.5447303", "0.53788996", "0.535123", "0.5339592", "0.5315783", "0.5310185", "0.5300457", "0.5279", "0.52597934", "0.522883", "0.5217168", "0.51703185", "0.5142416", "0.513769", "0.511326", "0.50883573", "0.50...
0.7352336
0
main function. Get the data from Sweden and filter it. Output the data.
def b8V_(S_Iw, Ux0P): jQ3Z = Lv85(S_Iw) VR67(jQ3Z, wcp8, Ux0P)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RxGd():\n print(\"Hello! Let's explore some US bikeshare data!\")\n gysO = ['chicago', 'new york', 'washington']\n X_bn = {'all': 0, 'january': 1, 'february': 2, 'march': 3, 'april': 4, 'may': 5, 'june': 6}\n Sm0u = {'monday': 0, 'tuesday': 1, 'wednesday': 2, 'thursday': 3, 'friday': 4, 'saturday':...
[ "0.7065371", "0.6967684", "0.6920374", "0.68906057", "0.6868872", "0.6848156", "0.68409854", "0.6839953", "0.6817797", "0.6786162", "0.6782786", "0.6772354", "0.67650926", "0.67610717", "0.6757436", "0.67530245", "0.67392254", "0.6733798", "0.6723067", "0.6720762", "0.6717011...
0.0
-1
Transpose batch and scope dimension.
def gz7I(eHNT: Callable) -> YrBT: @xBlr.wraps(eHNT) def m5hN(YKHO: SumOpBase, WKvO: tf.Tensor, *qIxc, **B2fa) -> ZylS.Tensor: with ZylS.name_scope('ScopesAndDecompsFirst'): eymr = ZylS.transpose(WKvO, (1, 2, 0, 3)) Aofo = eHNT(YKHO, eymr, *qIxc, **B2fa) with ZylS.name_scope(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AE3A(YKHO, Wc9F: List):\n return [*Wc9F]", "def I3Xb(WKvO):\n JIWu = WKvO.get_shape()\n if JIWu.ndims is not None and JIWu.ndims < 2:\n return WKvO\n K_qL = ZylS.rank(WKvO)\n REGG = ZylS.transpose(WKvO, ZylS.concat(([1, 0], ZylS.range(2, K_qL)), axis=0))\n REGG.set_shape(ZylS.TensorS...
[ "0.68149877", "0.64692", "0.63191366", "0.6292539", "0.6278159", "0.6187312", "0.6180399", "0.61194396", "0.61072034", "0.6058577", "0.602348", "0.60002846", "0.5997517", "0.5971263", "0.5971148", "0.59686935", "0.592043", "0.5917033", "0.5905721", "0.58950675", "0.58858955",...
0.6591469
1
Do intensity plot, similar to MATLAB imagesc() W = intensity matrix to visualize pixwidth = size of each W element ax = matplotlib Axes to draw on grayscale = use grayscale color map Rely on caller to .show()
def m2t4(XcU5, btqk=1, aNZO=None, qWz7=True): ywwl, E3D9 = XcU5.shape if aNZO == None: aNZO = I8kJ.pyplot.figure().gca() sdA6 = (0, btqk * E3D9, 0, btqk * ywwl) if qWz7: aNZO.imshow(XcU5, interpolation='nearest', cmap=I8kJ.cm.gray, extent=sdA6) else: aNZO.imshow(XcU5, interpo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jyxL(YRbF):\n QrM1.imshow(YRbF, cmap='gray', interpolation='none', vmin=0, vmax=1)\n QrM1.show()", "def Ogbo(LNo8):\n QrM1.figure(figsize=(12, 10), dpi=80)\n QrM1.imshow(LNo8)\n QrM1.show()", "def C_Zq(LNo8):\n QrM1.figure(figsize=(12, 10), dpi=80)\n QrM1.imshow(LNo8, cmap='gray')\n ...
[ "0.720797", "0.7039049", "0.6980886", "0.6903922", "0.6801403", "0.6790568", "0.6769502", "0.6710761", "0.6703581", "0.6689731", "0.6654932", "0.665481", "0.66433495", "0.6640377", "0.66179997", "0.6616524", "0.6586896", "0.658523", "0.6570251", "0.6569153", "0.6569153", "0...
0.0
-1
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "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
Function used as key when sorted. Sorts by second group of matches in ()'s. Returns list of targeted words if match or url if no match.
def cyeE(bD7m): kUBT = ZbWC.search('puzzle/\\w+-(\\w+)-(\\w+)\\.\\w+', bD7m) return kUBT.group(2) if kUBT else bD7m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J6Qh(YKHO):\n BeKS = YKHO.matched_words + YKHO.matched_phrases\n if not BeKS:\n return BeKS\n LY_R = []\n p4xD = {}\n ewCu = 0\n for kUBT in BeKS:\n p4xD[kUBT['para_index']] = kUBT['para_word_count']\n Jf8W = max(p4xD.keys())\n for yac5 in range(0, Jf8W + 1):\n if y...
[ "0.61677885", "0.61157626", "0.6010264", "0.5911706", "0.58912563", "0.58567697", "0.5845526", "0.5805169", "0.5783227", "0.5762772", "0.57230055", "0.5715356", "0.5704361", "0.566622", "0.56074333", "0.55691487", "0.5543457", "0.55365986", "0.55118287", "0.5509425", "0.55075...
0.6295443
0
Splits tokens to WordPieces.
def FsSq(YKHO, s2mk, PeNt=None): WAZf = [] Nd03 = {'<::::>', uwaB.SEP.lower(), uwaB.CLS.lower()} if PeNt is not None: assert len(PeNt) == len(s2mk), 'Input text and confidence scores are of different lengths: {}, {}'.format(s2mk, PeNt) R4g4 = [] for eOtH, p1kx in zip(s2mk, PeNt): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I0dp(YKHO, s2mk: List[str]) -> AzJI[x1iM[str], x1iM[int], x1iM[int]]:\n Gv1d: x1iM[str] = []\n IENd = []\n XB2B = []\n SCAk = 0\n for eOtH in s2mk:\n if YKHO.xlm:\n Q30W = YKHO.bert_tokenizer._tokenize(eOtH)\n else:\n Q30W = YKHO.bert_tokenizer.wordpiece_token...
[ "0.7716547", "0.74302334", "0.7247536", "0.6781442", "0.6781165", "0.6700583", "0.65603083", "0.6548659", "0.65363884", "0.6490966", "0.6480644", "0.6463043", "0.6433513", "0.6424589", "0.6403476", "0.63964146", "0.6377023", "0.6365074", "0.635059", "0.63389933", "0.6332226",...
0.7447939
1
Returns GraphQL middlewares to use when handling the GraphQL request. Returns `MiddlewareList`, a list of middlewares to use or `None`. Required arguments
def XMgc(YKHO, PNq_: dict, QpfX: Optional[ContextValue]) -> h8nf[g6mx]: C934 = YKHO.middleware if callable(C934): C934 = C934(PNq_, QpfX) if C934: return YWvJ(g6mx, C934) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iPIT(YKHO):\n return FTZh()", "def iPIT(YKHO):\n return YKHO._middleware_manager.middlewares", "def CvkE(YKHO) -> x1iM[str]:\n return []", "def Q_Pm() -> laHg.Tuple[NNPN.Middleware]:\n return tuple(map(lambda Kt_s: Kt_s(), DD7E))", "def C934(YKHO, *qIxc) -> h8nf[YrBT]:\n if len(qIxc) > 0...
[ "0.6731599", "0.65277106", "0.63923", "0.6163201", "0.5168066", "0.5074579", "0.5073061", "0.4987349", "0.49846965", "0.49839562", "0.49839562", "0.49374008", "0.4934225", "0.48988065", "0.4883161", "0.48723823", "0.48430502", "0.48088866", "0.477257", "0.4752869", "0.4750983...
0.6504991
2
Handles request for unsupported HTTP method. Returns 200 response for `OPTIONS` request and 405 response for other methods. All responses have empty body. Required arguments
def mbUW(YKHO, PNq_: dict, MP2k: Callable) -> x1iM[bytes]: WKee = ['OPTIONS', 'POST'] if YKHO.introspection: WKee.append('GET') if PNq_['REQUEST_METHOD'] == 'OPTIONS': zIQp = jz4I else: zIQp = zXcC MOPg = [('Content-Type', oDmL), ('Content-Length', 0), ('Allow', ', '.join(WKe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xAU6(YKHO):\n YKHO.error(405)", "def izKl(YKHO, w2IS, QePW, QpfX):\n if QePW.method != 'OPTIONS':\n return\n A5oc = YKHO.router.get_available_methods(QpfX.request.path)\n arSV(QpfX, '', headers=[('Allow', ','.join(A5oc))])\n QpfX.state = cFqH.RESPONSE_GENERATED", "def ypeQ(YKHO, QePW,...
[ "0.74462956", "0.73897725", "0.73099196", "0.70936483", "0.7090079", "0.7025368", "0.6975423", "0.6975423", "0.6958671", "0.6958671", "0.6919148", "0.6889847", "0.6888688", "0.6825951", "0.68103886", "0.6795347", "0.6787532", "0.67514867", "0.67344517", "0.67302454", "0.67302...
0.7266308
3
Get Variable of Index (batch_size)
def g4DS(YKHO, Ep8u, W3o0=2): WKvO = I9Cv(ht2j.LongTensor([W3o0] * Ep8u)) return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, or8S):\n fBRX = YKHO.list_IDs[or8S * YKHO.batch_size:(or8S + 1) * YKHO.batch_size]\n r6K_, pan_ = YKHO.data_load(fBRX)\n return (r6K_, pan_)", "def OP2O(YKHO, d6pt):\n _0VL = YKHO.indices[d6pt * YKHO.batch_size:(d6pt + 1) * YKHO.batch_size]\n Mekx, ON2u = YKHO._get_data(_0VL)\n r...
[ "0.6757568", "0.6681298", "0.6499412", "0.6481118", "0.6476739", "0.6475804", "0.64652586", "0.6405912", "0.6388383", "0.6381338", "0.6379934", "0.6358475", "0.63576883", "0.6339051", "0.6332747", "0.63245714", "0.6319139", "0.6310557", "0.6304674", "0.62935895", "0.6287013",...
0.0
-1
Query for and populate the primary keys for all models in new_models with integer `id` primary keys. This uses the database id sequence to populate the id field for new_models with an integer `id` primary key.
def TL_K(cuiw, U0Ld, sakK=False, cVzT=False): for T_5n, FYrf in quHu(U0Ld): if not EZcP(T_5n): if sakK: continue else: raise AssertionError('Expected models to have auto-incrementing `id` primary key') FYrf = [C3ST for C3ST in FYrf if C3ST.id i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FqBI(YKHO):\n YKHO.primary_key = dict()\n YKHO.remaining_primary_key = dict()", "def Ou_K(FYrf):\n if not hasattr(FYrf, '__iter__'):\n FYrf = [FYrf]\n with ouvA() as cuiw:\n HZxO(cuiw)\n for C3ST in FYrf:\n cuiw.merge(C3ST)\n cuiw.commit()", "def uHqW(YKHO...
[ "0.5594255", "0.5547752", "0.55104905", "0.53896606", "0.5388102", "0.5352664", "0.53176844", "0.53168887", "0.5223232", "0.5209175", "0.5109206", "0.5043637", "0.5011721", "0.5011721", "0.50105697", "0.49802244", "0.49798158", "0.49032375", "0.48415592", "0.48348325", "0.483...
0.7923556
0
Get the set of the names of all registered GPU operators
def f2QR(): return eJ1E
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pKkK():\n global _cpu_ops\n global _gpu_ops\n global _mixed_ops\n K0YA = K0YA.union(set(X9Zn.RegisteredCPUOps()))\n eJ1E = eJ1E.union(set(X9Zn.RegisteredGPUOps()))\n vOza = vOza.union(set(X9Zn.RegisteredMixedOps()))", "def BSsj():\n return []", "def g_Dg():\n return K0YA.union(eJ1E)...
[ "0.6992584", "0.69564915", "0.68972075", "0.68653816", "0.68546873", "0.67845", "0.6716259", "0.66994387", "0.66843534", "0.66843534", "0.66823184", "0.667941", "0.667941", "0.667941", "0.667941", "0.667941", "0.66770476", "0.66714525", "0.65921474", "0.65921474", "0.65875417...
0.6628694
18
Return the set of the names of all registered operators
def g_Dg(): return K0YA.union(eJ1E).union(vOza)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jTuV():\n return tuple(('{}/{}'.format(rlUT, YfwU) for rlUT, kT1P in GVwU.items() for YfwU in kT1P))", "def Dq6e(YKHO):\n return ['farmer to B', 'farmer, wolf to B', 'farmer, sheep to B', 'farmer, grain to B', 'Farmer to A', 'farmer, wolf to A', 'farmer, sheep to A', 'farmer, grain to A']", "def hdjz...
[ "0.77630126", "0.7426675", "0.7275366", "0.7267313", "0.7180512", "0.7166021", "0.7129207", "0.7063389", "0.6989017", "0.68423754", "0.67990613", "0.67273027", "0.671526", "0.671526", "0.6708659", "0.6688692", "0.66728204", "0.66711575", "0.6659227", "0.6627779", "0.65702575"...
0.6540644
23
Returns matrix element of the operator on `inputs`. See base class.
def WxKF(YKHO, _AK7: wavefunctions.Wavefunction, g4y1: tf.Tensor, nYlf: tf.Tensor=None) -> ZylS.Tensor: if nYlf is None: nYlf = _AK7(g4y1) a3cK, Bsj3 = YKHO.build(_AK7, g4y1) return a3cK * nYlf + Bsj3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWB6(YKHO, khtY: Op):\n raise NotImplementedError", "def DszH(YKHO, g4y1):\n return YKHO.elmo(ZylS.transpose(g4y1)[0])", "def dQk1(YKHO):\n EcVT = YKHO._input_nodes[0]._value\n fuBA = YKHO._input_nodes[1]._value\n return EcVT.dot(fuBA)", "def e9ln(YKHO, mWFP):\n if mWFP not in YKHO.inpu...
[ "0.6452465", "0.64273494", "0.62002015", "0.61952597", "0.6134317", "0.612777", "0.6095817", "0.6078078", "0.60718125", "0.5955577", "0.5931575", "0.59293646", "0.59293646", "0.5880317", "0.58625793", "0.5855318", "0.58416706", "0.5835492", "0.5835492", "0.5832752", "0.581362...
0.0
-1
Returns matrix element of the operator on `inputs`. See base class.
def WxKF(YKHO, _AK7: wavefunctions.Wavefunction, g4y1: tf.Tensor, nYlf: tf.Tensor=None) -> ZylS.Tensor: if nYlf is None: nYlf = _AK7(g4y1) IjIm, Bsj3 = YKHO.build(_AK7, g4y1) return IjIm * nYlf + Bsj3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWB6(YKHO, khtY: Op):\n raise NotImplementedError", "def DszH(YKHO, g4y1):\n return YKHO.elmo(ZylS.transpose(g4y1)[0])", "def e9ln(YKHO, mWFP):\n if mWFP not in YKHO.inputs.keys():\n raise Exception(\"Input with name '\" + mWFP + \"' was not found in operator: \" + YKHO.getName() + '.')\n ...
[ "0.6451668", "0.642654", "0.62007964", "0.6198981", "0.6135347", "0.61288095", "0.609447", "0.6076353", "0.6071602", "0.5955265", "0.5933949", "0.5931754", "0.5931754", "0.58788586", "0.58619076", "0.5851054", "0.5840387", "0.5834807", "0.5834807", "0.5829783", "0.5818058", ...
0.0
-1
Takes a rule line and adds it to the terminals / nonterminals as appropriate
def y74B(YKHO, zFiD: str): RYsB = [ZfUD.strip() for SjLr in ZbWC.findall('(.+)(?<=\\w|\\s)(=|:)(?=\\w|\\s)(.+)', zFiD.strip()) for ZfUD in SjLr] if len(RYsB) != 3: raise RuntimeError('Malformed rule ', zFiD) bKqw = RYsB[0] HDGN = RYsB[1] w2fL = NY3B(bKqw, RYsB[2].replace(' ', '')) if HDG...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y74B(zFiD):\n\n def wr3U(KCHu):\n Q4kH = ZbWC.compile(' +|[A-Za-z0-9:\\\\-\\\\.]+|[()]')\n for kUBT in Q4kH.finditer(KCHu):\n KCHu = kUBT.group(0)\n if KCHu[0] == ' ':\n continue\n if KCHu[0] in '()':\n yield (KCHu, KCHu)\n ...
[ "0.6673127", "0.6505582", "0.64284", "0.6235112", "0.6231226", "0.6175523", "0.61187243", "0.608921", "0.6052621", "0.60274893", "0.5986287", "0.5982434", "0.5933133", "0.5925809", "0.5912819", "0.57839876", "0.57757926", "0.5759443", "0.57579625", "0.56984127", "0.5691843", ...
0.67962044
0
Restores the model from the model's checkpoint path.
def IY5G(YKHO, cuiw): YKHO.saver.restore(cuiw, YKHO.checkpoint_path)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(YKHO, V1C0):\n YKHO.checkpoint.restore(ZylS.train.latest_checkpoint(V1C0))", "def uyMl(YKHO, V1C0):\n YKHO.checkpoint.restore(ZylS.train.latest_checkpoint(V1C0))", "def JPqq(YKHO, DSYN):\n k_Be = Hy7s.path.join(YKHO.log_config.checkpoint_path, '{}.pth'.format(DSYN))\n vauY = ht2j.load(k_Be...
[ "0.8233539", "0.8233539", "0.8134384", "0.80667585", "0.7993608", "0.79689735", "0.7963017", "0.79462785", "0.79199606", "0.79173183", "0.78678006", "0.78678006", "0.78649956", "0.78464705", "0.78269494", "0.7825756", "0.77775717", "0.77720994", "0.77586985", "0.7753666", "0....
0.815967
2
Converts an offset spec into a string with the offset in seconds An offset spec may start with +/, followed by a sequence of integers each paired with a unit of time ([s]econds/[m]inutes/
def VLQ8(gWqP): A1Vg = len(gWqP) if A1Vg < 2: print('Offset argument too short') return None Zihr = gWqP[0] if Zihr not in ('+', '-', '='): print('Sign must be one of + - =') return None if Zihr == '=': GXef = gWqP[1:] return '=' + str(uiw9(GXef)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L71w(vgXP):\n assert isinstance(vgXP, qcWV.timedelta)\n Qpmp = vgXP.total_seconds() / 60\n if Qpmp > 0:\n QdXS = '+%02d:%02d'\n else:\n QdXS = '-%02d:%02d'\n Qpmp = -Qpmp\n gWqP = QdXS % (Qpmp / 60, Qpmp % 60)\n return gWqP", "def T2IJ(ITS7, vgXP=0):\n return str(int...
[ "0.67814815", "0.66056365", "0.65380746", "0.60955346", "0.60633004", "0.6049715", "0.5899071", "0.58435297", "0.58001435", "0.57914466", "0.5747461", "0.57277215", "0.5663881", "0.551165", "0.55080557", "0.55080557", "0.54943746", "0.54929197", "0.54832983", "0.54757786", "0...
0.6533041
3
Run one timestep of the environment's dynamics. When end of episode is reached, you are responsible for calling `reset()` to reset this environment's state. Accepts an action and returns a tuple (observation, reward, done, info).
def YPaw(YKHO, XeOP): WKvO = XeOP['x'] LVAh = XeOP['y'] rNYq = [] with open('state.pickle', 'rb') as qiqv: gs2S, IChd = t2lc.load(qiqv) print('previous_x = ', gs2S, 'previous_y = ', IChd) with open('goal.pickle', 'rb') as O3Ih: olAL, FNvw = t2lc.load(O3Ih) print('x=', WKvO, '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPaw(YKHO, XeOP):\n XeOP = oyIN.asarray(XeOP)\n YKHO.timestep += 1\n vwlo = YKHO.financial_graph.take_action(XeOP, reward_mode=YKHO.args.reward_type, disable_default_actions=YKHO.args.disable_default_actions)\n _ins = YKHO._determine_if_episode_is_done()\n U34r = {'net_position': YKHO.financial_...
[ "0.8019628", "0.7782954", "0.7754899", "0.7725496", "0.76494557", "0.7634686", "0.76265347", "0.762154", "0.76031023", "0.75256264", "0.752509", "0.7450168", "0.74453497", "0.744376", "0.74393755", "0.74104524", "0.73734957", "0.7350209", "0.7341448", "0.7330386", "0.732661",...
0.0
-1
Called by the update() function every frame, draws the PyGame GUI
def JmFt(Vjhr): Vjhr.fill(GnEN.get_color_tuple(ETiC.get('BACKGROUND_BLACK'))) IpQC, iMyd = (pVtL, pVtL) for WKvO in range(RMvA): for LVAh in range(icK2): VVyi(Vjhr, laUY[WKvO * icK2 + LVAh], IpQC, iMyd) IpQC += xpNW + pVtL IpQC = pVtL iMyd += ralU + pVtL I...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmFt(YKHO):\n YKHO.board.draw(YKHO.display)\n YKHO.gui.draw()\n a9eO.display.update()", "def JmFt(YKHO):\n YKHO.game.screen.blit(YKHO.bg_surface, (0, 0))\n for oD_N in YKHO.buttons:\n oD_N.draw(YKHO.game.screen)\n YKHO.caption.draw(YKHO.game.screen)\n g74T.display.update()", "de...
[ "0.7928817", "0.77215934", "0.76562107", "0.76071405", "0.750278", "0.74919397", "0.74765414", "0.74736434", "0.7445391", "0.74098927", "0.7363469", "0.7348455", "0.733719", "0.7325752", "0.73191595", "0.7308525", "0.7274404", "0.7252408", "0.7243347", "0.72365755", "0.723339...
0.0
-1
Converts all recognizable span elements into markdown
def _Y3S(zFiD): for eHNT, Mkmy in Tpve: XP5J = ZbWC.compile(eHNT) zFiD = XP5J.sub(Mkmy, zFiD) XP5J = ZbWC.compile('\\\\item') zFiD = XP5J.sub(enk6, zFiD) return zFiD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CSD3(Q6kx):\n auNZ = _KyL(Q6kx)\n WAxC = 'dominate_cmd=\"' + (str(auNZ[0]) if auNZ[0] else 'None') + '\" dominate_flag=\"' + (str(auNZ[1]) if auNZ[1] else 'None') + '\" node_kind=\"' + Q6kx.kind + '\"'\n MRo1 = []\n if Q6kx.kind == 'root':\n for aUGN in Q6kx.children:\n MRo1.exten...
[ "0.6388993", "0.6210697", "0.6155783", "0.60544705", "0.5970379", "0.5962256", "0.59404063", "0.5869953", "0.58315194", "0.5773615", "0.57431585", "0.5722214", "0.57213855", "0.5673153", "0.5661738", "0.56453925", "0.56435364", "0.562904", "0.561107", "0.5611045", "0.56053656...
0.5721931
12
Compute bounding boxes from masks.
def p5Lc(ZHfW): oUSw = oyIN.zeros([ZHfW.shape[-1], 4], dtype=oyIN.int32) for YRbF in range(ZHfW.shape[-1]): r8hN = ZHfW[:, :, YRbF] GO_b = oyIN.where(oyIN.any(r8hN, axis=0))[0] mFka = oyIN.where(oyIN.any(r8hN, axis=1))[0] if GO_b.shape[0]: o4D3, ajwV = GO_b[[0, -1]] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p5Lc(YKHO, ZHfW):\n oUSw = oyIN.zeros([ZHfW.shape[-1], 4], dtype=oyIN.int32)\n for YRbF in range(ZHfW.shape[-1]):\n r8hN = ZHfW[:, :, YRbF]\n GO_b = oyIN.where(oyIN.any(r8hN, axis=0))[0]\n mFka = oyIN.where(oyIN.any(r8hN, axis=1))[0]\n if GO_b.shape[0]:\n o4D3, ajwV...
[ "0.8053253", "0.79046696", "0.78671235", "0.78048664", "0.7801408", "0.7797915", "0.77164906", "0.77041256", "0.7686475", "0.7634595", "0.75643206", "0.7510227", "0.74642205", "0.7463141", "0.7463141", "0.7409578", "0.7344366", "0.7048421", "0.70444256", "0.70380414", "0.7017...
0.78134555
4
Calculates IoU of the given box with the array of the given boxes.
def _xWy(FlUN, oUSw, ab__, p1Yn): si3g = oyIN.maximum(FlUN[0], oUSw[:, 0]) skBL = oyIN.minimum(FlUN[2], oUSw[:, 2]) o4D3 = oyIN.maximum(FlUN[1], oUSw[:, 1]) ajwV = oyIN.minimum(FlUN[3], oUSw[:, 3]) iQin = oyIN.maximum(ajwV - o4D3, 0) * oyIN.maximum(skBL - si3g, 0) b65I = ab__ + p1Yn[:] - iQin[:]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aOkw(FlUN, oUSw):\n ab__ = (FlUN[2] - FlUN[0]) * (FlUN[3] - FlUN[1])\n f0tD = (oUSw[:, 2] - oUSw[:, 0]) * (oUSw[:, 3] - oUSw[:, 1])\n frsW = oyIN.maximum(FlUN[0], oUSw[:, 0])\n TdlV = oyIN.maximum(FlUN[1], oUSw[:, 1])\n yjMy = oyIN.minimum(FlUN[2], oUSw[:, 2])\n YvNL = oyIN.minimum(FlUN[3], o...
[ "0.8773528", "0.8561157", "0.85404384", "0.81330025", "0.8126539", "0.811029", "0.8096278", "0.80505574", "0.80252874", "0.80150616", "0.78457385", "0.78385276", "0.77811587", "0.76923805", "0.76697594", "0.76566", "0.7649349", "0.7643294", "0.76306736", "0.76267225", "0.7605...
0.8113794
5
Computes IoU overlaps between two sets of boxes.
def I7Mo(wGB6, QFOH): bzU2 = (wGB6[:, 2] - wGB6[:, 0]) * (wGB6[:, 3] - wGB6[:, 1]) Eq1k = (QFOH[:, 2] - QFOH[:, 0]) * (QFOH[:, 3] - QFOH[:, 1]) PZIW = oyIN.zeros((wGB6.shape[0], QFOH.shape[0])) for YRbF in range(PZIW.shape[1]): IkxF = QFOH[YRbF] PZIW[:, YRbF] = _xWy(IkxF, wGB6, Eq1k[YRbF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I7Mo(wGB6, QFOH):\n print('started computing overlaps')\n bzU2 = (wGB6[:, 2] - wGB6[:, 0]) * (wGB6[:, 3] - wGB6[:, 1])\n Eq1k = (QFOH[:, 2] - QFOH[:, 0]) * (QFOH[:, 3] - QFOH[:, 1])\n PZIW = oyIN.zeros((wGB6.shape[0], QFOH.shape[0]))\n for YRbF in range(PZIW.shape[1]):\n IkxF = QFOH[YRbF]...
[ "0.827972", "0.82569057", "0.81655115", "0.81482947", "0.80511236", "0.7995574", "0.7947546", "0.7873406", "0.7812348", "0.7811397", "0.7744267", "0.76881033", "0.76645565", "0.7663524", "0.76097906", "0.7600159", "0.7583519", "0.7549307", "0.74988425", "0.7474058", "0.746652...
0.8173456
2
converts a coloured image to gray
def zI1D(d7Eb, p_N1): C6g3 = d7Eb.copy() C6g3[p_N1 > d7Eb] = p_N1[p_N1 > d7Eb] LNo8 = C6g3[:, :, 0] * 0.2126 + C6g3[:, :, 1] * 0.7152 + C6g3[:, :, 2] * 0.0722 LGJA = Einh(LNo8, (84, 84)) THXy = 5 LGJA = LGJA > THXy return LGJA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zI1D(VXjJ):\n return 0.2989 * VXjJ[..., 0] + 0.587 * VXjJ[..., 1] + 0.114 * VXjJ[..., 2]", "def zI1D(LNo8):\n return oyIN.dot(LNo8[..., :3], [0.299, 0.587, 0.114])", "def nNkg(LNo8):\n return XC5k.cvtColor(LNo8, XC5k.COLOR_RGB2GRAY)", "def zI1D(VXjJ):\n return XC5k.cvtColor(VXjJ, neC1('rgb2gr...
[ "0.8036812", "0.7909834", "0.78787625", "0.7825057", "0.7800841", "0.77871066", "0.7754489", "0.775116", "0.7738218", "0.7681178", "0.766515", "0.766515", "0.76597637", "0.76597637", "0.764752", "0.764752", "0.764752", "0.764752", "0.764752", "0.7569988", "0.75575566", "0.7...
0.0
-1
Return a consumer object, configured with settings values.
def NQFU(YKHO): return uthh.Consumer(YKHO.key, YKHO.secret)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NQFU(YKHO, _Fei):\n try:\n nVrR, DpZH = BfDw.import_consumer(_Fei['consumer'])\n except ImportError as error:\n S0MI.exception('Error importing the consumer %s: %s', _Fei['consumer'], P1dF)\n return\n if DpZH:\n S0MI.info('Creating consumer %s v%s', _Fei['consumer'], DpZH)\...
[ "0.6974451", "0.68451416", "0.67426836", "0.64916223", "0.6366904", "0.6352891", "0.62104493", "0.60709476", "0.60709476", "0.59122336", "0.57564306", "0.5730459", "0.57247806", "0.5677794", "0.567636", "0.56464475", "0.55908245", "0.5555378", "0.5553791", "0.5544522", "0.551...
0.64030975
4
The name of the channel, not including the colorspace name.
def R5yJ(YKHO): return YKHO.name.partition('_')[2]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R5yJ(YKHO) -> str:\n return YKHO._values.get('channel_name')", "def mWFP(YKHO, YwkQ):\n return None", "def R5yJ(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'channel_name')", "def R5yJ(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'channel_name')", "def R5yJ(YKHO) -> qe4Y.In...
[ "0.83260286", "0.80108", "0.8005108", "0.7858184", "0.7858184", "0.7740975", "0.77092254", "0.7619653", "0.7618214", "0.74431074", "0.7426762", "0.74246055", "0.73007905", "0.7121008", "0.7100054", "0.7090502", "0.70682895", "0.7034935", "0.68786925", "0.6859447", "0.6840443"...
0.82831746
1
Converts a letter from a to e to a number based on the letter's index in the first nested list inside the board list
def fp4l(YKHO, fvDH): return YKHO.board[0].index(fvDH.upper())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bOi4(sZqf):\n iVRZ = 0\n u54L = len(sZqf)\n for YRbF in range(u54L):\n iVRZ += (ord(sZqf[YRbF]) - 64) * pow(26, u54L - YRbF - 1)\n return int(iVRZ)", "def tdR8(sZqf):\n sZqf = sZqf.upper()\n Aofo = 0\n for d6pt, hcXw in enumerate(reversed(sZqf)):\n mLGw = ord(hcXw) - 64\n ...
[ "0.66044945", "0.65444", "0.65038556", "0.6427378", "0.64188933", "0.6339322", "0.6329273", "0.6311759", "0.63068414", "0.62807727", "0.6195898", "0.6186822", "0.60748726", "0.6071912", "0.60498285", "0.60396874", "0.59681463", "0.59619194", "0.59493005", "0.5949258", "0.5943...
0.0
-1
Pulls a random coordinate from the coordinate_list instance variable, then removes that coordinate from the coordinate_list and changes the corresponding character on the board based on whether that character is an @ or not.
def lf0j(YKHO, u46J): YRbF = len(YKHO.coordinates_list) rs7x = tuKI.randrange(YRbF) uHEk = YKHO.coordinates_list[rs7x] fvDH, rdlD = uHEk ZMlM = YKHO.board[rdlD][fvDH] YKHO.coordinates_list.remove(uHEk) if ZMlM == '@': YKHO.board[rdlD][fvDH] = 'X' YKHO.ship_count -= 1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xu6C(YKHO, ATUZ):\n zFiD, fvDH = YKHO.find_pos(ATUZ)\n hcXw = ''\n DBZ8 = 0\n aJ80 = 0\n while hcXw != '-':\n DBZ8 = tuKI.randint(0, len(YKHO.maze) - 1)\n aJ80 = tuKI.randint(0, len(YKHO.maze[0]) - 1)\n hcXw = YKHO.maze[DBZ8][aJ80]\n YKHO.maze[zFiD][fvDH] = '-'\n YKHO....
[ "0.65130967", "0.6424212", "0.63438404", "0.592819", "0.59029233", "0.5816451", "0.5811204", "0.5716749", "0.5716349", "0.5708386", "0.56456983", "0.5616269", "0.5595541", "0.55889696", "0.55511767", "0.55430657", "0.55385166", "0.5497723", "0.5481953", "0.54774356", "0.54723...
0.6127745
3
Returns the string sql condition for AND
def dxie(YKHO, wUfe): hypb = '' for YRbF in range(len(wUfe)): peBr = wUfe[YRbF] lLvF = f' Headline.Content LIKE "%{peBr}%"' hypb += lLvF if YRbF < len(wUfe) - 1: hypb += ' AND' return '(' + hypb[1:] + ')'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rcfv(YKHO):\n return ' AND '.join([eHNT.cql for eHNT in YKHO._where])", "def v6Xf(YKHO):\n if YKHO._q:\n return u' AND '.join([vexM.to_sql(YKHO._model_cls) for vexM in YKHO._q])\n else:\n return u'1'", "def G788(xDcj):\n return ' WHERE (' + GMv0(' AND ', xDcj) + ')'", "def PHUf(...
[ "0.8094268", "0.7862211", "0.77961266", "0.7403688", "0.7004502", "0.6968297", "0.69585663", "0.6956612", "0.6909654", "0.6901604", "0.6870932", "0.6842573", "0.68303424", "0.68129957", "0.67356366", "0.6708846", "0.67035145", "0.666213", "0.66600513", "0.66396695", "0.648551...
0.667744
17
Returns the string sql condition for OR Keywords is a list of tuples and string Tuples are keywords that all must appear in headlines
def B273(YKHO, wUfe): hypb = '' for YRbF in range(len(wUfe)): peBr = wUfe[YRbF] lLvF = '' if type(peBr) == str: lLvF = f' Headline.Content LIKE "%{peBr}%"' else: lLvF = YKHO.helper_AND(peBr) hypb += lLvF if YRbF < len(wUfe) - 1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hc4A(Q2Wf):\n wIxF = '(' + ') OR ('.join([DkIV['keywords'] for DkIV in Q2Wf]) + ')'\n return wIxF", "def n96N(c_sp):\n VibQ = ''\n for YRbF in range(len(c_sp)):\n if YRbF != len(c_sp) - 1:\n VibQ += c_sp[YRbF] + ' OR '\n else:\n VibQ += c_sp[YRbF] + ' '\n re...
[ "0.67753166", "0.66967463", "0.665055", "0.65633297", "0.6486562", "0.63753855", "0.6307787", "0.6284332", "0.6253134", "0.621245", "0.6158634", "0.6112822", "0.6086932", "0.60749435", "0.60499895", "0.6035197", "0.6030151", "0.6007378", "0.59746784", "0.59656054", "0.5956703...
0.77755016
0
Returns bool value. True self is better then current_best_solution, otherwise False.
def guHY(YKHO, gr4H, Tn1w): if YKHO.get_average_result() != [] and Tn1w.get_average_result() != []: if gr4H is True: if YKHO < Tn1w: return True else: return False elif gr4H is False: if YKHO > Tn1w: return True ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jydu(YKHO, ZbOB, P6Dd, **B2fa):\n PWAq = B2fa.pop('score_threshold', 0.0001)\n s70X = 1.0 + PWAq\n return ZbOB > P6Dd * s70X", "def Jydu(YKHO, ywZN) -> bool:\n if not isinstance(ywZN, bZdU):\n raise TypeError('other_solution has to be the instance of Solution class')\n return YKHO.obj_v...
[ "0.76381874", "0.7637521", "0.7574105", "0.7351594", "0.7351594", "0.7305574", "0.7124395", "0.7094952", "0.68010885", "0.6709298", "0.6709298", "0.66827184", "0.6666623", "0.6586712", "0.6586641", "0.65828747", "0.65485436", "0.6487101", "0.64507157", "0.64500165", "0.641387...
0.73253196
5
Returns True, if 'self' < 'compared_configuration'. Otherwise False
def JWbp(YKHO, yMV1): Pn1K = [] for YRbF in range(len(YKHO.get_average_result())): Pn1K.append(YKHO.get_average_result()[YRbF] < yMV1.get_average_result()[YRbF]) MQRi = YKHO.__class__.TaskConfiguration['ResultPriorities'] if 'ResultPriorities' in YKHO.__class__.TaskConfiguration else [0] * len(Pn1K)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmxi(YKHO, yMV1):\n return yMV1.__lt__(YKHO)", "def azpz(YKHO):\n U5bT = azpz(self=YKHO)\n return U5bT", "def jmxi(YKHO, Elif):\n if YKHO.confidence > Elif.confidence:\n return True\n elif YKHO.confidence == Elif.confidence and YKHO.support > Elif.support:\n return True\n el...
[ "0.820792", "0.76933515", "0.6923815", "0.6827325", "0.6823745", "0.6818483", "0.6798744", "0.67867583", "0.67630506", "0.67630506", "0.67630506", "0.6743731", "0.6733383", "0.6713687", "0.67111915", "0.6689354", "0.6667375", "0.66523", "0.6647146", "0.66331357", "0.66319287"...
0.6999538
2
Returns True, if 'self' > 'compared_configuration'. Otherwise False
def jmxi(YKHO, yMV1): return yMV1.__lt__(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def azpz(YKHO):\n U5bT = azpz(self=YKHO)\n return U5bT", "def jmxi(YKHO, Elif):\n if YKHO.confidence > Elif.confidence:\n return True\n elif YKHO.confidence == Elif.confidence and YKHO.support > Elif.support:\n return True\n elif YKHO.confidence == Elif.confidence and YKHO.support ==...
[ "0.7786394", "0.7127243", "0.6999786", "0.68261224", "0.6775256", "0.66694075", "0.66061765", "0.6588984", "0.6514515", "0.65020984", "0.6498452", "0.64961505", "0.6493455", "0.64918125", "0.64847964", "0.6480778", "0.6480778", "0.6480778", "0.64698404", "0.6462714", "0.64627...
0.81894594
0
Tensorflow net IR net Input>Squeeze => Input>[Permute]>Reshape
def sEMe(YKHO, ROpF, jDK_, t5cZ): import tensorflow as ZylS ZylS.compat.v1.reset_default_graph() with ZylS.compat.v1.Session() as cb_Q: OOcW = ROpF.copy() if len(OOcW) >= 3: OOcW.append(OOcW.pop(1)) WKvO = ZylS.compat.v1.placeholder(ZylS.float32, OOcW, 'Input') MZ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EYHJ(g4y1, he5B, Ot1W=[3, 3]):\n Zxma = Fz20.conv2d_transpose(g4y1, he5B, kernel_size=[3, 3], stride=[2, 2], activation_fn=None)\n Zxma = ZylS.nn.relu(Fz20.batch_norm(Zxma))\n return Zxma", "def EYHJ(g4y1, he5B, Ot1W=[3, 3]):\n Zxma = Fz20.conv2d_transpose(g4y1, he5B, Ot1W, stride=[2, 2], activat...
[ "0.68373704", "0.68291503", "0.6741159", "0.6730459", "0.65988946", "0.6598087", "0.65816665", "0.65454584", "0.654448", "0.6537558", "0.65026903", "0.6501821", "0.64996827", "0.6490416", "0.6463151", "0.646147", "0.64348674", "0.64297724", "0.63842213", "0.63797426", "0.6379...
0.6283466
25
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
81
Returns a string stripped of all html tags
def t5Yq(_R2e): wvEv = bLNn() _R2e = wvEv.unescape(_R2e) KCHu = o205() KCHu.feed(_R2e) Aofo = KCHu.get_data() if Aofo.strip() == '': V22M = ZbWC.sub('<.*?>', ' ', _R2e) V22M = V22M.replace(' ', ' ') Aofo = rKuS(V22M, 'lxml').text return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aAsi(_R2e):\n return ''.join(rKuS(_R2e).findAll(text=True))", "def aAsi(l5Ny: str) -> str:\n Z9JV = rKuS(l5Ny, 'html.parser')\n return Z9JV.get_text(separator=' ')", "def as8h(YKHO, Nlxd=True):\n l5Ny = ZbWC.sub('<[^>]+>', '', YKHO.html)\n if Nlxd:\n l5Ny = ' '.join(l5Ny.split())\n ...
[ "0.8395092", "0.8291791", "0.8230221", "0.80951536", "0.8076522", "0.8072182", "0.8068292", "0.80422384", "0.80417657", "0.79944557", "0.7931674", "0.7922304", "0.7921751", "0.791297", "0.78963566", "0.78914446", "0.7890951", "0.7883312", "0.7883312", "0.7882558", "0.78702784...
0.7337365
80
The setUp function runs before every test function.
def FCbF(YKHO): YKHO.expenses = nmJF('expenses.txt')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n DuvM.TestCase.setUp(YKHO)", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):...
[ "0.91390127", "0.9054635", "0.9037958", "0.9037958", "0.9037958", "0.9037958", "0.9037958", "0.9037958", "0.9037958", "0.9037958", "0.9037958", "0.9037958", "0.9037958", "0.9037958", "0.9037958", "0.9037958", "0.9037958", "0.9037958", "0.9037958", "0.9037958", "0.9037958", ...
0.0
-1
Returns the current value of the pressure sensor (no more than 6 characters). a string corresponding to the current value of the pressure sensor (no more than 6 characters) On failure, throws an exception or returns YPressure.ADVERTISEDVALUE_INVALID.
def fpoT(YKHO): if YKHO._cacheExpiration <= NA0M.GetTickCount(): if NA0M.YISERR(YKHO.load(NA0M.DefaultCacheValidity)): return ovdR.ADVERTISEDVALUE_INVALID return YKHO._advertisedValue
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n7lv():\n nHDv = gk2W.c_float()\n YwFi.getPressure(gk2W.byref(nHDv))\n return nHDv.value", "def rHgM(YKHO, CJ2p, RVHh=None):\n jGRS = YKHO.getRead(kVB4.PRESSURE, CJ2p, RVHh)\n if CJ2p.__class__.__name__ == 'Data':\n E4N8('Using Data instance in getPressure_Pa is deprecated, use Pressure...
[ "0.637551", "0.62580705", "0.6234117", "0.6218549", "0.61711943", "0.6156123", "0.6128769", "0.6119297", "0.6108949", "0.6045837", "0.601129", "0.5980427", "0.59676087", "0.5956421", "0.59485686", "0.59420586", "0.5886113", "0.58791643", "0.584364", "0.58292973", "0.5804108",...
0.6343469
1
Returns the ID of the managed object. Returns the ID of the managed object or None if this object does not have one. If the ID is None, the object has not been persisted yet.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def St8f(YEnM):\n if YEnM.is_saved():\n return YEnM.key().id_or_name()\n else:\n return None", "def NBcv(YKHO):\n aq_w = YKHO.association\n if aq_w:\n return aq_w.object_id\n return None", "def NBcv(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'object_id')", "def NBcv(YK...
[ "0.71570927", "0.6989795", "0.6864071", "0.6864071", "0.6864071", "0.6864071", "0.68228626", "0.6786421", "0.67464983", "0.6735443", "0.6694745", "0.66697985", "0.65855026", "0.6569777", "0.6542291", "0.6542291", "0.6542291", "0.6542291", "0.6542291", "0.6542291", "0.6542291"...
0.0
-1
Returns the name. Returns the object's name or None if this object does not have one.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i0kJ(YKHO):\n try:\n if YKHO.name is not None:\n return str(YKHO.name)\n return None\n except Exception as e:\n raise tTpl", "def i0kJ(YKHO):\n try:\n if YKHO.name is not None:\n return str(YKHO.name)\n return None\n except Exception as e:\...
[ "0.8903907", "0.8903907", "0.8903907", "0.8903907", "0.8903907", "0.87652546", "0.87652546", "0.8500467", "0.837428", "0.8297855", "0.8297855", "0.81746906", "0.8127102", "0.81091905", "0.8093981", "0.8048143", "0.80328405", "0.80209446", "0.79611003", "0.79435134", "0.791822...
0.0
-1
Returns the list of consumers for this object. Returns the object's consumers or [] if the object does not have any.
def qsUe(YKHO): return YKHO._consumers
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hjLm(YKHO):\n return YKHO.consumers.all()", "def a9f7(YKHO, qsJ6=None):\n NKcE = '/consumers/'\n if qsJ6:\n NKcE = '%s?owner=%s' % (NKcE, qsJ6)\n return YKHO.conn.request_get(NKcE)", "def hjLm(YKHO, ySPe):\n return YKHO.consumers", "def hjLm(YKHO, h4N1, YwkQ):\n return [h4N1(queu...
[ "0.83497256", "0.7832849", "0.729111", "0.72533315", "0.71376973", "0.68193054", "0.6784742", "0.6703153", "0.64335144", "0.62510914", "0.6131793", "0.60752994", "0.6021412", "0.59981084", "0.5933628", "0.5879536", "0.57774824", "0.5666761", "0.56494814", "0.5622158", "0.5590...
0.8164376
1
Returns the managed object type identifier. Returns the object's type identifier for serialization purpose.
def jv4v(Emd4): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vcaS(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_type')", "def T9IL(Emd4):\n return Emd4.__name__", "def vcaS(YKHO):\n return YKHO._object_type", "def vcaS(YKHO):\n return YKHO._object_type", "def vcaS(YKHO):\n return YKHO._object_type", "def vcaS(YKHO):\n return YKHO._object_type...
[ "0.7556074", "0.7316642", "0.72474384", "0.72474384", "0.72474384", "0.72474384", "0.72474384", "0.72474384", "0.72474384", "0.72474384", "0.72474384", "0.72474384", "0.72474384", "0.72474384", "0.72285044", "0.7076919", "0.7048082", "0.6903485", "0.68923765", "0.67893", "0.6...
0.688472
19
Returns an instance of this class based on a dict object.
def jG8h(Emd4, U6EA, id=None, laGS=False, qsUe=[]): try: BWXx = None if not laGS and U6EA['value'] is not None: BWXx = MRxC.unhexlify(U6EA['value']) return Emd4(BWXx, name=U6EA['name'], created=U6EA['created'], id=id, consumers=qsUe) except KeyError as e: raise AJ5d.I...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CCiu(Emd4, tbx9: Dict):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(...
[ "0.8108667", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "0.8083492", "...
0.0
-1
Time (in seconds since the epoch) at which this token expires.
def Uas0(YKHO) -> h8nf[int]: return YWvJ(h8nf[int], YKHO.get('expiretime'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OSTo(YKHO):\n return int(P9SZ.oauth_authorization_token_expiry_time)", "def OBx7(YKHO) -> float:\n return qe4Y.get(YKHO, 'expiration_time')", "def PiTA(YKHO) -> qcWV:\n return YKHO.token_generated + fCoM(seconds=YKHO.TOKEN_VALID_DURATION_IN_SECONDS)", "def erTT(YKHO):\n return int(P9SZ.oauth_...
[ "0.80216044", "0.7992464", "0.79228866", "0.7869392", "0.7742204", "0.77305025", "0.7667322", "0.7568714", "0.7555451", "0.7539393", "0.7539393", "0.7514547", "0.74964774", "0.7468877", "0.74683106", "0.74616736", "0.7454417", "0.7447493", "0.7445783", "0.7438034", "0.7435332...
0.0
-1
Has this token expired?
def XTIS(YKHO) -> bool: Uas0 = YKHO.expireTime return Uas0 is not None and xOZo() >= Uas0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xc2J(YKHO):\n mMKc = 0.8\n M1QU = YKHO.token_info.get('expires_in')\n e2iN = YKHO.token_info.get('expiration')\n yYW1 = e2iN - M1QU * (1.0 - mMKc)\n vHj7 = int(ITS7.time())\n return yYW1 < vHj7", "def JmWR(YKHO, eOtH):\n wzkt = int(ITS7.time())\n return eOtH['expires_at'] - wzkt < 60"...
[ "0.8950841", "0.8837434", "0.8740115", "0.8715926", "0.8427294", "0.8404489", "0.8394081", "0.8350459", "0.8342791", "0.83048093", "0.8293791", "0.8265211", "0.82612497", "0.8230556", "0.8121222", "0.80605125", "0.80507374", "0.8029337", "0.80291307", "0.8023352", "0.8020581"...
0.7635544
55
The user that owns this token. Operations authorized by this token will be performed as this user.
def qsJ6(YKHO) -> mv1M: qsJ6 = YKHO.__owner if qsJ6 is None: if YKHO.role is W3NA.RESOURCE: N2DY = YKHO.getParam('resourceId') qsJ6 = eFqI(N2DY) else: qsJ6 = RndW() YKHO.__owner = qsJ6 return qsJ6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CBIr(YKHO):\n return YKHO._user", "def CBIr(YKHO):\n return YKHO._user", "def CBIr(YKHO):\n return YKHO._user", "def CBIr(YKHO):\n return YKHO._user", "def CBIr(YKHO):\n return YKHO._user", "def CBIr(YKHO):\n return YKHO._user", "def CBIr(YKHO):\n return YKHO._user", "def CBI...
[ "0.80326945", "0.80326945", "0.80326945", "0.80326945", "0.80326945", "0.80326945", "0.80326945", "0.80326945", "0.80326945", "0.80326945", "0.80326945", "0.8010212", "0.7966716", "0.7966716", "0.7966716", "0.7949502", "0.79467183", "0.7915059", "0.78516376", "0.784959", "0.7...
0.75190413
41
Sets the password for this token to a new random string. Returns the new password. Since only a hash is stored in the password database, it is not possible to retrieve it later.
def iTON(orzh: TokenDB, eOtH: Token) -> str: jTXt = nit2(length=16) tH7y = orzh.passwordFile tH7y.load_if_changed() tH7y.set_password(eOtH.getId(), jTXt) _u12(tH7y) return jTXt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jTXt(YKHO, uGpu: str):\n YKHO._password = vT87(uGpu)", "def G3s8(YKHO, uGpu):\n YKHO.password = vT87(uGpu)", "def G3s8(YKHO, jTXt):\n YKHO.pw_hash = vT87(jTXt)\n return YKHO.pw_hash", "async def set_new_password(YKHO, jTXt: str):\n NTfD = WR89.b64encode(Hy7s.urandom(20)).decode()\n Hvly...
[ "0.7963738", "0.7934844", "0.7627504", "0.7563624", "0.7550987", "0.7526733", "0.7492524", "0.73859394", "0.73859394", "0.73588175", "0.7328777", "0.7328777", "0.7328777", "0.7328777", "0.7328777", "0.7328777", "0.7328777", "0.7328777", "0.7328777", "0.7328777", "0.7328777", ...
0.7184175
46
Returns starting state of the board.
def W9gz(): return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO._start_state", "def Ee93():\n exwG = ahzX(mF_7, 5)\n r...
[ "0.8809215", "0.8809215", "0.8809215", "0.8809215", "0.8809215", "0.74344724", "0.742334", "0.7328245", "0.72898334", "0.72821885", "0.72821885", "0.7278382", "0.7248571", "0.7225358", "0.7225358", "0.7225358", "0.7225358", "0.7225358", "0.7225358", "0.7225358", "0.7225358", ...
0.0
-1
Returns set of all possible actions (i, j) available on the board.
def xASv(iBIi): Aofo = set() for YRbF in range(3): for r845 in range(3): if iBIi[YRbF][r845] == KAvf: Aofo.add((YRbF, r845)) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xASv(iBIi):\n Ylbp = set()\n for YRbF in range(len(iBIi)):\n for r845 in range(len(iBIi[0])):\n if iBIi[YRbF][r845] == KAvf:\n Ylbp.add((YRbF, r845))\n return Ylbp", "def xASv(YKHO):\n hksT = YKHO.locs[YKHO.player()]\n if hksT is None:\n return YKHO.libe...
[ "0.8078164", "0.7935423", "0.7917879", "0.7912585", "0.78729856", "0.7766741", "0.77509874", "0.77447766", "0.7738995", "0.7731153", "0.7730132", "0.7709082", "0.77006704", "0.76862395", "0.7676969", "0.76713663", "0.7665846", "0.7654127", "0.7642262", "0.7634384", "0.7632887...
0.7489719
36
Returns the winner of the game, if there is one.
def bHVe(iBIi): for YRbF in range(3): if iBIi[YRbF][0] == iBIi[YRbF][1] == iBIi[YRbF][2] and iBIi[YRbF][0] != KAvf: return iBIi[YRbF][0] if iBIi[0][YRbF] == iBIi[1][YRbF] == iBIi[2][YRbF] and iBIi[0][YRbF] != KAvf: return iBIi[0][YRbF] if (iBIi[0][0] == iBIi[1][1] == iBIi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bHVe(YKHO):\n if YKHO.done():\n return YKHO._winner\n else:\n return None", "def ND5o(YKHO):\n return YKHO.win_conditions()[0]", "def bHVe(YKHO):\n return YKHO.board.winner()", "def bHVe(YKHO):\n J2w6 = Bu_I.compute_winner_index(YKHO.result, YKHO.game)\n if J2w6 is False:\...
[ "0.84206235", "0.835801", "0.8288172", "0.81988835", "0.81988835", "0.8169495", "0.81211877", "0.80589795", "0.797053", "0.79523855", "0.7909753", "0.78956705", "0.7893406", "0.78890514", "0.7863156", "0.7852129", "0.7851237", "0.78320324", "0.78117144", "0.7769949", "0.77658...
0.0
-1
Returns 1 if X has won the game, 1 if O has won, 0 otherwise.
def f7Dd(iBIi): Rc3W = bHVe(iBIi) if Rc3W == EcVT: return 1 if Rc3W == LTX_: return -1 return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hHs1(YKHO):\n return YKHO.winner() == YKHO.X_VAL", "def oyg0(iBIi):\n bHVe(iBIi)\n c8fa = 0\n Jszs = 0\n for YRbF in range(3):\n for r845 in range(3):\n if iBIi[YRbF][r845] == LTX_:\n Jszs += 1\n elif iBIi[YRbF][r845] == EcVT:\n c8fa +...
[ "0.77431494", "0.7665777", "0.7627669", "0.76235044", "0.74548364", "0.744333", "0.7343317", "0.73383707", "0.73096186", "0.7305894", "0.7282681", "0.7275687", "0.7244229", "0.72328174", "0.7207191", "0.7182036", "0.71798617", "0.71759605", "0.7175524", "0.7167598", "0.715218...
0.6894454
52
Calculate euclidian distance between two 3D tensors.
def gpuR(WKvO, LVAh): exwG = WKvO.shape[0] r8hN = LVAh.shape[0] WKvO = ZylS.tile(ZylS.expand_dims(WKvO, 1), [1, r8hN, 1]) LVAh = ZylS.tile(ZylS.expand_dims(LVAh, 0), [exwG, 1, 1]) return ZylS.reduce_mean(ZylS.math.pow(WKvO - LVAh, 2), 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IlH0(O46v, Pwdg):\n assert O46v.shape[0] == Pwdg.shape[0], 'number of points are not the same'\n assert O46v.shape[1] == Pwdg.shape[1] == 3, 'points coordinates dimension is not 3'\n return ht2j.norm(O46v - Pwdg, dim=-1)", "def IlH0(O46v, Pwdg):\n assert O46v.shape[0] == Pwdg.shape[0], 'number of...
[ "0.7082067", "0.7075912", "0.6844642", "0.6831577", "0.6755801", "0.6747442", "0.67372245", "0.67323536", "0.6695755", "0.6681956", "0.66536087", "0.66136026", "0.65813905", "0.6572555", "0.6563987", "0.6561741", "0.65543365", "0.64993423", "0.6493629", "0.6491984", "0.648184...
0.6087605
69
Transform using the fit LabelEncoder.
def SZFh(YKHO, EcVT): return YKHO.encoder.transform(EcVT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WgYu(YKHO, EcVT, LVAh=None, **B2fa):\n YKHO._columns = EcVT.columns\n YKHO.categorical_cols = [fvDH for fvDH in EcVT.columns if fvDH in YKHO.categorical_cols or '_was_missing' in fvDH or '_has_outliers' in fvDH]\n WfCS = [fvDH for fvDH in YKHO.categorical_cols if fvDH in EcVT.columns]\n YKHO.labels...
[ "0.7521188", "0.7478458", "0.73546875", "0.7236271", "0.7133022", "0.7127802", "0.70791966", "0.70408285", "0.7005867", "0.6923364", "0.68934834", "0.68915945", "0.6889111", "0.6889111", "0.6861347", "0.68582934", "0.6849494", "0.6813112", "0.6759635", "0.6754463", "0.6754463...
0.0
-1
Transform labels back to original encoding.
def hKRt(YKHO, EcVT): return YKHO.encoder.inverse_transform(EcVT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M7Cn(YKHO):\n YKHO.labels = YKHO.labels - 1", "def gCn1(YKHO, Crrw):\n if YKHO._from_sklearn_rf:\n return 2.0 * Crrw - 1\n else:\n return Crrw", "def A3Jl(YKHO, Crrw):\n return Crrw", "def r9l1(YKHO, Crrw):\n r3zW = []\n for YRbF, ksLb in enumerate(Crrw.T):\n mcKu =...
[ "0.7135728", "0.68594676", "0.68194705", "0.67999405", "0.6765035", "0.6675403", "0.6670379", "0.6590517", "0.6487221", "0.64624244", "0.63774544", "0.6362304", "0.6355112", "0.6317783", "0.6316231", "0.6279766", "0.62710315", "0.6268286", "0.6261924", "0.625251", "0.620485",...
0.0
-1
Construct the Keras model
def n8cN(GhuM, zGAv=[8, 16, 32], LveS=[64], hr1G=0.5, K0do='Adam', b0Ix=0.001, oa0A=False): g4y1 = fhcK.Input(shape=GhuM) MKlR = g4y1 FpDN = dict(kernel_size=(3, 3), activation='relu', padding='same') for HJLc in zGAv: MKlR = fhcK.Conv2D(HJLc, **FpDN)(MKlR) MKlR = fhcK.MaxPooling2D(pool_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yRcF(YKHO):\n C3ST = ileL()\n C3ST.add(Ofph(64, 1, 3, 3, border_mode='full'))\n C3ST.add(MroH('relu'))\n C3ST.add(Ofph(64, 64, 3, 3))\n C3ST.add(MroH('relu'))\n C3ST.add(BzBX(poolsize=(2, 2)))\n C3ST.add(lARV(0.25))\n C3ST.add(Ofph(128, 64, 3, 3, border_mode='full'))\n C3ST.add(MroH(...
[ "0.8126029", "0.7958478", "0.7839114", "0.7812628", "0.7719412", "0.7712421", "0.76990473", "0.7687602", "0.76827484", "0.7680344", "0.76693684", "0.7665305", "0.7664865", "0.7652168", "0.76502407", "0.76473963", "0.764584", "0.7576775", "0.75757164", "0.7561414", "0.75564516...
0.0
-1
Creates a bar plot from the dataframe, with styling and additional input coming from the properties. Each column in the dataframe defines a series. Column names serve as labels for the legend. Group names (displayed on the x axis) are taken from the row index. The names of the two indices also appear in the legend and ...
def kFPe(jQ3Z, lhy8, M_u8=None, rGKQ=None): XP5J = u6dc if a88W.is_native_chart() else QrM1 def FQ0H(G1Hx): return lhy8[G1Hx] if G1Hx in lhy8 else None ppCi = 0.8 OM6R = 0.9 GbSm = 1 / 3 fUYa = oyIN.arange(len(jQ3Z.index), dtype=oyIN.float64) TVTK = ppCi / len(jQ3Z.columns) r2fz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GmZ4(jQ3Z: pd.DataFrame, wk71: Optional[Union[List[str], str]]=None, vSi4: Union[bool, str]='auto', leAC: str='{feature}', qOe5: str='{feature}', pmON: str='barplots/{feature}.png', _li_: bool=True, KoG3: Optional[Dict[str, str]]=None, JHpf: int=20, FNTW: float=0.3, Hd5H: float=0.2, H2v2: Optional[float]=None,...
[ "0.61717093", "0.6057396", "0.6044081", "0.5803584", "0.5764042", "0.5694868", "0.56504226", "0.5616363", "0.5607424", "0.55594355", "0.55544287", "0.5536022", "0.5534904", "0.55339026", "0.55120516", "0.55116045", "0.5486139", "0.5390346", "0.5381362", "0.5381301", "0.537862...
0.62322533
0