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
Adds a mask to a dictionary of tensors.
def BA8A(Wc9F, moH6): ZHfW = ZylS.ones(ZylS.shape(list(Wc9F.values())[0])[:moH6]) if 'mask' in Wc9F: ZHfW *= Wc9F['mask'] Wc9F['mask'] = ZHfW return Wc9F
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ukkl(migL, cHJS, yDqo=ZylS.float32):\n migL = ZylS.cast(migL, yDqo)\n migL = ZylS.tile(migL, [cHJS, 1])\n migL = ZylS.expand_dims(migL, 1)\n ZHfW = migL * -ZylS.cast(10000000000.0, yDqo)\n return ZHfW", "def nqfq(ZHfW, ztIo):\n l0Pg = oyIN.zeros(ZHfW.shape + (len(ztIo),))\n for YRbF in z...
[ "0.63797325", "0.60069853", "0.5828103", "0.57267064", "0.5698066", "0.5682244", "0.568187", "0.56797856", "0.56375194", "0.56301284", "0.5624282", "0.5595792", "0.55565226", "0.55510443", "0.55327576", "0.5527024", "0.55156976", "0.54957926", "0.54877454", "0.54824936", "0.5...
0.6673014
0
gets the current date
def slWZ(YKHO): return YKHO.date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m6Z7():\n return qcWV.datetime.today().strftime(uwaB.DATE_FORMAT)", "def zhU5():\n import datetime\n return datetime.datetime.now()", "def slWZ():\n return qcWV.datetime.now()", "def fqzu():\n return qcWV.datetime.now()", "def m6Z7(FMLJ='%Y-%m-%d'):\n return qcWV.datetime.now().strfti...
[ "0.8901928", "0.8560942", "0.8339298", "0.81877", "0.8158519", "0.8134809", "0.81083214", "0.8052615", "0.8046193", "0.80148673", "0.8012653", "0.80031914", "0.79822606", "0.79757285", "0.79150814", "0.78518665", "0.78123", "0.77809644", "0.7777391", "0.77613634", "0.7685352"...
0.7160766
57
gets the remaining number of data points available to retrieve
def GAWw(YKHO): yWbd = 0 for LpID in YKHO.unique_data.keys(): yWbd += len(YKHO.unique_data[LpID]) return yWbd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KR0Q(YKHO):\n if YKHO.data_reduced:\n return len(YKHO.data_reduced[0])\n else:\n return 0", "def szAg(YKHO):\n u54L = len(YKHO.data) - 2 * YKHO.skip_window\n return u54L", "def SAv9(YKHO):\n try:\n D1HL = len(YKHO.x)\n bo34.info('Number of data points: {0}'.format...
[ "0.7110319", "0.70555514", "0.69371045", "0.67593426", "0.67593426", "0.67593426", "0.67417103", "0.66273177", "0.66191435", "0.657385", "0.65373194", "0.6377821", "0.6371105", "0.6363136", "0.6281178", "0.6264219", "0.62554044", "0.6253623", "0.62257147", "0.6213827", "0.617...
0.0
-1
Total rewards obtained so far
def ryVl(YKHO) -> float: return YKHO.__total_rewards
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IvsU(YKHO):\n return oyIN.sum(YKHO.rewards)", "def l5NB(YKHO):\n return YKHO.cumreward", "def l5NB(YKHO):\n return YKHO.cumreward", "def l5NB(YKHO):\n return YKHO.lastFitness", "def ED_C(YKHO):\n return sum(YKHO._gameRewards) / len(YKHO._gameRewards)", "def ED_C(YKHO):\n return sum(...
[ "0.81112605", "0.79923415", "0.79923415", "0.7611807", "0.7320893", "0.7320893", "0.7320893", "0.7193612", "0.706961", "0.7020179", "0.7019914", "0.6868504", "0.6851601", "0.6851601", "0.6847372", "0.6839915", "0.6816528", "0.6815556", "0.6806919", "0.6725671", "0.67215997", ...
0.8384159
0
Validate that the supplied email address is unique for the site.
def YBiq(YKHO): if mv1M.objects.filter(email__iexact=YKHO.cleaned_data['email']): raise H6V6.ValidationError(bGrB('This email address is already in use. Please supply a different email address.')) return YKHO.cleaned_data['email']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gcVv(D3lj):\n if Y8oe.objects.filter(email=D3lj.lower(), is_primary_email=False):\n raise sUXu(bGrB('User with this email already exists.'), code='email_not_unique')\n if mv1M.objects.filter(email=D3lj.lower()):\n raise sUXu(bGrB('User with this email already exists.'), code='email_not_uniq...
[ "0.7853141", "0.7655458", "0.75150234", "0.74791735", "0.73846847", "0.7384654", "0.7372314", "0.73539346", "0.72824067", "0.7252353", "0.7246325", "0.7239674", "0.71946406", "0.71906227", "0.71826446", "0.71657395", "0.71555", "0.7150741", "0.71265936", "0.7107152", "0.70523...
0.71271753
18
Verifiy that the values entered into the two password fields match. Note that an error here will end up in ``non_field_errors()`` because it doesn't apply to a single field.
def x0SS(YKHO): if 'password1' in YKHO.cleaned_data and 'password2' in YKHO.cleaned_data: if YKHO.cleaned_data['password1'] != YKHO.cleaned_data['password2']: raise H6V6.ValidationError(bGrB("The two password fields didn't match.")) return YKHO.cleaned_data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BhJx(YKHO):\n GUUE = YKHO.cleaned_data.get('password1')\n tTya = YKHO.cleaned_data.get('password2')\n if GUUE and tTya and (GUUE != tTya):\n raise H6V6.ValidationError('Passwords do not match')\n return tTya", "def x0SS(YKHO):\n if 'password1' in YKHO.cleaned_data and 'password2' in YKH...
[ "0.7940086", "0.7875071", "0.7869033", "0.77356064", "0.7653496", "0.7638424", "0.76268595", "0.7620595", "0.76104516", "0.75970405", "0.7590136", "0.75667995", "0.7566083", "0.7566083", "0.7564348", "0.75485694", "0.75278497", "0.74662095", "0.7378596", "0.73764795", "0.7363...
0.7840069
3
Clone(itkBinaryGrindPeakImageFilterISS2 self) > itkBinaryGrindPeakImageFilterISS2_Pointer
def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterISS2_Pointer': return RmO1.itkBinaryGrindPeakImageFilterISS2_Clone(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUC2_Pointer':\n return RmO1.itkBinaryGrindPeakImageFilterIUC2_Clone(YKHO)", "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUS2_Pointer':\n return RmO1.itkBinaryGrindPeakImageFilterIUS2_Clone(YKHO)", "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterISS3_...
[ "0.8925642", "0.85860264", "0.84538805", "0.8121555", "0.80974126", "0.79202366", "0.7919423", "0.78980196", "0.78436804", "0.7814346", "0.77955496", "0.7679004", "0.7636388", "0.75993735", "0.75958794", "0.7548792", "0.75323826", "0.7531992", "0.75262773", "0.749505", "0.745...
0.927415
0
SetFullyConnected(itkBinaryGrindPeakImageFilterISS2 self, bool const _arg)
def TzT9(YKHO, THRx: 'bool const') -> 'void': return RmO1.itkBinaryGrindPeakImageFilterISS2_SetFullyConnected(YKHO, THRx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n return RmO1.itkBinaryGrindPeakImageFilterIUC2_SetFullyConnected(YKHO, THRx)", "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n return RmO1.itkBinaryGrindPeakImageFilterISS3_SetFullyConnected(YKHO, THRx)", "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n ...
[ "0.88861656", "0.87755585", "0.87532836", "0.8215966", "0.82131344", "0.7909696", "0.7538962", "0.7444286", "0.7328243", "0.7263238", "0.7205376", "0.713833", "0.71099645", "0.70385027", "0.7025256", "0.69138503", "0.6839181", "0.6836708", "0.66981024", "0.6607653", "0.658542...
0.9239495
0
cast(itkLightObject obj) > itkBinaryGrindPeakImageFilterISS2
def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterISS2 *': return RmO1.itkBinaryGrindPeakImageFilterISS2_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YKsr(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterISS2 *':\n return RmO1.itkBinaryGrindPeakImageFilterISS2_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC2 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUC2_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject'...
[ "0.85718864", "0.8415509", "0.82797456", "0.82647824", "0.8135406", "0.81065875", "0.7960117", "0.7893481", "0.7872574", "0.7689789", "0.7649803", "0.76217115", "0.7556522", "0.75489926", "0.7538801", "0.7518458", "0.74970675", "0.74767625", "0.74686974", "0.7450991", "0.7429...
0.8572363
0
New() > itkBinaryGrindPeakImageFilterISS2 Create a new object of the class itkBinaryGrindPeakImageFilterISS2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named paramete...
def oW_4(*qIxc, **PECO): YEnM = mnI_.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = lHGE.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = XIr_.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.76755625", "0.75817704", "0.74693596", "0.7308406", "0.72610563", "0.7160594", "0.7134761", "0.7122668", "0.7077472", "0.70544827", "0.7050623", "0.7012762", "0.69964963", "0.69652486", "0.69383335", "0.6930624", "0.691109", "0.6900334", "0.6884688", "0.68826485", "0.68697...
0.8133845
0
itkBinaryGrindPeakImageFilterISS2_cast(itkLightObject obj) > itkBinaryGrindPeakImageFilterISS2
def YKsr(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterISS2 *': return RmO1.itkBinaryGrindPeakImageFilterISS2_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterISS2 *':\n return RmO1.itkBinaryGrindPeakImageFilterISS2_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC2 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUC2_cast(YEnM)", "def n_b0(YEnM: 'itkLightObject'...
[ "0.89928603", "0.8720781", "0.8717563", "0.8568086", "0.8560796", "0.82888114", "0.82768375", "0.802703", "0.7947959", "0.79243535", "0.7909418", "0.7872995", "0.77999234", "0.7783638", "0.7765844", "0.77274173", "0.7723018", "0.7720015", "0.7708329", "0.77045435", "0.7687365...
0.9189573
0
Clone(itkBinaryGrindPeakImageFilterISS3 self) > itkBinaryGrindPeakImageFilterISS3_Pointer
def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterISS3_Pointer': return RmO1.itkBinaryGrindPeakImageFilterISS3_Clone(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUC3_Pointer':\n return RmO1.itkBinaryGrindPeakImageFilterIUC3_Clone(YKHO)", "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterISS2_Pointer':\n return RmO1.itkBinaryGrindPeakImageFilterISS2_Clone(YKHO)", "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUS3_...
[ "0.8876795", "0.8712196", "0.8681507", "0.8549365", "0.8177197", "0.7796697", "0.7706848", "0.7663916", "0.75994253", "0.758879", "0.7584328", "0.7578289", "0.75310355", "0.744788", "0.74244547", "0.74231935", "0.7410796", "0.73855597", "0.7379846", "0.7362118", "0.7330671", ...
0.9206206
0
SetFullyConnected(itkBinaryGrindPeakImageFilterISS3 self, bool const _arg)
def TzT9(YKHO, THRx: 'bool const') -> 'void': return RmO1.itkBinaryGrindPeakImageFilterISS3_SetFullyConnected(YKHO, THRx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n return RmO1.itkBinaryGrindPeakImageFilterISS2_SetFullyConnected(YKHO, THRx)", "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n return RmO1.itkBinaryGrindPeakImageFilterIUC3_SetFullyConnected(YKHO, THRx)", "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n ...
[ "0.8839462", "0.8828302", "0.8801879", "0.8572159", "0.84500724", "0.77598864", "0.74277645", "0.74099636", "0.740855", "0.73987484", "0.72716755", "0.72589654", "0.7163252", "0.71452016", "0.7123413", "0.710868", "0.7042831", "0.6921004", "0.6847232", "0.68352133", "0.680525...
0.9174858
0
cast(itkLightObject obj) > itkBinaryGrindPeakImageFilterISS3
def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterISS3 *': return RmO1.itkBinaryGrindPeakImageFilterISS3_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterISS2 *':\n return RmO1.itkBinaryGrindPeakImageFilterISS2_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC2 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUC2_cast(YEnM)", "def YKsr(YEnM: 'itkLightObject'...
[ "0.83918774", "0.8313914", "0.82982063", "0.82657737", "0.82368094", "0.82046205", "0.8198453", "0.81218636", "0.80011564", "0.7973201", "0.79226327", "0.7554412", "0.7499379", "0.7386012", "0.7350302", "0.73500425", "0.73476493", "0.7345747", "0.73181915", "0.73059756", "0.7...
0.83645284
1
New() > itkBinaryGrindPeakImageFilterISS3 Create a new object of the class itkBinaryGrindPeakImageFilterISS3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named paramete...
def oW_4(*qIxc, **PECO): YEnM = XIr_.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = QvFv.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = DHZW.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.77052885", "0.74059755", "0.73619866", "0.7322838", "0.7241379", "0.72388697", "0.72187215", "0.7217179", "0.7203237", "0.71927404", "0.71362114", "0.7126715", "0.7120892", "0.7110622", "0.7075773", "0.7053308", "0.70055723", "0.70008034", "0.6981112", "0.6961312", "0.6956...
0.7934171
0
itkBinaryGrindPeakImageFilterISS3_cast(itkLightObject obj) > itkBinaryGrindPeakImageFilterISS3
def c51I(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterISS3 *': return RmO1.itkBinaryGrindPeakImageFilterISS3_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterISS3 *':\n return RmO1.itkBinaryGrindPeakImageFilterISS3_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC3 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUC3_cast(YEnM)", "def VwVN(YEnM: 'itkLightObject'...
[ "0.8923842", "0.8732757", "0.8706479", "0.8652369", "0.86211795", "0.8570539", "0.85544276", "0.8458835", "0.8390562", "0.8303943", "0.81954145", "0.7726904", "0.7704856", "0.76706153", "0.7645125", "0.76355743", "0.7606523", "0.75840926", "0.756631", "0.75658065", "0.7561536...
0.9088993
0
Clone(itkBinaryGrindPeakImageFilterIUC2 self) > itkBinaryGrindPeakImageFilterIUC2_Pointer
def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUC2_Pointer': return RmO1.itkBinaryGrindPeakImageFilterIUC2_Clone(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterISS2_Pointer':\n return RmO1.itkBinaryGrindPeakImageFilterISS2_Clone(YKHO)", "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUS2_Pointer':\n return RmO1.itkBinaryGrindPeakImageFilterIUS2_Clone(YKHO)", "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUC3_...
[ "0.8732643", "0.8692721", "0.8398516", "0.8289617", "0.8217488", "0.81512654", "0.8129832", "0.80586934", "0.80358183", "0.79686373", "0.79457235", "0.79124117", "0.78388906", "0.7832553", "0.7758662", "0.77506787", "0.7743077", "0.7739696", "0.76403356", "0.76240003", "0.758...
0.93139046
0
SetFullyConnected(itkBinaryGrindPeakImageFilterIUC2 self, bool const _arg)
def TzT9(YKHO, THRx: 'bool const') -> 'void': return RmO1.itkBinaryGrindPeakImageFilterIUC2_SetFullyConnected(YKHO, THRx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n return RmO1.itkBinaryGrindPeakImageFilterIUS2_SetFullyConnected(YKHO, THRx)", "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n return RmO1.itkBinaryGrindPeakImageFilterISS2_SetFullyConnected(YKHO, THRx)", "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n ...
[ "0.8827381", "0.87816393", "0.85334456", "0.847451", "0.8373766", "0.79267216", "0.75815964", "0.7479199", "0.7385737", "0.73551375", "0.7219622", "0.7100234", "0.70545423", "0.6944103", "0.6926366", "0.68915945", "0.68093055", "0.67819303", "0.67486167", "0.6726849", "0.6672...
0.9213735
0
cast(itkLightObject obj) > itkBinaryGrindPeakImageFilterIUC2
def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC2 *': return RmO1.itkBinaryGrindPeakImageFilterIUC2_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n_b0(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC2 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUC2_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUS2 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUS2_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject'...
[ "0.8729429", "0.82718897", "0.8245691", "0.8222527", "0.819831", "0.8100178", "0.7957307", "0.78505766", "0.78434855", "0.78395414", "0.783381", "0.78218013", "0.77981573", "0.77527916", "0.7731006", "0.7727938", "0.7705051", "0.7648252", "0.764342", "0.7640949", "0.7631519",...
0.86969626
1
New() > itkBinaryGrindPeakImageFilterIUC2 Create a new object of the class itkBinaryGrindPeakImageFilterIUC2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named paramete...
def oW_4(*qIxc, **PECO): YEnM = lHGE.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = mnI_.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = rICA.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.7590048", "0.7578962", "0.7526749", "0.7460817", "0.7446953", "0.7434069", "0.7409818", "0.7396386", "0.7385937", "0.7380007", "0.735464", "0.7314156", "0.7244954", "0.71897155", "0.71630746", "0.7156564", "0.71451294", "0.7132676", "0.7131984", "0.7121352", "0.7098518", ...
0.8144624
0
itkBinaryGrindPeakImageFilterIUC2_cast(itkLightObject obj) > itkBinaryGrindPeakImageFilterIUC2
def n_b0(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC2 *': return RmO1.itkBinaryGrindPeakImageFilterIUC2_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC2 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUC2_cast(YEnM)", "def Zo0L(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUS2 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUS2_cast(YEnM)", "def YKsr(YEnM: 'itkLightObject'...
[ "0.9041367", "0.8575325", "0.85048246", "0.8471235", "0.8373859", "0.8289397", "0.8267589", "0.8225154", "0.8221371", "0.8096129", "0.80954903", "0.8077476", "0.8034777", "0.80104095", "0.79891664", "0.79883784", "0.7982099", "0.795264", "0.79484487", "0.7916014", "0.79144746...
0.93165183
0
Clone(itkBinaryGrindPeakImageFilterIUC3 self) > itkBinaryGrindPeakImageFilterIUC3_Pointer
def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUC3_Pointer': return RmO1.itkBinaryGrindPeakImageFilterIUC3_Clone(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterISS3_Pointer':\n return RmO1.itkBinaryGrindPeakImageFilterISS3_Clone(YKHO)", "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUS3_Pointer':\n return RmO1.itkBinaryGrindPeakImageFilterIUS3_Clone(YKHO)", "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUC2_...
[ "0.8862799", "0.8846645", "0.8477491", "0.817248", "0.80255", "0.79897946", "0.7985236", "0.7909239", "0.7895415", "0.7878183", "0.7845289", "0.78425574", "0.78375685", "0.78125536", "0.78101474", "0.78078914", "0.7751362", "0.76439524", "0.75996035", "0.7582764", "0.75056076...
0.92937905
0
SetFullyConnected(itkBinaryGrindPeakImageFilterIUC3 self, bool const _arg)
def TzT9(YKHO, THRx: 'bool const') -> 'void': return RmO1.itkBinaryGrindPeakImageFilterIUC3_SetFullyConnected(YKHO, THRx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n return RmO1.itkBinaryGrindPeakImageFilterIUS3_SetFullyConnected(YKHO, THRx)", "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n return RmO1.itkBinaryGrindPeakImageFilterISS3_SetFullyConnected(YKHO, THRx)", "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n ...
[ "0.8988938", "0.88599473", "0.8535825", "0.8220513", "0.8084027", "0.7953736", "0.7706058", "0.7627464", "0.762129", "0.75994587", "0.7423183", "0.7311595", "0.7279888", "0.72567064", "0.72148347", "0.70198226", "0.68657404", "0.67372143", "0.6720947", "0.67061955", "0.657452...
0.9174264
0
GetBackgroundValue(itkBinaryGrindPeakImageFilterIUC3 self) > unsigned char
def nYaX(YKHO) -> 'unsigned char': return RmO1.itkBinaryGrindPeakImageFilterIUC3_GetBackgroundValue(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nYaX(YKHO) -> 'unsigned char':\n return RmO1.itkBinaryGrindPeakImageFilterIUC2_GetBackgroundValue(YKHO)", "def nYaX(YKHO) -> 'unsigned short':\n return RmO1.itkBinaryGrindPeakImageFilterIUS3_GetBackgroundValue(YKHO)", "def nYaX(YKHO) -> 'unsigned char':\n return xm6Z.itkBinaryContourImageFilterIUC...
[ "0.89356005", "0.8534703", "0.8426723", "0.84104747", "0.83192235", "0.8272547", "0.8207836", "0.8169306", "0.8129366", "0.79510707", "0.79173654", "0.7619456", "0.7603041", "0.7596908", "0.75591356", "0.75538707", "0.75222373", "0.7467384", "0.7354986", "0.7330427", "0.73132...
0.90777147
0
cast(itkLightObject obj) > itkBinaryGrindPeakImageFilterIUC3
def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC3 *': return RmO1.itkBinaryGrindPeakImageFilterIUC3_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VwVN(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC3 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUC3_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC2 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUC2_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject'...
[ "0.8597664", "0.8399665", "0.8364652", "0.8332195", "0.8327759", "0.8311556", "0.8229066", "0.8052296", "0.7958038", "0.78646666", "0.7795486", "0.76999813", "0.765983", "0.76414806", "0.7627056", "0.7594754", "0.7584091", "0.7580591", "0.75760794", "0.755111", "0.754918", ...
0.86387855
0
New() > itkBinaryGrindPeakImageFilterIUC3 Create a new object of the class itkBinaryGrindPeakImageFilterIUC3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named paramete...
def oW_4(*qIxc, **PECO): YEnM = QvFv.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = rGIq.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = QQk1.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.76815534", "0.76078093", "0.7597328", "0.75721437", "0.75483376", "0.75231814", "0.7506337", "0.7465791", "0.74426514", "0.74089247", "0.73875415", "0.7386567", "0.7384847", "0.73598874", "0.7330515", "0.73096436", "0.72982085", "0.72821254", "0.7235362", "0.7222636", "0.7...
0.8093238
0
itkBinaryGrindPeakImageFilterIUC3_cast(itkLightObject obj) > itkBinaryGrindPeakImageFilterIUC3
def VwVN(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC3 *': return RmO1.itkBinaryGrindPeakImageFilterIUC3_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC3 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUC3_cast(YEnM)", "def h855(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUS3 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUS3_cast(YEnM)", "def c51I(YEnM: 'itkLightObject'...
[ "0.9006677", "0.8740094", "0.87201196", "0.86231756", "0.85207313", "0.85121006", "0.8416255", "0.80824816", "0.8004674", "0.7960213", "0.7934037", "0.7896872", "0.78956884", "0.7891577", "0.7878281", "0.7870418", "0.78671503", "0.7866906", "0.7832205", "0.78220475", "0.78068...
0.9261055
0
Clone(itkBinaryGrindPeakImageFilterIUS2 self) > itkBinaryGrindPeakImageFilterIUS2_Pointer
def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUS2_Pointer': return RmO1.itkBinaryGrindPeakImageFilterIUS2_Clone(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUC2_Pointer':\n return RmO1.itkBinaryGrindPeakImageFilterIUC2_Clone(YKHO)", "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterISS2_Pointer':\n return RmO1.itkBinaryGrindPeakImageFilterISS2_Clone(YKHO)", "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUS3_...
[ "0.88420725", "0.8597294", "0.85428566", "0.81022936", "0.805526", "0.7972036", "0.7965567", "0.79295146", "0.7907425", "0.789911", "0.78637516", "0.75674045", "0.7545655", "0.75410444", "0.7489191", "0.7429045", "0.7421937", "0.7386206", "0.73724234", "0.7333426", "0.7328995...
0.92587835
0
SetFullyConnected(itkBinaryGrindPeakImageFilterIUS2 self, bool const _arg)
def TzT9(YKHO, THRx: 'bool const') -> 'void': return RmO1.itkBinaryGrindPeakImageFilterIUS2_SetFullyConnected(YKHO, THRx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n return RmO1.itkBinaryGrindPeakImageFilterIUC2_SetFullyConnected(YKHO, THRx)", "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n return RmO1.itkBinaryGrindPeakImageFilterISS2_SetFullyConnected(YKHO, THRx)", "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n ...
[ "0.8852804", "0.8770752", "0.86809474", "0.84747845", "0.83220464", "0.7546128", "0.73816156", "0.73266965", "0.7299612", "0.72175753", "0.71663886", "0.70034647", "0.68833935", "0.68630296", "0.68418735", "0.67994416", "0.67557114", "0.67255145", "0.66571516", "0.6612578", "...
0.9231529
0
cast(itkLightObject obj) > itkBinaryGrindPeakImageFilterIUS2
def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUS2 *': return RmO1.itkBinaryGrindPeakImageFilterIUS2_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zo0L(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUS2 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUS2_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC2 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUC2_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject'...
[ "0.86766297", "0.8407279", "0.831999", "0.82932925", "0.8277896", "0.8237853", "0.8048517", "0.7932627", "0.7917771", "0.7794567", "0.77796495", "0.777566", "0.7695316", "0.76405394", "0.7601407", "0.75079626", "0.7502785", "0.7497994", "0.74612045", "0.7460025", "0.7448611",...
0.8698061
0
New() > itkBinaryGrindPeakImageFilterIUS2 Create a new object of the class itkBinaryGrindPeakImageFilterIUS2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named paramete...
def oW_4(*qIxc, **PECO): YEnM = O4VQ.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = lHGE.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = mnI_.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.7882058", "0.7793295", "0.76868206", "0.73569304", "0.73537314", "0.73399514", "0.73374856", "0.7240598", "0.71629566", "0.7160941", "0.7158536", "0.7134235", "0.71229523", "0.7119372", "0.71056694", "0.71010363", "0.7073679", "0.700835", "0.69610304", "0.69060105", "0.690...
0.8162599
0
itkBinaryGrindPeakImageFilterIUS2_cast(itkLightObject obj) > itkBinaryGrindPeakImageFilterIUS2
def Zo0L(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUS2 *': return RmO1.itkBinaryGrindPeakImageFilterIUS2_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUS2 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUS2_cast(YEnM)", "def n_b0(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC2 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUC2_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject'...
[ "0.90395874", "0.8700136", "0.8639672", "0.8570773", "0.84592086", "0.8369406", "0.83655405", "0.80681044", "0.80042255", "0.79196846", "0.7913727", "0.78854436", "0.7882197", "0.7875907", "0.77721035", "0.7760337", "0.7726943", "0.7721212", "0.7697834", "0.76789397", "0.7657...
0.92287165
0
Clone(itkBinaryGrindPeakImageFilterIUS3 self) > itkBinaryGrindPeakImageFilterIUS3_Pointer
def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUS3_Pointer': return RmO1.itkBinaryGrindPeakImageFilterIUS3_Clone(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUS2_Pointer':\n return RmO1.itkBinaryGrindPeakImageFilterIUS2_Clone(YKHO)", "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterIUC3_Pointer':\n return RmO1.itkBinaryGrindPeakImageFilterIUC3_Clone(YKHO)", "def B29l(YKHO) -> 'itkBinaryGrindPeakImageFilterISS3_...
[ "0.8766165", "0.87575215", "0.85900646", "0.83742493", "0.8004635", "0.7781406", "0.7698886", "0.768004", "0.76562583", "0.7649845", "0.7640672", "0.7587221", "0.75612503", "0.7504697", "0.7501542", "0.74947387", "0.7447628", "0.7366007", "0.72788644", "0.7267075", "0.722716"...
0.9182748
0
SetFullyConnected(itkBinaryGrindPeakImageFilterIUS3 self, bool const _arg)
def TzT9(YKHO, THRx: 'bool const') -> 'void': return RmO1.itkBinaryGrindPeakImageFilterIUS3_SetFullyConnected(YKHO, THRx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n return RmO1.itkBinaryGrindPeakImageFilterIUC3_SetFullyConnected(YKHO, THRx)", "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n return RmO1.itkBinaryGrindPeakImageFilterIUS2_SetFullyConnected(YKHO, THRx)", "def TzT9(YKHO, THRx: 'bool const') -> 'void':\n ...
[ "0.8859103", "0.8856352", "0.8806219", "0.8535786", "0.8372453", "0.7570174", "0.7391265", "0.7353059", "0.7315231", "0.72554386", "0.7174828", "0.70810765", "0.70442766", "0.7014054", "0.6974452", "0.69253606", "0.69101167", "0.68560815", "0.68213063", "0.68108445", "0.67246...
0.9150167
0
cast(itkLightObject obj) > itkBinaryGrindPeakImageFilterIUS3
def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUS3 *': return RmO1.itkBinaryGrindPeakImageFilterIUS3_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUS2 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUS2_cast(YEnM)", "def h855(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUS3 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUS3_cast(YEnM)", "def Zo0L(YEnM: 'itkLightObject'...
[ "0.8517594", "0.84254897", "0.84155124", "0.83131754", "0.8285704", "0.8269661", "0.81935686", "0.8147762", "0.8134531", "0.8130955", "0.8022923", "0.7671403", "0.7585557", "0.7571817", "0.7514587", "0.7432766", "0.74060863", "0.7375732", "0.7370226", "0.7357456", "0.7343532"...
0.85536873
0
New() > itkBinaryGrindPeakImageFilterIUS3 Create a new object of the class itkBinaryGrindPeakImageFilterIUS3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named paramete...
def oW_4(*qIxc, **PECO): YEnM = DHZW.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = QvFv.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = XIr_.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.7864564", "0.76295394", "0.74288356", "0.7403234", "0.73679817", "0.7330997", "0.73224014", "0.72757417", "0.7253312", "0.7230051", "0.719004", "0.71510935", "0.7141664", "0.713156", "0.7126638", "0.7117754", "0.704284", "0.69730353", "0.6911727", "0.689908", "0.68907726",...
0.80100465
0
itkBinaryGrindPeakImageFilterIUS3_cast(itkLightObject obj) > itkBinaryGrindPeakImageFilterIUS3
def h855(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUS3 *': return RmO1.itkBinaryGrindPeakImageFilterIUS3_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUS3 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUS3_cast(YEnM)", "def VwVN(YEnM: 'itkLightObject') -> 'itkBinaryGrindPeakImageFilterIUC3 *':\n return RmO1.itkBinaryGrindPeakImageFilterIUC3_cast(YEnM)", "def c51I(YEnM: 'itkLightObject'...
[ "0.89776754", "0.875917", "0.86927044", "0.86782396", "0.86396724", "0.8596644", "0.85315394", "0.82759166", "0.8267506", "0.7979505", "0.7925907", "0.77322257", "0.77180076", "0.7717646", "0.76103073", "0.75721395", "0.7548538", "0.754839", "0.7539177", "0.7527868", "0.75274...
0.9147029
0
Convert datetime to string
def CjLm(fLwS): lXqb = fLwS.strftime('%Y-%m-%dT%H:%M:%S') return lXqb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hLAQ(YEnM):\n return YEnM.strftime('%Y-%m-%d %H:%M:%S')", "def hLAQ(ppPa):\n return ppPa.strftime('%Y-%m-%dT%H:%M:%S.%fZ')", "def ab7L(JRYC):\n return '{0}-{1}-{2}'.format(JRYC.year, JRYC.month, JRYC.day)", "def ab7L(JRYC):\n return '{0}-{1}-{2}'.format(JRYC.year, JRYC.month, JRYC.day)", "d...
[ "0.815902", "0.80510914", "0.8046754", "0.8046754", "0.80430394", "0.7809829", "0.7701866", "0.7684149", "0.7662111", "0.7654658", "0.7584085", "0.756532", "0.7561354", "0.7544618", "0.754069", "0.7539123", "0.7510419", "0.74905056", "0.74707377", "0.73240894", "0.7319827", ...
0.0
-1
Utility to find Spotify resource_provider instance in the resource_manager.
def dxpg(): bwzo = 'elisa.plugins.spotify.resource_provider:SpotifyResourceProvider' p_z1 = BJsk.application.resource_manager kT1P = p_z1.get_resource_provider_by_path(bwzo) return kT1P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ob7L(YKHO, qxeD):\n _hkX = YKHO.get('/resource_providers/%s' % qxeD)\n if _hkX.status_code == 200:\n nPrm = _hkX.json()\n return ei4T.ResourceProvider(uuid=qxeD, name=nPrm['name'], generation=nPrm['generation'])\n elif _hkX.status_code == 404:\n return None\n else:\n tO9...
[ "0.6656658", "0.6474095", "0.64571875", "0.63537645", "0.6143773", "0.6137012", "0.60670763", "0.59830105", "0.58492106", "0.58332294", "0.5823978", "0.5823978", "0.5814655", "0.581047", "0.5772117", "0.5765059", "0.56737345", "0.5583717", "0.5514415", "0.5514415", "0.5504045...
0.7855766
0
Constructor for the LabelSmoothing module.
def FIMM(YKHO, ytZy=0.1): super(JSgR, YKHO).__init__() YKHO.confidence = 1.0 - ytZy YKHO.smoothing = ytZy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, ytZy=0.0):\n super(JSgR, YKHO).__init__()\n YKHO.confidence = 1.0 - ytZy\n YKHO.smoothing = ytZy", "def FIMM(YKHO, ytZy=0.0):\n super(JSgR, YKHO).__init__()\n YKHO.confidence = 1.0 - ytZy\n YKHO.smoothing = ytZy", "def FIMM(YKHO, KndY, ytZy=0.0, tpio=-1, upAO=None):\n super(...
[ "0.8505097", "0.8505097", "0.7740796", "0.76720005", "0.6831716", "0.6535184", "0.64484084", "0.6373303", "0.6344245", "0.6325938", "0.6322719", "0.6288337", "0.61676824", "0.616322", "0.6125794", "0.60863334", "0.60729283", "0.60607344", "0.59531105", "0.59465086", "0.591395...
0.85014725
2
Round a number and return as int.
def clzY(jzdc: Number) -> int: return oyIN.round(jzdc).astype(int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def khhC(mLGw):\n try:\n float(mLGw)\n except TypeError:\n I45O.debug('error trying to convert %s to number' % str(mLGw))\n raise wqAT('#syntaxerror')\n if int(float(mLGw)) == mLGw:\n return int(mLGw)\n else:\n if float(mLGw) < 0:\n pmuU = int((float(mLGw) ...
[ "0.7689237", "0.721122", "0.7180295", "0.7178572", "0.71360165", "0.7012079", "0.69322276", "0.6926029", "0.68270856", "0.67484105", "0.6743091", "0.67159003", "0.66163", "0.6562026", "0.6539934", "0.64703447", "0.64589244", "0.6457436", "0.6408609", "0.6383739", "0.6379456",...
0.7130756
5
Handles an empty string passed as argument
def su4T(YKHO): Aofo = ZCaG('') YKHO.assertEqual(Aofo, '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, BWXx):\n BWXx = str(BWXx).strip()\n if len(BWXx) == 0:\n pass\n else:\n super().__call__(BWXx)", "def YVTg(ZfUD):\n yf2C = str(ZfUD)\n return None if len(yf2C.strip()) == 0 or yf2C == 'None' else yf2C.strip()", "def UK5s(YKHO):\n NaW5(None, MPu1('', '', ''))", "...
[ "0.75953496", "0.71057844", "0.69147646", "0.6846267", "0.6819083", "0.68100876", "0.67331797", "0.65884864", "0.6581572", "0.6546589", "0.65322596", "0.6502848", "0.64975566", "0.6495991", "0.64911824", "0.64739746", "0.643346", "0.64297974", "0.6420964", "0.64032257", "0.63...
0.61686206
37
Ensure that only objects with a licence matching the user are returned
def kOtD(CBIr): UAXb = fVaT.objects.all().select_related('view_permission') it5X = set() for QpwL in UAXb: nGTB = QpwL.view_permission.codename it5X.add(nGTB) DGdL = V_HM(CBIr, it5X, klass=oRvw, any_perm=True) return DGdL.select_related('uploader', 'acronym', 'licence', 'site').prefe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0SS(YKHO):\n nPrm = super().clean()\n if str(YKHO.instance.resource_type.id) in nPrm['license'].resource_types and nPrm['access_policy'] == nPrm['license'].access_policy:\n return nPrm\n raise H6V6.ValidationError('Invalid policy license combination.')", "def X8zR(YKHO, CBIr):\n xDcj = T8...
[ "0.58524394", "0.5701066", "0.55575097", "0.54962546", "0.54400456", "0.5409029", "0.54035246", "0.5398727", "0.5388406", "0.53652936", "0.53466463", "0.5335267", "0.53170866", "0.53054684", "0.5305267", "0.52991354", "0.5292588", "0.5289807", "0.5283852", "0.5272876", "0.526...
0.0
-1
Get internal data frame of trajectory.
def gbfI(YKHO): return YKHO._trajectory
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IDsa(YKHO, or8S=0):\n raise NotImplementedError('Code me up!')\n return nPrm", "def bOBl(YKHO):\n return YKHO._dataframe", "def nR6k(YKHO):\n return YKHO._dataFrame", "def bOBl(YKHO):\n return YKHO.get_target().dataframe()", "def Hydg(YKHO):\n return _Bzj.createFromTuples(YKHO.points)...
[ "0.7426966", "0.70600194", "0.69820315", "0.69620925", "0.6873473", "0.68183285", "0.67601174", "0.66516894", "0.6628261", "0.6597061", "0.65691066", "0.64855856", "0.6479818", "0.6411853", "0.63866204", "0.63653815", "0.6358235", "0.6321551", "0.63025594", "0.6267579", "0.62...
0.8666503
0
Cumulative reward of the trajectory.
def czp8(YKHO): Kt_s = len(YKHO) return oyIN.sum(YKHO.rewards / Kt_s)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def krXm(YKHO, KMvS: float=1.0):\n f8HR = len(YKHO)\n assert f8HR > 0, 'called on empty trajectory'\n vwlo = YKHO.reward\n bnZy = [KMvS ** YRbF for YRbF in range(f8HR)]\n return sum((vOGg * FMQW for vOGg, FMQW in zip(vwlo, bnZy)))", "def KF16(YKHO, XGH0):\n vOGg = 0.0\n for jFFD in XGH0[::-1...
[ "0.79235786", "0.7600248", "0.75553286", "0.75553286", "0.73449546", "0.7276127", "0.72409505", "0.7213243", "0.71849245", "0.7122892", "0.70538735", "0.7037944", "0.7027323", "0.70200735", "0.6859662", "0.68517745", "0.6838638", "0.68339366", "0.68273705", "0.6825384", "0.68...
0.0
-1
Cumulative reward of the trajectory.
def IvsU(YKHO): return oyIN.sum(YKHO.rewards)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def krXm(YKHO, KMvS: float=1.0):\n f8HR = len(YKHO)\n assert f8HR > 0, 'called on empty trajectory'\n vwlo = YKHO.reward\n bnZy = [KMvS ** YRbF for YRbF in range(f8HR)]\n return sum((vOGg * FMQW for vOGg, FMQW in zip(vwlo, bnZy)))", "def KF16(YKHO, XGH0):\n vOGg = 0.0\n for jFFD in XGH0[::-1...
[ "0.79235786", "0.7600248", "0.75553286", "0.75553286", "0.73449546", "0.7276127", "0.72409505", "0.7213243", "0.71849245", "0.7122892", "0.70538735", "0.7037944", "0.7027323", "0.70200735", "0.6859662", "0.68517745", "0.6838638", "0.68339366", "0.68273705", "0.6825384", "0.68...
0.64825445
58
Cumulative reward of the trajectory.
def KbRe(YKHO, FMQW): GPIy = len(YKHO) return (1 - FMQW) * oyIN.sum(FMQW ** oyIN.arange(GPIy) * YKHO.rewards)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def krXm(YKHO, KMvS: float=1.0):\n f8HR = len(YKHO)\n assert f8HR > 0, 'called on empty trajectory'\n vwlo = YKHO.reward\n bnZy = [KMvS ** YRbF for YRbF in range(f8HR)]\n return sum((vOGg * FMQW for vOGg, FMQW in zip(vwlo, bnZy)))", "def KF16(YKHO, XGH0):\n vOGg = 0.0\n for jFFD in XGH0[::-1...
[ "0.79235786", "0.7600248", "0.75553286", "0.75553286", "0.73449546", "0.7276127", "0.72409505", "0.7213243", "0.71849245", "0.7122892", "0.70538735", "0.7037944", "0.7027323", "0.70200735", "0.6859662", "0.68517745", "0.6838638", "0.68339366", "0.68273705", "0.6825384", "0.68...
0.0
-1
Linear loss function, naive implementation (with loops) Inputs have dimension D, there are N examples.
def ka9X(XcU5, EcVT, LVAh, lQ3t): N77f = 0.0 HFON = oyIN.zeros_like(XcU5) for YRbF, me_t in enumerate(LVAh): MOYU = 0.0 for r845, yzQ0 in enumerate(XcU5): MOYU += yzQ0 * EcVT[YRbF][r845] N77f += 1 / (2 * len(LVAh)) * (me_t - MOYU) ** 2 for yzQ0 in XcU5: N77f = N77...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Io4v(lWPh, yvY1, BM1S, FAoL, N8L0, xAU6):\n return ht2j.nn.L1Loss()(FAoL, BM1S)", "def x_1O(g4y1, jDK_=1, Ngtq=None, gH2v='valid', **B2fa):\n qIxc = Wov5.parse(locals())\n qIxc['reduction'] = gH2v.upper()\n CqFm = uL8A.NLLLoss\n if QpfX.executing_eagerly():\n return CqFm.instantiate(axi...
[ "0.70255506", "0.6862295", "0.6483021", "0.63896585", "0.63722295", "0.63109964", "0.6235679", "0.622537", "0.61884075", "0.61737955", "0.6165907", "0.6148951", "0.61382896", "0.6095585", "0.6083436", "0.60462224", "0.59896874", "0.59839773", "0.5971675", "0.5964857", "0.5958...
0.66878414
2
return list of articles
def mrVf(): hAuS = ExJS.get_template('articles.html') MKlR = hAuS.render(articleList=nhEq()) return MKlR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mrVf(YKHO):\n return mrVf.Articles(YKHO)", "def mrVf(YKHO):\n return mrVf.Articles(YKHO)", "def nWKz():\n return rPXJ('index', articles=iqGZ())", "def list():\n mrVf = []\n if QePW.method == 'GET':\n geh0 = tyNF.scan()\n mrVf = geh0.get('Items')\n return TvZl('article/arti...
[ "0.81118023", "0.81084186", "0.80087215", "0.7990941", "0.7942128", "0.7909345", "0.78275144", "0.77109367", "0.7700316", "0.7658915", "0.7572116", "0.7562268", "0.7549797", "0.74023247", "0.73470825", "0.7338978", "0.7330949", "0.73240846", "0.72791016", "0.7245549", "0.7221...
0.7704525
8
Gets the data and the cutoff and return the true and false values of the max
def d1AU(nPrm, BWXx, ytgA=hyZf(VOEY(rank=2, connectivity=2), 10)): PIrR = VP3U(nPrm, footprint=ytgA) return (nPrm == PIrR) & (nPrm > BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VYxc(nPrm):\n return nPrm.max()", "def max():\n deVW = wpUt.F > 0\n XR7g.F[deVW] = oyIN.maximum(XR7g.F[deVW], wQXe.F[deVW])", "def MZG2(nPrm, gwAu):\n mCUX = oyIN.min(nPrm)\n hMQs = oyIN.max(nPrm)\n qoqK = hMQs - (hMQs - mCUX) * gwAu\n return nPrm > qoqK", "def TO88(YKHO) -> float:\n...
[ "0.7253256", "0.69861084", "0.68490386", "0.68353945", "0.6744364", "0.67174274", "0.66939205", "0.6605674", "0.6597477", "0.65972984", "0.65530556", "0.6525529", "0.6500432", "0.64816195", "0.6457462", "0.6454499", "0.6451798", "0.64447767", "0.6371153", "0.63674265", "0.635...
0.0
-1
Return the name of the entity.
def mWFP(YKHO): if YKHO.resource.is_client: return f'{YKHO.network.name} {YKHO.resource.name_connection_type} {pUoF[YKHO.variable][0]}' elif YKHO.resource.is_eero or YKHO.resource.is_profile: return f'{YKHO.network.name} {YKHO.resource.name} {pUoF[YKHO.variable][0]}' return f'{YKHO.resource....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tWCk(YKHO):\n return YKHO.__entity_name", "def tWCk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'entity_name')", "def tWCk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'entity_name')", "def mWFP(YKHO):\n return '{} {}'.format(YKHO._vehicle_name, YKHO._entity_name)", "def qpoq() -...
[ "0.8988398", "0.83023036", "0.83023036", "0.7979217", "0.7969564", "0.75555485", "0.7543831", "0.7536042", "0.7536042", "0.7536042", "0.75337434", "0.75239676", "0.7496596", "0.74891084", "0.74777347", "0.74761146", "0.7462404", "0.74502766", "0.74502766", "0.74502766", "0.74...
0.0
-1
Return the class of this device, from component DEVICE_CLASSES.
def rM2U(YKHO): return qgDV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n return MQ2o.get(YKHO.sensor_data['model'])", "def rM2U(YKHO):\n return YKHO.sensor_type['class']", "def rM2U(YKHO):\n return lc9R[YKHO.sensor][3].get('device_class')", "def ZvYj(YKHO):\n return YfpN.get_class(YKHO.type)", "def rM2U(YKHO):\n return u32P[YKHO.info_type]['devi...
[ "0.87266827", "0.852074", "0.8471363", "0.8442806", "0.83113384", "0.83078414", "0.8241434", "0.8241434", "0.8241434", "0.8241434", "0.8241434", "0.8197917", "0.81939846", "0.8125181", "0.8109455", "0.8109455", "0.8109455", "0.8059611", "0.8053818", "0.8053818", "0.80360585",...
0.74936664
33
Method that takes in a account_name and returns a credential that matches that account_name.
def jVbZ(Emd4, ZrNc): for mwuo in Emd4.credential_list: if mwuo.account == ZrNc: return mwuo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jVbZ(ZrNc):\n return kjgd.find_by_username(ZrNc)", "def jVbZ(ZrNc):\n return kjgd.find_credential(ZrNc)", "def yao_(Emd4, n8Ek):\n for ZrNc in Emd4.credentials_list:\n if ZrNc.account_name == n8Ek:\n return ZrNc", "def jczB(Emd4, VpPs):\n for mwuo in Emd4.credentials_list:\n...
[ "0.8098947", "0.78015816", "0.75848585", "0.7533741", "0.7345407", "0.7099223", "0.7058192", "0.68899024", "0.6813482", "0.67732596", "0.6710552", "0.66674626", "0.6582527", "0.65544134", "0.648282", "0.644849", "0.64300513", "0.64049256", "0.6320072", "0.6308408", "0.6101349...
0.75223625
4
Converts date strings into datetime format
def Nuwf(jQ3Z, AAHb): jQ3Z[AAHb] = rLdf.to_datetime(jQ3Z[AAHb], infer_datetime_format=True) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lbK_(YdD0):\n try:\n return qcWV.strptime(YdD0, '%Y-%m-%d')\n except ValueError:\n return qcWV.strptime(YdD0, '%d/%m/%Y')", "def Y5dS(wyVH):\n return Wmpw.datetime.strptime(wyVH, '%m/%d/%Y')", "def JDE9(mbyn):\n return qcWV.strptime(mbyn, '%d/%m/%Y')", "def J6Ib(_c1T):\n impo...
[ "0.7161522", "0.7031803", "0.69314915", "0.69310683", "0.692899", "0.69234216", "0.6892844", "0.67555624", "0.67394334", "0.673222", "0.67301404", "0.6715539", "0.6692217", "0.6646435", "0.6614729", "0.6548035", "0.65125006", "0.648393", "0.641785", "0.6411302", "0.64026594",...
0.0
-1
Creates an additional columns 'tokens' to the dataset. It contains a list of stemmed and lemmatized tokens.
def wr3U(mC1D: str) -> str: m1c7 = {'id': int, 'keyword': str, 'location': str, 'text': str} if 'train' in mC1D: m1c7['target'] = int ddn9 = WF4Q(mC1D, 'tokenized') jQ3Z = rLdf.read_csv(f'/data/{mC1D}', index_col='id', dtype=m1c7) jQ3Z['text_stemmed'] = jQ3Z['text'].apply(Dhdw.stem.PorterSte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TdB_(bOBl):\n K9NE = SrFi()\n b0j5 = K9NE.Defaults.create_tokenizer(K9NE)\n mkhU = L7hP('english')\n bOBl.loc[:, 'tokens'] = bOBl.loc[:, 'content'].apply(lambda VmPb: [eOtH.lemma_ for eOtH in b0j5(VmPb) if eOtH.is_stop is False and eOtH.is_space is False and (eOtH.is_punct is False)])\n bOBl.loc...
[ "0.6494572", "0.6389808", "0.63039017", "0.6254563", "0.6243018", "0.6138968", "0.6120583", "0.60892904", "0.60040784", "0.5983506", "0.59746194", "0.5874366", "0.5872793", "0.5872026", "0.5870165", "0.58513236", "0.58356553", "0.5794141", "0.5774568", "0.57506484", "0.571476...
0.5655413
23
Applies stopwords removal to the 'tokens' colums for each dataset row.
def aUcs(mC1D: str) -> str: m1c7 = {'id': int, 'keyword': str, 'location': str, 'text': str, 'text_stemmed': str, 'text_lemmatized': str} if 'train' in mC1D: m1c7['target'] = int def OamS(s2mk: List[str]): return [yzQ0 for yzQ0 in s2mk if yzQ0 not in Dhdw.corpus.stopwords.words('english')] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZtIO(nPrm, gCuF):\n iVRZ = gCuF['input_col']\n dLR1 = gCuF['output_col']\n jKyr = gCuF['id_frag']\n di0c = gCuF['news_stops_words']\n di0c += gCuF['stopwords']\n di0c = oyIN.unique(di0c)\n jbXL = []\n if nPrm.shape[0] > 0:\n if gCuF['case_sensitive']:\n di0c = set(di0c...
[ "0.73293066", "0.7125451", "0.69574547", "0.6875915", "0.6592536", "0.655768", "0.653758", "0.6451508", "0.642322", "0.64191824", "0.6297908", "0.6289256", "0.6227335", "0.6144405", "0.61233485", "0.6116757", "0.603559", "0.60240823", "0.60127515", "0.5959388", "0.5916599", ...
0.63855165
10
Initialize an inst_adsentries object.
def FIMM(YKHO, GPtr): YKHO.config = GPtr.config YKHO.staff = [] YKHO.history = {} YKHO.pub_auth_all = {} YKHO.pub_auth_top = {} YKHO.pub_inst_all = {} YKHO.pub_inst_top = {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, qsJ6, VECZ=None):\n YKHO.owner = qsJ6\n YKHO.entries = Gq84(YKHO)\n if VECZ is None:\n return", "def FIMM(YKHO, VECZ):\n YKHO.entries = VECZ", "def FIMM(YKHO, qpDA):\n YKHO.site = qpDA\n YKHO._entries = []", "def FIMM(YKHO, VECZ=[]):\n for ZfUD in VECZ:\n YKH...
[ "0.6336638", "0.5971795", "0.56298834", "0.5508412", "0.54021513", "0.5356761", "0.5335855", "0.5334061", "0.5325085", "0.52985835", "0.52923965", "0.52620536", "0.5138052", "0.5107653", "0.5100914", "0.5100914", "0.50950235", "0.5093168", "0.5012681", "0.49803844", "0.497088...
0.0
-1
staff_iate, function. Given a paper (python ads class Article), check if there is at least one author which is a member of an institution
def Lg6R(l3QS, Ehge): Fl1Z = False for WEKC in l3QS.aff: iCBC = any((GIN8 in WEKC for GIN8 in Ehge)) Fl1Z = Fl1Z or iCBC return Fl1Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y9Ni(LUGd, wrOD):\n nu2v = IZpx(LUGd)\n Hy8K = jvYh(nu2v)\n ZsSX = False\n for xg_Q in Hy8K:\n S48u = GCbe(xg_Q.get('href'))\n if wrOD in S48u:\n ZsSX = True\n break\n return ZsSX", "def s1fe():\n return osSi('uw_affiliation_student-employee')", "def _i...
[ "0.6104734", "0.6014623", "0.5984418", "0.58621", "0.57830095", "0.5712993", "0.569334", "0.56724024", "0.5653351", "0.5642445", "0.56329525", "0.5621238", "0.561703", "0.5580654", "0.55369467", "0.5512479", "0.55075306", "0.5502403", "0.54770684", "0.5475226", "0.54718405", ...
0.6786643
0
A simple linear layer output = W.X + b
def z8o0(EcVT, Z5wO, GhuM, a6Jb): XcU5 = e89i.shared(XTiz.random.uniform(low=-0.1, high=0.1, size=(GhuM[1], a6Jb)).astype(XTiz.float32), 'linear_weights') Fg_i = e89i.shared(XTiz.zeros(a6Jb).astype(XTiz.float32)) hlel = vhpA.dot(EcVT, XcU5) + Fg_i fHd8 = vhpA.dot(Z5wO, XcU5) + Fg_i oLRV = (GhuM[0], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NQCf(YKHO, XcU5, Fg_i, WKvO, sz2T=True):\n if sz2T is True:\n return oyIN.maximum(XcU5 @ WKvO + Fg_i, 0)\n return XcU5 @ WKvO + Fg_i", "def z8o0(WKvO, EDoJ):\n yzQ0 = ZylS.get_variable('w', [WKvO.get_shape()[1], EDoJ])\n Fg_i = ZylS.get_variable('b', [EDoJ], initializer=ZylS.constant_initi...
[ "0.82238114", "0.80804074", "0.75202507", "0.72941864", "0.721842", "0.7120809", "0.70968974", "0.7056413", "0.6984556", "0.69712335", "0.69712335", "0.69209296", "0.6837847", "0.6772131", "0.67446196", "0.6715414", "0.67081565", "0.67016375", "0.6677974", "0.6615366", "0.658...
0.6361478
42
r""" Return loaders for the passed datasets
def SELc(EPL3, IrSd, qby3, Ep8u=128): Pa1c = pVAc(EPL3, batch_size=Ep8u, num_workers=8, shuffle=True) o7Up = pVAc(IrSd, batch_size=Ep8u, num_workers=8, shuffle=False) Blhr = pVAc(qby3, batch_size=Ep8u, num_workers=8, shuffle=False) return (Pa1c, o7Up, Blhr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pYAW(y7GR):\n return s31Q(y7GR.dataloader)(y7GR).load_data()", "def pYAW(qIxc, b0j5):\n nCwY = dD7q(b0j5, qIxc.dataset_path, qIxc.dataset_cache, qIxc.train_lang)\n bGrB = nCwY.pop('test', None)\n bo34.info('Build inputs and labels')\n gMbG = {'train': [], 'valid': []}\n if qIxc.train_lang i...
[ "0.7801111", "0.7585403", "0.75460434", "0.73615956", "0.72978973", "0.7281325", "0.7259096", "0.7184863", "0.70834017", "0.70742893", "0.70579267", "0.7055441", "0.70362586", "0.7029724", "0.69592905", "0.6930703", "0.6908616", "0.68829453", "0.6856844", "0.6856844", "0.6856...
0.81899023
0
r""" Get dataloader for coreset. Used in classincremental setup. Currently unfinished.
def hEjx(EPL3, u_XE=100): PRNB = EPL3.get_random_coreset(size=u_XE) if PRNB is not None: t2pU = pVAc(PRNB, batch_size=128, num_workers=4, shuffle=True) else: t2pU = None return t2pU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KgqZ(YKHO):\n hXNa = True if YKHO.mode == 'train' else False\n return pVAc(YKHO.get_dataset(), batch_size=YKHO.batch_size, shuffle=hXNa, collate_fn=zxkI)", "def JyoU(YKHO):\n return pVAc", "def JdZy(YKHO):\n if YKHO.train_dataloader is not None:\n return YKHO.train_dataloader\n assert...
[ "0.7459599", "0.7189616", "0.69098645", "0.66868496", "0.6645819", "0.6588509", "0.6452816", "0.6304796", "0.6291291", "0.6220771", "0.6199559", "0.6199041", "0.6173421", "0.6125723", "0.6081583", "0.6061391", "0.6055056", "0.5999358", "0.5976626", "0.59340525", "0.5925384", ...
0.7773889
0
Creates and saves a superuser with the given email and password.
def Zp54(YKHO, D3lj, NYoc, MaFd, jTXt): CBIr = YKHO.create_user(D3lj, password=jTXt, wink_username=NYoc, wink_password=MaFd) CBIr.is_admin = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HvMu():\n D3lj = idDS('User E-Mail')\n JAPf = idDS('Confirm E-Mail')\n if not D3lj == JAPf:\n HwRy.exit('\\nCould not create user: E-Mail did not match')\n if not abGk.match(D3lj):\n HwRy.exit('\\nCould not create user: Invalid E-Mail addresss')\n jTXt = GgOB('User password')\n ...
[ "0.83361775", "0.828295", "0.8259977", "0.8250611", "0.8249943", "0.82250875", "0.8214708", "0.8212031", "0.8182371", "0.81775945", "0.8175486", "0.8160761", "0.8157207", "0.8153185", "0.81484836", "0.81483996", "0.8148305", "0.8148305", "0.8148305", "0.8147124", "0.8132914",...
0.0
-1
labels = class labels
def CCvI(FYrf, EcVT, LVAh, Crrw, kLcZ=True): dixj = {} for C3ST in FYrf: krWg, cCrA = AIi5(EcVT, LVAh, C3ST, encode=kLcZ) lwds = {} for YRbF, Z9rn in enumerate(Crrw): lwds[Z9rn] = {'P': cCrA[0][YRbF], 'R': cCrA[1][YRbF], 'F1': cCrA[2][YRbF], 'Support': cCrA[3][YRbF]} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eUkN(Crrw, qTBf):\n ZHfW = [1 if ATUZ else -1 for ATUZ in qTBf]\n ZHfW = oyIN.array(ZHfW)\n return Crrw.dot(ZHfW)", "def CTRE(YKHO):\n return YKHO._class_labels", "def ayUT(CTRE, jTqs=4):\n bctv = []\n for UXqs in CTRE:\n d8Cr = oGtp(int(UXqs), num_classes=jTqs)\n bctv.appen...
[ "0.7447972", "0.7438544", "0.739998", "0.7397551", "0.7397551", "0.72695744", "0.72160393", "0.72160393", "0.72160393", "0.7214847", "0.715397", "0.70725965", "0.70224565", "0.6989703", "0.69182247", "0.6860545", "0.68573546", "0.6853445", "0.68478024", "0.6845334", "0.684533...
0.0
-1
Add code to remove xml files created for each test if needed
def tBIc(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n YKHO.remove_test_files()", "def tBIc(YKHO) -> None:\n iku2 = [eHNT for eHNT in SC2F.glob('steps/tests/test_output/*') if not ZbWC.match('\\\\.keep', eHNT)]\n for nUeQ in iku2:\n try:\n if GkAb(nUeQ).is_dir():\n RDuA.rmtree(nUeQ)\n else:\n ...
[ "0.7199814", "0.7091662", "0.70463413", "0.70265406", "0.7019789", "0.69317615", "0.6896303", "0.6819506", "0.68089265", "0.672958", "0.6716219", "0.6698092", "0.66893184", "0.66854584", "0.66433346", "0.66349834", "0.66349834", "0.66349834", "0.6620281", "0.6615271", "0.6593...
0.0
-1
Create a new Valence3 object.
def FIMM(YKHO, mWFP='Triatomic valence', YylR='rad', uUPf=False, _3Xo=0): super().__init__(YKHO._csv3_q2x, nQ=3, nX=9, name=mWFP, Qstr=['r1', 'r2', 'theta'], maxderiv=None, isatomic=True, zlevel=None) if YylR == 'rad' or YylR == 'deg': YKHO.angle = YylR else: raise ValueError('angle must be ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, eeYG, MOYU, MzFU):\n YKHO.position = x2om(int(eeYG), int(MOYU), int(MzFU))\n YKHO.velocity = jIFH(0, 0, 0)", "def bnE6(Emd4, nJ9F, nxyw, cflT, jzdc, Fg_i, Z9rn):\n y4fz = lNLu(nJ9F, nxyw, cflT)\n Csk6 = lNLu(jzdc, Fg_i, Z9rn)\n return Emd4(y4fz, Csk6)", "def oW_4(*qIxc, **PECO):\n...
[ "0.57769066", "0.5618583", "0.5599207", "0.5580559", "0.5565433", "0.55610406", "0.554252", "0.5513668", "0.5510952", "0.5498387", "0.54972744", "0.54348683", "0.5431365", "0.53688514", "0.5365434", "0.5362083", "0.53488636", "0.5342071", "0.5311019", "0.5310587", "0.5310077"...
0.5681084
1
Create a LinearTrans object.
def FIMM(YKHO, Kt_s, a1PO=None, OuE_=None, mWFP=None): if oyIN.ndim(Kt_s) != 2: raise ValueError('T must be 2-dimensional') r8hN, exwG = Kt_s.shape super().__init__(YKHO._lintrans, nQp=exwG, nQ=r8hN, name=mWFP, Qpstr=OuE_, maxderiv=None, zlevel=1) YKHO.T = Kt_s.copy() if a1PO is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mop_(YKHO):\n Uzsc = YKHO.domain\n YKHO.transpoints = jth9(YKHO.pts)\n\n def a1PO(WKvO):\n return (WKvO - Uzsc[0]) / (Uzsc[1] - Uzsc[0])\n for YRbF in range(len(YKHO.transpoints)):\n YKHO.transpoints[YRbF, 0] = a1PO(YKHO.transpoints[YRbF, 0])", "def FIMM(YKHO, FN88, tjON=1, WHx2=Fal...
[ "0.6395334", "0.6368814", "0.61524385", "0.5990929", "0.5911513", "0.589439", "0.58715034", "0.57321095", "0.5709922", "0.5640645", "0.56197566", "0.5567641", "0.5504294", "0.5468873", "0.5451293", "0.5450555", "0.542788", "0.54231477", "0.54080814", "0.53919756", "0.5391663"...
0.5705041
9
Returns a copy of the molecule that when displayed shows atom indices.
def Zm0e(N9D1: Chem.Mol) -> OJ0g.Mol: U7YL = OJ0g.Mol(N9D1) RR8p = U7YL.GetNumAtoms() for or8S in range(RR8p): U7YL.GetAtomWithIdx(or8S).SetProp('molAtomMapNumber', str(N9D1.GetAtomWithIdx(or8S).GetIdx())) return U7YL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rO_4(asBq):\n for YRbF in range(len(asBq.index) - 1):\n yKcO = asBq.index[YRbF]\n Os4s = asBq.index[YRbF + 1]\n if Os4s - yKcO > 1:\n for pdhd in range(yKcO, Os4s):\n U6D_ = asBq.type_list[pdhd] + str(pdhd)\n asBq.setAtoms(pdhd, element=U6D_)\n ...
[ "0.63938123", "0.6128892", "0.59481066", "0.5941609", "0.58735675", "0.5866619", "0.5679796", "0.5522938", "0.55067396", "0.54886174", "0.546395", "0.5447676", "0.5446423", "0.54085374", "0.5396512", "0.5384452", "0.5377978", "0.53628105", "0.5330334", "0.53296465", "0.531012...
0.6105306
2
Yield successive nsized chunks from l.
def eHxA(YKHO, TWcG, zNig): for YRbF in range(0, len(TWcG), zNig): yield TWcG[YRbF:YRbF + zNig]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.7815877", "0.77655786", "0.77556044", "0.77441615", "0.7731815", "0.77288336", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.764...
0.0
-1
Checks if the node is equal to some other node.
def xa14(YKHO, Q6kx): if Q6kx == None or YKHO.element != Q6kx.element: return False return YKHO.index == Q6kx.index
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return type(YKHO) == type(Elif) and YKHO.node is Elif.node", "def xa14(YKHO, Elif):\n return type(Elif) is type(YKHO) and Elif._node is YKHO._node", "def xa14(YKHO, Elif):\n return type(Elif) is type(YKHO) and Elif._node is YKHO._node", "def xa14(YKHO, Elif):\n return type...
[ "0.83220375", "0.83041865", "0.83041865", "0.83041865", "0.83041865", "0.83041865", "0.82573247", "0.81490266", "0.8123923", "0.80946773", "0.7951766", "0.7885503", "0.7802659", "0.77216864", "0.7721365", "0.7702047", "0.7608962", "0.7608962", "0.74593896", "0.74259835", "0.7...
0.7704498
15
Sets the element of the node.
def GKVF(YKHO, U6D_): YKHO.element = U6D_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GKVF(YKHO, rVIV):\n YKHO._element = rVIV", "def set(YKHO, Q6kx, BWXx):\n YKHO.val[Q6kx] = BWXx", "def O1R3(YKHO, d6pt, BWXx):\n YKHO.elem[d6pt] = BWXx", "def yAvQ(YKHO, Q6kx):\n YKHO.__node = Q6kx", "def GKVF(YKHO, Ex9H, U6D_, jbYB):\n YKHO.dict[U6D_[0]][Ex9H + (U6D_[1],)] = jbYB", "de...
[ "0.7613508", "0.71508247", "0.7081755", "0.6995755", "0.69267434", "0.6826552", "0.6825495", "0.68035525", "0.6695301", "0.66854227", "0.6632226", "0.66252565", "0.6593624", "0.65107405", "0.64697385", "0.6419151", "0.6367809", "0.6358329", "0.63369894", "0.6300109", "0.62989...
0.82612103
0
Gets the index of the left child of this node.
def uI3T(YKHO): return 2 * YKHO.index + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cdj0(YKHO, d6pt):\n return 2 * d6pt + 1", "def L0tW(YKHO):\n return YKHO._leftchild", "def cdj0(YKHO, d6pt):\n return 2 * d6pt", "def uI3T(YKHO, _AKB):\n return 2 * _AKB + 1", "def D15K(YKHO):\n return _VfD.ASTNode_getLeftChild(YKHO)", "def LFlW(YKHO, d6pt):\n try:\n if d6pt ...
[ "0.83618385", "0.82356805", "0.8144245", "0.8100829", "0.8051605", "0.78735614", "0.78672826", "0.78672826", "0.7855055", "0.78340274", "0.77783483", "0.777283", "0.7707099", "0.7707099", "0.7698154", "0.766255", "0.76456517", "0.763264", "0.7620917", "0.75668985", "0.7481574...
0.8819194
0
Gets the index of the right child of this node.
def MBm4(YKHO): return 2 * YKHO.index + 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def esTa(YKHO, d6pt):\n return 2 * d6pt + 1", "def T4m8(YKHO, oeNL):\n return 2 * oeNL + 1", "def T4m8(YKHO, oeNL):\n return 2 * oeNL + 1", "def MBm4(YKHO, _AKB):\n return 2 * _AKB + 2", "def esTa(YKHO, d6pt):\n return 2 * d6pt + 2", "def esTa(YKHO, oeNL):\n return 2 * oeNL + 1", "def...
[ "0.83613634", "0.83464897", "0.83464897", "0.8271728", "0.8235776", "0.81026554", "0.7723686", "0.7653053", "0.7643088", "0.76126087", "0.75171787", "0.74982953", "0.74676996", "0.7187859", "0.71869355", "0.71784186", "0.7112526", "0.70967793", "0.70866776", "0.7066573", "0.7...
0.8937082
0
Gets the index of the parent of this node.
def Bc1k(YKHO): return (YKHO.index - 1) // 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _AKB(YKHO, d6pt):\n if d6pt == 0:\n return -1\n return YKHO.adjacency_list[d6pt][0]", "def H7rZ(YKHO) -> int:\n return YKHO._parent_id", "def KwgP(YKHO, d6pt):\n return (d6pt - 1) // 2 if d6pt else 0", "def _AKB(YKHO, d6pt):\n if d6pt == 0:\n print('index 0 has no parent')\n ...
[ "0.8084155", "0.8021728", "0.7863768", "0.78360665", "0.7801948", "0.7770504", "0.77490574", "0.77490574", "0.7706327", "0.76327807", "0.76272184", "0.7564791", "0.75492895", "0.75480026", "0.75477743", "0.7544163", "0.75373137", "0.75373137", "0.74437684", "0.7396543", "0.73...
0.8294789
0
Round the given value to arbitrary decimal points, in any direction. Perhaps rename `scale` to `sigfigs` or something? Not really in 'log' scaling... Arguments
def AJVa(wEf2, phJ9=0, NXpY='log', dir='near'): from zcode.plot import plot_core Zf6L = plot_core._scale_to_log_flag(NXpY) if oyIN.size(wEf2) > 1: raise ValueError('Arrays are not yet supported.') if dir.startswith('n'): mCOH = 0 elif dir.startswith('c') or dir.startswith('u'): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QuKp(YKHO, BWXx: float):\n assert BWXx > 1\n YKHO.__log_scale = BWXx\n YKHO.logarithmic = YKHO.logarithmic", "def vVtN(mLGw, LUIE):\n if mLGw != 0:\n return round(mLGw, -int(epAf.floor(epAf.log10(abs(mLGw))) - (LUIE - 1)))\n else:\n return 0", "def dwrf(mLGw, aHc2):\n if mLG...
[ "0.6658478", "0.6600313", "0.64854336", "0.64854336", "0.64571035", "0.64482206", "0.6428062", "0.64238656", "0.6419928", "0.63071346", "0.6262527", "0.6257937", "0.6222144", "0.6222144", "0.6173379", "0.61453897", "0.6092683", "0.60566807", "0.6042249", "0.60141534", "0.6002...
0.5778589
30
Find the indices of the input array which are within the given extrema.
def AIhA(T6S7, QypP, mC4V=True): assert oyIN.ndim(T6S7) == 1, 'Only `ndim = 1` arrays allowed!' XYTS = SUNP(QypP) if mC4V: noZV = oyIN.where((T6S7 >= XYTS[0]) & (T6S7 <= XYTS[1]))[0] else: noZV = oyIN.where((T6S7 > XYTS[0]) & (T6S7 < XYTS[1]))[0] return noZV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eUH0(qw7D, dgIT, bQ6z, fh1D=0, jRsy=0):\n ZSml = oyIN.min(oyIN.where(qw7D >= dgIT + fh1D))\n bKPk = oyIN.max(oyIN.where(qw7D <= bQ6z - jRsy))\n bS0K = oyIN.arange(ZSml, bKPk + 1)\n return bS0K", "def B0cP(nPrm, kVwb):\n V_8U = 1\n ixQc = len(nPrm) - 1\n for YRbF in range(len(nPrm)):\n ...
[ "0.6338899", "0.6317", "0.62691265", "0.6255338", "0.62061244", "0.59966356", "0.5950391", "0.5925405", "0.59072196", "0.5888313", "0.5838544", "0.5791472", "0.5780675", "0.5780675", "0.57387227", "0.57361704", "0.5723166", "0.5701627", "0.5692449", "0.5690497", "0.5664793", ...
0.5644346
22
Return the midpoints between values in the given array. If the given array is Ndimensional, midpoints are calculated from the last dimension. Arguments
def y8AJ(ezWE, RKD7=False, oXaw=0.5, jDK_=-1, MZMe=True): if oyIN.shape(ezWE)[jDK_] < 2: raise RuntimeError('Input ``arr`` does not have a valid shape!') if RKD7: CBIr = oyIN.log10(ezWE) else: CBIr = oyIN.array(ezWE) yk4i = oyIN.diff(CBIr, axis=jDK_) o7uO = grop(CBIr, axis=jD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y8AJ(YKHO):\n return YKHO.bins[:, 1]", "def lKXT(EBgd, HpuQ):\n return oyIN.array([(EBgd[0] + HpuQ[0]) / 2, (EBgd[1] + HpuQ[1]) / 2, (EBgd[2] + HpuQ[2]) / 2])", "def Eui1(JVDK: np.ndarray, Dd_p: np.ndarray):\n _0VL = oyIN.argsort(JVDK)\n HEVo = JVDK[_0VL]\n UUAo = oyIN.diff(HEVo)\n y8AJ =...
[ "0.6972088", "0.6209636", "0.62037843", "0.61801594", "0.61744726", "0.6062895", "0.60024357", "0.5956291", "0.5865705", "0.58354646", "0.57833093", "0.57496905", "0.5619331", "0.557309", "0.54937124", "0.5483402", "0.5480893", "0.5478209", "0.5397841", "0.5389621", "0.534113...
0.6435713
1
Check for monotonicity in the given array. Arguments
def VN0f(ezWE, type='g', jDK_=-1): ezWE = oyIN.atleast_1d(ezWE) if ezWE.size == 1: return True ohqK = ['g', 'ge', 'l', 'le', 'e'] assert type in ohqK, "Type '%s' Unrecognized." % type JfyU = HCwI(type) RA_F = oyIN.diff(ezWE, axis=jDK_) RI88 = oyIN.all(JfyU(RA_F, 0.0)) return RI88
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IRRt(YKHO):\n mxRl = True\n h4Pa = 0\n THkp = YKHO.fluorescence[0]\n for AU8u in YKHO.fluorescence[1:]:\n if AU8u > THkp + YKHO.monoThresh:\n h4Pa += 1\n elif AU8u < THkp + YKHO.monoThresh:\n if h4Pa != 0:\n h4Pa -= 1\n if h4Pa == 5:\n ...
[ "0.6881368", "0.65863895", "0.6407818", "0.62682784", "0.6236112", "0.617855", "0.61075896", "0.6011164", "0.5917663", "0.5895557", "0.58815193", "0.58379316", "0.57907337", "0.5754667", "0.5744951", "0.5727187", "0.5639834", "0.5624304", "0.56123656", "0.55561125", "0.553498...
0.5351557
30
Test whether an array_like is really 1D (i.e. not a jagged ND array). Test whether the input array is uniformly onedimensional, as apposed to (e.g.) a ``ndim == 1`` list or array of irregularly shaped sublists/subarrays. True for an empty list `[]`. Arguments
def jKKV(ezWE): if oyIN.ndim(ezWE) != 1: return False if len(ezWE) == 0: return True if oyIN.any(oyIN.vectorize(oyIN.ndim)(ezWE)): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qY_y(jzdc):\n return oyIN.sum(MF4b(MF4b(jzdc).shape) > 1) <= 1", "def iWjx(ezWE):\n return len(ezWE.shape) < 2 or ezWE.shape[1] == 1", "def UpNN(ezWE):\n return len(ezWE.shape) < 2 or ezWE.shape[0] == 1", "def WN8d(v2rl):\n import numpy as oyIN\n if v2rl is None:\n return True\n ...
[ "0.7702074", "0.7491834", "0.7229691", "0.70547795", "0.6916041", "0.69028723", "0.6803852", "0.67006594", "0.6421575", "0.6404329", "0.6361778", "0.6300612", "0.62617975", "0.62063605", "0.6134587", "0.60615265", "0.6012569", "0.59308934", "0.5910403", "0.5903275", "0.590059...
0.82512337
0
Pad the input signal to make the fwt matrix work.
def h3xK(nPrm: torch.Tensor, ZJmi: pywt.Wavelet, ABDL: int, Tuqy: str='reflect') -> ht2j.Tensor: if Tuqy == 'zero': Tuqy = 'constant' frdR, X5rc = V_Kf(nPrm.shape[-1], len(ZJmi.dec_lo)) qIIy = ht2j.nn.functional.pad(nPrm, [X5rc, frdR], mode=Tuqy) return qIIy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JI4P(Gaon, E3D9=10):\n KCHu = Gaon.shape[0]\n EcIj = oyIN.zeros(KCHu + 2 * E3D9)\n EcIj[E3D9:KCHu + E3D9] = Gaon\n return EcIj", "def RxpK(YKHO, b5Zv):\n YKHO.zf = b5Zv\n YKHO.nfft = YKHO.N + YKHO.zb + YKHO.zf\n if YKHO.analysis_window is not None:\n YKHO.analysis_window = oyIN.co...
[ "0.65574765", "0.63365877", "0.61031973", "0.607646", "0.6054116", "0.5766341", "0.5763826", "0.57418394", "0.57383424", "0.5726199", "0.57045215", "0.5672251", "0.5671559", "0.56571954", "0.5644132", "0.56439185", "0.5636079", "0.5624202", "0.56095874", "0.558962", "0.557250...
0.6118189
2
Pad data for the 2d FWT.
def sd75(nPrm, ZJmi, ABDL, Tuqy='reflect'): SkBA, hMmn = V_Kf(nPrm.shape[-2], len(ZJmi.dec_lo)) frdR, X5rc = V_Kf(nPrm.shape[-1], len(ZJmi.dec_lo)) qIIy = ht2j.nn.functional.pad(nPrm, [X5rc, frdR, hMmn, SkBA], mode=Tuqy) return qIIy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AeBf(WKvO, rb7a=4):\n di96 = oyIN.power(2, rb7a)\n K0A_ = WKvO.shape[0] % di96\n if K0A_ == 0:\n return WKvO\n elif len(WKvO.shape) == 2:\n return oyIN.pad(WKvO, [(0, di96 - K0A_), (0, 0)], 'constant')\n elif len(WKvO.shape) == 3:\n return oyIN.pad(WKvO, [(0, di96 - K0A_), (...
[ "0.6509254", "0.6504801", "0.64622766", "0.6334278", "0.6250836", "0.62382317", "0.6157697", "0.6081306", "0.60803825", "0.6062623", "0.6028899", "0.6011693", "0.60108685", "0.599538", "0.593309", "0.59210646", "0.5898071", "0.5889973", "0.58613193", "0.58361995", "0.58324236...
0.70868105
0
Torch implementation of numpy's outer for vectors.
def swtH(jzdc, Fg_i): Ijpa = ht2j.reshape(jzdc, [-1]) jYD8 = ht2j.reshape(Fg_i, [-1]) RpKm = ht2j.unsqueeze(Ijpa, dim=-1) vBc7 = ht2j.unsqueeze(jYD8, dim=0) return RpKm * vBc7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aKAg(P6bq: Vector3D, Ty9i: Vector3D):\n UV8M = P6bq.y * Ty9i.z - P6bq.z * Ty9i.y\n vHO5 = P6bq.z * Ty9i.x - P6bq.x * Ty9i.z\n rAGV = P6bq.x * Ty9i.y - P6bq.y * Ty9i.x\n return twFZ(UV8M, vHO5, rAGV, coordinate_system='cartesian')", "def vU9r(WKvO, LVAh):\n if WKvO.ndim != 1:\n WKvO = WK...
[ "0.694576", "0.68335795", "0.6582529", "0.61524993", "0.61341304", "0.612201", "0.6117658", "0.6090153", "0.6041434", "0.6023976", "0.5973987", "0.59543735", "0.59315336", "0.5929931", "0.5928676", "0.59258986", "0.5895171", "0.588365", "0.58742356", "0.58457726", "0.5830929"...
0.6419953
3
Returns a list x for all the data points. Each element of x is a NumPy vector with 5,000 elements, one for each word.
def zBAY(ztjo, yLbG): WKvO = [] for Csk6 in ztjo: ycBG = oyIN.zeros(yLbG, dtype=oyIN.float64) for H5ew, wEf2 in Csk6.items(): if H5ew < yLbG: H5ew -= 1 ycBG[H5ew] = 1 WKvO.append(ycBG) return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HiEt(YKHO, GIN8, XCb3=False, Gxus=False, NkkI=True):\n if Gxus:\n GIN8 = YKHO.xsampa.convert(GIN8)\n VytY = YKHO.word_fts(GIN8, NkkI or Gxus)\n if XCb3:\n vhpA = [WKvO.numeric() for WKvO in VytY]\n else:\n vhpA = [WKvO.strings() for WKvO in VytY]\n return vhpA", "def DJi6(...
[ "0.63979566", "0.6323328", "0.6139044", "0.60804874", "0.60651577", "0.6064752", "0.6061148", "0.59422743", "0.58800566", "0.5839348", "0.5831127", "0.58252704", "0.5818373", "0.5810647", "0.5805296", "0.57933176", "0.5783019", "0.5781592", "0.57792187", "0.57715917", "0.5734...
0.61157244
3
Scale train and test data using specified scaler (default StandardScaler).
def _dYl(cC56: DF, sAoX: DF, Y5YY: object=None) -> HRJ_.Tuple[g1ZM, g1ZM]: if not Y5YY: Y5YY = txNa() Y5YY.fit(cC56) return (Y5YY.transform(cC56), Y5YY.transform(sAoX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NXpY(EvQg, QOe9):\n Y5YY = SNvk(feature_range=(-1, 1))\n Y5YY = Y5YY.fit(EvQg)\n EvQg = EvQg.reshape(EvQg.shape[0], EvQg.shape[1])\n w4QZ = Y5YY.transform(EvQg)\n QOe9 = QOe9.reshape(QOe9.shape[0], QOe9.shape[1])\n E0IW = Y5YY.transform(QOe9)\n return (Y5YY, w4QZ, E0IW)", "def NXpY(YKHO,...
[ "0.8058943", "0.78255606", "0.7745955", "0.76353145", "0.7631244", "0.7630237", "0.7629898", "0.74093133", "0.73940223", "0.734513", "0.71210337", "0.70563996", "0.70318884", "0.70147914", "0.69263864", "0.6895547", "0.6738539", "0.6687696", "0.66528374", "0.6634528", "0.6630...
0.72964644
10
Return a saved state value, None if item is undefined.
def OP2O(YKHO, ZfUD): return YKHO._state['data'].get(ZfUD, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def JgjC(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def JgjC(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def bv1p(YKHO, ...
[ "0.6426262", "0.6426262", "0.6146485", "0.6146485", "0.6143656", "0.61336714", "0.6097194", "0.6097194", "0.6097194", "0.5940735", "0.5818517", "0.57955533", "0.57518315", "0.5735236", "0.5724344", "0.5724344", "0.5723242", "0.5687774", "0.5687774", "0.5687774", "0.5687774", ...
0.63554496
3
Return a saved state value, None if item is undefined.
def JgjC(YKHO, ZfUD): return YKHO._state['data'].get(ZfUD, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)", "def OP2O(YKHO, ...
[ "0.6429514", "0.6429514", "0.6358824", "0.6358824", "0.6358824", "0.6149625", "0.6149625", "0.6145407", "0.61317384", "0.5938212", "0.58158153", "0.5793487", "0.5748117", "0.57325107", "0.5726615", "0.5721914", "0.5721914", "0.5684511", "0.5684511", "0.5684511", "0.5684511", ...
0.61004424
9
This gets the initial x position and velocity values
def RPY6(): while True: try: Z1El = float(input('Please enter the initial x position in m: ')) except ValueError: print('Invalid Input') continue else: break while True: try: unex = float(input('Please enter the initial ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aY1t(YKHO):\n return YKHO.xvelocity", "def aY1t(YKHO):\n return YKHO._vx", "def I1Y8(YKHO):\n if len(YKHO.prevPositions) < 2:\n YKHO.velocity = (0, 0, 0)\n else:\n ITS7 = YKHO.position[2] - YKHO.prevPositions[len(YKHO.prevPositions) - 1][2]\n SJ7g = YKHO.position[0][0] - YK...
[ "0.7702927", "0.7289026", "0.7086318", "0.69733465", "0.6954075", "0.681477", "0.6774038", "0.67447424", "0.6699862", "0.66686124", "0.6652677", "0.6582294", "0.65165436", "0.651492", "0.65128016", "0.6478118", "0.64708734", "0.6444521", "0.6441185", "0.6412755", "0.64098376"...
0.5998061
68
This gets the initial y position and velocity values
def hgDY(): while True: try: iPHV = float(input('Please enter the initial y position in m: ')) if iPHV < 0: print('Please enter a positive value.') continue except ValueError: print('Invalid input') continue else...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uk5V(YKHO):\n if len(YKHO.prevPositions) < 2:\n YKHO.velocity = 0\n else:\n ITS7 = YKHO.position[2] - YKHO.prevPositions[len(YKHO.prevPositions) - 1][2]\n SJ7g = YKHO.position[0][0] - YKHO.prevPositions[len(YKHO.prevPositions) - 1][0][0]\n PHsw = YKHO.position[0][1] - YKHO.pre...
[ "0.743665", "0.73924863", "0.72868377", "0.7080948", "0.7022498", "0.69990927", "0.69655246", "0.692328", "0.69025296", "0.6864296", "0.68117964", "0.67906684", "0.67715365", "0.6760214", "0.6760214", "0.6735987", "0.67078984", "0.6707297", "0.6690351", "0.6673502", "0.663971...
0.0
-1
Computes a gradient clipping coefficient based on gradient norm.
def MaHD(C3ST, AxoL): wxBC = 0 for XP5J in C3ST.parameters(): if XP5J.requires_grad: gMJ6 = XP5J.grad.data.norm() wxBC += gMJ6 ** 2 wxBC = oyIN.sqrt(wxBC) CkYf = AxoL / max(wxBC, AxoL) for XP5J in C3ST.parameters(): if XP5J.requires_grad: XP5J.grad...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MaHD(SGPK, vJPk):\n wxBC = 0\n for XP5J in SGPK:\n gMJ6 = XP5J.grad.data.norm()\n wxBC += gMJ6 ** 2\n wxBC = epAf.sqrt(wxBC)\n return min(1, vJPk / (wxBC + 1e-06))", "def MaHD(C3ST, AxoL):\n wxBC = 0\n for XP5J in C3ST.parameters():\n if XP5J.requires_grad:\n ...
[ "0.8192957", "0.7836212", "0.7812888", "0.7684024", "0.6941484", "0.6935386", "0.6885898", "0.67271453", "0.6653705", "0.65643364", "0.65286523", "0.65286523", "0.65286523", "0.65286523", "0.65286523", "0.6526018", "0.64746755", "0.6459472", "0.6434548", "0.63848907", "0.6342...
0.78191525
2
Get all actions currently in the replay memory, ordered by time where they were taken.
def xASv(YKHO): return YKHO._actions.getSlice(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TyL_(YKHO, RpDr, xASv, nG5o):\n return ([], xASv)", "def xASv(YKHO) -> list:\n if YKHO.debug:\n print(f'AState.actions()')\n if not YKHO._examined:\n if YKHO.debug:\n print(f'\\tExamining...')\n YKHO._actions = YKHO._generate_actions()\n YKHO._examined = True\n...
[ "0.67279744", "0.6710008", "0.66840154", "0.6538076", "0.6326077", "0.62980324", "0.6246879", "0.6191621", "0.6170337", "0.6132707", "0.60533214", "0.6049664", "0.603641", "0.59729457", "0.5941164", "0.591611", "0.591611", "0.591611", "0.5800242", "0.5789079", "0.57405037", ...
0.6430174
5
Returns a batch of states, actions, rewards, terminal status, and next_states for a number batch_size of randomly chosen transitions. Note that if terminal[i] == True, then next_states[s][i] == np.zeros_like(states[s][i]) for each s.
def tmdt(YKHO, Ep8u, DDw2): Wc9F = {} if YKHO._max_history_size + YKHO.sticky_action - 1 >= YKHO.n_elems: raise Ai_o('Not enough elements in the dataset to create a complete state. {} elements in dataset; requires {}'.format(YKHO.n_elems, YKHO._max_history_size)) if YKHO._use_priority: iksi,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MMq1(YKHO, Ep8u):\n wspz = oyIN.zeros((Ep8u, YKHO.state_size), dtype=YKHO.states.dtype)\n xASv = oyIN.zeros((Ep8u, YKHO.action_size), dtype=YKHO.actions.dtype)\n vwlo = oyIN.zeros((Ep8u, 1), dtype=YKHO.rewards.dtype)\n BKVD = oyIN.zeros_like(wspz, dtype=YKHO.states.dtype)\n jjsj = oyIN.zeros((Ep...
[ "0.7682383", "0.73538345", "0.72486675", "0.71613854", "0.6614158", "0.6602941", "0.65052855", "0.64579755", "0.6406741", "0.63441855", "0.6317695", "0.63068056", "0.6278373", "0.6261944", "0.6232763", "0.6186115", "0.6132042", "0.6089072", "0.60756314", "0.6010676", "0.60013...
0.641919
8
Represents a CloudFormation Parameter Type.
def FIMM(YKHO, gbMs): YKHO.parameter_type = gbMs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G1Gj(YKHO):\n return _VfD.Parameter_getTypeCode(YKHO)", "def CbyE(YKHO, mWFP):\n raise NotImplementedError()", "def l87X(YKHO):\n return '%s %s' % (YKHO.param_type, YKHO.name)", "def FRul(YKHO, KAOR):\n if KAOR.type == dxET.BOOLEAN_TYPE:\n return 'Boolean'\n elif KAOR.type == dxET.S...
[ "0.6564639", "0.65468276", "0.6381778", "0.6367714", "0.6326458", "0.6242839", "0.62366515", "0.60643727", "0.60609674", "0.6017571", "0.6017571", "0.6017571", "0.6017571", "0.6017571", "0.6017571", "0.6017571", "0.6017571", "0.6017571", "0.6017571", "0.6017571", "0.6017571",...
0.6391266
2
Calculate the poststratified producer's standard error from an nxn confusion matrix. If the reference data contain no instances of a class, returns a NaN for that element.
def RbQ2(GDRm, BQsO): DiSR = GDRm.sum(axis=1) Acv0 = fzg8(BQsO ** 2, DiSR * oyIN.where(DiSR != 1, DiSR - 1, DiSR)) wYBo = Acv0[:, None] * GDRm * (1 - fzg8(GDRm, DiSR[:, None])) TF_U = oyIN.diag_indices(GDRm.shape[0]) wYBo[TF_U] = 0 cGTx = fzg8(GDRm * BQsO[:, None], DiSR[:, None]) gSGs = GwP8...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TNu1(GDRm, BQsO):\n return oyIN.sqrt(oyIN.nansum(QZch(GDRm) ** 2 * BQsO ** 2))", "def PWcT(GDRm, BQsO):\n DiSR = GDRm.sum(axis=1)\n return oyIN.nansum(fzg8(GDRm.diagonal() * BQsO, DiSR))", "def GwP8(GDRm, BQsO):\n Tz6B = GDRm * fzg8(BQsO, GDRm.sum(axis=1))[:, None]\n DiSR = oyIN.nansum(Tz6B,...
[ "0.6594165", "0.5980478", "0.5967284", "0.5833904", "0.53923666", "0.53497136", "0.53346", "0.53004783", "0.5284852", "0.52500373", "0.5232466", "0.52304405", "0.5212", "0.52038735", "0.51789427", "0.5174164", "0.5174143", "0.51510143", "0.51360506", "0.51187974", "0.51158494...
0.6640561
0
Calculates the estimated map area proportion standard error of each class.
def DdNY(GDRm, BQsO): hcjF = bitI(GDRm, BQsO) DiSR = GDRm.sum(axis=1) Tz6B = fzg8(BQsO[:, None] ** 2 * hcjF * (1 - hcjF), oyIN.where(DiSR != 1, DiSR - 1, DiSR)[:, None]) return oyIN.sqrt(oyIN.nansum(Tz6B, axis=0))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jNON(GDRm, BQsO):\n return oyIN.nansum(bitI(GDRm, BQsO), axis=0)", "def k6JJ(rNYq, J_Es, KndY):\n Ylbp = yera(rNYq, J_Es)\n wjRY = sum(Ylbp.values())\n BFeB = []\n for Z9rn in KndY:\n if Z9rn in Ylbp.keys():\n BFeB.append(float(Ylbp[Z9rn]) / wjRY)\n else:\n ...
[ "0.6088287", "0.5973438", "0.5811182", "0.5734903", "0.5542816", "0.5501405", "0.5437083", "0.5436517", "0.54157174", "0.53905636", "0.53837764", "0.5373578", "0.5361072", "0.5356154", "0.53239554", "0.53184605", "0.53089184", "0.5276285", "0.52629274", "0.52629095", "0.52291...
0.6280762
0
Chain a sequence of iterators together into a single sequence.
def khaK(IrPK): for WhY1 in IrPK: yield from WhY1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ENFq(ix7N):\n return Hs6x.chain.from_iterable(ix7N)", "def eNCK(*JJXN):\n return aC7w(Hs6x.chain(*JJXN))", "def ENFq(Xtuq):\n return Hs6x.chain.from_iterable(Xtuq)", "def ENFq(*Xtuq):\n return Hs6x.chain.from_iterable(Xtuq)", "def b65I(OxJJ, *ix7N):\n return iter(WhY1.chain(OxJJ, *ix7N))...
[ "0.74589974", "0.73797214", "0.7302038", "0.7065293", "0.69541234", "0.68697006", "0.68476707", "0.669383", "0.6481802", "0.64331365", "0.6369508", "0.62915415", "0.62771094", "0.6243485", "0.62408453", "0.6204148", "0.619794", "0.61951923", "0.61575425", "0.6144743", "0.6127...
0.75486547
0
Delete a tag for a shipment. Deletes an existing shipment tag using the specified data. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def Daj1(YKHO, UIfb, Ht0O, **B2fa): HhGF = ['shipment_id', 'shipment_tag'] HhGF.append('callback') NArs = locals() for H5ew, wEf2 in BVGD(NArs['kwargs']): if H5ew not in HhGF: raise TypeError("Got an unexpected keyword argument '%s' to method delete_shipment_tag" % H5ew) NArs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMIg(YKHO, cuiw, TZ9E):\n YKHO._tag(cuiw.delete, key=TZ9E, delete=True, session=cuiw)", "def hMIg(YKHO, TZ9E):\n return YKHO.__datacatalog.delete_tag(name=TZ9E.name)", "def PTpj(YKHO, TZ9E, NArs={}, **xAU6):\n pmON = '/tags/%s' % TZ9E\n return YKHO.client.delete(pmON, NArs, **xAU6)", "def hMI...
[ "0.6579873", "0.6539505", "0.6331027", "0.6111765", "0.5944577", "0.57388806", "0.56845975", "0.5675672", "0.56745243", "0.5633165", "0.561809", "0.5608334", "0.56073457", "0.5593881", "0.5581662", "0.5568866", "0.5545619", "0.55157214", "0.5504911", "0.5431472", "0.54307646"...
0.7137268
0
Writes FlowMessages and updates corresponding requests.
def Wwrn(YKHO, h2IT): h3wU = {} _vgi = set() B63i = {} for geh0 in h2IT: Ufs5 = (geh0.client_id, geh0.flow_id) if Ufs5 not in YKHO.flows: G9jH.error('Received response for unknown flow %s, %s.', geh0.client_id, geh0.flow_id) continue oAZn = YKHO.flow_reque...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cLLm(YKHO, G4JS):\n wzkt = uRJc.RDFDatetime.Now()\n for Mkmy in G4JS:\n RC0J = YKHO.message_handler_requests.setdefault(Mkmy.handler_name, {})\n zRMq = Mkmy.Copy()\n zRMq.timestamp = wzkt\n RC0J[zRMq.request_id] = zRMq", "def taO1(YKHO, G4JS):\n iDDs = []\n for QePW in...
[ "0.6500873", "0.6490644", "0.63209665", "0.59280133", "0.58675605", "0.58517003", "0.5800597", "0.5790333", "0.5783791", "0.57623583", "0.5735354", "0.5697957", "0.5671796", "0.56649125", "0.5646273", "0.5629229", "0.5579454", "0.5486141", "0.54256356", "0.5411077", "0.538781...
0.6187173
3
return a generator For lists and sets the generator yields each item. For dictionaries it yield (key, value)
def Vs4Q(YKHO): if YKHO.is_payload(set, list): return iter(YKHO._attr) if YKHO.is_payload(dict): LTh4 = [(G1Hx, Ty9i) for G1Hx, Ty9i in YKHO._attr.items()] return iter(LTh4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n for H5ew in YKHO.keys_set:\n yield (H5ew, YKHO.__getitem__(H5ew))", "def Vs4Q(YKHO):\n for H5ew, BWXx in YKHO.read():\n yield (H5ew, BWXx)", "def BVGD(YKHO):\n for q9mE, BWXx in YKHO.data.iteritems():\n H5ew = q9mE()\n if H5ew is not None:\n yie...
[ "0.68467915", "0.6383323", "0.6329462", "0.6329462", "0.62629426", "0.62063944", "0.6182053", "0.6160723", "0.61546445", "0.61522615", "0.61364806", "0.6100662", "0.6090066", "0.6001733", "0.59969515", "0.59860563", "0.5985557", "0.5980867", "0.59785616", "0.5966618", "0.5947...
0.56173646
37
Compute a constant advection field by finding a translation vector that maximizes the correlation between two successive images.
def si3H(A3Vt, **B2fa): EcVT, fuBA = oyIN.meshgrid(oyIN.arange(A3Vt.shape[2]), oyIN.arange(A3Vt.shape[1])) def eHNT(Ty9i): yR0e = [fuBA + Ty9i[1], EcVT + Ty9i[0]] NDLm = D8Ke.map_coordinates(A3Vt[-2, :, :], yR0e, mode='constant', cval=oyIN.nan, order=0, prefilter=False) ZHfW = oyIN.isfi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZBiM(yzQ0, XcU5, r845):\n yzQ0 -= oyIN.linalg.multi_dot([yzQ0, XcU5[:r845].T, XcU5[:r845]])\n return yzQ0", "def ZbXC(GvJb, ve0q):\n qrK8 = len(GvJb)\n ZpZh = oyIN.argmax(oyIN.correlate([float(YRbF) for YRbF in GvJb], [float(YRbF) for YRbF in ve0q], mode='full'))\n return -int(oyIN.arange(-qrK...
[ "0.5850066", "0.5803377", "0.5755366", "0.574165", "0.56482035", "0.5560038", "0.549698", "0.5449303", "0.54393864", "0.5371599", "0.5358288", "0.53550553", "0.53504306", "0.533009", "0.531916", "0.53184044", "0.5300711", "0.5293101", "0.5291579", "0.5290975", "0.52828693", ...
0.57652813
2
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.expand_dims(oyIN.max(WKvO, axis=-1), axis=-1)) return uw5A / oyIN.expand_dims(uw5A.sum(axis=-1), axis=-1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T", "def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)", "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "de...
[ "0.7796373", "0.7761191", "0.7759723", "0.77571064", "0.765803", "0.765803", "0.765803", "0.765803", "0.75856936", "0.74314815", "0.74069375", "0.73939854", "0.7358033", "0.7317298", "0.72690034", "0.7262341", "0.7261389", "0.72569704", "0.72300184", "0.72146094", "0.72015774...
0.69421
98
Return a relative version of a path
def jdyJ(pmON, yKcO=Hy7s.curdir): if not pmON: raise ValueError('no path specified') W8qs = Hy7s.path.abspath(yKcO).split(Hy7s.path.sep) BTLB = Hy7s.path.abspath(pmON).split(Hy7s.path.sep) if W8qs[0].lower() != BTLB[0].lower(): uHSV, wOmD = yTr4(pmON) TNUy, wOmD = yTr4(yKcO) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qth0(YKHO, pmON):\n return ZbWC.sub(YKHO.path_regex, '', pmON).lstrip(Hy7s.sep)", "def sueC(pmON: str):\n return gzes('.', pmON)", "def vT7J(pmON):\n iQZE = ToLc(pmON)\n return iQZE[-1]", "def NE63(pmON: str):\n return Hy7s.path.relpath(pmON, phdL())", "def PsRC(pmON):\n return Hy7s.p...
[ "0.7916205", "0.77834916", "0.77383643", "0.765349", "0.7530642", "0.7522436", "0.7415771", "0.7404095", "0.729165", "0.72837", "0.7279967", "0.723366", "0.7217335", "0.71864855", "0.7178365", "0.7105353", "0.7092798", "0.70900303", "0.70873284", "0.70858437", "0.70681816", ...
0.0
-1