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
Combine an `Optional[A]` and an `Optional[B]` into an `Optional[(A, B)]` that maintains the effects of both `fa` and `fb`. >>> product(None, None) >>> product(1, None) >>> product(None, '2') >>> product(4, '2') (4, '2')
def Lx3t(Xvb7: Optional[A], fcLg: Optional[B]) -> h8nf[AzJI[k0lF, tjUW]]: def i_Or(jzdc: A) -> h8nf[AzJI[k0lF, tjUW]]: return jqqY(lambda Fg_i: (jzdc, Fg_i), fcLg) return EFDX(i_Or, Xvb7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yz7t(eHNT: Callable[[A], B_out], Xvb7: Optional[A]) -> h8nf[AzJI[k0lF, qzg7]]:\n return jqqY(lambda jzdc: (jzdc, eHNT(jzdc)), Xvb7)", "def Z4mj(jzdc, Fg_i):\n return jzdc * Fg_i", "def XwDE(jzdc: Any | None, Fg_i: Any | None) -> ImMB | None:\n pass", "def XwDE(YKHO, jzdc: dict | None, Fg_i: dict...
[ "0.7030095", "0.58897495", "0.58845186", "0.5876796", "0.58707553", "0.58041", "0.5802728", "0.5802728", "0.5689453", "0.5617789", "0.5617787", "0.5571631", "0.5522136", "0.55186445", "0.55170906", "0.5515702", "0.55142194", "0.5491137", "0.5459686", "0.535938", "0.535497", ...
0.81748164
0
Get X and Y dataset from single dataset, assumes last column in dataset is Y.
def W0nA(wDWA): EcVT = wDWA.iloc[:, :-1] fuBA = wDWA.iloc[:, -1:] return (EcVT, fuBA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RBnT(__n6: XDataSet) -> AzJI[eQHC.ArrayLike, eQHC.ArrayLike]:\n if isinstance(__n6, ooSo.DataArray):\n CjQX = __n6\n SLsv = __n6.coords[pexY(__n6)[0]]\n else:\n CjQX = __n6.data_vars[FC0H(__n6)]\n SLsv = __n6.coords[pexY(__n6)[0]]\n return (SLsv, CjQX)", "def EcRU(YKHO):\...
[ "0.7379864", "0.7257765", "0.69558173", "0.6884439", "0.68540764", "0.6829914", "0.6820933", "0.68193084", "0.68135923", "0.6805467", "0.6680536", "0.6662579", "0.66377354", "0.66362655", "0.66362655", "0.6620827", "0.6602865", "0.65948045", "0.6548593", "0.65150875", "0.6513...
0.8047596
0
Makes a random choice from a list of many items.
def kL0k(r7vd): r7vd = TW6e.remove_slashes(r7vd) try: en4D = tuKI.choice(r7vd) except: TW6e.log('!!Exception in function CHOICE!!', True) en4D = '' return en4D
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NYnK(IqQl):\n hlel = tuKI.choice(IqQl)\n return hlel", "def Acvy(*qIxc):\n return tuKI.choice(qIxc)", "def azh2(*qIxc):\n return tuKI.choice(qIxc)", "def MkiW(YKHO, list):\n return tuKI.choice(list)", "def nwH7(list):\n return tuKI.choice(list)", "def UIrZ(YKHO):\n return Acvy(YK...
[ "0.76982117", "0.74166334", "0.73623914", "0.7313618", "0.7275858", "0.72107565", "0.7171244", "0.7167361", "0.71636", "0.7106169", "0.7045712", "0.703517", "0.694526", "0.694526", "0.694526", "0.694526", "0.694526", "0.6932117", "0.69272006", "0.68982154", "0.6893053", "0....
0.0
-1
The server advertises an UpdateSequence number When a GetCapabilities request is made without an UPDATESEQUENCE parameter set, then the server returns most recent capabilities XML.
def YdH3(YKHO): y6Ax = {'VERSION': '1.0.0', 'SERVICE': 'WCS', 'REQUEST': 'GetCapabilities'} geh0 = YKHO.query_server(y6Ax) Z9JV = rKuS(geh0.text, 'xml') YKHO.assertTrue(Z9JV.find('WCS_Capabilities'), msg='The update sequence should not be a required parameter.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def keWz(YKHO):\n pass", "def W6El(YKHO):\n y6Ax = {'VERSION': '1.0.0', 'SERVICE': 'WCS', 'REQUEST': 'GetCapabilities', 'UPDATESEQUENCE': YKHO.VAR_LOW_UPDATESEQUENCE}\n geh0 = YKHO.query_server(y6Ax)\n Z9JV = rKuS(geh0.text, 'xml')\n YKHO.assertTrue(Z9JV.find('WCS_Capabilities'), msg='Lower update...
[ "0.7580895", "0.6832362", "0.6671565", "0.6625259", "0.6445883", "0.59325165", "0.54630256", "0.5362475", "0.531761", "0.5316696", "0.52597487", "0.5234548", "0.5228137", "0.5221395", "0.5219128", "0.5155465", "0.51534003", "0.5096174", "0.5037964", "0.49936274", "0.49786592"...
0.6831632
2
Sets the from_server_version of this InstanceClassifier.
def jjVG(YKHO, jjVG): YKHO._from_server_version = jjVG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KZVb(YKHO, KZVb):\n YKHO._server_version = KZVb", "def n0XJ(YKHO, xjh5):\n YKHO._vserver = xjh5", "def gRj_(YKHO, gRj_):\n YKHO._to_server_version = gRj_", "def xjh5(YKHO, xjh5):\n try:\n YKHO._vserver = xjh5\n except Exception as e:\n raise tTpl", "def DpZH(YKHO, DpZH):\n ...
[ "0.706459", "0.6297083", "0.6224619", "0.5875555", "0.5851999", "0.58103323", "0.57973003", "0.57380223", "0.5730319", "0.57284516", "0.57266396", "0.5608491", "0.5590049", "0.5563189", "0.55475545", "0.5528798", "0.5528798", "0.5528798", "0.5528798", "0.5528798", "0.5528798"...
0.8563553
0
Sets the item_version of this InstanceClassifier.
def UIdL(YKHO, UIdL): YKHO._item_version = UIdL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iFlf(YKHO, iFlf):\n YKHO._line_item_version = iFlf", "def R2V2(YKHO, DpZH):\n YKHO._version = DpZH", "def R2V2(YKHO, DpZH):\n YKHO.version = DpZH", "def dPFR(YKHO, DpZH):\n YKHO._version = DpZH", "def dPFR(YKHO, DpZH):\n YKHO.version = DpZH", "def DpZH(YKHO, DpZH):\n YKHO._version =...
[ "0.7047531", "0.6556103", "0.65207756", "0.6472331", "0.64527583", "0.6295823", "0.6295823", "0.6258697", "0.62432826", "0.62432826", "0.62432826", "0.62432826", "0.62432826", "0.62432826", "0.62432826", "0.62432826", "0.62432826", "0.62432826", "0.62432826", "0.62432826", "0...
0.8098888
0
Sets the version of this InstanceClassifier.
def DpZH(YKHO, DpZH): YKHO._version = DpZH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R2V2(YKHO, DpZH):\n YKHO.version = DpZH", "def dPFR(YKHO, DpZH):\n YKHO.version = DpZH", "def R2V2(YKHO, DpZH):\n YKHO._version = DpZH", "def dPFR(YKHO, DpZH):\n YKHO._version = DpZH", "def DpZH(YKHO, DpZH: float):\n YKHO.__version = DpZH", "def DpZH(YKHO, DpZH):\n YKHO._version.val...
[ "0.77925", "0.77718925", "0.7763099", "0.7697258", "0.7538182", "0.7437049", "0.7432217", "0.7432217", "0.73481625", "0.72892857", "0.72588944", "0.72588944", "0.72257096", "0.7209716", "0.7175568", "0.7098596", "0.7098596", "0.7098596", "0.70730007", "0.7013272", "0.7011938"...
0.73700994
14
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
Creates a Kinesis data stream. A stream captures and transports data records that are continuously emitted from different data sources or producers . Scaleout within a stream is explicitly supported by means of shards, which are uniquely identified groups of data records in a stream. You specify and control the number ...
def ZM8W(YKHO, PAlO: str, x89W: int): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MPzk(YKHO, kgZu: str, mvI0: int) -> str:\n G9jH.info(f'Creating Kinesis stream {kgZu} ... ')\n if not OTzT._stream_exists(kgZu):\n YKHO._kinesis_client.create_stream(StreamName=kgZu, ShardCount=mvI0)\n while YKHO._kinesis_client.describe_stream_summary(StreamName=kgZu).get('StreamDescriptio...
[ "0.74251246", "0.72805214", "0.72312933", "0.7171223", "0.71269697", "0.65281594", "0.64399135", "0.6331115", "0.6323483", "0.61752325", "0.60981727", "0.6049293", "0.6030106", "0.5854162", "0.58454394", "0.582414", "0.5813062", "0.5798466", "0.57494247", "0.5711269", "0.5711...
0.7372683
1
Decreases the Kinesis data stream's retention period, which is the length of time data records are accessible after they are added to the stream. The minimum value of a stream's retention period is 24 hours. This operation may result in lost data. For example, if the stream's retention period is 48 hours and is decreas...
def JaBE(YKHO, PAlO: str, YlTp: int): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kOQM(YKHO, PAlO: str, YlTp: int):\n pass", "def oC4a(YKHO) -> lTJ4.aws_logs.RetentionDays:\n return YKHO._values.get('retention')", "def oC4a(YKHO):\n return YKHO._message['retention']", "def oC4a(YKHO):\n return YKHO._message['retention']", "def RAiD(YKHO) -> h8nf[int]:\n return qe4Y.ge...
[ "0.6500077", "0.5698723", "0.56850916", "0.56850916", "0.5602113", "0.55517215", "0.55517215", "0.5551051", "0.5551051", "0.5551051", "0.5526686", "0.5526686", "0.5526686", "0.5526686", "0.5526686", "0.5526686", "0.5526686", "0.5526686", "0.5521851", "0.55104935", "0.5452088"...
0.73897743
0
Deletes a Kinesis data stream and all its shards and data. You must shut down any applications that are operating on the stream before you delete the stream. If an application attempts to operate on a deleted stream, it receives the exception ``ResourceNotFoundException`` . If the stream is in the ``ACTIVE`` state, you...
def Efju(YKHO, PAlO: str, wgaX: bool=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tUsj(YKHO, eucH, MLMj):\n if eucH is None:\n raise TypeError\n if MLMj is None:\n raise TypeError\n geh0 = G4JS.delete(YKHO.__url + YKHO.__streamsPath.format(tenant_id=YKHO.__tenant, namespace_id=eucH, stream_id=MLMj), headers=YKHO.__qiHeaders())\n if geh0.status_code < 200 or geh0.st...
[ "0.7297563", "0.7129988", "0.7050293", "0.7026398", "0.7016055", "0.6822197", "0.63165486", "0.6211569", "0.61749655", "0.59782", "0.5959144", "0.5941857", "0.59141445", "0.5901027", "0.58889925", "0.57890636", "0.57467425", "0.57403463", "0.5682296", "0.56770027", "0.5656426...
0.6798047
6
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.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013", "0.77257013"...
0.76359147
34
Create new rz single qubit gate.
def FIMM(YKHO, rVnq, t3jy, Jdbc=None): super().__init__('rz', [rVnq], [t3jy], Jdbc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f9sI():\n return iOgy(qw7D([[1.0, 0.0], [0.0, -1.0]]))", "def dnz0(YKHO, rVnq, vexM):\n return YKHO._attach(cKtp(rVnq, vexM, YKHO))", "def q3i8(YKHO, _j5U, Wskb):\n tlxW = oyIN.exp(-1j * (Wskb / 2))\n JyK9 = oyIN.exp(1j * (Wskb / 2))\n WKvO = oyIN.array([[tlxW, 0], [0, JyK9]], dtype=oyIN.csi...
[ "0.6668883", "0.6495947", "0.6483718", "0.6397753", "0.62832856", "0.6230417", "0.61718035", "0.6163849", "0.598596", "0.5941287", "0.5837884", "0.58221734", "0.5780904", "0.5718368", "0.57041466", "0.570232", "0.5696702", "0.56888616", "0.5658884", "0.5629922", "0.561841", ...
0.5590152
22
Return the adjusted damage if it is negative.
def HEOM(YKHO, a033): if a033 and a033 < 0: return 0.1 return a033
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mbKo(YKHO):\n return 0.5 + YKHO._experience", "def Ha7s(YKHO, a033):\n YKHO._health = max(0, YKHO._health - a033)", "def PBN5(YKHO) -> float:\n vHj7 = YKHO._timer.get_current_time()\n if vHj7 - YKHO._last_attack_time >= YKHO._recharge:\n YKHO._last_attack_time = vHj7\n return 0.05...
[ "0.75374764", "0.73958206", "0.7250469", "0.7215708", "0.7201717", "0.71437", "0.71356255", "0.71274394", "0.71009725", "0.70823544", "0.7052405", "0.70194745", "0.69330007", "0.6908256", "0.6892241", "0.6860879", "0.6842636", "0.68359894", "0.6824278", "0.681674", "0.6803072...
0.8469427
0
Return a random number given a range (defaults 1100).
def rKSe(YKHO, r9zM=100): return tuKI.randint(1, r9zM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LHKC(fFAy=0, QI1n=100):\n return ajWY(fFAy, QI1n)", "def X2D5(min: int, max: int) -> int:\n return tuKI.randrange(min, max, 1)", "def qukk(YKHO, kpLf, JCoA):\n return vPAK", "def RjKZ(min, max):\n return ajWY(min, max)", "def oRCQ(YKHO, yKcO, JCyR):\n return tuKI.randint(int(yKcO), int(J...
[ "0.80294394", "0.7835341", "0.7764615", "0.77182907", "0.7659454", "0.7570175", "0.75600284", "0.75315434", "0.75083154", "0.7505589", "0.7505087", "0.7484883", "0.7478862", "0.74663687", "0.7415079", "0.7400348", "0.7400078", "0.73533255", "0.7348148", "0.7343598", "0.732005...
0.0
-1
Checks for valid column
def Vqt2(YKHO, fvDH): if fvDH not in YKHO.columns: print('ERROR: column value must be between A and H, {} is invalid'.format(fvDH)) return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V6qF(YKHO, iVRZ):\n if iVRZ != YKHO.column and iVRZ.unspecialize() != YKHO.column:\n raise ValueError(\"Can't load unknown column %s\" % iVRZ)", "def Yzs1(YKHO, jQ3Z, iVRZ, LQCW, *qIxc, **B2fa):\n pass", "def EVnf(YKHO, fvDH: str) -> None:\n if fvDH.lower() not in YKHO.col_names:\n r...
[ "0.78284794", "0.7649682", "0.7618741", "0.75958234", "0.74017715", "0.7323084", "0.72778285", "0.72293675", "0.72181475", "0.7176236", "0.7147578", "0.71388364", "0.70431226", "0.70214003", "0.70029074", "0.7002133", "0.6996975", "0.6988551", "0.6951902", "0.69385546", "0.69...
0.8311377
0
Check if any of the fleet's aliens have reach the edge and then act accordingly.
def YSO3(L5aE, SaI9): for oeTy in SaI9.sprites(): if oeTy.check_edges(): kS1e(L5aE, SaI9) break
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DjwX(tJm0, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(tJm0, SaI9)\n break", "def DjwX(dlM1, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(dlM1, SaI9)\n break", "def DjwX(tJm0, SaI9):\n for oeTy...
[ "0.8222167", "0.81181604", "0.8107574", "0.80286777", "0.7997603", "0.793507", "0.7873397", "0.7849189", "0.7849189", "0.7849189", "0.7849189", "0.7849189", "0.7849189", "0.7849189", "0.7849189", "0.7849189", "0.78449464", "0.7833861", "0.783235", "0.7832158", "0.7832158", ...
0.77901256
24
Check if the fleet is at the edge. The check moves the fleet downwards, which is then followed by updating the state of all the aliens.
def bOBM(L5aE, SaI9): YSO3(L5aE, SaI9) SaI9.update()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DjwX(YqMg, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(YqMg, SaI9)\n break", "def DjwX(tJm0, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(tJm0, SaI9)\n break", "def DjwX(dlM1, SaI9):\n for oeTy...
[ "0.7937738", "0.79356545", "0.78952444", "0.7793614", "0.77740407", "0.77177316", "0.77177316", "0.77177316", "0.77177316", "0.7711101", "0.75985116", "0.7587615", "0.7524469", "0.75049514", "0.74782324", "0.7475642", "0.7459024", "0.7459024", "0.74470484", "0.74470484", "0.7...
0.0
-1
Creates a new `SparseTensor` with the given indices having value 1
def lKVV(_0VL, thZl, yDqo=ZylS.float32, mWFP='sparse_ones'): with ZylS.name_scope(name=mWFP): _0VL = wVie(_0VL, ZylS.int64) thZl = wVie(thZl, ZylS.int64) Nepf = _0VL.shape hkxX = ZylS.ones([Nepf[0]], yDqo) return ZylS.SparseTensor(_0VL, hkxX, thZl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S96P(_0VL, thZl, yDqo=ZylS.float32, mWFP='sparse_zeros'):\n with ZylS.name_scope(name=mWFP):\n _0VL = wVie(_0VL, ZylS.int64)\n thZl = wVie(thZl, ZylS.int64)\n Nepf = ZylS.shape(_0VL)\n hkxX = ZylS.zeros([Nepf[0]], yDqo)\n return ZylS.SparseTensor(_0VL, hkxX, thZl)", "def...
[ "0.7071141", "0.6934229", "0.6697572", "0.663448", "0.6616109", "0.6556931", "0.64782107", "0.6411085", "0.6408627", "0.63769126", "0.63769126", "0.63769126", "0.63769126", "0.63769126", "0.63769126", "0.62596756", "0.624197", "0.62269914", "0.6220703", "0.6196627", "0.607433...
0.81192136
0
Returns a `SparseTensor` with the values containing column indices for the active values on a given `SparseTensor`. !!! example "Use Case" To be used with ``embedding_lookup_sparse`` when we need two `SparseTensor` objects with the indices and values
def gPwN(C_P4, mWFP='sparse_indices'): with ZylS.name_scope(name=mWFP): if len(C_P4.get_shape().dims) == 1: [HwFS] = ZylS.unstack(C_P4.indices, num=1, axis=-1) else: bGrB, HwFS = ZylS.unstack(C_P4.indices, num=2, axis=-1) l8bj = ZylS.SparseTensor(C_P4.indices, HwFS, C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gosH(nPrm):\n _0VL = oyIN.where(nPrm)\n return ZylS.SparseTensor(oyIN.stack(_0VL, axis=-1), nPrm[_0VL], dense_shape=nPrm.shape)", "def LoH6(On0F, qIxc):\n On0F = On0F.tocoo().astype(oyIN.float32)\n _0VL = vhpA(oyIN.vstack((On0F.row, On0F.col)), qIxc, ht2j.long)\n hkxX = vhpA(On0F.data, qIxc)\n...
[ "0.6704669", "0.6483361", "0.64119947", "0.6411606", "0.630703", "0.6264656", "0.6240671", "0.62229514", "0.6196842", "0.61843777", "0.6173703", "0.617097", "0.6169388", "0.6157158", "0.61458755", "0.61299026", "0.6100045", "0.60579944", "0.60530454", "0.6025651", "0.6019977"...
0.7302241
0
Performs a dropout on a `SparseTensor`. With probability `keep_prob`, outputs the input element scaled up by `1 / keep_prob`, otherwise outputs `0`. The scaling is so that the expected sum is unchanged.
def zSpM(q9fS, Q7Be=0.2, NXpY=True, yokr=None, ZHfW=None, H8Xg=False, Cwt5=False, mWFP='sparse_dropout'): with ZylS.name_scope(name=mWFP): thZl = q9fS.dense_shape if not q9fS.values.dtype.is_floating: raise ValueError('sp_tensor has to be a floating point tensor since its values are goin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zSpM(WKvO, sMyr):\n FzVw = ZylS.random_uniform(ZylS.shape(WKvO.values))\n Vwv8 = FzVw < sMyr\n TYvy = ZylS.sparse_retain(WKvO, Vwv8)\n return TYvy * (1.0 / sMyr)", "def J264(WKvO, sMyr, xttL):\n ZqPb = [xttL]\n FzVw = sMyr\n FzVw += ZylS.random_uniform(ZqPb)\n Vwv8 = ZylS.cast(ZylS.fl...
[ "0.80341244", "0.7837806", "0.77966064", "0.77148974", "0.7713833", "0.7707935", "0.77069265", "0.76909643", "0.76909643", "0.76909643", "0.7686543", "0.74426943", "0.7213391", "0.7154424", "0.68859416", "0.6830406", "0.668882", "0.6684447", "0.6643993", "0.6589108", "0.65190...
0.7052322
14
Computes embeddings for the given ids and weights. !!! info assumes that there is at least one id for each row in the dense tensor represented by sp_ids (i.e. there are no rows with empty features), and that all the indices of sp_ids are in canonical rowmajor order. It also assumes that all id values lie in the range [...
def ZhUM(NArs, q9fS, Jt4_=None, wTln=None, mWFP='embedding_lookup_sparse'): if Jt4_ is None: G9jH.warn('The default value of combiner will change from "mean" to "sqrtn" after 2016/11/01.') Jt4_ = 'mean' if Jt4_ not in ('mean', 'sqrtn', 'sum'): raise ValueError("combiner must be one of 'm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hlay(YKHO, A07C, CzSl):\n qEOb = ZylS.keras.backend.is_sparse(A07C)\n if qEOb:\n p57o = ZylS.nn.embedding_lookup(params=CzSl, ids=A07C.values)\n q4ee = ZylS.shape(p57o)[1]\n k6Bn = ZylS.reshape(p57o, [-1])\n sE5g = ZylS.contrib.seq2seq.tile_batch(A07C.indices, q4ee)\n U...
[ "0.6997252", "0.65980786", "0.64983684", "0.63965154", "0.61865354", "0.6150832", "0.6147169", "0.6070124", "0.59854215", "0.59738564", "0.59552807", "0.58604735", "0.57783055", "0.5776121", "0.57671404", "0.5751254", "0.5671116", "0.56687236", "0.5663515", "0.5661572", "0.56...
0.6402022
3
sparse overlap Returns a `SparseTensor` where the indices of the overlapping indices in the two sparse tensors with the values of the first one.
def nRSu(qhgy, E38e, mWFP='sparse_overlap'): with ZylS.name_scope(mWFP): Zh4Z = RsfQ.sparse_ones(qhgy.indices, qhgy.dense_shape) mAXl = RsfQ.sparse_ones(E38e.indices, E38e.dense_shape) dkUP = ZylS.sparse.add(Zh4Z, mAXl) tRle = ZylS.equal(dkUP.values, 2.0) P_Vo = S96P(dkUP.ind...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nRSu(qhgy, E38e, mWFP='sparse_overlap'):\n with ZylS.name_scope(mWFP):\n Zh4Z = lKVV(qhgy.indices, qhgy.dense_shape)\n mAXl = lKVV(E38e.indices, E38e.dense_shape)\n dkUP = ZylS.sparse.add(Zh4Z, mAXl)\n tRle = ZylS.math.equal(dkUP.values, 2.0)\n P_Vo = S96P(dkUP.indices, dk...
[ "0.78351104", "0.62867117", "0.62867117", "0.62867117", "0.6098432", "0.60426104", "0.6011733", "0.59959626", "0.5951843", "0.5728195", "0.5652211", "0.56000066", "0.5579257", "0.5552001", "0.55421996", "0.5538643", "0.5512414", "0.5508968", "0.55063933", "0.54854625", "0.542...
0.78560036
0
gather_sparse gather rows from a sparse tensor by the given ids and returns a sparse tensor !!! warning gathering from a `SparseTensor` is inefficient
def reiZ(q9fS, A07C, mWFP='gather_sparse'): with ZylS.name_scope(name=mWFP): A07C = ZylS.cast(A07C, ZylS.int64) A07C = ZylS.reshape(A07C, [-1]) uBB3 = lKVV(q9fS.indices, q9fS.dense_shape, dtype=ZylS.int64) P3RF = ZylS.sparse.reduce_sum(uBB3, axis=-1) P3RF.set_shape([q9fS.get_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ffaq(vhpA):\n if isinstance(vhpA, ZylS.sparse.SparseTensor):\n return vhpA\n _0VL = ZylS.compat.v1.where(vhpA)\n hkxX = ZylS.compat.v1.gather_nd(vhpA, _0VL)\n ROpF = ZylS.compat.v1.shape(vhpA, out_type=ZylS.dtypes.int64)\n return ZylS.sparse.SparseTensor(_0VL, hkxX, ROpF)", "def gPwN(C_...
[ "0.63032967", "0.6270219", "0.6254374", "0.6184746", "0.613162", "0.6035414", "0.6003903", "0.594255", "0.5848848", "0.58356404", "0.58241093", "0.58008647", "0.5791648", "0.5783563", "0.5780494", "0.5753978", "0.5744963", "0.5738739", "0.5735187", "0.57282", "0.5713725", "...
0.8205268
0
creates a tensor with a grid 2d coordinates
def Tmve(ROpF, mWFP='grid_2d'): ROpF = wVie(ROpF, ZylS.int32) with ZylS.name_scope(mWFP): WKvO = ZylS.range(ROpF[0]) LVAh = ZylS.range(ROpF[1]) WKvO = WKvO[ZylS.newaxis, :, ZylS.newaxis] LVAh = LVAh[:, ZylS.newaxis, ZylS.newaxis] return ZylS.reshape(ZylS.concat([WKvO + Zy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kt1c(jHsn: int=20, pvd3: int=20) -> ht2j.Tensor:\n yqRF, MZBS = ht2j.meshgrid([ht2j.arange(pvd3), ht2j.arange(jHsn)])\n return ht2j.stack((MZBS, yqRF), 2).view(1, 1, pvd3, jHsn, 2).float()", "def XkZJ(no3c: Tuple) -> ht2j.Tensor:\n CAzz = ht2j.linspace(-1, 1, no3c[0])\n Jd40 = ht2j.linspace(1, -1...
[ "0.8172062", "0.716689", "0.70735604", "0.7058791", "0.70305765", "0.7013805", "0.6985125", "0.6938981", "0.6811195", "0.67838883", "0.67684346", "0.67684346", "0.6745052", "0.6711233", "0.66992056", "0.66968185", "0.66814446", "0.65972775", "0.6594395", "0.65371376", "0.6501...
0.7357866
1
sparse_put Changes a given tf.SparseTensor according to the updates specified in a tf.SparseTensor. Creates a new tensor where the values of the updates override the values in the original tensor. The input tensors must have the same `dense_shape`.
def RUP4(q9fS, dDjt, mWFP='sparse_put'): with ZylS.name_scope(name=mWFP): if dDjt.dtype != q9fS.dtype: dDjt = ZylS.cast(dDjt, q9fS.dtype) a8_d = ZylS.shape(dDjt.values) qYtD = ZylS.SparseTensor(dDjt.indices, ZylS.zeros(a8_d, dtype=ZylS.float32), dDjt.dense_shape) sR0f = Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NpNj(vhpA, dDjt, mWFP='put'):\n vhpA = wVie(vhpA)\n with ZylS.name_scope(name=mWFP):\n if dDjt.dtype != vhpA.dtype:\n dDjt = ZylS.cast(dDjt, vhpA.dtype)\n Wc5J = ZylS.ones(shape=ZylS.shape(dDjt.values))\n GOF9 = ZylS.SparseTensor(indices=dDjt.indices, values=Wc5J, dense_sh...
[ "0.70373046", "0.66674787", "0.6619643", "0.62911457", "0.6287646", "0.6273896", "0.6242214", "0.6177862", "0.6138615", "0.59783167", "0.59280026", "0.5916153", "0.591321", "0.59031725", "0.58682746", "0.58393985", "0.5823477", "0.5805557", "0.5789369", "0.5763289", "0.571949...
0.7845604
0
Loads YAML from docstring.
def VPFP(HeCJ): Quzb = HeCJ.split('\n') for d6pt, zFiD in enumerate(Quzb): zFiD = zFiD.strip() if zFiD.startswith('---'): KZYL = d6pt break else: return None oUnD = '\n'.join(Quzb[KZYL:]) return eJb6.load(oUnD, Loader=eJb6.SafeLoader)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cv0L(MZML, f9B0=True):\n if MZML:\n CxU_ = MZML.find('---')\n else:\n CxU_ = -1\n if CxU_ != -1:\n Ul2G = MZML[CxU_:]\n if f9B0:\n return eJb6.load(Ul2G)\n else:\n return Ul2G\n return None", "def XNDR(YKHO, HeCJ):\n Quzb = RZw2(HeCJ).sp...
[ "0.76339746", "0.74546236", "0.7047607", "0.6972752", "0.67227626", "0.6716625", "0.66499424", "0.6621848", "0.66060007", "0.6582779", "0.65827745", "0.65425396", "0.6447841", "0.6437924", "0.6422325", "0.64182013", "0.64106387", "0.6393981", "0.6349503", "0.63493043", "0.633...
0.7656927
0
Convert the path_matrix to a list of (x,y) tuples describing a path from the robot_pose and the goal_pose.
def UTWa(YKHO, xLJL, FGW3): XP5J = YKHO.gp pmON = [0 for BWXx in range(FGW3)] pmON[0] = XP5J YPaw = 1 while XP5J != YKHO.rp: Pldv = xLJL[XP5J[0]][XP5J[1]] pmON[YPaw] = Pldv XP5J = Pldv YPaw += 1 pmON[:] = (BWXx for BWXx in pmON if BWXx != 0) pmON = list(revers...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z8ag(YKHO):\n ckRy = []\n LGDn = [(iVRZ, YKHO.__last_move[1]) for iVRZ in range(len(YKHO.__board))]\n ckRy.append(LGDn)\n O_5w = [(YKHO.__last_move[0], rdlD) for rdlD in range(len(YKHO.__board[0]))]\n ckRy.append(O_5w)\n Ulw7 = YKHO.path_in_direction(_apf.RIGHT_DIAG_DIRECTION)\n DVb0 = YKH...
[ "0.63723624", "0.6304231", "0.62805974", "0.62398916", "0.61780787", "0.6174099", "0.6148605", "0.6035247", "0.6014033", "0.60015666", "0.5998591", "0.5962544", "0.59569186", "0.59408605", "0.58778465", "0.5857848", "0.5838531", "0.5838064", "0.58341604", "0.5811597", "0.5741...
0.6333202
1
Gets the ``AssessmentPartList`` resulting from a search.
def TNft(YKHO): return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def piIF(YKHO, ibuT):\n xUwc = zyrs('assessment_authoring', collection='AssessmentPart', runtime=YKHO._runtime)\n Aofo = xUwc.find(dict({'assessmentId': str(ibuT)}, **YKHO._view_filter()))\n return ei4T.AssessmentPartList(Aofo, runtime=YKHO._runtime)", "def PJbh(YKHO, EvDV):\n xUwc = zyrs('assessment...
[ "0.71384794", "0.6721838", "0.6497274", "0.63559484", "0.6237575", "0.62126535", "0.6202016", "0.6193999", "0.61601824", "0.6122931", "0.6081813", "0.6018861", "0.5601221", "0.5572433", "0.5568156", "0.55635476", "0.5504999", "0.54963875", "0.5495143", "0.5459413", "0.5458396...
0.6802466
1
Gets the ``SequenceRuleList`` resulting from a search.
def OaCV(YKHO): return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BX8i(YKHO) -> x1iM[c4EF]:\n return YKHO.__rules", "def cipJ(YKHO, PFvQ):\n return ei4T.SequenceRuleList([])", "def BX8i(YKHO) -> list:\n nVWr = YKHO.device.authenticated_request('GET', f'firewall/filter/searchRule')\n if 'rows' in nVWr:\n return JhHK(nVWr['rows'])\n return []", "def...
[ "0.6093035", "0.6067929", "0.5991962", "0.5983976", "0.5949342", "0.5881015", "0.58759886", "0.58470225", "0.5819341", "0.5749098", "0.57403934", "0.5732459", "0.57075024", "0.56862104", "0.55977434", "0.55820966", "0.5557964", "0.55406713", "0.5539536", "0.5489358", "0.54573...
0.64474994
0
Queries and loads data from a SQL Server table into a data frame.
def N2M3(xDcj, N5z6, NCls, LDGb=None): w2B8 = DcSJ(N5z6, NCls) jQ3Z = rLdf.read_sql(xDcj, w2B8, LDGb) w2B8.close() return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jtDf(KQro, UzPC) -> hxoQ:\n return EcvP(KQro, UzPC)", "def JIbs(GTA_):\n Tn79 = rLdf.read_sql_table(GTA_, con=eHpk, parse_dates=['posting_date', 'posting_updated'], chunksize=100)\n return Tn79", "def XCuT(Pe9W):\n w2B8 = lxP0()\n jQ3Z = rLdf.read_sql_query(Pe9W, w2B8)\n w2B8.close()\n ...
[ "0.7907145", "0.78553134", "0.76772666", "0.76201457", "0.74220055", "0.7367646", "0.7324506", "0.7278677", "0.72683334", "0.72603756", "0.7237645", "0.7215419", "0.72092617", "0.72092617", "0.71994865", "0.71994865", "0.7113125", "0.7097422", "0.70681083", "0.70595956", "0.7...
0.6907263
32
Creates a 1D empirical cdf.
def yGyx(mvm2, IotL=True): if isinstance(mvm2, oyIN.ndarray): def KXE2(wEf2): if wEf2 == 0.0: return 0.0 else: YFZm = mvm2 <= wEf2 if IotL: YFZm = oyIN.mean(YFZm) return YFZm return oyIN.vect...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzER(YKHO) -> ZvKj:\n return ZvKj(distribution=YKHO._distribution, method_name='cdf', name='CDF', parent=YKHO)", "def YzER(YKHO) -> Mahw:\n return Mahw(distribution=YKHO._distribution, method_name='cdf', name='CDF', parent=YKHO)", "def YzER(YKHO, WKvO):\n pass", "def YzER(YKHO):\n pass", "d...
[ "0.70387614", "0.67223114", "0.6661569", "0.6501097", "0.6348051", "0.63439536", "0.63279164", "0.62363976", "0.61319", "0.61206144", "0.61067444", "0.60525936", "0.5951758", "0.58855516", "0.58792", "0.57410634", "0.57283974", "0.57272446", "0.57030636", "0.57027274", "0.569...
0.0
-1
Computes root mean square error.
def iAxY(cQCM, aMgO): return oyIN.sqrt(oyIN.mean((cQCM.squeeze() - aMgO.squeeze()) ** 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())", "def _td_(YKHO) -> float:\n return YKHO._call_java('rootMeanSquaredError')", "def SDab(P1dF):\n return oyIN.average(P1dF ** 2)", "def ewIN(WKvO, LVAh):\n return oyIN.sqrt(((WKvO - LVAh) ** 2).mean())", "def FSiB(P1dF):\n return ...
[ "0.8350498", "0.7964056", "0.7772084", "0.774278", "0.7741155", "0.77141416", "0.76645064", "0.7480241", "0.7465429", "0.745044", "0.744967", "0.7424529", "0.7422351", "0.734754", "0.7316546", "0.72952366", "0.72447366", "0.72420675", "0.72420675", "0.71603304", "0.70873827",...
0.0
-1
Computes approximate DICE coefficient as a loss by using the negative, computed with the Keras backend. The overlap\ and total are offset to prevent 0/0, and the values are not rounded in order to keep the gradient information.
def MU3M(Y8eF, aMgO): hEsa = nMvt.flatten(Y8eF) mMQR = nMvt.flatten(aMgO) yHH9 = nMvt.sum(hEsa * mMQR) wjRY = nMvt.sum(hEsa * hEsa) + nMvt.sum(mMQR * mMQR) return -(2 * yHH9 + 1e-10) / (wjRY + 1e-10)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l5oK(Y8eF, aMgO):\n return 1 - eI8L(Y8eF, aMgO)", "def l5oK(Y8eF, aMgO):\n return 1 - eI8L(Y8eF, aMgO)", "def l5oK(Y8eF, aMgO):\n return -eI8L(Y8eF, aMgO, 1)", "def l5oK(Y8eF, aMgO):\n N77f = 1 - eI8L(Y8eF, aMgO)\n return N77f", "def HFFJ(o3Uj, yLaY):\n return -ZP7h(o3Uj, yLaY)", "d...
[ "0.6755653", "0.6737627", "0.67048365", "0.66481954", "0.664375", "0.65329117", "0.65102726", "0.6263753", "0.614769", "0.60842484", "0.6083483", "0.60600334", "0.60459024", "0.60327506", "0.5991667", "0.5977697", "0.5960159", "0.5960159", "0.5939856", "0.59331614", "0.592892...
0.6990469
0
Return number of false negatives
def Rw7j(Y8eF, aMgO): return Y8eF * (1 - nMvt.round(aMgO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fr7K(YKHO, WKvO):\n return int(oyIN.sum(YKHO.false_negatives_per_sample(WKvO), axis=0))", "def Ma7R(aPd6):\n nMvt = 0\n for YRbF in aPd6:\n if YRbF < 0:\n nMvt += 1\n else:\n pass\n return nMvt", "def LobU(YKHO, WKvO):\n return int(oyIN.sum(YKHO.false_posi...
[ "0.8259997", "0.75693554", "0.75577015", "0.7537353", "0.74386", "0.7393391", "0.7298489", "0.728042", "0.72589505", "0.7046427", "0.69907284", "0.6821047", "0.6811061", "0.6781584", "0.6628812", "0.6609606", "0.6534755", "0.6482979", "0.64675725", "0.6460702", "0.6424642", ...
0.0
-1
Return sensitivity (how many of the positives were detected?)
def BYBV(Y8eF, aMgO): HRJ_ = nMvt.sum(wXuO(Y8eF, aMgO)) FYKK = nMvt.sum(Rw7j(Y8eF, aMgO)) return HRJ_ / (HRJ_ + FYKK + nMvt.epsilon())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYBV(YKHO) -> int:\n return YKHO._sensitivity", "def BYBV(YKHO):\n return YKHO._sensitivity", "def BYBV(aEqx, PjQx):\n X22G = oyIN.sum(aEqx)\n IWKA = oyIN.sum(PjQx[aEqx > 0])\n return IWKA / X22G", "def BYBV(YKHO):\n return YKHO.TP / (YKHO.TP + YKHO.FN)", "def BYBV(Y8eF, aMgO, gwAu=0....
[ "0.7891885", "0.7690274", "0.7567897", "0.7371469", "0.70993376", "0.70856404", "0.70578176", "0.702007", "0.69648224", "0.68575674", "0.67977786", "0.67505306", "0.6735019", "0.6618205", "0.66128665", "0.6600335", "0.6593073", "0.65734416", "0.65277106", "0.64911693", "0.641...
0.68408644
10
Removes the "xmlns=" part from file content because lxml api supports this part only by specifying exactly its value whenever we want to access a part of xml content, and its value can change between web.xml files.
def jwdW(bWm7): if not 'xmlns=' in bWm7: return bWm7 ZJTL = bWm7.find('xmlns=') aXgE = bWm7.find('"', ZJTL) if aXgE < 0: return bWm7 XyQx = bWm7.find('"', aXgE + 1) if XyQx < 0: return bWm7 return bWm7.replace(bWm7[ZJTL:XyQx + 1], '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def as4z(YKHO, QToG):\n QToG = ZbWC.sub('xmlns=\".*?\"', '', QToG)\n return QToG", "def nBFs(YKHO):\n j93S = '<?xml version=\"1.0\"?><html xmlns=\"http://www.w3.org/TR/REC-html40\"><body xmlns=\"\"></body></html>'\n Nqp_ = wCU5.parseString(j93S).toxml()\n YKHO.assertEqual(j93S, Nqp_)", "def gUYg...
[ "0.6530373", "0.6085902", "0.5989508", "0.59679854", "0.59195006", "0.5788863", "0.56758827", "0.5642752", "0.5635014", "0.5629119", "0.5629119", "0.5610476", "0.55925906", "0.5478476", "0.5461474", "0.54566145", "0.5454528", "0.5418032", "0.53583264", "0.5351612", "0.5351446...
0.7831595
0
Get queryset for page.
def k66M(YKHO): return ISu2.objects.all().order_by('target_progress_outcome', 'title').annotate(submission_count=kbH2('submissions')).prefetch_related('submissions', 'target_progress_outcome')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n return I0sS.objects.active()", "def k66M(YKHO):\n SR0I = _BmQ.objects.all()\n B2Dn = YKHO.request.query_params.get('page', None)\n if B2Dn is not None:\n SR0I = SR0I.filter(page_type=B2Dn)\n return SR0I", "def wc3e(YKHO):\n return YKHO.get_queryset()", "def wc3e(YKH...
[ "0.7933482", "0.7782333", "0.77200514", "0.76994646", "0.7420581", "0.7420581", "0.73941785", "0.7269876", "0.72555244", "0.72504467", "0.7234036", "0.72212774", "0.718145", "0.71178293", "0.7091225", "0.70551604", "0.70466155", "0.7032094", "0.70197415", "0.70197415", "0.700...
0.0
-1
Paginate a queryset if required, either returning a page object, or `None` if pagination is not configured for this view.
def J7Hw(YKHO, SR0I, QePW, tTee=None, *, B2Dn=-1): bNfU = YKHO.get_page_size(QePW) if not bNfU: return None oDn_ = YKHO.django_paginator_class(SR0I, bNfU) klRQ = QePW.query_params.get(YKHO.page_query_param, 1) if B2Dn == -1 else B2Dn if klRQ in YKHO.last_page_strings: klRQ = oDn_.num...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J7Hw(YKHO, SR0I, QePW, tTee=None):\n bNfU = YKHO.get_page_size(QePW)\n if not bNfU:\n return None\n oDn_ = YKHO.django_paginator_class(SR0I, bNfU)\n klRQ = QePW.query_params.get(YKHO.page_query_param, 0)\n klRQ = str(int(klRQ) + 1)\n if klRQ in YKHO.last_page_strings:\n klRQ = o...
[ "0.81357336", "0.8074469", "0.800766", "0.800766", "0.800766", "0.800766", "0.800766", "0.79746616", "0.7484818", "0.74730283", "0.7427823", "0.7183001", "0.7158622", "0.71241677", "0.7103557", "0.7009994", "0.6899317", "0.67075765", "0.6689423", "0.659312", "0.65599847", "...
0.8135444
1
Count the number of parameters in a module.
def eQ5t(yR_P, GnzJ=True): SGPK = yR_P.parameters() if GnzJ: SGPK = filter(lambda XP5J: XP5J.requires_grad, SGPK) mLGw = sum([oyIN.prod(XP5J.size()) for XP5J in SGPK]) return mLGw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v6DW(yR_P):\n KCHu = 0\n for k78t in yR_P.parameters():\n KCHu += k78t.numel()\n return KCHu", "def StJt(yR_P):\n return int(oyIN.sum([oyIN.prod(list(XP5J.shape)) for XP5J in yR_P.parameters()]))", "def xH4P(r8hN: torch.nn.Module, LCet: str, fuyQ: bool=False, Ccyk: bool=False):\n SGPK...
[ "0.8718134", "0.832086", "0.81085104", "0.7812835", "0.77974385", "0.77376014", "0.7591588", "0.7409846", "0.73597115", "0.7349907", "0.73225605", "0.72829133", "0.72772187", "0.72623223", "0.725196", "0.7233807", "0.7233807", "0.7201193", "0.71985716", "0.71634626", "0.71634...
0.7961461
3
The habitat suitability of a patch relatve to the time since last fire. The habitat quality is low immediately after a fire, rises rapidly until five years after a fire, and declines once the habitat is mature. See Figure 2 in Possingham and Tuck (1997) for more details.
def NKxP(ulWt): if ulWt < 0: tO9_ = "Invalid years '%s', it should be positive." % str(ulWt) raise ValueError(tO9_) if ulWt <= 5: return 0.2 * ulWt elif 5 <= ulWt <= 10: return -0.1 * ulWt + 1.5 else: return 0.5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xDgq(YKHO):\n if YKHO.exercise_intensity == 'Low':\n return 4 * YKHO.duration\n elif YKHO.exercise_intensity == 'Moderate':\n return 8 * YKHO.duration\n elif YKHO.exercise_intensity == 'High':\n return 12 * YKHO.duration", "def KAFb(YKHO):\n return round(YKHO.defenseValue * e...
[ "0.59832114", "0.5847548", "0.574367", "0.5650714", "0.5607769", "0.5528543", "0.5527334", "0.552681", "0.54846805", "0.54743534", "0.5466688", "0.5459544", "0.5437739", "0.53578866", "0.5351546", "0.5347031", "0.5346193", "0.531216", "0.5298994", "0.5293895", "0.52792215", ...
0.6267178
0
Saves a file in json.
def EHHN(n6Zx, qaEx): with open(qaEx, 'w') as nUeQ: qQXR.dump(n6Zx, nUeQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QN9E(gIsw, TLbt):\n with open(gIsw, 'w') as nUeQ:\n qQXR.dump(TLbt, nUeQ)", "def U1ai(nPrm: json, gIsw: str):\n with open(gIsw, 'w+') as eHNT:\n qQXR.dump(nPrm, eHNT, ensure_ascii=False, indent=4)", "def ncJT(object, nUeQ):\n with open(nUeQ, 'wb') as hlel:\n qQXR.dump(object, ...
[ "0.83972996", "0.8199752", "0.81582004", "0.8141494", "0.8122539", "0.8120006", "0.8092094", "0.7969741", "0.796163", "0.7938701", "0.79344547", "0.7911042", "0.7910614", "0.7910614", "0.78978056", "0.7889351", "0.7881531", "0.7880681", "0.7871011", "0.7866998", "0.784513", ...
0.0
-1
Checks whether a voltage can be set on a gate. If not, a VoltageChangeDirection indicating how other gates need to be updated is returned.
def n3bH(X0Jl: float, ewpR: DeviceChannel, D1sU: float=0.1) -> h8nf[UnCn]: F6zM = ewpR.safety_voltage_range() WLPA = oyIN.isclose(X0Jl, F6zM, atol=D1sU) v_oM = None if WLPA[0]: v_oM = UnCn.negative if WLPA[1]: v_oM = UnCn.positive return v_oM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a34D(YKHO, begE: Device, v99f: int, x7CP: VoltageChangeDirection, ibni: RangeChangeSetting=jAtE()) -> float:\n uMaB = ibni.relative_range_change\n w84m = ibni.max_range_change\n RqxW = ibni.min_range_change\n assert isinstance(x7CP, UnCn)\n k426 = begE.gates[v99f].voltage()\n W60d = begE.gate...
[ "0.6361495", "0.5936066", "0.5922804", "0.5870465", "0.57601005", "0.5677428", "0.56655484", "0.5586668", "0.55706745", "0.5507185", "0.5470531", "0.5443931", "0.5443931", "0.5443931", "0.5443931", "0.5443931", "0.5412779", "0.53891295", "0.5386827", "0.5363458", "0.5339476",...
0.7269977
0
Create a shape (w,h,1) array tiled with a checkerboard pattern.
def Kntv(MKlR, yzQ0=None, xMux=3, PttE=4, mHuL=0.95, dnR4=0.6): yzQ0 = yzQ0 or MKlR vM6o = [lO1m(float(Csk6 / PttE) / 2) for Csk6 in [MKlR, yzQ0]] iBIi = [[mHuL, dnR4] * PttE, [dnR4, mHuL] * PttE] * PttE k8L3 = oyIN.kron(iBIi, oyIN.ones(vM6o))[:yzQ0, :MKlR] return oyIN.dstack([k8L3] * xMux)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TgmJ(YKHO):\n RBFf = oyIN.ones(YKHO.pattern_length, oyIN.int)\n RBFf[1::2] = -1\n cf3u = oyIN.ones(YKHO.pattern_width, oyIN.int)\n cf3u[1::2] = -1\n a1PO = aJJu.toeplitz(RBFf, cf3u)\n a1PO = a1PO.reshape((YKHO.pattern_length, YKHO.pattern_width))\n return a1PO", "def kdBH(Jw7X=16, eUWA=1...
[ "0.73253554", "0.70889723", "0.6712039", "0.66771626", "0.6596706", "0.65912515", "0.6560987", "0.6547897", "0.6480535", "0.6463441", "0.6442356", "0.6416653", "0.64060307", "0.6359038", "0.63528633", "0.634597", "0.6341268", "0.63382244", "0.6333957", "0.6327942", "0.6282613...
0.71832675
1
Instantiate the config from the given file path Files ending in `.json` will be parsed as JSON, otherwise the file will be parsed as YAML.
def DMrX(Emd4, qaEx): qaEx = GkAb(qaEx) ULye = qaEx.read_text(encoding='utf8') if qaEx.name.endswith('.json'): return Emd4.load_json(ULye) else: return Emd4.load_yaml(ULye)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(Emd4, qaEx):\n with open(qaEx, 'r') as Srd8:\n _fuv = qQXR.load(Srd8)\n return Emd4.from_dict(_fuv)", "def aBOe(Emd4, lqQH=None, *qIxc, **B2fa):\n GPtr = dict()\n UUoH = QwBR.Kaptan()\n GPtr = UUoH.import_config(UiCc).get()\n if lqQH:\n if not Hy7s.path.exists(lqQH):\n ...
[ "0.821039", "0.7953108", "0.77906823", "0.76920736", "0.7625439", "0.7619835", "0.7600077", "0.7599634", "0.7534271", "0.7446604", "0.7446604", "0.7404896", "0.7404376", "0.7383141", "0.73693234", "0.7344394", "0.7308633", "0.7304734", "0.72874695", "0.7251359", "0.7235575", ...
0.74404585
11
Instantiate the config from a YAML string
def f9B0(Emd4, eJb6: str): GPtr = QIpW.load(eJb6) if not isinstance(GPtr, dict): raise bQA5(f"The config file was loaded but it appears to be in an unexpected format. The root of the configuration should be a key/value mapping, but the type '{type(GPtr).__name__}' was found instead. Check your config fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WC_0(Emd4, KCHu):\n Fv2L = Emd4.preprocess_config(KCHu)\n D40Q = UEZb(Fv2L)\n YEnM = Emd4(D40Q)\n YEnM._yaml_config = Fv2L\n return YEnM", "def zBiw(Emd4, Ul2G, t4HI, **B2fa):\n YEnM = czIh(Ul2G)\n return Emd4.from_config(YEnM, t4HI, **B2fa)", "def OXMy(Emd4, BWXx):\n return Emd4.fr...
[ "0.8540822", "0.772466", "0.7516918", "0.7389136", "0.7371924", "0.7326149", "0.7231067", "0.7207279", "0.71810585", "0.71674144", "0.7119573", "0.7101052", "0.70015025", "0.698324", "0.698324", "0.69802046", "0.6962896", "0.6946658", "0.6934375", "0.6896458", "0.68912077", ...
0.65265566
48
Return the next memory slot available.
def Rj7M(YKHO): if not YKHO.is_loaded: return None GfxT = None for dzJn in YKHO._records: AIu6 = YKHO._records[dzJn] GfxT = AIu6 if not AIu6.is_in_use: vzeF.debug('Using the available record %04x', AIu6.mem_addr) return AIu6.mem_addr vzeF.debug('Us...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OkY6(YKHO):\n YKHO.logger.info('GetFreeTxSlot')\n z3kn = [KCHu for KCHu in range(1, YKHO.TCDeviceProperties['Anzahl Interval Puffer'] + 1) if KCHu not in [or8S.IndexBits.SubIndex for or8S in YKHO.UsedTxSlots]]\n if z3kn:\n BYsG = _pC2()\n BYsG.IndexBits.SubIndex = z3kn[0]\n return...
[ "0.65642947", "0.64595324", "0.6417522", "0.6401822", "0.63802165", "0.6226078", "0.6219679", "0.6195467", "0.6195343", "0.6155179", "0.61437154", "0.6109859", "0.61074466", "0.60351515", "0.60255784", "0.6021174", "0.60121596", "0.6008583", "0.59881586", "0.5986002", "0.5963...
0.7052767
0
Add a new ngram to the trie.
def n0Qw(YKHO, CG35, UHFx): if not CG35: return Q6kx = YKHO.root for GIN8 in CG35: Q6kx.count += UHFx if not Q6kx.has_child(GIN8): Esd_ = TDAg(GIN8) Q6kx.add_child(Esd_) Q6kx = Q6kx.get_child(GIN8) Q6kx.count += UHFx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n tk5Y[Z9rn] = ep_x()\n tk5Y = tk5Y[Z9rn]\n tk5Y.end_of_word = True", "def e0k0(YKHO, GIN8):\n Q6kx = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in Q6kx.dic...
[ "0.7500969", "0.7203922", "0.71464545", "0.71366924", "0.7112472", "0.7080989", "0.70618683", "0.7055245", "0.7045802", "0.7042937", "0.70389515", "0.7035772", "0.701028", "0.7005679", "0.69983035", "0.6997143", "0.699624", "0.69711715", "0.69076055", "0.6894392", "0.6868328"...
0.7322089
1
Return the size of vocabulary.
def InVB(YKHO): return YKHO.root.num_children()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bV1g(YKHO):\n return len(YKHO.__vocabulary)", "def iq72(YKHO):\n return len(YKHO.vocab.keys())", "def awLZ(YKHO):\n return len(YKHO.word2index)", "def jXxl(YKHO):\n return YKHO._vocab_size", "def jXxl(YKHO):\n return len(YKHO.vocab)", "def zNig(YKHO):\n return len(YKHO.vec.vocabular...
[ "0.9205831", "0.8944977", "0.87732136", "0.864854", "0.8629217", "0.8595726", "0.85438555", "0.8541803", "0.8504267", "0.8492544", "0.8452351", "0.8435137", "0.83639115", "0.8297432", "0.82839847", "0.8212803", "0.81653726", "0.8143052", "0.8114998", "0.7906055", "0.7813927",...
0.80290353
19
Given a corpus (i.e., a list of raw sentences), return its perplexity.
def Y189(YKHO, yAmx, NArs=None): aPd6 = 0 E3D9 = 0 pCSA = xg2I(yAmx, YKHO.n) for CG35 in pCSA: CG35 = list(CG35) xWSp = YKHO.estimate_smoothed_prob(CG35[:-1], CG35[-1], NArs) aPd6 += gNuL(xWSp) E3D9 += len(pCSA) return 2 ** (-aPd6 / E3D9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y189(YKHO, rrSk):\n wjRY = 0\n exwG = 0\n for Npgh in rrSk:\n exwG += len(Npgh)\n wjRY += YKHO.sentence_logprob(Npgh)\n return 2 ** (-wjRY / exwG)", "def Y189(YKHO, rrSk):\n AOlJ = oRi_(int)\n Nk6w = 0\n for y0cW, ZI14 in pCSA(rrSk, YKHO.order):\n Nk6w += 1\n ...
[ "0.83166224", "0.7951058", "0.7894755", "0.7874156", "0.7724785", "0.73610806", "0.7156373", "0.6828578", "0.67713434", "0.6697896", "0.6577372", "0.65441525", "0.65348536", "0.6527755", "0.6504431", "0.646612", "0.64655346", "0.64646107", "0.6376605", "0.6310143", "0.6309765...
0.6406261
18
Given a sentence, return score.
def _EZh(YKHO, yAmx, NArs=None): pCSA = xg2I(yAmx, YKHO.n) o4sw = 0 for CG35 in pCSA: CG35 = list(CG35) xWSp = YKHO.estimate_smoothed_prob(CG35[:-1], CG35[-1], NArs) o4sw += gNuL(xWSp) return o4sw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pYnT(yAmx):\n yjjj = ' '.join(vbNC.seg(yAmx))\n p1kx = Rx4W.score(yjjj)\n return p1kx", "def p1kx(YKHO, yAmx):\n p1kx = 0.0\n mX5t = ''\n for GIN8 in yAmx:\n if mX5t:\n p1kx += epAf.log(YKHO.probability((mX5t, GIN8)))\n mX5t = GIN8\n return p1kx", "def p1kx(YKH...
[ "0.8352279", "0.79103076", "0.774721", "0.75871634", "0.75781006", "0.7563216", "0.7496718", "0.74958026", "0.74240947", "0.738756", "0.7342089", "0.7312384", "0.72914004", "0.72912735", "0.72425973", "0.7238694", "0.7144949", "0.71441495", "0.707004", "0.70691", "0.69894993"...
0.7237344
16
Given a list of history words and the a word, return the absolute discounting prob P(word|history).
def yaLN(YKHO, FLXQ, GIN8, NArs=None): Csk6 = NArs['d'] if NArs is not None and 'd' in NArs else 0.5 r6oV = YKHO.estimate_smoothed_prob(FLXQ[1:], GIN8, NArs) if len(FLXQ) > 0 else 1 / YKHO.get_vocab_size() ts9M = YKHO.get_count(FLXQ) if ts9M == 0: return r6oV r3Tb = YKHO.get_count(FLXQ + [GI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p1kx(YKHO, yAmx):\n p1kx = 0.0\n mX5t = ''\n for GIN8 in yAmx:\n if mX5t:\n p1kx += epAf.log(YKHO.probability((mX5t, GIN8)))\n mX5t = GIN8\n return p1kx", "def AsZz(ugYW, vwCE):\n Aofo = []\n for YRbF, GIN8 in enumerate(cmPJ):\n ifxj = (ugYW[YRbF] + 1) / (len...
[ "0.70240414", "0.6957925", "0.6899379", "0.6840427", "0.6783312", "0.6673266", "0.65807676", "0.6552227", "0.651756", "0.65001065", "0.649066", "0.6473976", "0.6469409", "0.64553183", "0.6449969", "0.6410544", "0.640871", "0.6389738", "0.6372428", "0.63690555", "0.6367083", ...
0.677837
5
Compute the lambda factor in the absolute discounting smoothing method.
def IZDq(YKHO, FLXQ, Csk6): return Csk6 * YKHO.get_num_children(FLXQ) / YKHO.get_count(FLXQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p_Ic(YKHO):\n YKHO.lambda_factor = pow(YKHO.adaptive_tol, 1.0 / YKHO.truncation)", "def D1O1(SQiD, P_MT):\n Ty9i = oyIN.mean(SQiD)\n Nqp_ = oyIN.var(SQiD, ddof=P_MT)\n return (2 * Nqp_ + Ty9i ** 2) / float(Nqp_)", "def p_Ic(YKHO, ECmi):\n return Ngpo / (ECmi * oyIN.sqrt(1 - (YKHO.f_c / ECmi)...
[ "0.78920686", "0.75043637", "0.7378022", "0.7264883", "0.6959732", "0.69380426", "0.6860265", "0.68291533", "0.680695", "0.67777187", "0.6766353", "0.6752266", "0.6669079", "0.65939075", "0.65872025", "0.65627927", "0.6533609", "0.6532154", "0.6429815", "0.64104146", "0.63971...
0.64321
18
Transform observations to latent space.
def Au2V(W061, YFaX): (W061, Fbjb), (YFaX, bGrB) = [Yl2X(z1Rg) for z1Rg in (W061, YFaX)] BcCR, Ep8u = W061.shape[:2] (Sz2H, Dngf, h1Xr), (BJP0, f6wd, u2A2) = [[LVAh.reshape((BcCR, Ep8u, OuZd)) if YRbF != 0 else LVAh.reshape((BcCR, Ep8u, 3, gg4D, gg4D)) for YRbF, LVAh in enumerate(m3hd(WKvO.reshape((-1, 3, g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b05M(YKHO, W061, YFaX):\n l5eN, Kmi0 = (YKHO.config['preprocessor']['img_height'], YKHO.config['preprocessor']['img_width'])\n bnIe = YKHO.config['preprocessor']['img_width']\n with ht2j.no_grad():\n W061, YFaX = [eHNT.interpolate(WKvO.view(-1, 3, l5eN, Kmi0), size=bnIe, mode='bilinear', align_...
[ "0.63069224", "0.62783915", "0.6227632", "0.61989355", "0.6146121", "0.61332256", "0.611425", "0.61122304", "0.6081045", "0.59356", "0.5934711", "0.5845467", "0.5800051", "0.5770824", "0.5719187", "0.5689249", "0.568909", "0.56774575", "0.5674168", "0.56351864", "0.56104213",...
0.56078225
21
create a user instance given email and password
def lYUQ(YKHO, NtEF, D3lj, jTXt=None, ksfB=True, WJxI=False, **B2fa): D3lj = rAFk.normalize_email(D3lj) CBIr = YKHO.model(username=NtEF, email=D3lj, is_active=ksfB, is_staff=WJxI, **B2fa) if not NtEF: raise ValueError('User must have an username.') if not D3lj: raise ValueError('User mus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lYUQ(D3lj, jTXt):\n return mv1M.objects.create(email=D3lj, password=jTXt)", "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n print(f'this is password {jTXt}...
[ "0.8618301", "0.85900974", "0.8546968", "0.8539036", "0.8531297", "0.8513509", "0.8501825", "0.8501015", "0.84918344", "0.84810066", "0.8478655", "0.84715545", "0.84715545", "0.8462295", "0.84522027", "0.84520525", "0.8440582", "0.8440079", "0.8440079", "0.8440079", "0.843971...
0.0
-1
Validates a numeric constraint described by a string. The string can specify fixed value constraints such as "0.0" or range constraints such as "=10.0"
def EvvO(oVM8, u54L, D1sU=0.1): J4D7 = True if '>=' in oVM8 else False d2Cm = True if '<=' in oVM8 else False AGkl = True if '>' in oVM8 and (not J4D7) else False YpZF = True if '<' in oVM8 and (not d2Cm) else False BWXx = float(oVM8.strip('>').strip('<').strip('=')) if AGkl: if u54L > B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s7CX(YKHO):\n uPxI = gkIT.Schema('Number', constraints=[gkIT.AllowedValues([1.1, 2.2, 4.4])])\n YKHO.assertIsNone(uPxI.validate_constraints(1.1))\n XObx = YKHO.assertRaises(AJ5d.StackValidationFailed, uPxI.validate_constraints, 3.3)\n YKHO.assertEqual('\"3.3\" is not an allowed value [1.1, 2.2, 4.4...
[ "0.68845004", "0.6431117", "0.6358864", "0.6282543", "0.6199827", "0.61151606", "0.6101357", "0.6087902", "0.59703386", "0.59697753", "0.59431595", "0.590513", "0.590173", "0.5893196", "0.5850389", "0.5833339", "0.58131987", "0.58038074", "0.5754933", "0.5740093", "0.57341087...
0.5839119
15
Return a PackageURL string containing this Coordinate's information
def yVIc(YKHO): Keuk = lk_d[YKHO.type] _63S = '' if YKHO.namespace != '-': _63S = YKHO.namespace if YKHO.provider == 'debian': _63S = 'debian' ULHC = {} if YKHO.type in ('debsrc', 'sourcearchive'): ULHC = PFqk[YKHO.type] return n3oB(type=Keuk, namespace=_63S, name=YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rYSq(YKHO):\n return str(OtvE.PackageURL(**YKHO.purl_identifiers()))", "def bD7m(YKHO):\n w2IS = 'packageinfo?packageID=%d' % YKHO.id\n return Qumu.join(YKHO.connection.weburl, w2IS)", "def rYSq(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'package_url')", "def FZ52(YKHO) -> qe4Y....
[ "0.7655485", "0.70952266", "0.6456333", "0.64084446", "0.6404733", "0.62528735", "0.62324816", "0.60816085", "0.6047771", "0.60314083", "0.6014312", "0.5970418", "0.5945226", "0.5933088", "0.5933086", "0.59007573", "0.588848", "0.5884732", "0.5874523", "0.58700615", "0.586020...
0.6055074
8
Given a URL, return a tuple of URL elements where `query` is a mapping.
def TLhg(bD7m): ht58, RYr6, pmON, xDcj, vBtp = NoPH(bD7m) xDcj = _Ibt(xDcj) return (ht58, RYr6, pmON, xDcj, vBtp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VyJ2(bD7m):\n from urllib.parse import urlparse, parse_qs\n P6bq = urlparse(bD7m)\n return (P6bq.path, parse_qs(P6bq.query))", "def VyJ2(bD7m):\n if not bD7m:\n return kF3y()\n elif '?' in bD7m:\n xDcj = bD7m.split('?', 1)[1]\n elif '=' in bD7m:\n xDcj = bD7m\n else:...
[ "0.62494767", "0.6155894", "0.61548793", "0.6058265", "0.6049812", "0.59026134", "0.5878058", "0.58068913", "0.57362854", "0.57262826", "0.5699729", "0.5643463", "0.5628453", "0.55538815", "0.55416363", "0.5536601", "0.5536506", "0.5523608", "0.55145574", "0.55031663", "0.546...
0.58518773
7
Return a new `url` with its query string updated from a mapping of key/value pairs.
def d6V7(bD7m, QLiZ, f6MP=()): ht58, RYr6, pmON, xDcj, vBtp = TLhg(bD7m) xDcj.update(QLiZ) PXIy = (ht58, RYr6, pmON, NBRv(xDcj, do_not_quote=f6MP), vBtp) return izOI(PXIy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S8n_(bD7m, **B2fa):\n ys3h = KVWQ(bD7m)\n NArs = _Ibt(ys3h.query)\n NArs.update(B2fa)\n UqER = list(ys3h)\n UqER[4] = QIYp(NArs)\n return Hfci(UqER)", "def UgAp(bD7m, H5ew, BWXx):\n ys3h = KVWQ(bD7m)\n ys3h.query = _Ibt(ys3h.query).update({H5ew: [BWXx]})\n print(ys3h)", "def bel4...
[ "0.7177099", "0.7062049", "0.7053954", "0.70357585", "0.69012505", "0.6833644", "0.6816313", "0.67061424", "0.6629433", "0.65482944", "0.6529176", "0.65206265", "0.6515546", "0.6511245", "0.64950955", "0.6469076", "0.64507246", "0.64221716", "0.64067924", "0.63942766", "0.637...
0.7473891
0
Generate BlobD for testing typeII error (or test power).
def p011(I9ur, ID2u, usx6=3, WfCS=3, H0q3=None): H0q3 = p11e(H0q3) yGTL = oyIN.zeros(2) WTkW = oyIN.eye(2) * 0.03 EcVT = H0q3.multivariate_normal(yGTL, WTkW, size=I9ur) fuBA = H0q3.multivariate_normal(yGTL, oyIN.eye(2), size=I9ur) EcVT[:, 0] += H0q3.randint(usx6, size=I9ur) EcVT[:, 1] += H0q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yAY4():\n with hnIv(filename=IbHI('mona-lisa.jpg')) as VXjJ:\n with hnIv(blob=VXjJ.make_blob('png')) as _YGI:\n assert _YGI.size == (402, 599)\n assert _YGI.format == 'PNG'\n assert VXjJ.format == 'JPEG'\n with cR0t(TypeError):\n VXjJ.make_blob(123)\n ...
[ "0.59117925", "0.5820741", "0.5705619", "0.56801397", "0.5657512", "0.5640289", "0.5588881", "0.55882853", "0.55756676", "0.55678666", "0.5552075", "0.5514655", "0.5501658", "0.54887044", "0.5461012", "0.54387605", "0.5408026", "0.5398264", "0.5394055", "0.538908", "0.5367849...
0.0
-1
Add response header to enable CrossOrigin Resource Sharing. This should only be needed for testing, where the server is running on localhost. The calling domain is checked to see if it is local, and if it matches, then a set of allow headers are sent, allowing the origin, the set of methods, and the passing of credenti...
def H65h(tvqc): def TGVY(QePW, geh0): """ Callback for CORS. """ hLRM = QePW.headers.get('Origin', 'UNKNOWN') RKD7.debug('Sending CORS for origin: ' + hLRM) if hLRM.startswith('http://localhost:') or hLRM.startswith('http://127.0.0.1:'): RKD7.debug('Access Allowed') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PYz4(geh0):\n geh0.headers['Access-Control-Allow-Headers'] = 'Authentification, authentification, Origin, X-Requested-With, Content-Type, Accept'\n geh0.headers['Access-Control-Allow-Credentials'] = 'true'\n if QePW.headers.get('origin') is not None:\n geh0.headers['Access-Control-Allow-Origin'...
[ "0.8069792", "0.78861886", "0.786425", "0.7724325", "0.76378", "0.76224315", "0.7613805", "0.7554088", "0.7539183", "0.7502164", "0.7447474", "0.7445994", "0.7425338", "0.72782487", "0.7245236", "0.722825", "0.71665436", "0.71560806", "0.7136066", "0.7128399", "0.70845646", ...
0.0
-1
1. compute distances to k neighbors 2. compute ratio k = 2 in this implementation
def u1rW(WKvO): clxU = oyIN.roll(WKvO, shift=1, axis=0) TaUL = oyIN.linalg.norm(WKvO - clxU, axis=1) JG01 = oyIN.roll(TaUL, shift=1, axis=0) Dwvl = TaUL / JG01 return Dwvl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0ob(YKHO):\n G1Hx = round(epAf.sqrt(len(YKHO.vectors.sent2vec)))\n print('K-neighbours = {}'.format(G1Hx))\n myQS = HFk3(n_neighbors=G1Hx, n_jobs=-1, algorithm='auto').fit(YKHO.vectors.sent2vec)\n TaUL, _0VL = myQS.kneighbors(YKHO.vectors.sent2vec)\n YKHO.distances = [oyIN.mean(Csk6) for Csk6 i...
[ "0.70447", "0.700053", "0.6997845", "0.6929065", "0.68594074", "0.68594074", "0.68238854", "0.6773046", "0.6759184", "0.67221034", "0.67126715", "0.67091304", "0.668831", "0.6645765", "0.6610272", "0.65930724", "0.65716785", "0.6553223", "0.65501875", "0.65499586", "0.6543072...
0.644486
26
return fullname of a customer
def iDVU(e9Lc): return f'{(e9Lc.first_name if e9Lc.first_name else '')} {(e9Lc.last_name if e9Lc.last_name else '')}' if e9Lc.first_name or e9Lc.last_name else '-'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0HP(YKHO):\n return str(YKHO.customer)", "def jeLr(YKHO):\n m3Nh = YKHO.getCustomer()\n if m3Nh is None:\n return ''\n UTX6 = rOBp(m3Nh).getInvoiceAddress()\n if UTX6 is None:\n return ''\n return UTX6.lastname + ' ' + UTX6.firstname", "def Ikeg(YKHO):\n return YKHO._cus...
[ "0.8234383", "0.8167057", "0.81518555", "0.81050104", "0.7931251", "0.78713226", "0.78141505", "0.7449649", "0.74049515", "0.7351891", "0.7345165", "0.73241067", "0.7286071", "0.7231651", "0.7202812", "0.7184553", "0.7163862", "0.71512526", "0.7141146", "0.711971", "0.7119427...
0.80881655
4
Load a yolo.yaml file from an open filelike object.
def aBOe(Emd4, o1P6): hGN5 = eJb6.safe_load(o1P6) return Emd4(hGN5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f9B0(ak10: str):\n with open(ak10, 'r') as eHNT:\n return eJb6.safe_load(eHNT)", "def f9B0(YKHO, Ux0P):\n raise NotImplementedError()", "def jnN0(YKHO, ZGE9, qaEx: Path):\n jxGD = YKHO.get_model_class(ZGE9)\n with qaEx.open(mode='r', encoding='utf8') as Ga6V:\n lUhG = eJb6.safe_lo...
[ "0.7305681", "0.70345724", "0.7019421", "0.6966942", "0.68832755", "0.6878416", "0.6853059", "0.6846675", "0.68416226", "0.6824306", "0.6816778", "0.68141973", "0.6810814", "0.6793552", "0.67908096", "0.6789715", "0.67847216", "0.67660326", "0.6760656", "0.6737313", "0.671845...
0.7005112
3
Load a yolo.yaml file given a path to the file.
def M_9t(Emd4, pmON): with open(pmON) as ytgA: return Emd4.from_file(ytgA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f9B0(pmON):\n pmON = GkAb(pmON)\n RKD7.debug('Reading {}'.format(pmON))\n with pmON.open() as Ga6V:\n nPrm = eJb6.safe_load(Ga6V)\n return nPrm", "def jnN0(YKHO, qaEx):\n with open(qaEx) as SGPW:\n return eJb6.load(SGPW, Loader=eJb6.FullLoader)", "def RN9d(pmON):\n with open...
[ "0.74234235", "0.7334725", "0.73121846", "0.7288592", "0.72519064", "0.7251052", "0.7235186", "0.71923673", "0.71890926", "0.71605974", "0.7089898", "0.7080749", "0.70687795", "0.70278275", "0.7017242", "0.69970745", "0.6990513", "0.6987079", "0.697089", "0.6964823", "0.69644...
0.0
-1
Mock the fetch_json method to return the sample json instead of making an actual request
def Baw8(Emd4): with open('tests/sample_account.json') as ZrNc: gnPz.fetch_json = CFMy(return_value=qQXR.load(ZrNc))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XK7N(YKHO, BWZt, jesx):\n TMAJ = FM6F()\n TMAJ.json.return_value = jesx\n with Po4F('requests.get', return_value=TMAJ):\n JezV = c3ht(BWZt)\n YKHO.assertEqual(JezV, jesx)\n TMAJ.json.assert_called_once()", "def pWVW():\n KaEi()", "def npru(YKHO, *qIxc, **B2fa):\n bD7m = ...
[ "0.77093047", "0.75993973", "0.7319065", "0.7033837", "0.6944907", "0.6850178", "0.6723241", "0.66816217", "0.6618929", "0.6618655", "0.66035235", "0.6560616", "0.655459", "0.6554371", "0.650282", "0.6458414", "0.6421857", "0.64183176", "0.64147496", "0.64062595", "0.6402937"...
0.0
-1
Returns the identifier of the field, this identifier is unique at file level. But not at collection level
def unpH(YKHO): return YKHO.name.lower().replace('/', '').replace(' ', '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZVtQ(YKHO):\n return YKHO._field_id", "def _xk9(YKHO):\n return YKHO._custom_field_id", "def EoLo(YKHO):\n return YKHO._doc_id_field", "def QTMT(hbFX):\n return gE30.get(hbFX, None)", "def vrsU(YKHO):\n return 'id'", "def _eu6(YKHO):\n return getattr(YKHO, YKHO._id_field_name)", "...
[ "0.84282", "0.7699639", "0.767715", "0.7432793", "0.74273044", "0.742337", "0.73839533", "0.7298669", "0.7287589", "0.7276724", "0.71549827", "0.711605", "0.71151346", "0.70230436", "0.70230436", "0.6930362", "0.69005275", "0.68994117", "0.6892091", "0.6882704", "0.68548596",...
0.0
-1
Returns the field the matched field for the requested config.
def NMoC(YKHO, GPtr): if 'name' not in GPtr: G9jH.error('FieldManager: loading field whitout name') raise ValueError('Missing name key') if 'class' not in GPtr: GPtr['class'] = 'text' G9jH.info("FieldManager: loading field '%s' " + 'without class, using text.', GPtr['name']) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTMT(vXX7):\n return tgzD()[vXX7]", "def QTMT(YKHO, vXX7):\n if YKHO.has_field(vXX7):\n return YKHO.config.get(YKHO.section, vXX7)\n else:\n return None", "def QTMT(YKHO, mWFP):\n Cqok = YKHO.fields.get(mWFP)\n if Cqok:\n return Cqok.field_from(YKHO.builder, YKHO.prefix)...
[ "0.7980752", "0.73140144", "0.70555437", "0.6966963", "0.69388366", "0.68769777", "0.6873271", "0.68637717", "0.685436", "0.672795", "0.67108583", "0.6654841", "0.6632816", "0.6623017", "0.6591281", "0.6534491", "0.6528816", "0.651711", "0.6516829", "0.65109676", "0.646998", ...
0.6376038
30
Generate csv filename based on query index and parameter index This to be able to uniquely identify to which submission, query and parameter settings a given .csv belongs. Based solely on filename.
def o4sk(Vb5F, nMkn=0, rVpA=0): SKw2 = HPJK(nMkn, rVpA) IznC = Vb5F['identifier'] + '_' + SKw2 + '.csv' HXq4 = Hy7s.path.join(Vb5F['dir']['out'], IznC) return HXq4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iUAg(xDcj, UXO9, nxTS='.'):\n uvd8 = iOba(nxTS, UXO9, CIMy, '%s-%s.csv' % (xDcj, UXO9))\n return uvd8", "def pcWg():\n return str(qxeD.uuid4()) + '.csv'", "def Ux0P(YKHO):\n AGPF = YKHO.csv_helper.directory\n mWFP = YKHO.csv_helper.filename\n _XW4 = YKHO.csv_helper.creation\n return f'...
[ "0.68805397", "0.6840639", "0.6820457", "0.67199564", "0.65920955", "0.65573376", "0.6538335", "0.63595045", "0.6332791", "0.6295649", "0.6273227", "0.62608576", "0.62285256", "0.6142166", "0.6128403", "0.6111068", "0.60952896", "0.6087153", "0.60678935", "0.6063922", "0.6036...
0.7351747
0
Search a sorted list for an occurrence of target. Return the index of target if it is present, else 1.
def jUbz(yv6U, pan_): gqRb, ODP9 = (0, len(yv6U) - 1) while gqRb <= ODP9: x1fj = (gqRb + ODP9) // 2 if yv6U[x1fj] < pan_: gqRb = x1fj elif yv6U[x1fj] > pan_: ODP9 = x1fj else: return x1fj return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TrX4(list: list, pan_: int) -> h8nf[int]:\n for YRbF in range(0, len(list)):\n if list[YRbF] == pan_:\n return YRbF\n return None", "def TrX4(list, pan_):\n for YRbF in range(0, len(list)):\n if list[YRbF] == pan_:\n return YRbF\n return None", "def TrX4(list...
[ "0.82703537", "0.8231539", "0.8230935", "0.8195095", "0.8156266", "0.8145615", "0.81299233", "0.80680454", "0.7910066", "0.78652227", "0.7740956", "0.762302", "0.76184416", "0.75831455", "0.753561", "0.7534043", "0.74998105", "0.74256736", "0.7402555", "0.7374057", "0.7330287...
0.69112825
51
Render website's home page.
def kZiy(): return TvZl('home.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('homepage.html')", "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def C_QL():\n ...
[ "0.8819581", "0.87503684", "0.8623934", "0.8596466", "0.8596466", "0.8571988", "0.8557671", "0.8557671", "0.85497755", "0.85256004", "0.8489358", "0.8483156", "0.8475702", "0.8474153", "0.84737927", "0.84619766", "0.8438196", "0.8428517", "0.8418825", "0.8418701", "0.83995277...
0.8338782
47
Add headers to both force latest IE rendering engine or Chrome Frame, and also tell the browser not to cache the rendered page. If we wanted to we could change maxage to 600 seconds which would be 10 minutes.
def PYz4(geh0): geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1' geh0.headers['Cache-Control'] = 'public, max-age=0' return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0", "def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0", "def P...
[ "0.8120218", "0.8120218", "0.8120218", "0.8120218", "0.8120218", "0.8120218", "0.8120218", "0.8120218", "0.8120218", "0.8120218", "0.80939955", "0.80363137", "0.80363137", "0.80363137", "0.80209976", "0.7947872", "0.7918755", "0.78056204", "0.777135", "0.77306753", "0.7730675...
0.7995272
25
Prints the string representation of an instance based on the class name and id
def IJmj(YKHO, w0fi): ChBB = w0fi if len(ChBB.split(' ')[0]) is 0: print('** class name missing **') return if ChBB.split(' ')[0] not in YKHO.collection_keys: print("** class doesn't exist **") return if len(ChBB.split()) is 1: print('** instance id missing **') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n b5m0 = YKHO.__class__.__name__\n cmPJ = YKHO.to_dict()\n del cmPJ['__class__']\n return '[{}] ({}) {}'.format(b5m0, YKHO.id, cmPJ)", "def zAg0(YKHO):\n _2sc = YKHO.__class__.__name__\n return '[{}] ({}) {}'.format(_2sc, YKHO.id, YKHO.__dict__)", "def zAg0(YKHO):\n rwjl = ...
[ "0.76217866", "0.7551258", "0.7457045", "0.7366595", "0.72646135", "0.7213139", "0.71938765", "0.7192207", "0.7180128", "0.7139947", "0.7054725", "0.7053998", "0.7049951", "0.7049951", "0.7049951", "0.7049951", "0.7049951", "0.7049951", "0.70485955", "0.70457107", "0.703166",...
0.0
-1
Peek n steps ahead. Raises ValueError if n is not a positive nonzero integer. Raises StopIteration if n steps ahead is past the range of the iterable. You can still get the characters before step which raises StopIteration (if there are any) by iterating over self.
def T7C_(YKHO, exwG=1): if exwG <= 0: raise ValueError('n argument must be a positive non-zero integer, got {} instead'.format(exwG)) elif exwG <= len(YKHO.character_queue): return YKHO.character_queue[exwG - 1] else: bry4 = exwG - len(YKHO.character_queue) for bGrB in range(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T7C_(YKHO, exwG):\n if YKHO.__end:\n exwG = min(exwG, YKHO.__end - YKHO.__count)\n DumB = list(Hs6x.islice(YKHO.__iter, exwG))\n YKHO.__iter = Hs6x.chain(DumB, YKHO.__iter)\n return DumB", "def XHb1(YKHO, exwG=0):\n while exwG >= len(YKHO.buffer):\n try:\n YKHO.buffer....
[ "0.7434174", "0.7102143", "0.6972235", "0.67858785", "0.66985846", "0.66737753", "0.6634717", "0.6542619", "0.6490129", "0.6468416", "0.6413439", "0.63399374", "0.63213384", "0.63156164", "0.62650776", "0.6228675", "0.6194655", "0.6182529", "0.6179581", "0.6134471", "0.611281...
0.7352072
1
Get the crossreferenced Bedmaster files and EDW files.
def krm3(YKHO, Gmt_: List[str]=None, Mo_l: int=None, HxYD: int=None, v96l: bool=True, FN6A: int=None, cRc2: str=None, WF53: bool=False) -> cuzp[str, cuzp[str, x1iM[str]]]: YKHO.crossref = {} if not Hy7s.path.exists(YKHO.xref_file): if YKHO.bedmaster_index is None or not Hy7s.path.exists(YKHO.bedmaster_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gri3(Z599):\n RmfS = {}\n YPaw = nIZw()\n for bGNa in nIZw.reference_file_types:\n RmfS[bGNa] = YPaw.get_reference_file(Z599, bGNa)\n return RmfS", "def z3LN(YKHO):\n z3LN = [Mkmy for Mkmy in YKHO.files if '.ma' in Mkmy]\n zXhC = []\n for Mkmy in z3LN:\n Mkmy = vCrv(Mkmy)\n...
[ "0.62237924", "0.62030405", "0.5851489", "0.57804966", "0.5751008", "0.5728425", "0.57086086", "0.5690555", "0.5687788", "0.5634958", "0.5633677", "0.5599955", "0.55959237", "0.5588336", "0.55580217", "0.5549658", "0.5540559", "0.55218834", "0.5519964", "0.55161434", "0.55074...
0.5123036
83
Sets a random seed. This seed can be used with debugging. Use the same seed to get the same results. By default it uses a random seed.
def PVng(Mkmy=tuKI.random()): tuKI.seed(Mkmy) return Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e3of(yokr):\n PVng(yokr)", "def ITRr(YKHO, igb0):\n YKHO.random.seed(igb0)", "def e3of(YKHO, yokr):\n YKHO.driver.execute_script('Math.seedrandom({});'.format(repr(yokr)))", "def Z9de(YKHO, yokr):\n YKHO.seed = yokr\n i5jP.seed(yokr)", "def PVng(YKHO, yokr):\n tuKI.seed(yokr)\n oyI...
[ "0.8489907", "0.8365474", "0.83633506", "0.83547235", "0.8352939", "0.83517504", "0.8332924", "0.8315958", "0.8315271", "0.82950336", "0.82776314", "0.8251745", "0.8250353", "0.8229937", "0.8200277", "0.81790775", "0.81790775", "0.81790775", "0.81790775", "0.8148202", "0.8124...
0.0
-1
test init method. test that init throws an exception when num_of_send_retries is None
def ZruY(YKHO): ijkk = 'audit_server_url_1' HgGh = None ONZd = 10 YKHO.assertRaises(KV3d, Kd0t.init, ijkk, HgGh, ONZd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TuOS(YKHO):\n ijkk = 'audit_server_url_1'\n HgGh = 5\n ONZd = None\n YKHO.assertRaises(KV3d, Kd0t.init, ijkk, HgGh, ONZd)", "def arb_(YKHO):\n Kd0t.config['AUDIT_SERVER_URL'] = 'audit_server_url_1'\n Kd0t.config['NUM_OF_SEND_RETRIES'] = None\n Kd0t.config['TIME_WAIT_BETWEEN_RETRIES'] = 1...
[ "0.7812118", "0.77157485", "0.7062173", "0.6824919", "0.6768508", "0.6755859", "0.660755", "0.658683", "0.658278", "0.6487137", "0.64749706", "0.6432057", "0.6403669", "0.6397097", "0.63814867", "0.63760155", "0.63645214", "0.63419217", "0.63418835", "0.6319723", "0.6307186",...
0.8295589
0
test init method. Test that init throws an exception when time_wait_between_retries is None.
def TuOS(YKHO): ijkk = 'audit_server_url_1' HgGh = 5 ONZd = None YKHO.assertRaises(KV3d, Kd0t.init, ijkk, HgGh, ONZd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZruY(YKHO):\n ijkk = 'audit_server_url_1'\n HgGh = None\n ONZd = 10\n YKHO.assertRaises(KV3d, Kd0t.init, ijkk, HgGh, ONZd)", "def Yo7A(YKHO):\n ijkk = None\n HgGh = 5\n ONZd = 10\n YKHO.assertRaises(KV3d, Kd0t.init, ijkk, HgGh, ONZd)", "def as4H(YKHO):\n ijkk = 'audit_server_url_...
[ "0.774392", "0.71930057", "0.7111341", "0.71047163", "0.70304406", "0.6851642", "0.6709672", "0.6655146", "0.6631639", "0.66243505", "0.6509853", "0.6501468", "0.6432671", "0.6422629", "0.6382519", "0.63808644", "0.6345308", "0.6300135", "0.6290747", "0.62755585", "0.6268388"...
0.82010776
0
rotation matrix around z axis
def itJM(YylR): KCHu = oyIN.sin(YylR) Z9rn = oyIN.cos(YylR) return oyIN.array([[Z9rn, -KCHu, 0], [KCHu, Z9rn, 0], [0, 0, 1]], dtype=oyIN.float64)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z9WA(YylR):\n return oyIN.array([[epAf.cos(oyIN.radians(YylR)), epAf.sin(oyIN.radians(YylR)), 0], [-epAf.sin(oyIN.radians(YylR)), epAf.cos(oyIN.radians(YylR)), 0], [0, 0, 1]]).astype(float)", "def P1gh(dnz0):\n lY0q = epAf.cos(dnz0)\n aevO = epAf.sin(dnz0)\n return I7o1([[lY0q, -aevO, 0, 0], [aev...
[ "0.80851704", "0.7994976", "0.7708117", "0.76915234", "0.762109", "0.7550639", "0.7510469", "0.7504397", "0.7491708", "0.74886554", "0.74733263", "0.74185735", "0.73986894", "0.7390696", "0.7389884", "0.7355897", "0.7314737", "0.73123145", "0.72950923", "0.7294388", "0.725805...
0.71845347
32
Retrieves the list of all Review objects of a place
def Sqll(SsWt): C6id = S8SU.get(pRgP, SsWt) if not C6id: eTsH(404) kSgn = [Slbv.to_dict() for Slbv in C6id.reviews] return (pz3A(kSgn), 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kSgn(YKHO):\n q04w = []\n DVis = FYrf.storage.all(E1cg)\n for G1Hx, YEnM in DVis.items():\n if SsWt in YEnM and YEnM.place_id == YKHO.id:\n q04w += YEnM\n return q04w", "def kSgn(YKHO):\n ULRW = []\n from models import storage\n cmPJ = storage.all(E1cg)\n if cmPJ:\n ...
[ "0.80211556", "0.79604316", "0.79335433", "0.7910052", "0.78777546", "0.7823311", "0.7803582", "0.7776695", "0.7727078", "0.7687567", "0.76589656", "0.76099324", "0.7585774", "0.7577845", "0.75466055", "0.752302", "0.747767", "0.73693275", "0.7369133", "0.7361545", "0.7289344...
0.7558731
14
Find the location of the ELL repo and the build directory
def VDgw(): tk5Y = Hy7s.environ.get('ELL_ROOT') if not tk5Y: print("'ELL_ROOT' environment variable is not set.") print('Please set the ELL_ROOT environment variable to point to your ELL git repo') HwRy.exit(1) if not Hy7s.path.isdir(tk5Y): print("'ELL_ROOT' environment varia...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DCxr():\n for pmON in p0By.parents:\n if (pmON / '.repo').is_dir():\n return pmON\n raise FileNotFoundError('Unable to locate the root of the checkout')", "def Zmwh(Emd4):\n SfyY = NPYu.join('.fx-build-dir')\n if not Hy7s.path.exists(SfyY):\n raise NPYu.ConfigError('Unabl...
[ "0.69621205", "0.6944381", "0.66995126", "0.66099584", "0.650957", "0.64676213", "0.64296603", "0.63949466", "0.63855577", "0.6375436", "0.6321582", "0.63193905", "0.6302682", "0.6282049", "0.62625825", "0.62625825", "0.62255913", "0.6214373", "0.62047005", "0.62002474", "0.6...
0.722693
0
Determine if a number value represents UNKNOWN from PyISY.
def ujzM(wEf2): return wEf2 == -1 * float('inf')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IGMr(BWXx):\n return skgd(BWXx) == 2047 and yLze(BWXx)", "def UW1F(wEf2):\n return int(wEf2) == 8999999488", "def IGMr(BWXx):\n return skgd(BWXx) == 2047 and yLze(BWXx)", "def BoDn(BWXx):\n return compile('^\\\\.?(?:nan|NaN|NAN)$').match(BWXx) is not None", "def dW2J(YKHO):\n return YKHO...
[ "0.67832506", "0.6764115", "0.66985995", "0.66071486", "0.6466735", "0.64513534", "0.6450438", "0.64479274", "0.6445597", "0.6434419", "0.64296025", "0.64207906", "0.64034414", "0.63691926", "0.632989", "0.6328463", "0.6297651", "0.62725925", "0.62720865", "0.62505203", "0.62...
0.80060756
0
Return the class of this device. This was discovered by parsing the device type code during init
def rM2U(YKHO) -> str: return YKHO._device_class_from_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n BI9h = zx9u.get(YKHO.device[0])[4]\n if BI9h != '':\n return BI9h", "def rM2U(YKHO):\n return YKHO.sensor_details[4]", "def rM2U(YKHO):\n return YKHO._handle('device_class')", "def rM2U(YKHO) -> str | None:\n return YKHO._device_class", "def rM2U(YKHO):\n return Y...
[ "0.8480875", "0.84576654", "0.8425046", "0.83141536", "0.83047795", "0.82943666", "0.8288289", "0.8288289", "0.8288289", "0.82758105", "0.81941843", "0.81941843", "0.81941843", "0.81941843", "0.8190078", "0.8172416", "0.81468284", "0.81468284", "0.81468284", "0.81468284", "0....
0.8669888
0
Get the current value of this sensor.
def BWXx(YKHO) -> object: return YKHO._computed_state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n return YKHO.sensor.raw", "def Zmkp(YKHO):\n YKHO.regenerate()\n return YKHO.current_value", "def Zmkp(YKHO):\n return YKHO.current_value", "def JkD2(YKHO):\n if YKHO.coordinator.data.get(YKHO.vin):\n BWXx = YKHO.coordinator.data[YKHO.vin]['status'].get(YKHO.data_field)...
[ "0.90591365", "0.8344607", "0.8322912", "0.8305523", "0.819158", "0.8082154", "0.80446416", "0.8040522", "0.8025419", "0.794296", "0.7911324", "0.78947616", "0.7872096", "0.7860642", "0.7848041", "0.7792787", "0.7788776", "0.7776819", "0.7774218", "0.77622914", "0.77622914", ...
0.0
-1
Get the class of this device.
def rM2U(YKHO) -> str: return 'battery'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n return YKHO._class", "def rM2U(YKHO):\n return YKHO._handle('device_class')", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "...
[ "0.88981175", "0.8836205", "0.87691015", "0.87691015", "0.87691015", "0.87691015", "0.87691015", "0.87691015", "0.87691015", "0.87691015", "0.87691015", "0.87691015", "0.87691015", "0.87691015", "0.87691015", "0.87691015", "0.87691015", "0.87691015", "0.8731787", "0.87087977", ...
0.72088885
75
Get the state attributes for the device.
def R1i3(YKHO): hkS8 = super().device_state_attributes hkS8['parent_entity_id'] = YKHO._parent_device.entity_id return hkS8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO._state_attributes", "def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i...
[ "0.8975838", "0.8931477", "0.89232963", "0.8912356", "0.8912356", "0.8912356", "0.8895344", "0.8895344", "0.8871823", "0.8871823", "0.8871823", "0.8871823", "0.8871823", "0.8868086", "0.88663876", "0.8864888", "0.8864888", "0.8864888", "0.8864888", "0.88565785", "0.88565785",...
0.0
-1
Show the login page. If 'next' is a URL parameter, add its value to the context. (We're mimicking the standard behavior of the django login auth view.)
def HAIN(QePW): QpfX = {'next': QePW.GET.get('next', '')} QpfX.update(awai(QePW)) rPXJ = DAt9('registration/login.html') _R2e = rPXJ.render(QpfX, QePW) return igJ6(_R2e)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zt0L(QePW):\n next = QePW.GET.get('next')\n if QePW.user.is_authenticated:\n if next:\n return vKnz(next)\n return vKnz('accounts:profile-edit')\n L03z = Eo6a(QePW.POST or None)\n if L03z.is_valid():\n NtEF = L03z.cleaned_data.get('username')\n jTXt = L03z.cle...
[ "0.7877087", "0.75847423", "0.7577771", "0.73953366", "0.7202616", "0.7147355", "0.7133184", "0.7132338", "0.71321344", "0.71019673", "0.7062151", "0.7017212", "0.69803905", "0.6976977", "0.6958513", "0.6952743", "0.69323206", "0.69263035", "0.69158083", "0.6872267", "0.68586...
0.7384495
4
The LTIPassport model can be instantiated without setting any field.
def dQJT(YKHO): v8iy = iH7_.objects.create() YKHO.assertIsNone(v8iy.consumer_site) YKHO.assertIsNone(v8iy.playlist) YKHO.assertEqual(len(v8iy.oauth_consumer_key), 20) YKHO.assertEqual(len(v8iy.shared_secret), 40) YKHO.assertTrue(v8iy.is_enabled)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, c9ua, a5w_, oGE4, cm9N, Hxmi, JSoq, _Kb1, jTXt):\n YKHO.first_name = c9ua\n YKHO.second_name = a5w_\n YKHO.other_name = oGE4\n YKHO.passport_url = cm9N\n YKHO.email_address = Hxmi\n YKHO.phone_number = JSoq\n YKHO.is_admin = _Kb1\n YKHO.password = jTXt", "def FIMM(YKHO, jTX...
[ "0.59358597", "0.5806381", "0.5698335", "0.5674443", "0.5632214", "0.5632214", "0.5631265", "0.5614311", "0.56109715", "0.55850583", "0.5581037", "0.55805314", "0.5575062", "0.5547522", "0.55342376", "0.5514122", "0.54510146", "0.5450602", "0.54460984", "0.5439996", "0.543454...
0.73454607
0
Iterates over the elements common to both iterators. Assumes both iterators are increasing and unending.
def iQin(CMx9, TduZ): jzdc = next(CMx9) Fg_i = next(TduZ) while True: while jzdc < Fg_i: jzdc = next(CMx9) while Fg_i < jzdc: Fg_i = next(TduZ) if jzdc == Fg_i: yield jzdc Fg_i = next(TduZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EnxT(fUYa, bEXe, qk7K=lambda WKvO, LVAh: WKvO <= LVAh):\n JXPP = object()\n fUYa = iter(fUYa)\n bEXe = iter(bEXe)\n WKvO = JXPP\n LVAh = JXPP\n try:\n WKvO = fUYa.next()\n LVAh = bEXe.next()\n while True:\n if qk7K(WKvO, LVAh):\n yield WKvO\n ...
[ "0.6518829", "0.6346661", "0.628558", "0.6207985", "0.62050134", "0.6161919", "0.6159187", "0.6136796", "0.6107433", "0.6107433", "0.60787153", "0.6073347", "0.6071201", "0.604605", "0.6027348", "0.6018497", "0.599851", "0.5980143", "0.5979789", "0.5976693", "0.597271", "0....
0.7521583
0
Generate the target function with 2 random uniform points and using the slope and the intercept of the line. Returns a (the slope) and b(the intercept)
def WHaW(): fJfP = [oyIN.random.uniform(-1, 1, 1), oyIN.random.uniform(-1, 1, 1)] hWOy = [oyIN.random.uniform(-1, 1, 1), oyIN.random.uniform(-1, 1, 1)] jzdc = (hWOy[1] - fJfP[1]) / (hWOy[0] - fJfP[0]) Fg_i = fJfP[1] - jzdc * fJfP[0] return (jzdc, Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ceFo():\n eHNT = oyIN.zeros(3)\n lCHq = ETre(1)\n ANJu = ETre(1)\n o4D3 = lCHq[0][1]\n si3g = lCHq[0][2]\n ajwV = ANJu[0][1]\n skBL = ANJu[0][2]\n jzdc = (skBL - si3g) / (ajwV - o4D3)\n Fg_i = -1\n Z9rn = si3g - jzdc * o4D3\n eHNT[0] = Z9rn\n eHNT[1] = jzdc\n eHNT[2] = Fg...
[ "0.7344602", "0.691659", "0.68777245", "0.655023", "0.63550764", "0.6220597", "0.61591", "0.6153515", "0.614766", "0.6129074", "0.6118594", "0.61181563", "0.61099756", "0.60773444", "0.6045396", "0.6036683", "0.60185045", "0.60096884", "0.59963024", "0.5988953", "0.5988206", ...
0.82510084
0
Generates the dataset of nbPoints (x_1X,x_1Y,y_1) using random uniform distribution.
def dIX2(hZqr, VMex, BlB8): OoVr = [] for r845 in range(hZqr): HWVo = oyIN.random.uniform(-1, 1, 2) HWVo = oyIN.append(HWVo, 1) OoVr.append(HWVo) OoVr = oyIN.array(OoVr) FwWc = [] for YRbF in range(hZqr): if VMex * OoVr[YRbF, 0] + BlB8 <= OoVr[YRbF, 1]: Fw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KSd6(YKHO, UoOD):\n KCHu = oyIN.random.RandomState()\n for bGrB in range(UoOD):\n yield KCHu.random_sample(YKHO.dimensions)", "def JTYK():\n LTIa = []\n for YRbF in range(100):\n mOlj = float(q67g(-0.3, 0.3))\n tEh9 = float(q67g(-0.3, 0.3))\n LTIa.append([mOlj, tEh9])\...
[ "0.7294855", "0.70923465", "0.68896985", "0.6877974", "0.6853098", "0.6824438", "0.68197584", "0.6805868", "0.6696475", "0.6679575", "0.65295285", "0.65295285", "0.652672", "0.6513505", "0.65050405", "0.65044504", "0.64805776", "0.6459165", "0.6448398", "0.6443182", "0.639281...
0.6972183
2
Test the possibility to add an edge
def B77g(YKHO): ndXP = (5, 1) rBoJ.add_edge(*ndXP) YKHO.assertTrue(rBoJ.is_edge(*ndXP), 'edge cannot be added') ndXP = (0, 'X') rBoJ.add_edge(*ndXP) YKHO.assertFalse(rBoJ.is_edge(*ndXP), 'ERROR: impossible edge are added ?')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hZXv(YKHO):\n tF6w = ndC_('a', 'b')\n YKHO.net.add_edge(tF6w)\n YKHO.assertEqual(YKHO.net.edges[0], tF6w)", "def ppEJ(YKHO):\n YKHO.failUnless(YKHO._gra_test.get_edges()[-1] == YKHO._edg_test2)\n YKHO.assertRaises(AssertionError, YKHO._gra_test.add_edge(\"Ceci n'est pas une arete\"))", "def ...
[ "0.82097197", "0.8084978", "0.7973807", "0.7784705", "0.76768285", "0.7632115", "0.7564022", "0.75510645", "0.7485381", "0.74853367", "0.7444042", "0.74017644", "0.7397704", "0.73955345", "0.736936", "0.7302482", "0.7302067", "0.7293786", "0.72487867", "0.7237023", "0.7232745...
0.7942389
3
Initialize the tile class.
def FIMM(YKHO, pmON, **B2fa): super(XNAt, YKHO).__init__(pmON, **B2fa) _O67 = YKHO._getLargeImagePath() try: YKHO._openslide = PiWw.OpenSlide(_O67) except PiWw.lowlevel.OpenSlideUnsupportedFormatError: raise rGUM('File cannot be opened via OpenSlide.') YKHO.tileWidth = YKHO.tileHeigh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, eL5z):\n YKHO.set_tile(eL5z)", "def FIMM(YKHO, eL5z):\n YKHO.set_tile(eL5z)", "def FIMM(YKHO, TVTK, H2v2):\n YKHO.width = TVTK\n YKHO.height = H2v2\n YKHO.tiles = YKHO.initialize_tiles()", "def uIcm(YKHO):\n YKHO.add_tile()\n YKHO.add_tile()", "def DbxN(YKHO):\n YKHO....
[ "0.8165753", "0.8165753", "0.815038", "0.80840534", "0.7890371", "0.7857775", "0.77546644", "0.77102757", "0.7658676", "0.76447713", "0.76089257", "0.7590288", "0.7372892", "0.7292062", "0.7256234", "0.72406185", "0.72029406", "0.719812", "0.7149224", "0.71016127", "0.708999"...
0.0
-1
inplace version of quicksort
def BA9O(Q6uT, LFlW, _tIi): from random import randrange if len(Q6uT) <= 1: return Q6uT elif LFlW < _tIi: csQL = randrange(LFlW, _tIi) Jjic = Qrt_(Q6uT, LFlW, _tIi, csQL) BA9O(Q6uT, LFlW, Jjic - 1) BA9O(Q6uT, Jjic + 1, _tIi) return Q6uT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oqHq(qw7D, yKcO=0, Os4s=-1):\n if Os4s == -1:\n Os4s = len(qw7D) - 1\n if Os4s - yKcO > 1:\n csQL = qw7D[yKcO + (Os4s - yKcO) / 2]\n LFlW = yKcO\n _tIi = Os4s\n while LFlW <= _tIi:\n while qw7D[LFlW] < csQL and LFlW < Os4s:\n LFlW += 1\n ...
[ "0.7508252", "0.74752975", "0.72901326", "0.7289401", "0.72359776", "0.723032", "0.7176948", "0.7175386", "0.7169631", "0.7153219", "0.7149936", "0.71120125", "0.7100846", "0.70974135", "0.70850956", "0.7051552", "0.70214856", "0.70166314", "0.6983889", "0.698214", "0.6974132...
0.0
-1
Compute epsilon for an intersection of cover elements.
def cBIw(YKHO, iQin: np.array) -> float: tCVX = _ec4(iQin)['dgms'] _hZ2 = 0.0 for YRbF, Bud7 in enumerate(tCVX): ePtR = (Bud7[:, 1] - Bud7[:, 0]) / 2 if (ePtR == oyIN.inf).sum() > (1 if YRbF == 0 else 0): _hZ2 = oyIN.inf qmLP.warn('One of the cover component intersect...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H9id(CU5r, G1Hx, vC9B, YRbF, r845):\n ciZM = CU5r[YRbF, r845] * CU5r[vC9B, G1Hx] - CU5r[YRbF, G1Hx] * CU5r[vC9B, r845]\n if ciZM == 0:\n Ylbp = oyIN.inf\n else:\n Ylbp = -CU5r[YRbF, r845] / float(ciZM)\n return Ylbp", "def _hZ2(YKHO) -> float:\n pass", "def RjuK(jzdc: np.array,...
[ "0.6453784", "0.635226", "0.63297534", "0.6189361", "0.6132049", "0.60189295", "0.5868415", "0.58538485", "0.5837171", "0.5802016", "0.5802016", "0.5802016", "0.5802016", "0.5802016", "0.57934844", "0.5789562", "0.57861775", "0.57386535", "0.57199395", "0.5716796", "0.5633276...
0.8008902
0
Collates the batch by padding all examples up to the longest sequence length.
def X8fE(YKHO, Wc9F): Ys30 = max([KCHu.shape[1] for KCHu in Wc9F]) ywwl, vuvg = (len(Wc9F), Wc9F[0].shape[0]) ty06 = oyIN.zeros((ywwl, vuvg, Ys30), dtype=oyIN.float32) aHnM = [] for YRbF, KCHu in enumerate(Wc9F): Kt_s = KCHu.shape[1] aHnM.append(Kt_s) ty06[YRbF, :, :Kt_s] = K...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X8fE(YKHO, Wc9F):\n Ys30 = max([len(a1PO) for a1PO in Wc9F])\n ty06, aHnM = ([], [])\n for a1PO in Wc9F:\n Kt_s = len(a1PO)\n aHnM.append(Kt_s)\n ty06.append(a1PO + [YKHO.pad_value] * (Ys30 - Kt_s))\n return [oyIN.array(ty06), oyIN.array(aHnM)]", "def X8fE(Wc9F):\n nPrm, p...
[ "0.78392625", "0.76997346", "0.7471495", "0.74543107", "0.74295866", "0.7256123", "0.7250085", "0.7170851", "0.71658176", "0.71094626", "0.70853573", "0.70339435", "0.70332575", "0.7018948", "0.7018288", "0.69849646", "0.69144154", "0.6883801", "0.6879093", "0.68713784", "0.6...
0.74311477
4
Collates the batch by padding all examples up to the longest sequence length.
def X8fE(YKHO, Wc9F): Ys30 = max([len(a1PO) for a1PO in Wc9F]) ty06, aHnM = ([], []) for a1PO in Wc9F: Kt_s = len(a1PO) aHnM.append(Kt_s) ty06.append(a1PO + [YKHO.pad_value] * (Ys30 - Kt_s)) return [oyIN.array(ty06), oyIN.array(aHnM)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X8fE(Wc9F):\n nPrm, pan_ = list(zip(*Wc9F))\n Fbjb = ht2j.LongTensor([len(KCHu) for KCHu in nPrm])\n return (gc7n(nPrm), Fbjb, gc7n(pan_))", "def R_Jo(Wc9F):\n wzH_ = max([mvm2['length'] for mvm2 in Wc9F])\n ty06 = [gI2r(mvm2, wzH_) for mvm2 in Wc9F]\n return VqTo(ty06)", "def UfLO(Wc9F: ...
[ "0.76997346", "0.7471495", "0.74543107", "0.74311477", "0.74295866", "0.7256123", "0.7250085", "0.7170851", "0.71658176", "0.71094626", "0.70853573", "0.70339435", "0.70332575", "0.7018948", "0.7018288", "0.69849646", "0.69144154", "0.6883801", "0.6879093", "0.68713784", "0.6...
0.78392625
0
Reads elements of an HDF5 array. Specify a rectilinear (strided) subregion via 'first' and 'last' ('stride').
def qUMT(Ux0P, BX09, cntZ, XVAW, YPaw): if not isinstance(Ux0P, str): return "'filename' must be a string." if not poxP(Ux0P): return "Can't open file '%s' or the file is not an HDF5 file." % Ux0P if not isinstance(BX09, str): return "'arrayname' must be a string." kf_T = None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oy3V(yK6n, J0up, ny8J, XE9N, kJNH, Vxbf, ZRFi, tiEa):\n import numpy as oyIN\n if ny8J == None:\n nPrm = yK6n.get(J0up)[ZRFi:tiEa, kJNH:Vxbf].astype(float)\n else:\n nPrm = yK6n.get(J0up)[ZRFi:tiEa, kJNH:Vxbf, ny8J].astype(float)\n nPrm[nPrm == XE9N] = oyIN.nan\n return nPrm", "d...
[ "0.665314", "0.6329", "0.6318711", "0.6076119", "0.60357076", "0.6033919", "0.59872633", "0.58022904", "0.579387", "0.5774835", "0.56795335", "0.562495", "0.5584913", "0.5583281", "0.5577411", "0.55672485", "0.54524493", "0.5428787", "0.5424206", "0.5419354", "0.53932035", ...
0.7505438
0
Constructor this takes an individual observations summary period's station pressure json. {
def FIMM(YKHO, aXeH): YKHO.pressure = aXeH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, E1Oi=None):\n if E1Oi is None:\n YKHO.pol = 'P1'\n else:\n YKHO.pol = E1Oi\n YKHO.frames = []\n YKHO.stands = []\n YKHO.timestamps = []\n YKHO.n_timestamps = 0\n YKHO.data = {}\n YKHO.data['tod'] = {}\n YKHO.data['aod'] = {}\n YKHO.antennas = {}\n YKHO....
[ "0.629567", "0.6246164", "0.61128336", "0.608279", "0.60546637", "0.6043782", "0.594608", "0.59356534", "0.5926473", "0.5899113", "0.5872939", "0.5864791", "0.5836101", "0.5813004", "0.5806545", "0.5806374", "0.5804127", "0.5791094", "0.5752196", "0.5749072", "0.5723749", "...
0.7464962
0