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
Plot a 2d contour of parameter samples.
def XC9w(jQ3Z, yzQ0, WKvO, LVAh, BQGg=None, bYzl=None, h3cg=None, Z3uP=None, lyYP=50, lhns=50, aNZO=None, zNig=None, leAC: str=None, Srw6=None, BoxX='C1', SdIb=None, Tc6G: str=None, Posv: str=None, _HJf: bool=False, nF9T: bool=False, FxNg: dict=None, **B2fa): EcVT, fuBA, qhVB = vHPs(df=jQ3Z, w=yzQ0, x=WKvO, y=LVAh,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gTa2() -> None:\n vIVt = [{'path': '/mnt/scratch/rasmus_orsoe/oscillation/30x30_std_config_final_num_bins_15_lbe_0.4_hbe_0.8/merged_results.csv', 'model': 'dynedge', 'label': 'dynedge', 'color': 'tab:blue'}, {'path': '/mnt/scratch/rasmus_orsoe/oscillation/30x30_oscNext_config_final_num_bins_15_lbe_0.5_hbe_0...
[ "0.6911598", "0.6870714", "0.6828083", "0.6681361", "0.6664953", "0.6623793", "0.6554247", "0.6550596", "0.6537625", "0.6442961", "0.6405046", "0.6399925", "0.6390123", "0.63878995", "0.63841426", "0.6380011", "0.63525975", "0.6338498", "0.6331356", "0.6294482", "0.62890524",...
0.6334981
18
Base setting with sv2p as world model with softmax.
def zucq(): QjBU = iM_F() QjBU.generative_model_params = 'next_frame_sv2p_atari_softmax' return QjBU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, ZD1I=False, TGba: bool=True, SGf8: float=1e-06):\n super(pmV8, YKHO).__init__()\n YKHO.eps = SGf8\n YKHO.u = EbFG(0, 1)\n YKHO.softmax = U78l.Softmax(dim=-1)\n YKHO.log_softmax_enable = TGba\n YKHO.log_softmax = U78l.LogSoftmax(dim=-1)\n YKHO.ste = ZD1I", "def KQRT():\n QjB...
[ "0.64048123", "0.6188582", "0.6132377", "0.60719454", "0.5875754", "0.5867118", "0.57588917", "0.57354134", "0.5675329", "0.5628677", "0.5560114", "0.55516", "0.554189", "0.55226105", "0.5516331", "0.55053943", "0.54930085", "0.54876655", "0.54799813", "0.54323363", "0.542403...
0.72469306
0
Base setting with deterministic sv2p as world model with softmax.
def KQRT(): QjBU = zucq() QjBU.generative_model_params = 'next_frame_sv2p_atari_softmax_deterministic' return QjBU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zucq():\n QjBU = iM_F()\n QjBU.generative_model_params = 'next_frame_sv2p_atari_softmax'\n return QjBU", "def PCPj():\n bA_p = 0\n bA_p |= xAFq['SKY'].mask\n return bA_p", "def FIMM(YKHO, ZD1I=False, TGba: bool=True, SGf8: float=1e-06):\n super(pmV8, YKHO).__init__()\n YKHO.eps = SG...
[ "0.7353336", "0.62621987", "0.6248578", "0.602624", "0.6026142", "0.5906233", "0.5872541", "0.586386", "0.56685275", "0.5634086", "0.5610489", "0.55923736", "0.55660087", "0.55569375", "0.55349505", "0.5502461", "0.5459563", "0.5447299", "0.54401034", "0.5430002", "0.5410617"...
0.70023733
1
Return stringified dictionary of this flashcard.
def zAg0(YKHO): inl8 = {'flashcard_id': YKHO.__flashcard_id, 'question': YKHO.__question, 'answer': YKHO.__answer, 'group_id': YKHO.__group_id, 'creator_id': YKHO.__creator_id} return qQXR.dumps(inl8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oD7C(YKHO):\n a8Cu = {'id': YKHO.id, 'value': YKHO.value, 'symbol': YKHO.symbol}\n return a8Cu", "def Napc(YKHO):\n Q4FJ = [dxhl.serialize for dxhl in YKHO.cards]\n return {'cards': Q4FJ, 'description': YKHO.description, 'name': YKHO.name, 'id': YKHO.id}", "def MNRr(YKHO):\n return {'tagged_...
[ "0.7325137", "0.72706765", "0.7214699", "0.7166126", "0.6944886", "0.6942726", "0.6912042", "0.6907871", "0.6886569", "0.6829713", "0.6812449", "0.68057406", "0.6793059", "0.6777564", "0.6777564", "0.6771567", "0.6771567", "0.6756255", "0.6751482", "0.6751482", "0.6751482", ...
0.7846564
0
Get this flashcard's id.
def RNgE(YKHO): return YKHO.__flashcard_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO) -> str:\n return YKHO._card_id", "def EslT(YKHO):\n return str(bytearray(YKHO['CardID']))", "def unpH(YKHO) -> str:\n return YKHO._id", "def unpH(YKHO) -> str:\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO) -> str:\n return YKHO.__id", "def unp...
[ "0.8701648", "0.78562415", "0.76365244", "0.76365244", "0.75931674", "0.7584806", "0.7571338", "0.7571338", "0.7571338", "0.7571338", "0.7571338", "0.7571338", "0.7571338", "0.7571338", "0.7571338", "0.7571338", "0.7561633", "0.7561633", "0.7561633", "0.7561633", "0.7531075",...
0.83743685
1
Get this flashcard's associated group id.
def rfWX(YKHO): return YKHO.__group_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hE03(YKHO):\n return YKHO._group_id", "def hE03(YKHO):\n return YKHO._group_id", "def hE03(YKHO):\n return YKHO._group_id", "def hE03(YKHO):\n return YKHO._group_id", "def hE03(YKHO):\n return YKHO._group_id", "def hE03(YKHO):\n return YKHO._group_id", "def hE03(YKHO) -> str:\n ...
[ "0.831893", "0.831893", "0.831893", "0.831893", "0.831893", "0.831893", "0.81944275", "0.81944275", "0.7909713", "0.7909713", "0.7776418", "0.7706948", "0.76542664", "0.7567788", "0.7513533", "0.7350989", "0.7309145", "0.73006", "0.7295663", "0.7268467", "0.7221172", "0.718...
0.83468425
0
Makes the projectile bounce off the side of the screen.
def byAJ(YKHO): if YKHO.rect.x <= 0 or YKHO.rect.x + YKHO.rect.width >= rOQC: YKHO.move_x = -YKHO.move_x elif YKHO.rect.y <= 0 or YKHO.rect.y + YKHO.rect.height >= i3re: YKHO.move_y = -YKHO.move_y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _gq8(YKHO):\n YKHO.y_move *= -1", "def QdZT(YKHO):\n YKHO.rect.x -= 5", "def QdZT(YKHO):\n YKHO.rect.y -= 5", "def riZZ(YKHO):\n if YKHO.top >= ralU:\n YKHO._vy = abs(YKHO.getvy()) * -1\n if YKHO.left <= 0:\n YKHO._vx = abs(YKHO.getvx())\n elif YKHO.right >= xpNW:\n ...
[ "0.69379354", "0.67694974", "0.6692068", "0.66070557", "0.65486246", "0.654576", "0.65287876", "0.65262234", "0.65262234", "0.6511599", "0.64900315", "0.6344264", "0.6324976", "0.6290312", "0.6283854", "0.62777156", "0.62777156", "0.6271774", "0.62700367", "0.62672895", "0.62...
0.0
-1
Initialise the player square, create an image of it and position it on the screen.
def FIMM(YKHO, TVTK, H2v2, iBLD): a9eO.sprite.Sprite.__init__(YKHO) YKHO.image = a9eO.Surface([TVTK, H2v2]) YKHO.image.fill(Ltkx) YKHO.rect = YKHO.image.get_rect() YKHO.speed = iBLD YKHO.move_x = YKHO.speed YKHO.move_y = 0 YKHO.rect.midtop = (tuKI.randint(200, rOQC - 201), tuKI.randint(2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.image = a9eO.image.load(B8jd)\n YKHO.rect = YKHO.image.get_rect()\n YKHO.rect.x = 0\n YKHO.rect.y = 0", "def FIMM(YKHO, H2v2, TVTK, WKvO, LVAh):\n YKHO.height = H2v2\n YKHO.width = TVTK\n YKHO.x = WKvO\n YKHO.y = LVAh\n YKHO.vx = 0.0\n YKHO.vy = 0.0\n YKHO....
[ "0.7478066", "0.7002387", "0.6942674", "0.68612945", "0.6815566", "0.6807584", "0.68018156", "0.6796819", "0.6776838", "0.67623174", "0.6737493", "0.6693855", "0.66912776", "0.66879463", "0.6681629", "0.66638994", "0.6661578", "0.66602635", "0.6619596", "0.66057", "0.6590403"...
0.68394804
4
Initialize a ``TFSPredictor``. See ``sagemaker.RealTimePredictor`` for more info about parameters.
def FIMM(YKHO, cumd, UNf7=None, ZMzz=zTrj, QEuY=NfpC, m5r4=None, ZGE9=None, TBez=None): super(bumR, YKHO).__init__(cumd, UNf7, ZMzz, QEuY, m5r4) azoT = [] if ZGE9: azoT.append('tfs-model-name={}'.format(ZGE9)) if TBez: azoT.append('tfs-model-version={}'.format(TBez)) YKHO._model_attr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uIcm(YKHO):\n YKHO.model = ZylS.contrib.predictor.from_saved_model(YKHO.model_path)", "def PJ6G(YKHO):\n jPbk.set_random_seed()\n YKHO._tf_module = YKHO._constructor()", "def FIMM(YKHO, lFos=None, KeL5=None, W6pi=0, mgA5=False, mWFP='StaticTensorStateModel'):\n super().__init__(name=mWFP, batch...
[ "0.6798984", "0.5959182", "0.5922677", "0.5861301", "0.57494366", "0.57493067", "0.5721638", "0.5713358", "0.5703051", "0.56952554", "0.5692792", "0.5664939", "0.5664939", "0.565279", "0.565279", "0.5623492", "0.5619189", "0.56153464", "0.56120306", "0.56068754", "0.55865675"...
0.55992484
20
Return the arithmetic mean of ``data``. Examples >>> mean([1, 2, 3, 4, 4]) 2.8
def JBMS(nPrm): if len(nPrm) < 1: return None return float(sum(nPrm)) / len(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBMS(nPrm):\n return sum(nPrm) / len(nPrm)", "def JBMS(nPrm):\n exwG = len(nPrm)\n if exwG < 1:\n raise ValueError('mean requires at least one data point')\n return sum(nPrm) / exwG", "def JBMS(nPrm):\n sum = 0\n for ZfUD in nPrm:\n sum += ZfUD\n return sum / len(nPrm)", ...
[ "0.8654643", "0.85830617", "0.8490333", "0.8450323", "0.8450323", "0.8450323", "0.8450323", "0.8450323", "0.8445489", "0.8430172", "0.8404926", "0.8404926", "0.8404926", "0.8404926", "0.83738613", "0.8243883", "0.82363296", "0.82241744", "0.82045424", "0.8169669", "0.8077205"...
0.81947863
19
Return the kurtosis for ``data``.
def HiYA(nPrm): if len(nPrm) == 0: return None mLGw = HVay(nPrm, 4) ciZM = HVay(nPrm, 2) ** 2.0 return mLGw / ciZM if ciZM != 0 else 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HiYA(YKHO):\n jzdc = (YKHO.df - 2) ** 2 * oC2Y(YKHO.df / 2 - 2)\n return 3 * (jzdc / (4 * oC2Y(YKHO.df / 2)) - 1)", "def HiYA(__n6, CHNM=False):\n r8hN = JBMS(__n6)\n exwG = len(__n6) if CHNM else len(__n6) - 1\n M6pt = sum([(Y7fn - r8hN) ** 4 for Y7fn in __n6])\n UUZ1 = exwG * mJX1(__n6) *...
[ "0.7911084", "0.7499563", "0.73645", "0.7285368", "0.7281488", "0.72670394", "0.7253621", "0.72012043", "0.7189713", "0.7076673", "0.70455796", "0.67161864", "0.66890675", "0.64739895", "0.64401895", "0.63547164", "0.63434017", "0.62640065", "0.62010974", "0.6200543", "0.6022...
0.86422443
0
Returns the skewness of ``data``.
def kbKl(nPrm): if len(nPrm) == 0: return None mLGw = HVay(nPrm, 3) ciZM = HVay(nPrm, 2) ** 1.5 return mLGw / ciZM if ciZM != 0 else 0.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kbKl(nPrm):\n if isinstance(nPrm, XTiz.ma.core.MaskedArray):\n cmlg = XTiz.ma\n else:\n cmlg = XTiz\n return cmlg.power(nPrm - cmlg.mean(nPrm), 3).mean() / cmlg.power(cmlg.var(nPrm), 3.0 / 2.0)", "def kbKl(nPrm):\n uuEx.distplot(nPrm, kde=True)\n JBMS = oyIN.mean(nPrm)\n BjRM ...
[ "0.8838147", "0.8403337", "0.8025196", "0.79281074", "0.75253934", "0.74253935", "0.7070504", "0.70367926", "0.70216405", "0.70197797", "0.68786126", "0.66167843", "0.65646136", "0.655975", "0.64973927", "0.648545", "0.64369637", "0.6362498", "0.6339657", "0.62938213", "0.626...
0.8711144
1
Returns the PlatformSpec of the component. Useful when the component is a GraphComponent, else will be empty per component_spec.platform_spec default.
def knQc(YKHO) -> Pqc_.PlatformSpec: return YKHO.component_spec.platform_spec
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a9EH(YKHO):\n return YKHO._get_field('platform')", "def a9EH(YKHO):\n if YKHO._platform_present:\n return YKHO._platform_value\n else:\n raise AttributeError(\"missing required field 'platform'\")", "def Z5O9(YKHO):\n return YKHO.__platform", "def a9EH(YKHO):\n return YKHO.pr...
[ "0.6716696", "0.66670275", "0.65836257", "0.6429048", "0.63442504", "0.6308863", "0.63046074", "0.6282173", "0.62610894", "0.61981255", "0.61981255", "0.61925125", "0.6143415", "0.6101424", "0.6018597", "0.59971803", "0.5992362", "0.5956521", "0.59554553", "0.5950545", "0.594...
0.8325942
0
A certificate description (string)
def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'description')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VQa0(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('certificate'))", "def Viyi(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_body')", "def Viyi(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_body')", "def VQa0(YKHO) -> str:\n return qe4Y.get(YKH...
[ "0.72128636", "0.7089776", "0.7089776", "0.7051391", "0.7051391", "0.7051391", "0.7051391", "0.69978833", "0.69978833", "0.6947225", "0.6822284", "0.67472136", "0.67472136", "0.67357326", "0.67338675", "0.67003673", "0.6693521", "0.66319823", "0.66167516", "0.6563251", "0.656...
0.0
-1
The name of the certificate (string)
def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MN3X(YKHO):\n return YKHO._certificate_name", "def MN3X(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_name')", "def MN3X(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_name')", "def MN3X(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'certificate_name')", "de...
[ "0.8805522", "0.87446976", "0.87446976", "0.87308687", "0.86655116", "0.8414844", "0.8414844", "0.8414844", "0.83815545", "0.8118857", "0.8118857", "0.77674925", "0.77589333", "0.77589333", "0.77589333", "0.77589333", "0.76449126", "0.7475427", "0.7475427", "0.73338526", "0.7...
0.0
-1
A certificate description (string)
def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'description')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VQa0(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('certificate'))", "def Viyi(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_body')", "def Viyi(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_body')", "def VQa0(YKHO) -> str:\n return qe4Y.get(YKH...
[ "0.72128636", "0.7089776", "0.7089776", "0.7051391", "0.7051391", "0.7051391", "0.7051391", "0.69978833", "0.69978833", "0.6947225", "0.6822284", "0.67472136", "0.67472136", "0.67357326", "0.67338675", "0.67003673", "0.6693521", "0.66319823", "0.66167516", "0.6563251", "0.656...
0.0
-1
The name of the certificate (string)
def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MN3X(YKHO):\n return YKHO._certificate_name", "def MN3X(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_name')", "def MN3X(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_name')", "def MN3X(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'certificate_name')", "de...
[ "0.8805522", "0.87446976", "0.87446976", "0.87308687", "0.86655116", "0.8414844", "0.8414844", "0.8414844", "0.83815545", "0.8118857", "0.8118857", "0.77674925", "0.77589333", "0.77589333", "0.77589333", "0.77589333", "0.76449126", "0.7475427", "0.7475427", "0.73338526", "0.7...
0.0
-1
A certificate description (string)
def JBZA(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'description')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VQa0(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('certificate'))", "def Viyi(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_body')", "def Viyi(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_body')", "def VQa0(YKHO) -> str:\n return qe4Y.get(YKH...
[ "0.72128636", "0.7089776", "0.7089776", "0.7051391", "0.7051391", "0.7051391", "0.7051391", "0.69978833", "0.69978833", "0.6947225", "0.6822284", "0.67472136", "0.67472136", "0.67357326", "0.67338675", "0.67003673", "0.6693521", "0.66319823", "0.66167516", "0.6563251", "0.656...
0.0
-1
The name of the certificate (string)
def mWFP(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MN3X(YKHO):\n return YKHO._certificate_name", "def MN3X(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_name')", "def MN3X(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_name')", "def MN3X(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'certificate_name')", "de...
[ "0.8806402", "0.874542", "0.874542", "0.87312675", "0.8665792", "0.84152347", "0.84152347", "0.84152347", "0.83814526", "0.8119045", "0.8119045", "0.776827", "0.77593094", "0.77593094", "0.77593094", "0.77593094", "0.764458", "0.74744153", "0.74744153", "0.733313", "0.733313"...
0.0
-1
Given an HTTP response code, create a properly formatted error response
def yTxc(Wxnj): AWBS = {'AccessDenied': (403, 'Access denied'), 'ContainerAlreadyExists': (409, 'The requested Container alredy exists'), 'ContainerNotEmpty': (409, 'The container you tried to delete is not empty'), 'InvalidArgument': (400, 'Invalid Argument'), 'InvalidContainerName': (400, 'The specified container...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jxdG(SaEn):\n geh0 = {'_status': 'ERR', '_error': {'code': SaEn, 'message': rJmL[str(SaEn)]['description']}}\n return geh0", "def j_dP(h0nS):\n try:\n geh0 = jdDJ(h0nS)\n jGRS = geh0[geh0.find('<title>') + 7:geh0.find('</title>')]\n G1bx = 'HTTP/1.1 ' + jGRS + '\\r\\n'\n ...
[ "0.8472243", "0.8342851", "0.8022877", "0.8004491", "0.7992016", "0.797591", "0.79486525", "0.78724766", "0.78596616", "0.77515954", "0.77099127", "0.7706223", "0.7619928", "0.7545015", "0.74762815", "0.7464241", "0.74562806", "0.744389", "0.7348808", "0.73420876", "0.7335542...
0.770841
11
creates filename with current datetime string suffix
def vD4E(y0cW='output_', Fst3='.txt'): q5GV = y0cW + '{:%Y%m%d%H%M%S}utc{}'.format(qcWV.datetime.utcnow(), Fst3) return q5GV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WwPm(YKHO):\n wzkt = qcWV.now()\n return qcWV.strftime(wzkt, '%Y%m%d-%H%M%S') + '.dat'", "def loba():\n return qcWV.now().strftime('%Y-%m-%d-%H-%M-%S') + '.json'", "def HsL2(YKHO, y0cW, C3ap, YBcr):\n return y0cW + qcWV.now().strftime('%Y-%m-%d-%H-%M-%S') + f'_{C3ap}.{YBcr}'", "def pcWg(YKHO)...
[ "0.8297212", "0.8105869", "0.80899024", "0.8061622", "0.80567986", "0.798183", "0.7969418", "0.7925751", "0.78982645", "0.7887706", "0.7757735", "0.7754784", "0.7734589", "0.77089363", "0.77055097", "0.76774794", "0.759694", "0.75668114", "0.75578034", "0.755491", "0.75541264...
0.8000376
5
Converts from CIE xyY colourspace to CIE XYZ tristimulus values.
def UqRx(p53Z): WKvO, LVAh, fuBA = pXpS(p53Z) RM3a = oyIN.where((LVAh == 0)[..., oyIN.newaxis], n9D7((LVAh, LVAh, LVAh)), n9D7((WKvO * fuBA / LVAh, fuBA, (1 - WKvO - LVAh) * fuBA / LVAh))) return RM3a
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t59t(FLNe):\n return FLNe / oyIN.tile(oyIN.sum(FLNe, axis=1), (3, 1)).T", "def K2kb(M_DK, Oz1B='CIE RGB'):\n M_DK = M_DK.reshape(-1, 2)\n fuBA = oyIN.ones(M_DK[:, 0].shape).reshape(-1, 1)\n EcVT = fuBA * (M_DK[:, 0] / M_DK[:, 1]).reshape(-1, 1)\n Nk6w = fuBA * (1 - (M_DK[:, 0] + M_DK[:, 1]).re...
[ "0.7271244", "0.71572125", "0.6923859", "0.671416", "0.667244", "0.65875524", "0.65442246", "0.6465893", "0.6441589", "0.6417901", "0.6371453", "0.6364055", "0.63590586", "0.63542163", "0.6331681", "0.62169653", "0.61923635", "0.6183464", "0.61607987", "0.61607987", "0.616079...
0.6799327
3
Returns the CIE XYZ tristimulus values from given xy chromaticity coordinates.
def Nc2z(M_DK): WKvO, LVAh = pXpS(M_DK) p53Z = n9D7((WKvO, LVAh, oyIN.ones(WKvO.shape))) RM3a = UqRx(p53Z) return RM3a
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t59t(FLNe):\n return FLNe / oyIN.tile(oyIN.sum(FLNe, axis=1), (3, 1)).T", "def UqpO(_hYw, p6S0, BGSy):\n if len(_hYw) == 17:\n Z6mt = 5\n else:\n print('Unexpected Khi step')\n raise IOError\n if len(_hYw[0]) == 72:\n bpbe = 5\n else:\n print('Unexpected phi ...
[ "0.69504565", "0.6807075", "0.6788819", "0.66485834", "0.65447503", "0.63990897", "0.63344675", "0.629327", "0.62556195", "0.62291694", "0.61982006", "0.6177222", "0.6176704", "0.613686", "0.613686", "0.6121862", "0.60899246", "0.60815144", "0.60715806", "0.6025755", "0.60010...
0.62212026
10
Get the optimizer type associated with this REST endpoint.
def Ietv(YKHO, NArs): return JV3H[YKHO._route_name]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K0do(YKHO):\n return YKHO._config.get('optimizer')", "def UdWu(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_type')", "def K0do(YKHO) -> h8nf[hCm3]:\n return YKHO.__optimizer__", "def K0do(YKHO):\n return YKHO._optimizer", "def type(YKHO):\n return YKHO.opts['type']", "d...
[ "0.6317716", "0.61009955", "0.60484356", "0.59858775", "0.59514695", "0.59225893", "0.59225893", "0.59225893", "0.59127533", "0.59107167", "0.5900824", "0.58869064", "0.5882017", "0.5840789", "0.582793", "0.5812667", "0.58052516", "0.5772014", "0.57279545", "0.5691418", "0.56...
0.6813124
0
Return the deserialized parameters from the json_body of a request. We explicitly pull out the ``optimizer_type`` and use it to deserialize and validate the other parameters (num_multistarts, num_random_samples, optimizer_parameters). This is necessary because we have different default optimizer parameters for differen...
def AOhX(YKHO): NArs = super(jTPW, YKHO).get_params_from_request() NArs['optimizer_info'] = jth9.deepcopy(NArs['optimizer_info']) if NArs['optimizer_info']['optimizer_type'] is None: NArs['optimizer_info']['optimizer_type'] = YKHO._get_default_optimizer_type(NArs) s4hN = YKHO._get_default_optimi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OqPV(YKHO) -> cuzp[str, ImMB]:\n if YKHO._state == 'clean':\n assert YKHO._read_model is not None\n tA4O = YKHO._read_model.serialized_parameters\n elif YKHO._state == 'creating':\n assert YKHO._create_model is not None\n tA4O = YKHO._create_model.serialized_parameters\n el...
[ "0.5756934", "0.5695871", "0.5598857", "0.55738497", "0.5465849", "0.5453289", "0.5450183", "0.5418781", "0.53706396", "0.5361857", "0.53536075", "0.5332749", "0.5323182", "0.53184575", "0.5303326", "0.52885455", "0.5262625", "0.5252851", "0.524441", "0.5243341", "0.5242152",...
0.6916683
0
Getter for the host device.
def n7Mk(YKHO): M4N3 = YKHO.device.pluginProps.get('host-id', None) if M4N3: return r6FC.activePlugin.shellyDevices.get(int(M4N3), None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VeaS(YKHO):\n return YKHO._device", "def begE(YKHO):\n return YKHO.handle.device", "def begE(YKHO):\n return YKHO._impl.device", "def begE(YKHO):\n return YKHO._device", "def begE(YKHO):\n return YKHO._device", "def Xp35(YKHO):\n return YKHO.device", "def begE(YKHO):\n return Y...
[ "0.8062398", "0.7921497", "0.7841982", "0.7785498", "0.7785498", "0.7759732", "0.7721781", "0.7721781", "0.76896846", "0.76299334", "0.76113427", "0.7570466", "0.75372964", "0.7514705", "0.75009143", "0.74749243", "0.7428292", "0.7387747", "0.7370653", "0.7335714", "0.7319940...
0.85682774
0
Getter for the broker id.
def xW3o(YKHO): if YKHO.getHostDevice(): return YKHO.getHostDevice().getBrokerId() else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ki46():\n SHWc = '/kafkalogs/logs/meta.properties'\n pj3z = 0\n LqYa = WhjY()\n if Hy7s.path.isdir(Hy7s.path.dirname(SHWc)) and Hy7s.path.isfile(SHWc):\n with open(SHWc, 'r') as eHNT:\n for zFiD in eHNT:\n r8hN = ZbWC.match('^broker\\\\.id=(.*)$', zFiD)\n ...
[ "0.75351465", "0.7103474", "0.68391913", "0.6664397", "0.66580534", "0.66580534", "0.665652", "0.6579929", "0.657116", "0.6525622", "0.6473004", "0.64338136", "0.64243793", "0.6408524", "0.639973", "0.63924515", "0.6372373", "0.6372373", "0.6372373", "0.6372373", "0.6366294",...
0.8104792
0
Getter for the message type.
def OiJ_(YKHO): if YKHO.getHostDevice(): return YKHO.getHostDevice().getMessageType() else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FxTh(YKHO) -> Kt_s:\n return YKHO.message_type", "def Logs(YKHO) -> str:\n return qe4Y.get(YKHO, 'message_type')", "def YwLH(YKHO):\n return YKHO.msg_type", "def FRul(YKHO):\n from .toolbox import get_registered_message_type\n return get_registered_message_type(YKHO.cls)", "def Logs(YKHO...
[ "0.8794725", "0.87241155", "0.86120194", "0.8572848", "0.8539585", "0.8510602", "0.84858274", "0.8376916", "0.82971174", "0.8271363", "0.8271363", "0.8271363", "0.8271363", "0.8271363", "0.8271363", "0.8271363", "0.8271363", "0.8271363", "0.8271363", "0.8271363", "0.8271363",...
0.794983
33
Load model from the model_dir. This is the same model that is saved in the main if statement.
def JnVv(eG0V): print('Loading model.') C3ST = k6eJ.load(Hy7s.path.join(eG0V, 'model.joblib')) print('Done loading model.') return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl():\n pass", "def uyMl():\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def O5RJ(Emd4, uqvc):\n pass", "def O5RJ(YKHO, uqvc: str):\n pass", "def uyMl():\n return None", "def O5RJ(YKHO):\n pmO...
[ "0.8230235", "0.8230235", "0.8229002", "0.8229002", "0.8229002", "0.8229002", "0.80958414", "0.80431056", "0.8018487", "0.79525405", "0.7952365", "0.7940665", "0.79353106", "0.791893", "0.7899918", "0.789787", "0.78722525", "0.78425866", "0.7842372", "0.7840439", "0.78398454"...
0.745828
66
Get a new dict for aggregate values. The quantities of interest do not vary over objects so this generalizes.
def jXAV(): return {'as': 0, 'ac': 0, 'd': 0, 'ad': 0, 'p': 0}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hICz(YKHO):\n return {YKHO.key: YKHO.total, 'capacity_count': YKHO.count_total, 'capacity_count_units': YKHO.count_units}", "def BTux(YKHO, gMKC):\n Qemi = {'count': sum([XP5J['count'] for XP5J in gMKC]), 'total': sum([XP5J['total'] for XP5J in gMKC])}\n return Qemi", "def Qemi(YKHO):\n raise N...
[ "0.6698564", "0.6653401", "0.65793216", "0.646522", "0.6441097", "0.64015156", "0.62427986", "0.6232718", "0.6142076", "0.6060799", "0.6020533", "0.60074836", "0.59448874", "0.5939948", "0.5930432", "0.5877598", "0.5847819", "0.5847819", "0.5838317", "0.5809198", "0.5800648",...
0.65214515
3
Return a aggregates dictionary for the attribute on a new record.
def YjRP(): qfzg = jXAV() return {'daily': [], 'weekly': [], 'monthly': [], 'all_time': qfzg}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jXAV():\n return {'as': 0, 'ac': 0, 'd': 0, 'ad': 0, 'p': 0}", "def _C2K(YKHO, YJVC=True):\n qPnY = dict(min='min(%(attr)s)', max='max(%(attr)s)', cnt='count(%(attr)s)', cnt_d='count(DISTINCT %(attr)s)', array='array_to_json(array_agg(%(attr)s))::jsonb')\n ZRmG = dict(cnt='count(*)', array='array_to...
[ "0.6595152", "0.6076852", "0.58749306", "0.5848724", "0.58328414", "0.5793491", "0.57312155", "0.57082736", "0.56520814", "0.5627578", "0.5615711", "0.5612995", "0.56029576", "0.55872977", "0.5581298", "0.55736697", "0.5553455", "0.5550631", "0.5543287", "0.5542798", "0.55306...
0.67236465
0
Copy some portion of the implicit graph to an explicit graph Usually, this returns the cached (explored) portion of the graph a "copy" of this implicit graph
def jth9(YKHO) -> RnTg.graph.GDirectedGraph: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j7TX(YKHO) -> ziRQ.Graph:\n return YKHO.__graph.copy()", "def g_yX(YKHO, pNZh):\n return jth9.deepcopy(pNZh)", "def jth9(YKHO):\n pNZh = Q1Kq(entities=YKHO.entities.copy(), triggers=YKHO.triggers.copy(), relations=YKHO.relations.copy(), roles=YKHO.roles.copy(), mentions=YKHO.mentions.copy())\n ...
[ "0.75140524", "0.73780555", "0.73208255", "0.70992184", "0.7027002", "0.69794494", "0.6949426", "0.6945355", "0.6887526", "0.6788924", "0.6705209", "0.6582978", "0.6465791", "0.64594513", "0.63834983", "0.6382059", "0.6343645", "0.63225764", "0.6309182", "0.6295779", "0.62747...
0.7099887
3
test creating two videos with the same name
def LWWH(YKHO): qIxc = {'name': 'abc'} f6W2 = YM9Z(**qIxc) YKHO.db_session.add(f6W2) YKHO.db_session.flush() qIxc = {'name': 'abc'} f6W2 = YM9Z(**qIxc) YKHO.db_session.add(f6W2) YKHO.assertRaises(yXsM, lambda: YKHO.db_session.flush())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hTyU(gnPz, f6W2):\n with f6W2(start_time=0.2, end_time=0.24) as f6W2:\n f6W2.write_videofile(GkAb(gnPz.TMP_DIR) / 'pathlike.mp4', logger=None)\n assert isinstance(f6W2.filename, str)", "def TUs0(paZS) -> None:\n mI4P = [paZS, 0, 'cooking']\n BA5k(pZKx(mI4P), paZS)\n hQsF = [paZS, 0]...
[ "0.73082703", "0.6938882", "0.69259346", "0.69115376", "0.6902417", "0.689383", "0.68483335", "0.6744723", "0.6735992", "0.6674144", "0.6627395", "0.6614899", "0.659161", "0.6575395", "0.654884", "0.6536883", "0.6536142", "0.6518874", "0.6497519", "0.64941007", "0.64873296", ...
0.6882635
6
test creating two videos with product with the same name
def snSN(YKHO): qIxc = {'name': 'abc', 'products': [YKHO.product]} f6W2 = YM9Z(**qIxc) YKHO.db_session.add(f6W2) YKHO.db_session.flush() qIxc = {'name': 'abc', 'products': [YKHO.product]} f6W2 = YM9Z(**qIxc) YKHO.db_session.add(f6W2) YKHO.assertRaises(yXsM, lambda: YKHO.db_session.flush(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QM0n(YKHO):\n pass", "def N2qv(YKHO):\n pass", "def ekzV(YKHO):\n qIxc = {'name': 'abc', 'products': [YKHO.product]}\n f6W2 = YM9Z(**qIxc)\n YKHO.db_session.add(f6W2)\n YKHO.assertEqual(YKHO.db_session.flush(), None)", "def VJsg(YKHO):\n GNfD = dict(encoded_videos=[uwaB.ENCODED_VIDEO...
[ "0.81721216", "0.7854872", "0.7314043", "0.71311957", "0.70147085", "0.67637044", "0.66417086", "0.6550785", "0.64865416", "0.6423919", "0.6420233", "0.63772", "0.6361147", "0.63351953", "0.6334461", "0.6324005", "0.6309197", "0.6284906", "0.6226907", "0.6222025", "0.6205692"...
0.77645004
2
test querying two videos
def ZBNr(YKHO): qIxc = {'name': 'abc1'} R0N0 = YM9Z(**qIxc) qIxc = {'name': 'abc2'} pkpN = YM9Z(**qIxc) YKHO.db_session.add(R0N0) YKHO.db_session.add(pkpN) YKHO.db_session.flush() YKHO.assertEqual([R0N0, pkpN], YKHO.db_session.query(YM9Z).all())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sg8x(YKHO):\n pass", "def wHIV(YKHO):\n with YKHO.assertNumQueries(6):\n nNXP.get_video_info(uwaB.COMPLETE_SET_FISH.get('edx_video_id'))", "def pMx0(YKHO):\n pass", "def P0Un(YKHO):\n return EXB6('./input_video/1.mp4', 0.25, 0, True)", "def TUs0(paZS) -> None:\n mI4P = [paZS, 0, '...
[ "0.76481056", "0.73446375", "0.72885394", "0.7029974", "0.6978519", "0.686035", "0.6841967", "0.6841652", "0.6822042", "0.67180437", "0.66584194", "0.65953964", "0.6503515", "0.6425076", "0.6366989", "0.6358022", "0.6357966", "0.6335112", "0.6289513", "0.62856454", "0.6256588...
0.6738409
9
Draws a healthbar using the boss's current health
def mXLl(D1I4, ZnpV): WKvO, LVAh = (175, 25) MKlR, yzQ0 = (35, ZnpV * 10) if ZnpV == 0: yzQ0 = 1 a1PO = 3 if ZnpV >= 0: a9eO.draw.polygon(D1I4, QEYK, ((WKvO, LVAh), (WKvO + yzQ0, LVAh), (WKvO + yzQ0, LVAh + MKlR), (WKvO, LVAh + MKlR))) a9eO.draw.polygon(D1I4, bFsv, ((WKvO, LV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pN4O(YKHO, Vjhr):\n B072 = max(0.0, YKHO.hp / float(YKHO.original_hp))\n FNTW = 40\n O7Sw = 5\n jlxe = [0, 255, 0]\n Z5Q9 = [255, 0, 0]\n a9eO.draw.rect(Vjhr, jlxe, [int(YKHO.x) - FNTW // 2, int(YKHO.y) - YKHO.half_width - O7Sw * 2, int(lO1m(B072 * FNTW)), O7Sw])\n if B072 < 1.0:\n ...
[ "0.8192638", "0.79962564", "0.7932871", "0.79297084", "0.78690165", "0.7840202", "0.77533746", "0.75218886", "0.74417543", "0.74013937", "0.73935163", "0.7240513", "0.7231279", "0.70963275", "0.70442563", "0.69147855", "0.675608", "0.6746546", "0.66625404", "0.6637174", "0.66...
0.84061515
0
Test that an ImageSeries written without unit is read with unit set to the default value.
def WsYT(YKHO): eHNT = GkAb(xAKo).parent / '1.5.1_timeseries_no_unit.nwb' with YuFP(str(eHNT), 'r') as xDSY: VCzG = xDSY.read() YKHO.assertEqual(VCzG.acquisition['test_timeseries'].unit, YXTX.DEFAULT_UNIT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GFND(YKHO):\n eHNT = GkAb(xAKo).parent / '1.5.1_imageseries_no_unit.nwb'\n with YuFP(str(eHNT), 'r') as xDSY:\n VCzG = xDSY.read()\n YKHO.assertEqual(VCzG.acquisition['test_imageseries'].unit, kTm6.DEFAULT_UNIT)", "def lH4T(YKHO):\n eHNT = GkAb(xAKo).parent / '1.5.1_imageseries_no_data...
[ "0.7741065", "0.6650824", "0.63169605", "0.6085212", "0.60674906", "0.5911839", "0.586844", "0.58603185", "0.5850226", "0.5830467", "0.57813036", "0.57530767", "0.5741161", "0.5732551", "0.5693889", "0.56679803", "0.56589466", "0.5617339", "0.56047773", "0.5576833", "0.554694...
0.6899064
1
Test that an ImageSeries written without data is read with data set to the default value.
def lH4T(YKHO): eHNT = GkAb(xAKo).parent / '1.5.1_imageseries_no_data.nwb' with YuFP(str(eHNT), 'r') as xDSY: VCzG = xDSY.read() oyIN.testing.assert_array_equal(VCzG.acquisition['test_imageseries'].data, kTm6.DEFAULT_DATA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GFND(YKHO):\n eHNT = GkAb(xAKo).parent / '1.5.1_imageseries_no_unit.nwb'\n with YuFP(str(eHNT), 'r') as xDSY:\n VCzG = xDSY.read()\n YKHO.assertEqual(VCzG.acquisition['test_imageseries'].unit, kTm6.DEFAULT_UNIT)", "def yoxp(YKHO):\n eHNT = GkAb(xAKo).parent / '1.5.1_timeseries_no_data....
[ "0.6880201", "0.64639616", "0.5977602", "0.59524614", "0.5890013", "0.58440435", "0.5812237", "0.5809912", "0.5806487", "0.57990974", "0.5781568", "0.5738595", "0.56819636", "0.5646279", "0.5642379", "0.56396616", "0.56364346", "0.56332666", "0.5627957", "0.5597819", "0.55956...
0.7703638
0
Test that an ImageSeries written without unit is read with unit set to the default value.
def GFND(YKHO): eHNT = GkAb(xAKo).parent / '1.5.1_imageseries_no_unit.nwb' with YuFP(str(eHNT), 'r') as xDSY: VCzG = xDSY.read() YKHO.assertEqual(VCzG.acquisition['test_imageseries'].unit, kTm6.DEFAULT_UNIT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WsYT(YKHO):\n eHNT = GkAb(xAKo).parent / '1.5.1_timeseries_no_unit.nwb'\n with YuFP(str(eHNT), 'r') as xDSY:\n VCzG = xDSY.read()\n YKHO.assertEqual(VCzG.acquisition['test_timeseries'].unit, YXTX.DEFAULT_UNIT)", "def lH4T(YKHO):\n eHNT = GkAb(xAKo).parent / '1.5.1_imageseries_no_data.n...
[ "0.6899229", "0.66500485", "0.63182145", "0.60848695", "0.6070124", "0.59141684", "0.5870706", "0.58597904", "0.5849677", "0.58314", "0.5784482", "0.5753774", "0.5741237", "0.57327217", "0.5694816", "0.5667964", "0.5659489", "0.5615743", "0.56085014", "0.5578296", "0.55474675...
0.7741166
0
Return boolean if this section is active.
def WZHJ(YKHO): return YKHO.mloginfo.args['cursors']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ksfB(YKHO) -> bool:\n return YKHO._is_active", "def ksfB(YKHO) -> bool:\n return YKHO._is_active", "def ksfB(YKHO) -> bool:\n return YKHO._is_active", "def ksfB(YKHO):\n return YKHO.active", "def ksfB(YKHO):\n return YKHO.active", "def ksfB(YKHO):\n return YKHO.active", "def ksfB(...
[ "0.7985357", "0.7985357", "0.7985357", "0.79617524", "0.79617524", "0.79617524", "0.79617524", "0.79617524", "0.79617524", "0.792616", "0.7912005", "0.78797317", "0.78797317", "0.78797317", "0.78797317", "0.78747815", "0.78747815", "0.78747815", "0.78686816", "0.7831553", "0....
0.0
-1
Convert epoch to isotime
def Eei1(YKHO, ITS7): return '{}'.format(qcWV.fromtimestamp(ITS7).strftime('%Y-%m-%d %H:%M:%S'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qtWj():\n return int(ITS7.time())", "def Jj31(BWXx):\n return (BWXx - qtWj).total_seconds()", "def kPp0(YKHO, qtWj):\n return (qtWj - 31622400000.0) / (24 * 60 * 60 * 1000.0) + 1.0", "def qtWj():\n return qcWV(1970, 1, 1)", "def p6zu(YKHO):\n return YKHO._epoch_time", "def uyNM():\n ...
[ "0.7516443", "0.7253987", "0.7113019", "0.70983255", "0.70611197", "0.7021092", "0.70189774", "0.70131564", "0.6992611", "0.6951539", "0.69361305", "0.6924112", "0.6872966", "0.6862425", "0.6851423", "0.67776483", "0.6742281", "0.67375326", "0.6720011", "0.66441643", "0.66219...
0.0
-1
JSON.dump() stores tuples as JSON lists. This function receives a list (with sub lists) and creates a tuple of tuples from the list. The tuples are the preferred input type for py2neo. E.g. [[a, b], [c, d]] > ((a, b), (c, d))
def RtsS(jroO: list) -> tuple: hlel = tuple() for U6D_ in jroO: if isinstance(U6D_, list): hlel = hlel + (tuple(U6D_),) else: hlel = hlel + (U6D_,) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkDM(vC9B):\n Z9rn = [None for WKvO in vC9B]\n for or8S, ZfUD in enumerate(vC9B):\n if type(ZfUD) in jnmG:\n Z9rn[or8S] = ZfUD\n elif hasattr(Ty9i, '__call__'):\n Csk6[G1Hx] = k6eJ.dump(Ty9i, 'func-{}'.format(G1Hx))\n elif isinstance(ZfUD, dict):\n Z9...
[ "0.69087285", "0.6740171", "0.65271366", "0.6413217", "0.6378332", "0.625394", "0.6114581", "0.5860995", "0.5779903", "0.5770775", "0.5770775", "0.57638514", "0.56432384", "0.56160307", "0.56145006", "0.5571726", "0.5568219", "0.5547416", "0.55418974", "0.55313164", "0.550718...
0.7530345
0
Serialize NodeSet to a JSON file in a target directory.
def Napc(YKHO, BrK6: str): pmON = Hy7s.path.join(BrK6, YKHO.object_file_name(suffix='.json')) with open(pmON, 'wt') as eHNT: qQXR.dump(YKHO.to_dict(), eHNT, indent=4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO, wM3v):\n Keod = {'trees': [aevO.output_dict() if aevO is not None else None for aevO in YKHO.sts]}\n with lGU7.open(wM3v, 'w') as eHNT:\n eHNT.write(qQXR.dumps(Keod).encode('utf-8'))", "def HPn2(YKHO, Ux0P):\n fTOJ = open(Ux0P, 'w')\n Ziit = []\n for Q6kx in YKHO.graph.nodes(...
[ "0.6540045", "0.6430786", "0.62879914", "0.6177379", "0.61483127", "0.61332965", "0.60874766", "0.60405385", "0.59794307", "0.59772646", "0.5942287", "0.59246385", "0.5918316", "0.59164625", "0.59108996", "0.5904461", "0.5850777", "0.5845307", "0.58217174", "0.5808491", "0.57...
0.66867137
0
Open and deserialize a JSON file, returning a JSONcompatible Python object.
def SHYG(pmON: Union[str, PathLike]) -> ImMB: with open(pmON) as eHNT: return qQXR.load(eHNT, parse_float=ZjSO, parse_constant=X4m2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PSj2(Ux0P):\n with open(Ux0P) as eHNT:\n return _PkU(eHNT)", "def WEhu(nUeQ):\n with open(nUeQ, 'rb') as input:\n YbAN = qQXR.load(input)\n return YbAN", "def EBvf(Ux0P):\n with open(Ux0P, encoding='utf-8') as Vf_1:\n zFiD = Vf_1.readline()\n M_Yt = qQXR.loads(zFiD)\...
[ "0.8406236", "0.82166576", "0.81814957", "0.8144485", "0.81374395", "0.8106344", "0.8097515", "0.80012774", "0.79995257", "0.7999147", "0.7980924", "0.79677373", "0.7943504", "0.79355234", "0.7911752", "0.7906849", "0.78895164", "0.78885674", "0.78879744", "0.7863898", "0.786...
0.0
-1
Called when 'Infinity', 'Infinity' or 'NaN' is encountered in the JSONencoded input. These JavaScript constants are not strictly allowed by the JSON data model.
def X4m2(Z9rn): raise ValueError(f'{Z9rn} is not a valid JSON value')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hdVh(BWXx, dhFJ=r51j, pvCx=-r51j):\n try:\n BWXx = BDsP(BWXx)\n if epAf.isnan(BWXx):\n return 'NaN'\n elif BWXx == dhFJ:\n return 'Infinity'\n elif BWXx == pvCx:\n return '-Infinity'\n except Exception:\n return BWXx\n return BWXx", ...
[ "0.6645781", "0.65168214", "0.65094703", "0.63267773", "0.6173439", "0.59187734", "0.58464146", "0.5835641", "0.58300644", "0.5813645", "0.58003134", "0.57685846", "0.5749746", "0.5719045", "0.5698691", "0.5683102", "0.5676298", "0.5665385", "0.56440526", "0.56366915", "0.563...
0.5596817
28
Return ComponentAccumulator with Output for CSC. Not standalone.
def XAbJ(JbyC): YAq3 = DSGY() if JbyC.Output.doWriteRDO: _Q6i = ['CscRawDataContainer#*'] if JbyC.Digitization.TruthOutput: _Q6i += ['MuonSimDataCollection#*', 'CscSimDataCollection#CSC_SDO'] YAq3.merge(QY35(JbyC)) YAq3.merge(ioU2(JbyC, 'RDO', _Q6i)) return YA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Df32(YKHO):\n wbhl = YKHO.__class__(a=Syqh('a'), b=Syqh('b')).prefix + str(YKHO.N)\n return YKHO.a.return_bus_wires_values_c_hier() + YKHO.b.return_bus_wires_values_c_hier() + f' {YKHO.out.prefix} = {wbhl}({YKHO.a.prefix}, {YKHO.b.prefix});\\n'", "def c1EA(YKHO, alQJ):\n raise NotImplementedError",...
[ "0.57393163", "0.5597518", "0.5527224", "0.55157226", "0.5514192", "0.5514192", "0.5514192", "0.5430482", "0.5372238", "0.534123", "0.53121847", "0.5301994", "0.5300335", "0.5244738", "0.5240046", "0.5233618", "0.521504", "0.5200017", "0.5195586", "0.5194893", "0.51326525", ...
0.5860677
0
Return ComponentAccumulator with CSC Overlay digitization
def leyB(JbyC, **B2fa): YAq3 = eWiV(JbyC) YAq3.merge(zHk6(JbyC)) if 'DigitizationTool' not in B2fa: Wt9E = YAq3.popToolsAndMerge(A3om(JbyC)) B2fa['DigitizationTool'] = Wt9E if JbyC.Concurrency.NumThreads > 0: B2fa.setdefault('Cardinality', JbyC.Concurrency.NumThreads) B2fa.se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fvgu(YKHO):\n return tE_f.sccc_decoder_combined_cs_INTERLEAVER(YKHO)", "def fvgu(YKHO):\n return tE_f.sccc_decoder_combined_cs_sptr_INTERLEAVER(YKHO)", "def fvgu(YKHO):\n return tE_f.pccc_decoder_combined_cs_INTERLEAVER(YKHO)", "def fvgu(YKHO):\n return tE_f.sccc_decoder_combined_cb_INTERLEAV...
[ "0.60741353", "0.58442485", "0.5794957", "0.57165575", "0.56981915", "0.55899185", "0.558297", "0.55648285", "0.54555964", "0.5444687", "0.5444643", "0.54233426", "0.54233426", "0.54233426", "0.5390954", "0.53866583", "0.5371251", "0.53644377", "0.5338208", "0.5300853", "0.52...
0.5367576
17
Obtiene el objeto de clase Unidad con nombre argumento
def B73r(YKHO, mWFP): for Zmen in YKHO.__List: if Zmen.name == mWFP: return Zmen return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, QhXx):\n YKHO.__nombre = QhXx\n YKHO.__vitalidad = 50\n YKHO.__fortuna = 50", "def FIMM(YKHO, QhXx, psgW=[]):\n YKHO.nombre = QhXx\n YKHO.contenido_marsupio = psgW", "def FIMM(YKHO, QhXx, psgW=None):\n YKHO.nombre = QhXx\n YKHO.contenido_marsupio = psgW", "def FIMM(YKHO, Q...
[ "0.6426136", "0.6308201", "0.6261906", "0.6245363", "0.6010085", "0.5938256", "0.5914184", "0.5866849", "0.58344495", "0.58301747", "0.5828051", "0.5788516", "0.5747607", "0.57472146", "0.5718539", "0.57152057", "0.57044077", "0.5693182", "0.5688684", "0.56707597", "0.5663335...
0.0
-1
Gets the result of this ResultUUID. Should respond with `found` or 404.
def Aofo(YKHO): return YKHO._result
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EEnb(YKHO, OBxK):\n return YKHO._action(['results', 'read'], params={'id': OBxK})", "def Aofo(YKHO):\n try:\n return YKHO.results[0]\n except IndexError:\n return None", "def EEnb(*qIxc, **B2fa):\n return BfDw.get_result(*qIxc, **B2fa)", "def EEnb(YKHO, OBxK):\n YKHO._cursor....
[ "0.6671233", "0.647376", "0.6432915", "0.6397302", "0.6236362", "0.6216073", "0.6216073", "0.6216073", "0.6166878", "0.61625075", "0.61458117", "0.6131712", "0.61078286", "0.6105207", "0.6079026", "0.6062069", "0.6032429", "0.6026501", "0.60116786", "0.59299034", "0.58981466"...
0.55615735
66
Take given [s] string and icrement all the numbers in this string by [inc] number
def EAdr(KCHu, jZ6p): return KCHu.replace(str(1), str(jZ6p))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EAdr(vIwR):\n Wp8N = ZbWC.compile('(?:[^\\\\d]*(\\\\d+)[^\\\\d]*)+')\n x2IP = Wp8N.search(vIwR)\n if x2IP:\n Wu8f = str(int(x2IP.group(1)) + 1)\n yKcO, Os4s = x2IP.span(1)\n A2Ty = vIwR[:max(Os4s - len(Wu8f), yKcO)] + Wu8f + vIwR[Os4s:]\n return A2Ty", "def yqCR(KCHu):\n w...
[ "0.6861735", "0.68341947", "0.67405415", "0.65696067", "0.65113413", "0.6458505", "0.64314723", "0.6345828", "0.6342236", "0.6310891", "0.6309095", "0.6305981", "0.62703335", "0.62644625", "0.6239066", "0.62359744", "0.6181901", "0.61703086", "0.6169391", "0.61677957", "0.616...
0.7429359
0
Helper fn to add dict_loss of most recent losses into loss_list.
def vzzR(gc_b: Dict[str, List], DA2l: dict): for G1Hx, Ty9i in DA2l.items(): gc_b[G1Hx].append(Ty9i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GNjM(YKHO, N77f):\n YKHO._call_stat('add_loss')\n YKHO.exp[-1]['model_training'][-1]['loss'].append(N77f)", "def qnw_(YKHO, N8L0):\n for H5ew, N77f in N8L0.items():\n if H5ew in YKHO.losses_in_epoch:\n YKHO.losses_in_epoch[H5ew].append(N77f.data[0])\n YKHO.step += 1", "def lea...
[ "0.6678645", "0.6614622", "0.6598993", "0.6511529", "0.62976784", "0.61545056", "0.6121339", "0.6106391", "0.60901064", "0.60901064", "0.60592055", "0.6033453", "0.59549177", "0.5954704", "0.5950245", "0.59481066", "0.59420997", "0.5941894", "0.5937319", "0.5920931", "0.59202...
0.76890886
0
Helper fn to add dict_loss of most recent losses into loss_list.
def zZBH(gc_b: Dict[str, List]) -> dict: yvT9 = {} for G1Hx, Ty9i in gc_b.items(): yvT9[G1Hx] = oyIN.mean(Ty9i) return yvT9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vzzR(gc_b: Dict[str, List], DA2l: dict):\n for G1Hx, Ty9i in DA2l.items():\n gc_b[G1Hx].append(Ty9i)", "def GNjM(YKHO, N77f):\n YKHO._call_stat('add_loss')\n YKHO.exp[-1]['model_training'][-1]['loss'].append(N77f)", "def qnw_(YKHO, N8L0):\n for H5ew, N77f in N8L0.items():\n if H5e...
[ "0.76890886", "0.6678645", "0.6614622", "0.6598993", "0.6511529", "0.62976784", "0.61545056", "0.6121339", "0.6106391", "0.60901064", "0.60901064", "0.60592055", "0.6033453", "0.59549177", "0.5954704", "0.5950245", "0.59481066", "0.59420997", "0.5941894", "0.5937319", "0.5920...
0.56562144
40
Normalizes the values corresponding to the given clique and returns the normalized clique.
def NkkI(YKHO, om36): return xFKs.Clique(om36.name, [Ty9i / sum(om36.values) for Ty9i in om36.values])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO):\n YKHO.scale(1 / YKHO.sum())", "def HBfW(YKHO):\n UxQk = jth9(YKHO)\n UxQk.normalize()\n return UxQk", "def NkkI(YKHO, jylo):\n wjRY = jylo[0] + jylo[1]\n if wjRY == 0:\n return jylo\n jylo[0] = jylo[0] / wjRY\n jylo[1] = jylo[1] / wjRY\n return jylo", "def n...
[ "0.61519027", "0.611526", "0.60535127", "0.6043883", "0.60138035", "0.6004278", "0.5994027", "0.5991904", "0.596939", "0.59293413", "0.59002316", "0.5886458", "0.5873228", "0.5864631", "0.58521134", "0.5816785", "0.5775519", "0.5773427", "0.57431024", "0.57396436", "0.5705729...
0.8365056
0
Returns a bytestring version of 's', encoded as specified in 'encoding'. If strings_only is True, don't convert (some) nonstringlike objects. This function was borrowed from Django.
def cJ_x(KCHu, tZ2K='utf-8', K_0Y=False, UAju='strict'): if K_0Y and (KCHu is None or isinstance(KCHu, int)): return KCHu elif not isinstance(KCHu, exCv): try: return str(KCHu) except UnicodeEncodeError: if isinstance(KCHu, Exception): return ' '.j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fb0K(KCHu, tZ2K='utf-8', K_0Y=False, UAju='strict'):\n if isinstance(KCHu, bytes):\n if tZ2K == 'utf-8':\n return KCHu\n else:\n return KCHu.decode('utf-8', UAju).encode(tZ2K, UAju)\n if K_0Y and (KCHu is None or isinstance(KCHu, int)):\n return KCHu\n if not...
[ "0.7806133", "0.77688825", "0.763431", "0.7579115", "0.75248486", "0.7479151", "0.74603766", "0.7378113", "0.7378113", "0.7304224", "0.7276222", "0.7260245", "0.7171469", "0.7167899", "0.7145328", "0.7143285", "0.71431345", "0.7139037", "0.7122437", "0.7117795", "0.7116006", ...
0.7201671
12
Return normalized name for use as a KeyVault secret name.
def SWvD(G2CV): return ZbWC.sub('[^0-9a-zA-Z-]', '-', G2CV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qnCX(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('secretName'))", "def qnCX(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('secretName'))", "def qnCX(YKHO) -> str:\n return qe4Y.get(YKHO, 'secret_name')", "def rywm(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'key_va...
[ "0.7403429", "0.7403429", "0.73001766", "0.71248484", "0.7016007", "0.69753647", "0.6944626", "0.6799179", "0.6750772", "0.6716668", "0.67148376", "0.67148376", "0.6701052", "0.6701052", "0.6701052", "0.6678432", "0.66487145", "0.6621635", "0.65473425", "0.6509376", "0.643906...
0.0
-1
Return the vault and secret name for a config path.
def g9fg(YKHO, G2CV: str) -> AzJI[h8nf[str], h8nf[str]]: vpfJ = GPtr.get_config(G2CV) if not isinstance(vpfJ, dict): return (None, str(vpfJ)) if 'KeyVault' in vpfJ: c3gP = vpfJ.get('KeyVault') JQkQ = YKHO._kv_settings.get('VaultName') if not c3gP or c3gP.casefold() == 'defaul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rywm(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'key_vault_secret_name')", "def qzFU(YKHO, mWFP):\n YKHO.logger.debug(f'looking up vault path: {mWFP}')\n x0hE = acDr.Client()\n G1bq = Hy7s.getenv('VAULT_ADDR', default=None)\n if G1bq is None:\n G1bq = Hy7s.getenv('vault_addr', default=...
[ "0.6690543", "0.66801685", "0.65755045", "0.6460913", "0.629037", "0.625267", "0.6201009", "0.6197297", "0.61596686", "0.60779244", "0.60779244", "0.60779244", "0.605568", "0.6045229", "0.6006372", "0.6000143", "0.599368", "0.59695214", "0.5905896", "0.58939433", "0.5881368",...
0.7181386
0
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool: yT1k = await ajET.config_entries.async_unload_platforms(bTKY, aprE) if yT1k: ajET.data[Sugg].pop(bTKY.entry_id) return yT1k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)", "async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()...
[ "0.70418245", "0.69975436", "0.69197667", "0.69024074", "0.6896897", "0.6870464", "0.6840728", "0.67911863", "0.67835754", "0.6782968", "0.6776581", "0.67688036", "0.6737991", "0.6730449", "0.6713354", "0.67085946", "0.6664857", "0.66411716", "0.6637687", "0.66157013", "0.660...
0.64860606
32
Given user_id, return the associated User object.
def GYAu(uJjO): return mv1M.query.get(uJjO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVwN(uJjO):\n return mv1M.query.filter_by(id=uJjO).first()", "def bt8D(Emd4, uJjO):\n CBIr = mv1M.query.get(uJjO)\n return CBIr", "def bt8D(YKHO, uJjO):\n return YKHO.db.find_first_object_by(mv1M, id=uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def TKWP(YKHO, uJjO):\n try...
[ "0.8584148", "0.85059637", "0.8451208", "0.8356195", "0.8313625", "0.83122563", "0.8306651", "0.8282197", "0.8282197", "0.8282197", "0.8256388", "0.8256388", "0.8256388", "0.82550657", "0.8244969", "0.8241358", "0.8227967", "0.8227303", "0.8204272", "0.82014334", "0.8193303",...
0.0
-1
Logout the current user.
def erK4(): CBIr = c5ow CBIr.authenticated = False ejCy(CBIr) oLi7() L03z = Eo6a() Dwep('Logged out successfully.') return TvZl('login.html', form=L03z)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def erK4():\n c5ow = W84Y()\n a8p0.logout(auth_header=c5ow.profile.get_auth_header(), token=c5ow.profile.token)", "def erK4():\n oLi7()", "def erK4(YKHO):\n if YKHO.is_loggedin():\n YKHO._send_logout_request()\n dqqV.logout()\n else:\n wk5E.logger.info('Unable to log out the...
[ "0.85760385", "0.8575777", "0.85243857", "0.8480241", "0.83090883", "0.83080035", "0.83073527", "0.82905054", "0.8280818", "0.8241597", "0.81981015", "0.8166909", "0.8130871", "0.8116898", "0.810702", "0.80764365", "0.8074127", "0.8074127", "0.8067122", "0.80610317", "0.80512...
0.7774354
50
Obtains square in which a certain cell is contained.
def rGDB(YKHO, VmPb): zFiD = VmPb[0] iVRZ = VmPb[1] dQgj = oyIN.zeros(2, int) dQgj[0] = zFiD // YKHO.type dQgj[1] = iVRZ // YKHO.type return dQgj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def blVz(YKHO, WKvO, LVAh):\n return YKHO.grid[WKvO][LVAh]", "def blVz(YKHO, WKvO, LVAh):\n return YKHO.board[WKvO][LVAh]", "def blVz(YKHO, rdlD, fvDH):\n if rdlD < 0 or rdlD >= 15 or fvDH < 0 or (fvDH >= 15):\n return 0\n return YKHO._board[rdlD][fvDH]", "def blVz(YKHO, rdlD, fvDH):\n ...
[ "0.7669963", "0.74145347", "0.7284052", "0.7273385", "0.7216673", "0.71886635", "0.71584123", "0.71584123", "0.71430296", "0.7099111", "0.70365745", "0.69349885", "0.6894711", "0.6854155", "0.68414986", "0.68300956", "0.6809348", "0.67872375", "0.67865545", "0.6781212", "0.67...
0.70066273
11
Build a Quantity object out of extracted information.
def i0_Y(F_XB, l5Ny, ZfUD, hkxX, PXGI, J20S, uvMl, XOVq, dD6q=None): NRph = tyeH.units(DuqQ) YB9k = True yRdv = 'absolute ' if PXGI.name == 'dimensionless' and yRdv == F_XB[uvMl[0] - len(yRdv):uvMl[0]]: PXGI = NRph.names['kelvin'] PXGI.original_dimensions = PXGI.dimensions J20S =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def USui(BWXx, rYO3):\n global _APP_REGISTRY\n return MbvO.Quantity(BWXx, rYO3)", "def ftyu(Emd4, cTRz, PXGI):\n return y1KW(cTRz, Emd4._SYMBOLS[PXGI])", "def cTRz(Htse, rYO3, hLRM, xx9t, ROpF, yDqo, BfMi):\n Rv0k = iMC1(ROpF)\n print(f'{ROpF} {Rv0k}')\n nPrm = oyIN.arange(0, Rv0k, dtype=yDqo...
[ "0.72720975", "0.7094427", "0.6658015", "0.63510466", "0.62497646", "0.615112", "0.61295885", "0.6114579", "0.6057811", "0.60165536", "0.60160875", "0.60065037", "0.59873235", "0.59748244", "0.5945579", "0.591915", "0.5846891", "0.5825959", "0.58094364", "0.58010995", "0.5764...
0.57535213
22
find the root directory of the project
def LIOs(CLda=3): vCG0 = Hy7s.path.dirname(Hy7s.path.realpath(xAKo)) for YRbF in range(CLda): vCG0 = Hy7s.path.dirname(vCG0) return vCG0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L59w():\n return Hy7s.path.dirname(Hy7s.path.dirname(xAKo))", "def phdL():\n return Hy7s.path.dirname(Hy7s.path.abspath(xAKo))", "def L59w(YKHO):\n return Hy7s.path.dirname(xAKo)", "def Rip8():\n return Hy7s.path.dirname(xAKo)", "def L59w() -> GkAb:\n return GkAb(Hy7s.path.dirname(xAKo))...
[ "0.8436943", "0.8253229", "0.8215211", "0.8184279", "0.817639", "0.8163797", "0.8160158", "0.80949706", "0.8081648", "0.80555075", "0.8054406", "0.8054406", "0.8054406", "0.8054406", "0.8053152", "0.8046053", "0.80459875", "0.8032411", "0.8021114", "0.8021114", "0.7993845", ...
0.7546666
44
Returns NID number of receiver. Returns False if id is not NID
def Ko5m(YKHO): if YKHO.idtype == 'NID': return YKHO.idno else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YOFk(YKHO, *qIxc):\n return PZpo.TUNGraphNodeI_IsNbrNId(YKHO, *qIxc)", "def YOFk(YKHO, *qIxc):\n return PZpo.TNEANetMPNodeI_IsNbrNId(YKHO, *qIxc)", "def YOFk(YKHO, *qIxc):\n return PZpo.TNGraphMPNodeI_IsNbrNId(YKHO, *qIxc)", "def YOFk(YKHO, *qIxc):\n return PZpo.TNEANetNodeI_IsNbrNId(YKHO, *q...
[ "0.6751678", "0.67366016", "0.6706992", "0.6628823", "0.65769875", "0.6537209", "0.65239406", "0.6522406", "0.64592993", "0.6396322", "0.6360765", "0.63395965", "0.6280961", "0.62546647", "0.5979519", "0.59637976", "0.59596676", "0.5950531", "0.590513", "0.58665276", "0.58619...
0.63203657
12
Checks whether the payment cash incentive is settled. Returns True if settled else False
def WS6w(YKHO): if YKHO.cash_incentive_status == 'P' and YKHO.date_cash_incentive_paid and YKHO.date_cash_incentive_settlement: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vb0w(YKHO):\n if YKHO.entry_category == 'P' and YKHO.date_cash_incentive_paid and YKHO.date_cash_incentive_settlement:\n return True\n else:\n return False", "def Vb0w(YKHO):\n if YKHO.status == 'S' and YKHO.settled_by and YKHO.date_settle:\n return True\n else:\n retu...
[ "0.8518028", "0.7885089", "0.66536915", "0.6618943", "0.6475625", "0.62348074", "0.6198174", "0.61893964", "0.6159284", "0.6127156", "0.61011237", "0.6093443", "0.60721195", "0.6060962", "0.6044754", "0.60370564", "0.60180944", "0.601384", "0.60117954", "0.5989888", "0.598949...
0.87767684
0
Get bdt value of the remittance for which the cash incentive paid. In case of complete encashment gets total bdt Value. In case of partial encashment gets only the bdt value for encashed amount
def Ms8b(YKHO): if YKHO.remittance.is_thirdparty_remittance() and YKHO.remittance.currency.short == 'BDT': return YKHO.remittance.amount elif YKHO.encashment and YKHO.remittance.currency.short != 'BDT': return YKHO.encashment.encashment_amount_in_bdt() else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ms8b(YKHO):\n if YKHO.is_thirdparty_remittance() and YKHO.currency.short == 'BDT':\n return YKHO.amount\n elif YKHO.currency.short != 'BDT':\n mVUw = YKHO.currency.get_exchange_rate(date=YKHO.date_create.date(), type='TTC').rate\n return YKHO.amount * mVUw", "def BWXx(YKHO, JRYC):\...
[ "0.73318017", "0.60521394", "0.5992457", "0.5969396", "0.59516275", "0.58877957", "0.5833168", "0.5802112", "0.5784146", "0.5782432", "0.57673204", "0.57458097", "0.5741882", "0.57417095", "0.5726635", "0.5708917", "0.5692462", "0.5675088", "0.5663721", "0.56492674", "0.56460...
0.77872527
0
Checks whether the payment cash incentive is settled. Returns True if settled else False
def Vb0w(YKHO): if YKHO.entry_category == 'P' and YKHO.date_cash_incentive_paid and YKHO.date_cash_incentive_settlement: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WS6w(YKHO):\n if YKHO.cash_incentive_status == 'P' and YKHO.date_cash_incentive_paid and YKHO.date_cash_incentive_settlement:\n return True\n else:\n return False", "def Vb0w(YKHO):\n if YKHO.status == 'S' and YKHO.settled_by and YKHO.date_settle:\n return True\n else:\n ...
[ "0.87767684", "0.7885089", "0.66536915", "0.6618943", "0.6475625", "0.62348074", "0.6198174", "0.61893964", "0.6159284", "0.6127156", "0.61011237", "0.6093443", "0.60721195", "0.6060962", "0.6044754", "0.60370564", "0.60180944", "0.601384", "0.60117954", "0.5989888", "0.59894...
0.8518028
1
Checks whether the payment remittance is settled. Returns True if settled else False
def Vb0w(YKHO): if YKHO.status == 'S' and YKHO.settled_by and YKHO.date_settle: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vb0w(YKHO):\n if YKHO.entry_category == 'P' and YKHO.date_cash_incentive_paid and YKHO.date_cash_incentive_settlement:\n return True\n else:\n return False", "def v2ys(YKHO, CBIr):\n if not YKHO.is_settled() and YKHO.requestpay.remittance.is_thirdparty_remittance():\n YKHO.statu...
[ "0.7827674", "0.73751456", "0.733472", "0.71323514", "0.65964305", "0.6232327", "0.610745", "0.6084191", "0.60469836", "0.6015196", "0.5993299", "0.59124386", "0.5912129", "0.5906868", "0.5887081", "0.5867135", "0.5834167", "0.5829383", "0.582054", "0.582054", "0.58108705", ...
0.82248104
0
Checks and UNsettles a Payment and return the payment object. returns false if not settled
def o7sM(YKHO): if YKHO.is_settled(): YKHO.status = 'U' YKHO.date_settle = None YKHO.settled_by = None return YKHO else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tx3I(Emd4, Wh0A=None):\n if Wh0A is None:\n Wh0A = Emd4.search([('state', '=', 'processing'), ('journal.process_method', '=', 'braintree'), ('braintree_transaction_id', '!=', None), ('braintree_payment_settled', '=', False), ('braintree_settle_payment', '=', True), ('company', '=', T74E().context.get...
[ "0.6358223", "0.62557864", "0.62439215", "0.6147358", "0.6054416", "0.6001725", "0.59607947", "0.5949014", "0.5921249", "0.5878113", "0.57812774", "0.5768301", "0.5752972", "0.5740591", "0.5722717", "0.5721743", "0.57115585", "0.57025456", "0.56779915", "0.5659075", "0.560770...
0.57120687
16
Creates a new SikuliClient for your session, making sure all serverside gc is performed on context exit
def XqDK(KcEq, bIwZ=5637, a4gM=None, DNHh=None): KCHu = ar5C(host=KcEq, port=bIwZ, include=a4gM, exclude=DNHh) yield KCHu for hbFX in KCHu._garbage: KCHu._del_obj(hbFX) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CjI7(YKHO):\n YKHO._open_session('default.ucl')", "def x0hE(QePW):\n x0hE = i9zE()\n\n def Fwbn():\n x0hE.destroy()\n QePW.addfinalizer(Fwbn)\n return x0hE", "async def __aenter__(YKHO):\n YKHO.client_session = Qm_e()\n return YKHO", "def DMw_(YKHO):\n if Qm_e.count == 0:\n...
[ "0.6192415", "0.61886436", "0.6163285", "0.6070332", "0.60161155", "0.6012985", "0.594426", "0.594426", "0.59124273", "0.58647645", "0.58629155", "0.5854686", "0.5847017", "0.58140886", "0.5803399", "0.5776812", "0.57673496", "0.57673496", "0.57605284", "0.57373327", "0.57298...
0.6492742
0
Detects sentiment in the text.
def SgUv(l5Ny): RBHL = rQow.Client(api_version='v1beta2') if isinstance(l5Ny, jKi7.binary_type): l5Ny = l5Ny.decode('utf-8') C13M = RBHL.document_from_text(l5Ny) El7S = C13M.analyze_sentiment().sentiment print(u'Score: {}'.format(El7S.score)) print(u'Magnitude: {}'.format(El7S.magnitude)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def El7S(YKHO, l5Ny):\n LyKa = YKHO.find_features(l5Ny)\n return (YKHO.voted_classifier.classify(LyKa), YKHO.voted_classifier.confidence(LyKa))", "def qTlV(l5Ny):\n Aofo = K9NE(l5Ny)\n _dZy = ''\n if Aofo[0]['label'] == '1 star':\n _dZy = 'very negative'\n elif Aofo[0]['label'] == '2 sta...
[ "0.8002793", "0.7955378", "0.7921562", "0.78080964", "0.7739608", "0.7739569", "0.7739569", "0.7739569", "0.7710831", "0.7710831", "0.76836324", "0.767189", "0.7656377", "0.7648975", "0.76201713", "0.7574022", "0.7501221", "0.7469419", "0.74604255", "0.74011105", "0.73750263"...
0.7977654
1
Detects entity sentiment in the provided text.
def xrRl(l5Ny): RBHL = Fl11.LanguageServiceClient() C13M = Ds3J.Document() if isinstance(l5Ny, jKi7.binary_type): l5Ny = l5Ny.decode('utf-8') C13M.content = l5Ny.encode('utf-8') C13M.type = aVkO.Document.Type.PLAIN_TEXT tZ2K = aVkO.EncodingType.UTF32 if HwRy.maxunicode == 65535: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def siW7(YKHO, l5Ny):\n NArs = {'key': _xUG}\n nPrm = {}\n nPrm['document'] = {'type': 'PLAIN_TEXT', 'language': 'en', 'content': l5Ny}\n nPrm['encodingType'] = 'UTF8'\n MOPg = {'content-type': 'application/json; charset=UTF-8'}\n geh0 = G4JS.post(YKHO.url, data=qQXR.dumps(nPrm).encode('utf-8'), ...
[ "0.8365452", "0.79617274", "0.7845902", "0.78195965", "0.7799499", "0.77618694", "0.77052075", "0.7678856", "0.7676127", "0.76168835", "0.7590108", "0.74357426", "0.74319255", "0.73673564", "0.7349916", "0.73373437", "0.73373437", "0.73373437", "0.73202425", "0.731838", "0.73...
0.80645955
1
Detects entity sentiment in a Google Cloud Storage file.
def sX4z(dYNu): RBHL = Fl11.LanguageServiceClient() C13M = Ds3J.Document() C13M.gcs_content_uri = dYNu C13M.type = aVkO.Document.Type.PLAIN_TEXT tZ2K = aVkO.EncodingType.UTF32 if HwRy.maxunicode == 65535: tZ2K = aVkO.EncodingType.UTF16 Aofo = RBHL.analyze_entity_sentiment(C13M, tZ2K)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sX4z(dYNu):\n x0hE = rQow.LanguageServiceClient()\n C13M = SnBA.Document(gcs_content_uri=dYNu, type=aVkO.Document.Type.PLAIN_TEXT)\n tZ2K = aVkO.EncodingType.UTF32\n if HwRy.maxunicode == 65535:\n tZ2K = aVkO.EncodingType.UTF16\n Aofo = x0hE.analyze_entity_sentiment(C13M, tZ2K)\n for L...
[ "0.7835925", "0.7483342", "0.74564457", "0.69808656", "0.67135906", "0.6673902", "0.6448543", "0.63639", "0.63573074", "0.6252809", "0.6227727", "0.61959946", "0.6149346", "0.6107209", "0.61058736", "0.6100229", "0.60783", "0.60538924", "0.60387623", "0.6003495", "0.59864557"...
0.79022044
0
Compute the matrix of the spectrums (dict kmer > frequencies) as a dense numpy array.
def q5bC(LPxl, BcPw=None, o7sj=True): if BcPw is None: BcPw = set() print('Computing the support of all kmers in spectrums:') for _owh in PRqg(LPxl): BcPw |= _owh.keys() bsq4 = U7iM(BcPw) Cbls = len(LPxl) QJec = len(bsq4) SbF0 = oyIN.zeros((Cbls, QJec)) print(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cxGG(YKHO):\n ezWE = oyIN.zeros((YKHO.size(), YKHO.dim()))\n for YRbF, vC9B in enumerate(YKHO.ldb):\n for r845 in vC9B:\n ezWE[YRbF, r845.item] = r845.freq\n return ezWE", "def hVIy(YKHO):\n return YKHO._spectral_matrix", "def tkQ_(YKHO):\n return oyIN.array([[hnFq.get_inte...
[ "0.63171095", "0.6274303", "0.6273539", "0.6046573", "0.6030011", "0.5987422", "0.59551734", "0.59502697", "0.59432775", "0.593761", "0.5936267", "0.5911725", "0.5905471", "0.58656055", "0.5861841", "0.5848553", "0.5841614", "0.58219", "0.5783824", "0.5768922", "0.573487", ...
0.595773
6
Find whether a number x is even or odd >>> even_or_odd(10) '10 is Even!' >>> even_or_odd(5) '5 is Odd!' whenever a float is provided, then the closest integer >>> even_or_odd(3.2) '3 is Odd!'
def sTzf(WKvO=0): if WKvO % 2 == 0: return '%d is Even!' % WKvO return '%d is Odd!' % WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sTzf(kAne):\n return kAne % 2 == 0", "def zUPe(jzdc, Fg_i):\n if type(jzdc) == bool and type(Fg_i) == bool:\n return jzdc or Fg_i\n elif type(jzdc) == bool and type(Fg_i) == int:\n return jzdc or Fg_i % 2 == 1\n elif type(jzdc) == int and type(Fg_i) == bool:\n return Fg_i or ...
[ "0.7480086", "0.74459827", "0.74349177", "0.74155486", "0.736022", "0.7340587", "0.73164254", "0.7285868", "0.72481966", "0.7182503", "0.7176522", "0.7149328", "0.7142576", "0.7094735", "0.7055908", "0.7033601", "0.7021961", "0.69672", "0.69672", "0.69607407", "0.69445425", ...
0.7270784
8
Given a data set with missing day values sorted by day, adds records with value of `fill_value`
def XoXU(nPrm, xgWT=None): return XaID(1, nPrm, xgWT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i962(Tura):\n Tura.fillna(method='ffill', inplace=True)\n Tura.fillna(method='bfill', inplace=True)", "def i962(Tura):\n Tura.fillna(method='ffill', inplace=True)\n Tura.fillna(method='bfill', inplace=True)", "def i962(Tura):\n Tura.fillna(method='ffill', inplace='TRUE')\n Tura.fillna(met...
[ "0.711236", "0.7110216", "0.70431954", "0.69823074", "0.682096", "0.6780945", "0.6763881", "0.6736587", "0.6736587", "0.6736587", "0.6736587", "0.6736587", "0.6736587", "0.6736587", "0.6736587", "0.6736587", "0.6736587", "0.6736587", "0.6736587", "0.6736587", "0.6736587", "...
0.7186688
0
Given a sorted data set with missing week keys, adds records with value of `fill_value`
def VpTe(nPrm, xgWT=None): return XaID(7, nPrm, xgWT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eyKt(YKHO):\n YKHO.__weeks = dict()\n for Vzk6 in YKHO.__timetalbe_information.week_numbers:\n YKHO.__weeks[str(Vzk6)] = vAPy(YKHO.__calculate_date_from_week_number(Vzk6), Vzk6).fill_days(YKHO.__timetalbe_information.week_days_per_week)", "def v_5Y(_onB, a4GJ, mfxm=False) -> rLdf.DataFrame:\n ...
[ "0.6386577", "0.63294107", "0.63294107", "0.63294107", "0.63294107", "0.63294107", "0.63294107", "0.63294107", "0.63294107", "0.63294107", "0.63294107", "0.63294107", "0.63294107", "0.63294107", "0.63294107", "0.63294107", "0.63294107", "0.63294107", "0.63294107", "0.63294107",...
0.706218
0
Check if a space is empty board(list)
def e8Hr(iBIi, dQgj): return iBIi[dQgj] == ' '
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(iBIi):\n return iBIi == [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]]", "def iuGK(iBIi):\n for YRbF in range(1, 10):\n if iBIi[YRbF] == ' ':\n return False\n return True", "def iuGK(iBIi):\n for n294 in fopf:\n if iBIi[n294] == KAvf:\n ret...
[ "0.844765", "0.82038474", "0.8174139", "0.803961", "0.8030676", "0.79998934", "0.7976332", "0.7968962", "0.7922432", "0.7880266", "0.78632736", "0.785042", "0.78441846", "0.7800183", "0.77669626", "0.77501696", "0.77418745", "0.7718551", "0.7718551", "0.77162665", "0.77107906...
0.7087953
96
split_sentences splits paragraphs into sentences based on positions of punctuation.
def c0FK(Bqqp, DWZl=False): J0yz = [] for ZfUD in Bqqp: yKbf = [] p9yC = ZfUD if DWZl: p9yC = DWZl(p9yC) while True: AQAA = '(?<![1-9])(?<![1-9] )(?<! [1-9] )(?<! [A-Fa-fv] )(?<! [A-Fa-fv])(?<!^[A-Fa-f])(?<!^[A-Fa-f] )(?<!www)[.!?]{1,} ?\\)?"?(?!(htm|net|c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0FK(l5Ny):\n LVQJ = njyT.compile('\\n # Split sentences on whitespace between them.\\n (?: # Group for two positive lookbehinds.\\n (?<=[.!?]) # Either an end of sentence punct,\\n | (?<=[.!?][\\'\"]) # or end of sentence punct and quote.\\n ) ...
[ "0.7611214", "0.73565984", "0.73345906", "0.72480834", "0.71459085", "0.71249723", "0.7108529", "0.7077042", "0.7070022", "0.70213246", "0.698141", "0.6952774", "0.6952774", "0.6946178", "0.69099665", "0.68825996", "0.68798095", "0.68724984", "0.6846337", "0.6801784", "0.6800...
0.64162344
41
Return the Wilson coefficients `C_out` as a wcxf.WC instance. Note that the Wilson coefficients are rotated into the Warsaw basis as defined in WCxf, i.e. to the basis where the downtype and charged lepton mass matrices are diagonal.
def gPbr(YKHO, p4eu, JcD8): import wcxf Nq1b = YKHO.rotate_defaultbasis(p4eu) Csk6 = wcxf.translators.smeft.arrays2wcxf(Nq1b) SxVy = wcxf.Basis['SMEFT', 'Warsaw'] Csk6 = {G1Hx: Ty9i for G1Hx, Ty9i in Csk6.items() if G1Hx in SxVy.all_wcs and Ty9i != 0} NlUw = ['llphiphi'] mB9u = list(set(xHrl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tsXw(YKHO, p4eu, JcD8, FMLJ='yaml', wOb_=None, **B2fa):\n Uf4h = YKHO.get_wcxf(p4eu, JcD8)\n return Uf4h.dump(fmt=FMLJ, stream=wOb_, **B2fa)", "def nIop(YKHO, C3ST, SNBL):\n a0GJ = TRtd(1.0)\n EipQ = TRtd(YKHO.new_coeff)\n if YKHO.geodesic_updates:\n assert C3ST.constrain_W_norm\n ...
[ "0.570259", "0.5658319", "0.56428546", "0.55802065", "0.55786073", "0.55441815", "0.5511991", "0.55052286", "0.54621416", "0.5434303", "0.53839123", "0.53755605", "0.53644437", "0.5362959", "0.5356689", "0.5328079", "0.52949554", "0.52819633", "0.52658457", "0.525411", "0.525...
0.79988885
0
Batch normalization on convolutional maps.
def idFg(WKvO, _LFN, uYNl): UqYS = ZylS.Variable(ZylS.constant(0.0, shape=[_LFN]), name='beta', trainable=True) KMvS = ZylS.Variable(ZylS.constant(1.0, shape=[_LFN]), name='gamma', trainable=True) _ni1, It1b = ZylS.nn.moments(WKvO, [0, 1, 2], name='moments') FwwX = ZylS.train.ExponentialMovingAverage(de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lS53(CK9p):\n assert len(CK9p.get_shape()) == 4\n yphq = CK9p.get_shape().as_list()\n JBMS, SRYB = ZylS.nn.moments(CK9p, axes=[0, 1, 2])\n tYiq = yphq[3]\n vgXP = ZylS.Variable(ZylS.zeros([tYiq]))\n NXpY = ZylS.Variable(ZylS.ones([tYiq]))\n idFg = ZylS.nn.batch_normalization(CK9p, JBMS, SR...
[ "0.72602606", "0.71213925", "0.6958709", "0.6916365", "0.6906669", "0.68352735", "0.68087155", "0.677795", "0.6758743", "0.6722728", "0.67170495", "0.6716704", "0.66944355", "0.66510403", "0.6623104", "0.659641", "0.65921295", "0.6587665", "0.65831465", "0.65773785", "0.65747...
0.0
-1
This test ensures that inactive products are not included in the favorites.
def H3ln(YKHO): YKHO._insert_purchases() msfn.query.filter_by(id=1).first().active = False NCls.session.commit() Ylbp = YKHO.get(url='/users/1/favorites') iJ0a = qQXR.loads(Ylbp.data) YKHO.assertEqual(Ylbp.status_code, 200) YKHO.assertEqual(iJ0a, [3, 2, 4])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SuGH(YKHO):\n Ylbp = YKHO.get(url='/users/1/favorites')\n iJ0a = qQXR.loads(Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, 200)\n YKHO.assertEqual(iJ0a, [])", "def JI9x(YKHO):\n bD7m = gxEw('shopping_tool_api:user_product_favorites', kwargs={'pk': 1})\n geh0 = YKHO.client.get(bD7m)\n YK...
[ "0.71270967", "0.6944688", "0.6797054", "0.6612776", "0.65472835", "0.6510515", "0.6502693", "0.6502544", "0.6444613", "0.64280444", "0.6341513", "0.6326772", "0.63191104", "0.6296329", "0.6250107", "0.6237804", "0.62351143", "0.6206941", "0.61793953", "0.61793953", "0.616389...
0.80418295
0
This test ensures that an empty list is displayed for the user's favorites if no purchases have yet been made.
def SuGH(YKHO): Ylbp = YKHO.get(url='/users/1/favorites') iJ0a = qQXR.loads(Ylbp.data) YKHO.assertEqual(Ylbp.status_code, 200) YKHO.assertEqual(iJ0a, [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fnft(YKHO):\n YKHO.assertEqual(YKHO.flavia.view_shopping_lists(), [], msg='Can not display empty shopping list')", "def kXlO(YKHO):\n YKHO._insert_purchases()\n Ylbp = YKHO.get(url='/users/1/favorites')\n iJ0a = qQXR.loads(Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, 200)\n YKHO.assertEq...
[ "0.73482645", "0.7227782", "0.7026147", "0.6964915", "0.6760862", "0.6760862", "0.6620909", "0.6583767", "0.6469202", "0.6469142", "0.64645624", "0.6453225", "0.63912857", "0.6375743", "0.6369551", "0.6260017", "0.623868", "0.6228293", "0.6216758", "0.6179385", "0.61534834", ...
0.7738759
0
Generates a random dataset for a linear regression model as a pandas dataframe.
def CmhR(Emd4, cDK5, bySB, pan_='y', ARTs=10, t3eI=0): EcVT, LVAh, vqVR = Emd4.generate(cDK5, len(bySB), ARTs, t3eI) fw6T = rLdf.DataFrame(EcVT, columns=bySB) tOZ8 = rLdf.DataFrame(LVAh, columns=[pan_]) jQ3Z = fw6T.join(tOZ8) return (jQ3Z, vqVR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X9UM(os3o=100, doyl=100, MQrI=10, gYUW=1, JJbH=0.0, ARTs=0.0, vqVR=False, igb0=123):\n c2Yh = oyIN.random.RandomState(igb0)\n GTYT = oyIN.zeros((doyl, gYUW))\n MQrI = min(doyl, MQrI)\n GTYT[:MQrI, :] = 100 * c2Yh.rand(MQrI, gYUW)\n EcVT = c2Yh.randn(os3o, doyl)\n LVAh = oyIN.dot(EcVT, GTYT) +...
[ "0.7317105", "0.7009692", "0.69728196", "0.6941778", "0.6807467", "0.6774571", "0.67522603", "0.6716726", "0.6655274", "0.6654921", "0.6570075", "0.64834076", "0.6412543", "0.63718534", "0.6326957", "0.625896", "0.6257563", "0.6207035", "0.62011963", "0.6192626", "0.61819404"...
0.67941856
5
Strips comments from text formatted according to OpenSpending's (idiosyncratic) manuscript convention.
def bSLV(WKvO): fUYa = WKvO.split('\n') return '\n'.join([YRbF for YRbF in fUYa if not ZbWC.match('^%%(?!%%)', YRbF)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bSLV(YKHO, cSAc):\n XP5J = ZbWC.compile('/\\\\*.*?\\\\*/')\n Cxtm = XP5J.sub('', cSAc)\n return Cxtm", "def C3MJ(l5Ny):\n Nqlg = []\n for zFiD in l5Ny.splitlines():\n Nqlg.append(zFiD.lstrip('#'))\n l5Ny = TI0e.dedent('\\n'.join(Nqlg))\n return l5Ny", "def yCHo(l5Ny):\n retur...
[ "0.7609772", "0.7519601", "0.74991816", "0.7459866", "0.7400572", "0.72617614", "0.7259458", "0.7217564", "0.7117539", "0.7097745", "0.70585513", "0.7037902", "0.6916675", "0.6915273", "0.6907694", "0.6901535", "0.6872749", "0.68691057", "0.6844416", "0.6821751", "0.6815939",...
0.6353205
59
Return a copy of the class
def jth9(YKHO): return type(YKHO)(init_dict=YKHO.as_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def FzJk(YKHO):\n return YKHO.__class__(YK...
[ "0.85728544", "0.85728544", "0.85728544", "0.85728544", "0.85728544", "0.85367817", "0.8413501", "0.8357173", "0.82340914", "0.82340914", "0.8193374", "0.8192759", "0.8182511", "0.8067392", "0.806165", "0.806165", "0.806165", "0.806165", "0.806165", "0.79598737", "0.7942265",...
0.7853162
24
Return true if path is raster.
def d1jE(pmON): try: if Hy7s.path.exists(pmON): Mkmy = MDcw.OpenEx(pmON, MDcw.OF_RASTER) if Mkmy: return True return False return False except: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ru6J(YKHO) -> bool:\n return YKHO.is_array()", "def opaR(gEmA):\n try:\n gEmA.get_nodata(0)\n return True\n except:\n return False", "def RD6t(YKHO, input):\n for uvpu in Cuul:\n if input.mimeType.upper() == uvpu['MIMETYPE']:\n YKHO.LogInfo('Raster map is ...
[ "0.78404146", "0.7202337", "0.6967112", "0.68256134", "0.65275574", "0.64895785", "0.64662474", "0.619568", "0.61108536", "0.60932004", "0.60504776", "0.6035316", "0.5994603", "0.59803", "0.5939341", "0.591664", "0.5894521", "0.5894521", "0.5888346", "0.586271", "0.58449703",...
0.8515
0
Gets the instrument_id of this InstrumentInfoDetailed.
def fIQ3(YKHO): return YKHO._instrument_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X7Bh(YKHO):\n raise NotImplementedError()", "def tL2C(YKHO):\n A0CM = Q8vf()\n P1dF = YKHO.source.GetInstrumentID(dWW6(A0CM))\n if P1dF:\n raise IOError('GetInstrumentID error :', P1dF)\n return A0CM.value", "def id(YKHO):\n return BlNT.unpack_from('<I', YKHO.instrument.data, YKHO....
[ "0.77987444", "0.74176294", "0.7286491", "0.7272918", "0.725906", "0.7162936", "0.67643803", "0.6742461", "0.66893154", "0.66006565", "0.65825826", "0.6493957", "0.6452898", "0.64513785", "0.64043194", "0.6155212", "0.60772955", "0.607452", "0.607452", "0.6049252", "0.6022899...
0.8591889
0
Sets the instrument_id of this InstrumentInfoDetailed.
def fIQ3(YKHO, fIQ3): YKHO._instrument_id = fIQ3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYS5(YKHO, YKiD):\n YKHO.instrument = YKiD", "def YKiD(YKHO, YKiD):\n YKHO._instrument = YKiD", "def YKiD(YKHO, YKiD):\n YKHO._instrument = YKiD", "def YKiD(YKHO, YKiD):\n YKHO._instrument = YKiD", "def fIQ3(YKHO):\n return YKHO._instrument_id", "def bwqx(YKHO, bwqx):\n YKHO._insigh...
[ "0.70012444", "0.6591987", "0.6591987", "0.6591987", "0.62792474", "0.6183607", "0.6118462", "0.60525787", "0.60525787", "0.59944594", "0.59944594", "0.5961744", "0.59402573", "0.59402573", "0.59402573", "0.5895175", "0.58746326", "0.58461773", "0.58461773", "0.58150303", "0....
0.8548688
0
Gets the orb5_min_open_hour of this InstrumentInfoDetailed.
def AyyO(YKHO): return YKHO._orb5_min_open_hour
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AyyO(YKHO, AyyO):\n YKHO._orb5_min_open_hour = AyyO", "def cmmK(YKHO):\n return YKHO._open_hour", "def O9w5(YKHO):\n return YKHO._open_minute", "def cmmK(YKHO, cmmK):\n YKHO._open_hour = cmmK", "def O9w5(YKHO, O9w5):\n YKHO._open_minute = O9w5", "def qoUT(YKHO):\n return getattr(YKH...
[ "0.8071347", "0.7300979", "0.69181734", "0.59432614", "0.5832694", "0.5798874", "0.56771505", "0.5670502", "0.5610463", "0.5580531", "0.5573404", "0.5406686", "0.5373964", "0.5373964", "0.5373964", "0.5364968", "0.53401005", "0.5304675", "0.5235501", "0.5182746", "0.51761794"...
0.9030102
0
Returns the string representation of the model
def gTzM(YKHO): return EyO9(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.8043786
34
Replaces email name if new one is provided
def vfRr(YKHO, qP8p): if YKHO.email_name: qrLi, D3lj = Psfc(qP8p) return i7JJ((YKHO.email_name, D3lj)) else: return qP8p
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _MWC(mWFP, D3lj):\n mWFP = ddrW(mWFP)\n D3lj = ddrW(D3lj)\n if D3lj is None:\n return mWFP\n if '@' in D3lj:\n gGzT, zrIJ = D3lj.rsplit('@', 1)\n if len(gGzT):\n RqeO = '*' * (len(gGzT) - 1)\n gGzT = gGzT[0] + RqeO\n D3lj = '%s@%s' % (gGzT, zrIJ)\n ...
[ "0.77720386", "0.7271049", "0.7076702", "0.7071145", "0.7026583", "0.6969123", "0.6920663", "0.68690705", "0.68285596", "0.6681023", "0.6674009", "0.6662622", "0.66352665", "0.6593328", "0.657684", "0.6572324", "0.65149033", "0.65069", "0.6493039", "0.64882785", "0.64577216",...
0.8233845
0
Pick GPU if available, else CPU
def XXJM(): if ht2j.cuda.is_available(): return ht2j.device('cuda') else: return ht2j.device('cpu')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O71Z():\n if Sdxo():\n yIrk = QHwK()\n print(f'Torch is using GPU: {ueYb(yIrk)}')\n else:\n print('Cuda is not available. Torch is using CPU')", "def VGCm(YKHO):\n YKHO.use_gpu = False", "def vxYq():\n return ht2j.device('cuda' if ht2j.cuda.is_available() else 'cpu')", "d...
[ "0.79492784", "0.75592214", "0.74498594", "0.7411322", "0.73167455", "0.73157775", "0.72381717", "0.7224273", "0.7221585", "0.7200139", "0.7192689", "0.71479416", "0.7130736", "0.7116391", "0.7114478", "0.70849043", "0.704257", "0.703302", "0.6995377", "0.69890064", "0.698900...
0.6679735
49
Pack the metadata in the other columns into the val dict If specified by the user, the other key value pairs (json_key, md5_checksum, file_name) will be added into the val dictionary for assiting with mapping values to work tables Arguments xml_row Dictionary from list of denormalized xml Returns xml_row Dictionary wit...
def dEuu(eTu9): for H5ew, BWXx in eTu9.items(): if H5ew != 'val': if H5ew in ['json_key', 'json_key_minus_one', 'md5_list', 'md5_list_minus_one']: BWXx = ', '.join(BWXx) eTu9['val'][H5ew] = BWXx return eTu9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dqax(YKHO, N1p7, iVRZ, rdlD, BWXx):\n L6nW = ''\n T8Rw = ''\n nPrm = [BWXx]\n if iVRZ == 'description':\n L6nW = ', hash'\n T8Rw = ', %s'\n nPrm.append(len(BWXx))\n elif iVRZ == 'repository':\n L6nW = ', base_url, repository_url, file_url, commit_url, tracker_url, ico...
[ "0.58135366", "0.5707721", "0.5697642", "0.553876", "0.5491767", "0.5442249", "0.5434302", "0.54072654", "0.5398018", "0.53721136", "0.5324551", "0.53088814", "0.5280448", "0.5279944", "0.5278205", "0.52549595", "0.5247937", "0.524555", "0.5236496", "0.5229595", "0.52095824",...
0.56974083
3
sets Ghost to dead, and sets damage to max hp via hp_delta just to make sure
def z38W(YKHO): YKHO.dead = True YKHO.hp_delta(YKHO.maxhp - YKHO.damage)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jOVw(YKHO, nZuS):\n YKHO.damage += int(nZuS)\n if YKHO.damage >= YKHO.maxhp:\n YKHO.dead = True", "def rvjQ(YKHO, a033):\n YKHO.health -= a033\n if YKHO.health <= 0:\n YKHO.deactivate()", "def A90d(YKHO, aynx):\n if aynx > YKHO.max_hp:\n raise tWKG(\"Gave a zombie more H...
[ "0.73133916", "0.69855434", "0.69244707", "0.67987204", "0.6706923", "0.6582412", "0.65517956", "0.6510192", "0.6499835", "0.64775026", "0.64415807", "0.64193463", "0.6403378", "0.6403378", "0.63797", "0.62833077", "0.62744707", "0.62502563", "0.624549", "0.6240628", "0.62243...
0.7852671
0
Normalize a given extension if it is a path.
def bTPP(Fst3): Fst3 = BKva.expanduser(Fst3) if BKva.exists(Fst3): Fst3 = BKva.abspath(Fst3) return Fst3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eAlr(YBcr):\n if YBcr is None or YBcr == '' or YBcr.startswith('.'):\n return YBcr\n return '.' + YBcr", "def byFv(pmON):\n pmON = pmON.replace('\\\\', '/')\n pmON = pmON.replace('//', '/')\n DzmH = []\n for Q7me in pmON.split('/'):\n if Q7me == '..':\n if DzmH:\n ...
[ "0.6888853", "0.6802557", "0.670611", "0.65550774", "0.6509271", "0.6453016", "0.64485925", "0.6395052", "0.6314291", "0.631067", "0.63060594", "0.6298807", "0.62593305", "0.6245544", "0.6202271", "0.61849594", "0.6108808", "0.609942", "0.60916543", "0.60758114", "0.60436714"...
0.7885108
0
Convert degrees to quaternions
def Omrx(rKSe=0.0, H2HG=0.0, xTkQ=0.0): lGE9 = epAf.cos(epAf.radians(xTkQ * 0.5)) n2Q1 = epAf.sin(epAf.radians(xTkQ * 0.5)) SpII = epAf.cos(epAf.radians(rKSe * 0.5)) WotO = epAf.sin(epAf.radians(rKSe * 0.5)) RtYL = epAf.cos(epAf.radians(H2HG * 0.5)) WfMD = epAf.sin(epAf.radians(H2HG * 0.5)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Omrx(A3Vt):\n if A3Vt[2, 2] < 0:\n if A3Vt[0, 0] > A3Vt[1, 1]:\n a1PO = 1 + A3Vt[0, 0] - A3Vt[1, 1] - A3Vt[2, 2]\n vexM = [a1PO, A3Vt[0, 1] + A3Vt[1, 0], A3Vt[2, 0] + A3Vt[0, 2], A3Vt[1, 2] - A3Vt[2, 1]]\n else:\n a1PO = 1 - A3Vt[0, 0] + A3Vt[1, 1] - A3Vt[2, 2]...
[ "0.711609", "0.704031", "0.7038563", "0.7027716", "0.70010227", "0.6979709", "0.6979709", "0.6979709", "0.6979709", "0.69104743", "0.6890512", "0.6889934", "0.68815696", "0.68737876", "0.6857042", "0.68511313", "0.68426126", "0.6830686", "0.68291146", "0.68227094", "0.6801426...
0.0
-1
Return a string to help in rebuilding same rig or reconnecting existing nodes.
def xkzz(YKHO): return YKHO.__class__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iSM4(Emd4, Tj_K, Q6kx):\n if Tj_K.get_node_state(Q6kx) in (Emd4.RUNNING, Emd4.RUNABLE):\n return 'R'\n for SdXw in Q6kx.subnodes:\n if Tj_K.get_node_state(SdXw) in (Emd4.RUNNING, Emd4.RUNABLE):\n return 'R'\n return '+'", "def zAg0(YKHO) -> str:\n sYAC = []\n for SLBp,...
[ "0.5870564", "0.5857434", "0.5770002", "0.57649064", "0.5732208", "0.57221574", "0.56985176", "0.5687752", "0.5626812", "0.56234384", "0.559992", "0.55742943", "0.5564825", "0.556025", "0.5553197", "0.55157894", "0.5502058", "0.5496338", "0.5496199", "0.5494728", "0.5481628",...
0.0
-1
Convert a matplotlib figure to a cv2 image that can be displayed
def lP7A(YKHO, LZpg): LZpg.canvas.draw() VXjJ = oyIN.fromstring(LZpg.canvas.tostring_rgb(), dtype=oyIN.uint8, sep='') VXjJ = VXjJ.reshape(LZpg.canvas.get_width_height()[::-1] + (3,)) VXjJ = XC5k.cvtColor(VXjJ, XC5k.COLOR_RGB2BGR) return VXjJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lsxx(LZpg):\n LaVg = xDSY.BytesIO()\n LZpg.savefig(LaVg)\n LaVg.seek(0)\n zbtL = uGYG.Image.open(LaVg)\n VaQS = oyIN.array(zbtL)\n return VaQS[:, :, :3]", "def lsxx(JI1i):\n NRcB = xDSY.BytesIO()\n QrM1.savefig(NRcB, format='png', dpi=100)\n QrM1.close(JI1i)\n NRcB.seek(0)\n ...
[ "0.80789834", "0.703453", "0.69936574", "0.685988", "0.6838016", "0.67931795", "0.6713683", "0.6614737", "0.6589709", "0.65653163", "0.65347505", "0.65347505", "0.65347505", "0.6524659", "0.65040815", "0.65040815", "0.65040815", "0.65040815", "0.65040815", "0.65003294", "0.65...
0.74344
1
Add `city` column to the `event_rsvp` table. This column was added later so we need to ensure that it is present in older instances.
def _0RU(NCls): _5Uo(NCls, GPtr.EVENT_RSVP_TABLE_NAME, 'city', 'string', 'char64,nullable,text_search')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F4wG(nPrm):\n zNig = len(nPrm['NCESSCH'])\n RHMB = []\n for YRbF in range(zNig):\n rdlD, ZLJ_ = RFZ4(YRbF, nPrm)\n vlPZ = ZLJ_.index('LCITY05')\n j5sA = rdlD[vlPZ]\n UrPi = ZLJ_.index('LSTATE05')\n QTBn = rdlD[UrPi]\n RHMB.append(f'{j5sA}, {QTBn}')\n nPrm['...
[ "0.5763167", "0.5560292", "0.5551005", "0.55317473", "0.5525044", "0.55093414", "0.5507418", "0.5503835", "0.54770404", "0.5473432", "0.54355425", "0.54355425", "0.54355425", "0.54355425", "0.54355425", "0.54355425", "0.54355425", "0.54355425", "0.54355425", "0.54355425", "0....
0.7832459
0