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
GetAttribute(itkLabelShapeKeepNObjectsImageFilterIUS2 self) > unsigned int
def xhr3(YKHO) -> 'unsigned int': return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS2_GetAttribute(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xhr3(YKHO) -> 'unsigned int':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS3_GetAttribute(YKHO)", "def xhr3(YKHO) -> 'unsigned int':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUC2_GetAttribute(YKHO)", "def xhr3(YKHO) -> 'unsigned int':\n return _x7Y.itkLabelShapeKeepNObjectsImageFi...
[ "0.8186465", "0.81466764", "0.8105217", "0.79650617", "0.78467315", "0.733683", "0.7275905", "0.7225039", "0.71938515", "0.71244", "0.71145874", "0.7097258", "0.70968455", "0.7076846", "0.70012283", "0.69949585", "0.6936157", "0.6909282", "0.6885461", "0.6827819", "0.67990136...
0.84486
0
cast(itkLightObject obj) > itkLabelShapeKeepNObjectsImageFilterIUS2
def YWvJ(YEnM: 'itkLightObject') -> 'itkLabelShapeKeepNObjectsImageFilterIUS2 *': return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS2_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWP2(YEnM: 'itkLightObject') -> 'itkLabelShapeKeepNObjectsImageFilterIUS2 *':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS2_cast(YEnM)", "def XmWS(YEnM: 'itkLightObject') -> 'itkLabelShapeKeepNObjectsImageFilterISS2 *':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterISS2_cast(YEnM)", "def...
[ "0.890373", "0.8711338", "0.8684928", "0.86790836", "0.8658607", "0.86279505", "0.85233235", "0.8441758", "0.84067464", "0.8348429", "0.82658", "0.7776289", "0.7700415", "0.7673051", "0.7638216", "0.75993776", "0.75063694", "0.7471528", "0.7463778", "0.7436011", "0.7278782", ...
0.88459975
1
New() > itkLabelShapeKeepNObjectsImageFilterIUS2 Create a new object of the class itkLabelShapeKeepNObjectsImageFilterIUS2 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 ...
def oW_4(*qIxc, **PECO): YEnM = EiVY.__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 = MqSj.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = RtvQ.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.8088946", "0.8066648", "0.789903", "0.77270746", "0.75112176", "0.7252558", "0.7252558", "0.71270245", "0.70592755", "0.70554703", "0.705358", "0.70421773", "0.70309895", "0.70264953", "0.7020461", "0.7020461", "0.70035946", "0.69825554", "0.6966926", "0.6963449", "0.69555...
0.8269362
0
itkLabelShapeKeepNObjectsImageFilterIUS2_cast(itkLightObject obj) > itkLabelShapeKeepNObjectsImageFilterIUS2
def BWP2(YEnM: 'itkLightObject') -> 'itkLabelShapeKeepNObjectsImageFilterIUS2 *': return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS2_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YEnM: 'itkLightObject') -> 'itkLabelShapeKeepNObjectsImageFilterIUS2 *':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS2_cast(YEnM)", "def UQf2(YEnM: 'itkLightObject') -> 'itkLabelShapeKeepNObjectsImageFilterIUC2 *':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUC2_cast(YEnM)", "def...
[ "0.91759187", "0.91366917", "0.9084142", "0.8950862", "0.8939967", "0.88780075", "0.8873457", "0.8647378", "0.86143094", "0.85901916", "0.8587464", "0.7888677", "0.7854521", "0.78428495", "0.77946156", "0.77300906", "0.7702833", "0.76573527", "0.7591411", "0.7537439", "0.7147...
0.9434169
0
Clone(itkLabelShapeKeepNObjectsImageFilterIUS3 self) > itkLabelShapeKeepNObjectsImageFilterIUS3_Pointer
def B29l(YKHO) -> 'itkLabelShapeKeepNObjectsImageFilterIUS3_Pointer': return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS3_Clone(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B29l(YKHO) -> 'itkLabelShapeKeepNObjectsImageFilterIUC3_Pointer':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUC3_Clone(YKHO)", "def B29l(YKHO) -> 'itkLabelShapeKeepNObjectsImageFilterISS3_Pointer':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterISS3_Clone(YKHO)", "def B29l(YKHO) -> 'itkLab...
[ "0.89505094", "0.8950431", "0.8909031", "0.87033004", "0.85586333", "0.81417376", "0.79050714", "0.75119394", "0.74436814", "0.74030435", "0.7305573", "0.73043877", "0.7228136", "0.72112894", "0.7179254", "0.71778667", "0.71702564", "0.71490514", "0.71367115", "0.7129902", "0...
0.9199797
0
SetBackgroundValue(itkLabelShapeKeepNObjectsImageFilterIUS3 self, unsigned short const _arg)
def eMxk(YKHO, THRx: 'unsigned short const') -> 'void': return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS3_SetBackgroundValue(YKHO, THRx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eMxk(YKHO, THRx: 'unsigned short const') -> 'void':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS2_SetBackgroundValue(YKHO, THRx)", "def eMxk(YKHO, THRx: 'short const') -> 'void':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterISS3_SetBackgroundValue(YKHO, THRx)", "def eMxk(YKHO, THRx: 'un...
[ "0.8982579", "0.88747746", "0.87267447", "0.8699874", "0.8584025", "0.8080657", "0.7946324", "0.788784", "0.78106666", "0.7807238", "0.78046495", "0.7802185", "0.77890706", "0.7749726", "0.77219987", "0.77202445", "0.77003014", "0.7647047", "0.7640277", "0.76074976", "0.75760...
0.91015357
0
SetReverseOrdering(itkLabelShapeKeepNObjectsImageFilterIUS3 self, bool const _arg)
def onLY(YKHO, THRx: 'bool const') -> 'void': return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS3_SetReverseOrdering(YKHO, THRx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def onLY(YKHO, THRx: 'bool const') -> 'void':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS2_SetReverseOrdering(YKHO, THRx)", "def onLY(YKHO, THRx: 'bool const') -> 'void':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterISS3_SetReverseOrdering(YKHO, THRx)", "def onLY(YKHO, THRx: 'bool const') ...
[ "0.903521", "0.89867926", "0.8934937", "0.8854799", "0.8841202", "0.7791658", "0.7758826", "0.76834655", "0.76532876", "0.7627742", "0.76249737", "0.7553573", "0.7552903", "0.753617", "0.75157785", "0.7510682", "0.7471633", "0.7419494", "0.74096656", "0.7165279", "0.7105245",...
0.91386634
0
GetAttribute(itkLabelShapeKeepNObjectsImageFilterIUS3 self) > unsigned int
def xhr3(YKHO) -> 'unsigned int': return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS3_GetAttribute(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xhr3(YKHO) -> 'unsigned int':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS2_GetAttribute(YKHO)", "def xhr3(YKHO) -> 'unsigned int':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterISS3_GetAttribute(YKHO)", "def xhr3(YKHO) -> 'unsigned int':\n return _x7Y.itkLabelShapeKeepNObjectsImageFi...
[ "0.8482427", "0.8293477", "0.8264021", "0.82278603", "0.8226867", "0.7393573", "0.7349083", "0.734816", "0.73194915", "0.72780436", "0.72320205", "0.70534074", "0.70260775", "0.70157516", "0.69787014", "0.69604224", "0.69578826", "0.69384277", "0.692156", "0.69027436", "0.688...
0.84696877
1
SetAttribute(itkLabelShapeKeepNObjectsImageFilterIUS3 self, unsigned int const _arg)
def tdfQ(YKHO, *qIxc) -> 'void': return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS3_SetAttribute(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tdfQ(YKHO, *qIxc) -> 'void':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS2_SetAttribute(YKHO, *qIxc)", "def tdfQ(YKHO, *qIxc) -> 'void':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterISS3_SetAttribute(YKHO, *qIxc)", "def tdfQ(YKHO, *qIxc) -> 'void':\n return _x7Y.itkLabelShapeKeepNObj...
[ "0.83379036", "0.8263254", "0.81599736", "0.8057308", "0.80498177", "0.6672852", "0.66554487", "0.6534599", "0.650211", "0.64958465", "0.64211804", "0.64207435", "0.64204204", "0.641973", "0.64031976", "0.638909", "0.6322771", "0.6280232", "0.626254", "0.6224088", "0.62202173...
0.8467044
0
cast(itkLightObject obj) > itkLabelShapeKeepNObjectsImageFilterIUS3
def YWvJ(YEnM: 'itkLightObject') -> 'itkLabelShapeKeepNObjectsImageFilterIUS3 *': return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS3_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWP2(YEnM: 'itkLightObject') -> 'itkLabelShapeKeepNObjectsImageFilterIUS2 *':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS2_cast(YEnM)", "def tKd6(YEnM: 'itkLightObject') -> 'itkLabelShapeKeepNObjectsImageFilterIUS3 *':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS3_cast(YEnM)", "def...
[ "0.8789231", "0.8786364", "0.87654525", "0.86539644", "0.86347425", "0.86324906", "0.86143494", "0.86134624", "0.8585275", "0.8576184", "0.8568217", "0.79238194", "0.7849197", "0.7822604", "0.7706297", "0.75527364", "0.75076264", "0.74958676", "0.7313346", "0.7304806", "0.723...
0.8817926
0
New() > itkLabelShapeKeepNObjectsImageFilterIUS3 Create a new object of the class itkLabelShapeKeepNObjectsImageFilterIUS3 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 ...
def oW_4(*qIxc, **PECO): YEnM = zxRg.__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 = S1EE.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = Xmvi.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.8120448", "0.81032103", "0.7697121", "0.75076455", "0.7499863", "0.7432011", "0.7432011", "0.723735", "0.7225147", "0.7225147", "0.72098583", "0.71786755", "0.7147283", "0.7116428", "0.7115752", "0.7115033", "0.71102506", "0.71102506", "0.71064585", "0.71028215", "0.709778...
0.8242184
0
itkLabelShapeKeepNObjectsImageFilterIUS3_cast(itkLightObject obj) > itkLabelShapeKeepNObjectsImageFilterIUS3
def tKd6(YEnM: 'itkLightObject') -> 'itkLabelShapeKeepNObjectsImageFilterIUS3 *': return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUS3_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EIoF(YEnM: 'itkLightObject') -> 'itkLabelShapeKeepNObjectsImageFilterISS3 *':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterISS3_cast(YEnM)", "def y9Ve(YEnM: 'itkLightObject') -> 'itkLabelShapeKeepNObjectsImageFilterIUC3 *':\n return _x7Y.itkLabelShapeKeepNObjectsImageFilterIUC3_cast(YEnM)", "def...
[ "0.92065364", "0.920536", "0.9162673", "0.8999412", "0.89820457", "0.8966843", "0.8808046", "0.8806867", "0.863673", "0.86259866", "0.849597", "0.81389034", "0.80254734", "0.79715306", "0.7888084", "0.75934774", "0.7384829", "0.7353445", "0.7302428", "0.7297684", "0.72777665"...
0.9426801
0
Setup the test driver and create test users
def FCbF(YKHO): YKHO.driver = cSpz.Chrome() YKHO.driver.get(YKHO.get_server_url()) NCls.session.commit() NCls.drop_all() NCls.create_all() YKHO.admin = TjLA(username=FkbV, email=nNHf, password=RUrL, is_admin=True) YKHO.employee = TjLA(username=BKWn, first_name=LCAZ, last_name=RTQX, email=cVD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n NCls.drop_all()\n NCls.create_all()\n P4t4.config['TESTING'] = True\n YKHO.client = P4t4.test_client()", "def FCbF(YKHO):\n YKHO.new_user = YJv1('Judy', 'homeboys123')", "def FCbF(YKHO):\n YKHO.app = YKHO._set_up_test_app(LUif)\n YKHO.client = YKHO._set_up_client(YKHO.app...
[ "0.7922605", "0.7725985", "0.76982677", "0.768224", "0.7672551", "0.7656813", "0.7647313", "0.7607617", "0.7597351", "0.75630486", "0.7561216", "0.7560582", "0.75542474", "0.75520164", "0.7549644", "0.7548669", "0.751875", "0.7498118", "0.74881333", "0.748017", "0.74609125", ...
0.76445127
7
Preprocess a single image of layout [height, width, depth].
def j9DC(LNo8, h9Wc, o_qv, LT6S): hI_h = o_qv hI_h.set_shape([KtSU, FCrM, 1]) if LT6S: LNo8, h9Wc, o_qv = ZvG6.random_rescale_image_and_label(LNo8, h9Wc, o_qv, p5BT, llay, FCrM / llay, V3Qr, S3rI) LNo8, h9Wc, o_qv = ZvG6.random_crop_or_pad_image_and_label(LNo8, h9Wc, o_qv, p5BT, llay, I0M3) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G2mu(VXjJ: np.ndarray) -> oyIN.ndarray:\n return VXjJ", "def biH0(YKHO, LNo8):\n return LNo8", "def biH0(YKHO, LNo8):\n raise NotImplementedError", "def Zi4e(YKHO, VXjJ):\n VXjJ = oyIN.transpose(VXjJ, (2, 0, 1))\n YKHO.img = oyIN.expand_dims(VXjJ, 0)\n if YKHO.half:\n YKHO.img = ...
[ "0.7471002", "0.7359257", "0.7351244", "0.7194681", "0.71097153", "0.7107985", "0.70426875", "0.7003436", "0.69999194", "0.6982273", "0.69800407", "0.69188255", "0.69044614", "0.68862283", "0.6862762", "0.6842554", "0.6831147", "0.68044674", "0.6802989", "0.6783201", "0.67812...
0.0
-1
Input_fn using the tf.data input pipeline for CIFAR10 dataset.
def hbsH(LT6S, h_xa, Ep8u, Zbwy=1): __n6 = ZylS.data.Dataset.from_tensor_slices(I3lW(LT6S, h_xa)) __n6 = __n6.flat_map(ZylS.data.TFRecordDataset) if LT6S: __n6 = __n6.shuffle(buffer_size=xaHB['train']) __n6 = __n6.map(j8_j) __n6 = __n6.map(lambda LNo8, h9Wc, o_qv: j9DC(LNo8, h9Wc, o_qv, LT6S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hbsH(h_xa, vcn7, frCB, Ep8u, Q9Ng=True, y4n2=0.0, j3aw='cifar10'):\n with ZylS.device('/cpu:0'):\n TjQB = vcn7 == 'train' and Q9Ng\n __n6 = q9sR.CifarDataSet(h_xa, frCB, vcn7, TjQB, y4n2, dataset=j3aw)\n L6EW, FSaV = __n6.make_batch(Ep8u)\n return (L6EW, FSaV)", "def hbsH():\n ...
[ "0.7487104", "0.70981944", "0.7030556", "0.699649", "0.68820095", "0.6861143", "0.68129474", "0.6807447", "0.67344624", "0.6700815", "0.6690545", "0.6684706", "0.66715443", "0.66657394", "0.6660252", "0.66594094", "0.6642536", "0.6635493", "0.6635394", "0.6628345", "0.6625343...
0.6211816
93
get_neighbors calculates a list of the k nearest neighbors of an instance 'test_instance'.
def BTfj(Yqkn, Crrw, nLZM, G1Hx): TaUL = [] for d6pt in range(len(Yqkn)): pImw = Ayfi(nLZM, Yqkn[d6pt]) TaUL.append((Yqkn[d6pt], pImw, Crrw[d6pt])) TaUL.sort(key=lambda WKvO: WKvO[1]) A_IW = TaUL[:G1Hx] return A_IW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BTfj(Yqkn, Crrw, nLZM, G1Hx, Ayfi=Ayfi):\n TaUL = []\n for d6pt in range(len(Yqkn)):\n pImw = Ayfi(nLZM, Yqkn[d6pt])\n TaUL.append((Yqkn[d6pt], pImw, Crrw[d6pt]))\n TaUL.sort(key=lambda WKvO: WKvO[1])\n A_IW = TaUL[:G1Hx]\n return A_IW", "def mRrQ(Yqkn, nLZM, G1Hx):\n TaUL = [...
[ "0.82276696", "0.8204838", "0.80804086", "0.80597556", "0.79532486", "0.7646554", "0.74190634", "0.74057555", "0.7390903", "0.7390903", "0.729551", "0.7131466", "0.7028182", "0.6992599", "0.69289786", "0.6921046", "0.6921046", "0.6908692", "0.6833972", "0.67649186", "0.672477...
0.83619595
0
Make flask respond with JSON encoded body
def VzyU(nPrm, Wxnj, MOPg=None): _hkX = Yxsy(qQXR.dump(nPrm), Wxnj) _hkX.headers.extend(MOPg or {}) return _hkX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pz3A(YEnM):\n return WsL5.Response(qQXR.dumps(YEnM), mimetype='application/json')", "def pz3A(d7pR):\n if d7pR is None:\n d7pR = {}\n JBvl = 200\n if 'error' in d7pR:\n JBvl = 501\n return WsL5.Response(response=WsL5.json.dumps(d7pR, separators=xVqU), status=JBvl, mimetype='appli...
[ "0.7730667", "0.7432481", "0.7369061", "0.7206511", "0.7148663", "0.7083151", "0.70043397", "0.6988404", "0.69726235", "0.69670564", "0.68764484", "0.68631655", "0.68427473", "0.678436", "0.6732057", "0.6729949", "0.67239463", "0.66882235", "0.6669599", "0.6669599", "0.666959...
0.0
-1
Set up proxy information if configuration contains proxyURL
def FIMM(YKHO, GPtr): YKHO.config = GPtr YKHO.last_auth_time = 0 YKHO.session_token = None YKHO.key_manager_token = None YKHO.auth_session = G4JS.Session() if YKHO.config.data['truststorePath']: G9jH.debug('Setting trusstorePath for auth to {}'.format(YKHO.config.data['truststorePath']))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZmyB(YKHO):\n if vPBo.http_proxy:\n _hwp = \"sed -i '1i export http_proxy=%s' /etc/bash.bashrc\"\n YKHO.RemoteCommand(_hwp % vPBo.http_proxy)\n if vPBo.https_proxy:\n fthQ = \"sed -i '1i export https_proxy=%s' /etc/bash.bashrc\"\n YKHO.RemoteCommand(fthQ % vPBo.http_proxy)\n ...
[ "0.7734631", "0.740567", "0.734028", "0.7326324", "0.73244435", "0.72695863", "0.7228783", "0.7155715", "0.70902973", "0.70667243", "0.70539904", "0.6978165", "0.6920285", "0.6908207", "0.68712896", "0.68660897", "0.68493325", "0.6812979", "0.6791578", "0.67803276", "0.675593...
0.0
-1
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None zb3C = cmPJ.get('clientId') FT0V = None if cmPJ.get('lockRanges') != None: FT0V = list() for g8x2 in cmPJ.get('lockRanges'): FT0V.append(qRGs.models.lock_range.LockRange.from_dictionary(g8x2)) return Emd4(zb3C, FT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.83722425", "0.8335738", "0.8215464", "0.8167521", "0.8167521", "0.81483614", "0.8051766", "0.80300796", "0.8013641", "0.79792094", "0.79221934", "0.7919166", "0.79183745", "0.79125935", "0.7906434", "0.79004663", "0.78967476", "0.7886129", "0.78760797", "0.78543913", "0.78...
0.0
-1
Overrides the str() operator and converts the message into a UTF8 JSON string
def zAg0(YKHO): qIxc = jth9.deepcopy(YKHO.args) PWgb(qIxc) return qQXR.dumps({'type': 'event', 'target': YKHO.target, 'origin': YKHO.origin if hasattr(YKHO, 'origin') else None, 'id': YKHO.id if hasattr(YKHO, 'id') else None, '_timestamp': YKHO.timestamp, 'args': {'type': YKHO.type, **qIxc}}, cls=YKHO.Encod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LhHY(Emd4, Ol8d):\n try:\n if type(Ol8d) is str:\n return Ol8d\n elif type(Ol8d) is dict:\n return qQXR.dumps(Ol8d)\n else:\n return Ol8d\n except Exception:\n if not Emd4._stop:\n return str(Ol8d)", "def CFN4(YKHO, tO9_: Any) -> s...
[ "0.8033929", "0.79416424", "0.77935404", "0.775441", "0.7722303", "0.7664524", "0.7631877", "0.75100166", "0.75100166", "0.75100166", "0.75100166", "0.75100166", "0.75100166", "0.75100166", "0.75100166", "0.75100166", "0.75100166", "0.75100166", "0.75100166", "0.75100166", "0...
0.0
-1
Method to get the current state of this table. This can be used
def ja6o(YKHO) -> dict: return {'current_index': YKHO.current_index, 'delayed': jth9(YKHO.delayed)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n return YKHO.get_state()", "def QTBn(YKHO):\n return YKHO._get_state()", "def ja6o(YKHO):\n return YKHO.state", "def GBfH(YKHO):\n return YKHO.state", "def QTBn(YKHO):\n return YKHO.data.state", "def QTBn(YKHO):\n return YKHO.data.state", "def ja6o(YKHO):\n return ...
[ "0.78227216", "0.773751", "0.77323884", "0.7687731", "0.7683852", "0.7683852", "0.7664176", "0.76585215", "0.7627091", "0.7627091", "0.7627091", "0.7627091", "0.7627091", "0.7627091", "0.7627091", "0.76145077", "0.7575546", "0.7572735", "0.7572735", "0.7572735", "0.75584024",...
0.0
-1
Method that compares border dicts ``a`` and ``b`` and returns if they are equal (``True``) or not (``False``)
def Hwqx(YKHO, jzdc: dict, Fg_i: dict) -> bool: return all((jzdc[hkS8] == Fg_i[hkS8] for hkS8 in ['width', 'color', 'style']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aSPY(jzdc: Dict[Any, Any], Fg_i: Dict[Any, Any]) -> bool:\n for G1Hx, Ty9i in jzdc.items():\n if Ty9i != Fg_i[G1Hx]:\n return False\n for G1Hx, Ty9i in Fg_i.items():\n if Ty9i != jzdc[G1Hx]:\n return False\n return True", "def BOE1(YKHO, jzdc, Fg_i):\n if jzdc ...
[ "0.77265424", "0.7547003", "0.75137734", "0.7513354", "0.73538643", "0.7186072", "0.71571386", "0.71337515", "0.7108381", "0.71040297", "0.7016407", "0.701373", "0.69695073", "0.69363856", "0.6927122", "0.69175357", "0.69162434", "0.6915252", "0.6910813", "0.6872216", "0.6856...
0.8250755
0
This method returns matrix of weights based on input integration order.
def wT46(YKHO): if YKHO.integration_order == 1: _mSQ = oyIN.array([[0.33333333333333, 0.33333333333333, 1.0]]) elif YKHO.integration_order == 2: _mSQ = oyIN.array([[0.16666666666667, 0.16666666666667, 0.33333333333333], [0.16666666666667, 0.66666666666667, 0.33333333333333], [0.66666666666667, 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wT46(YKHO):\n return oyIN.concatenate([VTcd.flatten() for VTcd in YKHO.weights])", "def wT46(YKHO):\n _mSQ = oyIN.concatenate((YKHO.W1.eval().reshape(-1), YKHO.W2.eval().reshape(-1), YKHO.W3.eval().reshape(-1)), axis=0)\n return _mSQ", "def T3TX(YKHO):\n return Ti47.diags(YKHO.weights)", "def...
[ "0.67836744", "0.6723771", "0.6620311", "0.660465", "0.6539243", "0.64992595", "0.64936006", "0.64084363", "0.64084363", "0.6403796", "0.6403433", "0.63976204", "0.63847", "0.63456327", "0.6337786", "0.6328752", "0.6328752", "0.6304954", "0.6272928", "0.6265476", "0.6263822",...
0.7950713
0
Returns the name of the model as a string.
def zAg0(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZGE9(YKHO) -> str:\n return YKHO._model_name", "def ZGE9(YKHO) -> str:\n return YKHO._model_name", "def ZGE9(YKHO) -> str:\n return YKHO._values.get('model_name')", "def ZGE9(YKHO):\n return YKHO._model_name", "def ZGE9(YKHO):\n return YKHO._model_name", "def W0tD(YKHO):\n return YK...
[ "0.87255317", "0.87255317", "0.86401224", "0.8604535", "0.8604535", "0.8570858", "0.85342413", "0.84862316", "0.8415761", "0.8415189", "0.8409286", "0.83804333", "0.8329839", "0.82130826", "0.81889546", "0.8187849", "0.81511253", "0.81511253", "0.81477183", "0.81477183", "0.8...
0.0
-1
Gets a ranking of possible next words, given current context. Ordered dictionary with the word as a key and probability as a value.
def nrOS(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fyAv(YKHO, QpfX, GIN8):\n WrFl = ['_BOS_'] + QpfX\n WrFl = [YKHO.word_to_id(a1PO) for a1PO in WrFl]\n WrFl = S5Za([WrFl], maxlen=YKHO.max_sequence_len - 1, padding='pre')\n iJQU = YKHO.word_to_id(GIN8)\n global graph\n global session\n with pNZh.as_default():\n with cuiw.as_default(...
[ "0.7306856", "0.68981594", "0.685063", "0.67748666", "0.6737541", "0.66371906", "0.65949565", "0.65629077", "0.655661", "0.6333558", "0.6319866", "0.6273526", "0.62503344", "0.62147874", "0.62085295", "0.62031484", "0.619638", "0.61795527", "0.6170231", "0.6134484", "0.612576...
0.0
-1
Shuffle a 1Dnumpy array and returns two numpy arrays with a given split.
def ROzS(i3LB=None, SNVo=None): YdmF = oyIN.random.shuffle(i3LB) if SNVo is None: return YdmF kPGE = oyIN.int(SNVo * len(i3LB)) return (i3LB[0:kPGE], i3LB[kPGE:])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qb89(WKvO, LVAh, dMYj, yokr=1):\n oyIN.random.seed(yokr)\n QyVM = list(range(LVAh.shape[0]))\n oyIN.random.shuffle(QyVM)\n idYQ = WKvO[QyVM]\n FhDr = LVAh[QyVM]\n qoqK = int(oyIN.floor(LVAh.shape[0] * dMYj))\n return (idYQ[:qoqK], FhDr[:qoqK], idYQ[qoqK:], FhDr[qoqK:])", "def RRMC(EcVT, ...
[ "0.6933298", "0.6928172", "0.6858942", "0.6790638", "0.67464083", "0.66028297", "0.65948623", "0.65798247", "0.6573556", "0.6499652", "0.6469312", "0.64670694", "0.6461806", "0.64488864", "0.6447485", "0.64364195", "0.6434688", "0.64308757", "0.64265835", "0.64238036", "0.641...
0.8032427
0
Depth first list of subtrees with associated element paths.
def ckRy(a1PO): HRJ_ = [] Jexc(a1PO, [], HRJ_) return HRJ_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H8HZ(YKHO):\n yield ([], YKHO)\n for YRbF, aUGN in enumerate(YKHO.children):\n for _o7t, KMNw in aUGN.iter_paths():\n yield ([YRbF] + _o7t, KMNw)", "def K2kF(Q6kx, JqV7, rb7a):\n dzye = [Q6kx]\n for SdXw in JqV7:\n if SdXw.parent and SdXw.parent.id == Q6kx.id:\n ...
[ "0.6670663", "0.66471213", "0.66471213", "0.66228324", "0.65397066", "0.6537136", "0.65009356", "0.65009356", "0.64740354", "0.6473297", "0.64728457", "0.6457533", "0.6390624", "0.63879585", "0.636771", "0.63235086", "0.62931544", "0.6254806", "0.6250905", "0.62380064", "0.62...
0.0
-1
Get data corresponding to representation.
def yLtf(__n6, TcPZ): return FYrf.load_data(__n6, TcPZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n5rA(YKHO):\n return YdNy.Data.deserialize(YKHO)", "def n5rA(YKHO):\n return YdNy.Data.deserialize(YKHO)", "def qIOa(YKHO, nPrm):\n return str(nPrm)", "def a8Pe(YKHO):\n return YKHO.data", "def yLtf(YKHO):\n return nPrm", "def yLtf(YKHO):\n return nPrm", "def yLtf(YKHO):\n nPrm...
[ "0.7059695", "0.7059695", "0.7025977", "0.70060384", "0.68923366", "0.68923366", "0.68908757", "0.68570316", "0.6849444", "0.6846007", "0.6846007", "0.6846007", "0.6842848", "0.6842848", "0.6842848", "0.6842848", "0.6842848", "0.6842848", "0.6842848", "0.6842848", "0.6842848"...
0.70145816
3
remove uuid in filename, and get filepath with file extension
def aZdt(VqRE): zXzD = Hy7s.path.splitext(VqRE) return f'{zXzD[0][:-33]}{zXzD[1]}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def boIb(KAOR, Ux0P):\n KAOR.file_filename = Ux0P\n qxeD = ui0s()\n KAOR.uuid = qxeD\n return qxeD", "def rYPo(pmON):\n return Hy7s.path.splitext(Hy7s.path.basename(pmON))[0]", "def UZOu(Ux0P):\n YBcr = Ux0P.split('.')[-1]\n Ux0P = '{filename}.{ext}'.format(filename=qxeD.uuid4(), ext=YBcr)...
[ "0.78196275", "0.7653785", "0.7636822", "0.7484504", "0.7473452", "0.74533385", "0.74418616", "0.74126065", "0.7412364", "0.7392896", "0.7371235", "0.7359356", "0.7353767", "0.73407894", "0.7333379", "0.73300564", "0.7293374", "0.72773933", "0.72633576", "0.72516227", "0.7251...
0.7696712
1
translate x by subtracting its mean (so the result has mean 0)
def UCnk(WKvO): fTjR = JBMS(WKvO) return [kidU - fTjR for kidU in WKvO]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UCnk(WKvO):\n cgTt = JBMS(WKvO)\n return [Y7fn - cgTt for Y7fn in WKvO]", "def UCnk(WKvO):\n fTjR = JBMS(WKvO)\n return [kidU - fTjR for kidU in WKvO]", "def qaHX(YKHO, WKvO):\n assert YKHO.mean is not None and YKHO.std is not None\n JBMS = ht2j.tensor(YKHO.mean, dtype=ht2j.float32, devic...
[ "0.8002999", "0.789805", "0.7079062", "0.70445853", "0.7034231", "0.7034231", "0.6968305", "0.69679195", "0.69649017", "0.6962058", "0.69551945", "0.69523513", "0.69154924", "0.68932325", "0.68923855", "0.6872617", "0.68644685", "0.6843664", "0.684125", "0.6788224", "0.677668...
0.77329683
2
Returns the manager supervising the given strategy at a given time.
def HDdB(YKHO, r5v8, hFW4): ToFR = 0 ITS7 = r5v8 + 32400 if hFW4 == 'sma': ToFR = 0 elif hFW4 == 'lwma': ToFR = 1 elif hFW4 == 'ema': ToFR = 2 else: ToFR = 3 if ITS7 <= 39600: return YKHO.mSchedule[1][ToFR] elif ITS7 <= 41400: return YKHO.m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bfMs(YKHO):\n p_z1 = None\n for tLaL in YKHO.user.manager.all():\n if tLaL.created_at >= gCuF.START_DATE:\n p_z1 = tLaL\n break\n return p_z1", "def MCRw(vnu5):\n return AMX5(vnu5, Uqnk)", "def OuMq(YKHO) -> fRlP:\n return YKHO._strategy", "def MCRw():\n ret...
[ "0.5744392", "0.5552256", "0.5363004", "0.5201691", "0.51873225", "0.5125383", "0.5109827", "0.5007634", "0.49686456", "0.49655664", "0.49655664", "0.49655664", "0.49655664", "0.49655664", "0.49655664", "0.49655664", "0.49655664", "0.49655664", "0.4918009", "0.4914835", "0.48...
0.63649774
0
Attempt to determine opcode's delta.
def KBrp(YKHO, khtY): d7pR = Hio9.instruction_to_int(YKHO.instructions[khtY.idx - 1]) if d7pR is None: return khtY.delta = 1 if d7pR else 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DHMt(YKHO) -> float:\n pass", "def fnb5(YKHO, RKYb, khtY):\n Aofo = khtY(YKHO._body, RKYb._body)\n return YKHO.__class__(**{YKHO._kind: Aofo})", "def DHMt(YKHO):\n if YKHO._delta is None:\n YKHO._track()\n return YKHO._delta", "def RA_F(YKHO):\n return YKHO._delta", "def ZPOP(Y...
[ "0.5820425", "0.5756877", "0.57163376", "0.5715342", "0.56668407", "0.56481886", "0.5626998", "0.56146115", "0.5606039", "0.5587139", "0.5579158", "0.5577913", "0.5530207", "0.5486", "0.5421666", "0.541128", "0.5381258", "0.53512335", "0.5338032", "0.53284127", "0.5327618", ...
0.0
-1
Views the home page
def nkjV(QePW): return pb0k(QePW, 'home/home.html', {})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'welcome.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def C_QL():\n return TvZl('home.html')", "d...
[ "0.8701415", "0.86515087", "0.86283016", "0.857358", "0.8568638", "0.8562958", "0.8506798", "0.8474352", "0.8469691", "0.8466924", "0.8466487", "0.846365", "0.84598076", "0.84598076", "0.8437781", "0.84372663", "0.8423588", "0.84175324", "0.84175324", "0.84175324", "0.8417532...
0.0
-1
Loads the model file for processing Currently compatible with .obj and .ply files
def FIMM(YKHO, qQS9): YKHO.string = qQS9 YKHO.highest = [] YKHO.big_list = [] with open('./model/hist_data.csv', 'r') as nPrm: hObn = rLdf.read_csv(nPrm, header=None) YKHO.list_val = list(hObn.values)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(Ux0P):\n pass", "def uyMl(ytgA: str):\n raise NotImplementedError", "def uyMl(Ux0P):\n raise NotImplementedError()", "def tyeH(YKHO, SkYi: Path) -> None:\n pass", "def uyMl():\n pass", "def uyMl():\n pass", "def uyMl(YKHO, gIsw):\n raise NotImplementedError", "def FIMM(Y...
[ "0.846946", "0.804695", "0.80234164", "0.783619", "0.77926105", "0.77926105", "0.7787203", "0.77577084", "0.7751116", "0.77213705", "0.765209", "0.7644513", "0.7626882", "0.7604663", "0.75886357", "0.75746053", "0.75587237", "0.75289994", "0.75289994", "0.75289994", "0.752899...
0.0
-1
Add a chain of nodes to the Trie.
def LEsw(YKHO, eNCK): xGoe = YKHO.head for id in eNCK: zAcD = xGoe.children.get(id) if not zAcD: zAcD = o7DN() xGoe.add_child(id, zAcD) xGoe = zAcD xGoe.is_complete = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, Q6kx, GIN8):\n j75W = Q6kx\n for YRbF in range(len(GIN8)):\n VKjy = ep_x()\n VKjy.val = GIN8[YRbF]\n j75W.next[GIN8[YRbF]] = VKjy\n j75W = VKjy\n j75W.next[''] = ''", "def H2v5(YKHO, KCHu: str):\n XP5J = YKHO.root\n Ziit = [exwG for exwG in YKHO._pre_node...
[ "0.66807824", "0.6504302", "0.6434273", "0.6372456", "0.6351807", "0.63159025", "0.6304474", "0.6255315", "0.6232468", "0.6229674", "0.62206626", "0.613399", "0.6116282", "0.6085192", "0.59550774", "0.59350395", "0.5920904", "0.5915132", "0.5897919", "0.58978087", "0.589293",...
0.7832581
0
Check whether given chain is a valid complete chain in the Trie.
def Rw96(YKHO, eNCK): kMLo = YKHO.head for id in eNCK: kMLo = kMLo.children.get(id) if not kMLo: return False return kMLo.is_complete
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xs3P(YKHO, eNCK: set[str]) -> bool:\n FaEZ = eNCK[0]\n d6pt = 1\n while d6pt < len(eNCK):\n XkN1 = eNCK[d6pt]\n if XkN1.previous_hash != YKHO.hash(FaEZ):\n return False\n if not YKHO.valid_proof(FaEZ.proof, XkN1.proof):\n return False\n FaEZ = XkN1\n ...
[ "0.794973", "0.7845981", "0.7802836", "0.7746048", "0.7741926", "0.77366877", "0.7691548", "0.7691548", "0.76899797", "0.7677034", "0.76552874", "0.7645784", "0.76235455", "0.7451871", "0.74202734", "0.73982245", "0.73562354", "0.7306477", "0.7306477", "0.7249551", "0.7244828...
0.856577
0
Set the learning rate to the initial LR decayed by "lr_decrease_factor" every "lr_decrease_epoch" epochs
def e_63(QpHv, K0do, qtWj, y7GR): tspZ = QpHv * y7GR.lr_decrease_factor ** (qtWj // y7GR.lr_decrease_epoch) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj, DJmW=0.001, cK6v=5):\n tspZ = DJmW * 0.1 ** (qtWj // cK6v)\n print('Learning rate:', tspZ)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", ...
[ "0.8171561", "0.7770047", "0.77246815", "0.7700435", "0.7697498", "0.7689842", "0.7687455", "0.765817", "0.7656478", "0.76480967", "0.76431406", "0.7639445", "0.763524", "0.76348513", "0.7630687", "0.76218826", "0.7616258", "0.7610952", "0.76028514", "0.76028514", "0.76002973...
0.0
-1
Find the most compatible output class given the input `x` and parameter `theta`
def YEmv(C3ST, w7kq): aTLP = C3ST.predict(w7kq) return aTLP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iiCv(EcVT, q7In, Zy87):\n EcVT = bfel(EcVT)\n WErR = qfsP(EcVT, q7In, Zy87)\n return oyIN.argmax(WErR, axis=0)", "def B_BV(WKvO, q7In):\n MKlR = m1Hg(WKvO.dot(q7In))\n if MKlR > 0.5:\n return 1\n else:\n return 0", "def YEmv(EcVT, q7In):\n return oyIN.round(m1Hg(EcVT @ q7...
[ "0.72999686", "0.6732826", "0.60667294", "0.60197276", "0.60196596", "0.59538084", "0.5866823", "0.5837826", "0.5822725", "0.5730043", "0.56881636", "0.5666915", "0.5625394", "0.557709", "0.5553903", "0.5552312", "0.5538325", "0.5502598", "0.5502344", "0.5497719", "0.5486654"...
0.0
-1
Plot learning rate vs iter graph.
def jpA3(Pbwj, qIxc, _N6A, Pata, q6XM=True): try: import seaborn as uuEx uuEx.set_style(qIxc.style) except ImportError: pass AYVd, hCM4 = qIxc.window_size.split('*') AYVd, hCM4 = (int(AYVd), int(hCM4)) QrM1.figure(figsize=(AYVd, hCM4)) aNZO: QrM1.Axes = QrM1.subplot() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kj9G(YKHO):\n mEMo = YKHO.history['lr']\n ZHXk = YKHO.__smooth_losses()\n Snt9, Ijb1 = QrM1.subplots(2)\n Ijb1[0].plot(mEMo, ZHXk, 'r-')\n Ijb1[0].set(xlabel='learning rate', ylabel='loss')\n Ijb1[0].set_xscale('log')\n Ijb1[1].plot(range(len(mEMo)), mEMo, 'b-')\n Ijb1[1].set(xlabel='it...
[ "0.7816547", "0.7742915", "0.7672106", "0.757504", "0.7371204", "0.73546", "0.72993743", "0.7291638", "0.72814006", "0.7274772", "0.720984", "0.71913373", "0.7168703", "0.71340835", "0.711261", "0.70978385", "0.70761347", "0.7062058", "0.7041182", "0.7032671", "0.7024448", ...
0.0
-1
head The linked list's head. Note that the head is guaranteed to be not null, so it contains at least one node.
def FIMM(YKHO, sdCG: ListNode): YKHO.head = sdCG YKHO.pool = [] while sdCG: YKHO.pool.append(sdCG.val) sdCG = sdCG.next
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sdCG(YKHO, Q6kx=None):\n if Q6kx:\n assert type(Q6kx) == o7DN\n YKHO._head = Q6kx", "def sdCG(YKHO) -> Msxl:\n raise NotImplementedError", "def qHHo(YKHO):\n return YKHO.head", "def _IVA(YKHO):\n if YKHO.head is None:\n return None\n if YKHO.head.nextNode is None:\n ...
[ "0.7640028", "0.7546632", "0.74688065", "0.7410208", "0.73935926", "0.7371977", "0.73627067", "0.7160746", "0.71388996", "0.6953883", "0.6953883", "0.6953883", "0.6953883", "0.69301283", "0.69197005", "0.68995756", "0.68677413", "0.6850947", "0.67808485", "0.6759007", "0.6749...
0.0
-1
Add a model instance to the session and commit.
def taJQ(YKHO, C3ST, guxm=None): if guxm is not None: for H5ew, wEf2 in guxm.iteritems(): setattr(C3ST, H5ew, wEf2) YKHO.s.add(C3ST) YKHO.s.commit()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO):\n NCls.session.add(YKHO)", "def _mzC(YKHO):\n NCls.session.add(YKHO)", "def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def MkZ7(C3ST, ipZT=True, **B2fa):\n try:\n C3ST = YrZb...
[ "0.77134615", "0.7696114", "0.7680149", "0.7610682", "0.7559365", "0.7534709", "0.7530123", "0.75273657", "0.75198644", "0.75198644", "0.75198644", "0.75198644", "0.75198644", "0.75198644", "0.75198644", "0.75198644", "0.75198644", "0.75198644", "0.75198644", "0.75198644", "0...
0.0
-1
Generate a list of even numbers
def EDDw(): return [mLGw for mLGw in range(1, 50) if mLGw % 2 == 0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aZuo(mLGw: int):\n return list(range(2, mLGw + 1, 2))", "def _3K5():\n yv6U = []\n for YRbF in range(0, 100):\n if YRbF % 2 == 0:\n yv6U.append(YRbF)\n return tuKI.choice(yv6U)", "def Pbi3(list):\n vf3I = []\n for FGW3 in list:\n if FGW3 % 2 == 0:\n vf3...
[ "0.80701786", "0.8032156", "0.75575477", "0.7500576", "0.7449191", "0.74314845", "0.72981894", "0.71917695", "0.71715003", "0.71542174", "0.7117826", "0.71161896", "0.7056554", "0.70466954", "0.7046103", "0.70376426", "0.69203794", "0.68891215", "0.68881667", "0.68795323", "0...
0.7426616
6
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(H66a, YKHO).__init__(*qIxc, **c_sp) if YKHO.x_min_depth is None: YKHO.x_min_depth = 0 if YKHO.x_min_xy is None: YKHO.x_min_xy = 0 if YKHO.y_min_depth is None: YKHO.y_min_depth = 0 if YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.8163331", "0.7717334", "0.7717334", "0.7649744", "0.7573215", "0.75414646", "0.7484271", "0.74689704", "0.74574524", "0.7444216", "0.7444215", "0.74331963", "0.74150974", "0.74083173", "0.7391518", "0.73746645", "0.7360718", "0.7323206", "0.7322305", "0.7322305", "0.732230...
0.0
-1
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(GSHB, YKHO).__init__(*qIxc, **c_sp) if YKHO.x_min_uv is None: YKHO.x_min_uv = 0 if YKHO.y_min_uv is None: YKHO.y_min_uv = 0 if YKHO.x_max_uv is None: YKHO.x_max_uv = 0 if YKHO.y_max_uv i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.8165841", "0.7719984", "0.7719984", "0.7652579", "0.75723845", "0.75442773", "0.7485476", "0.74710065", "0.7458108", "0.7446829", "0.744584", "0.7433617", "0.74152017", "0.7408084", "0.7391839", "0.7375146", "0.73632765", "0.7326098", "0.732388", "0.732388", "0.732388", ...
0.0
-1
List users. This endpoint supports pagination.
def s0TM(): return [pz3A(**CBIr.__json__()) for CBIr in mv1M.query.all()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list(YKHO, **B2fa):\n return YKHO.request('get', '/users', params=B2fa)", "def s0TM():\n rk1T = QePW.args.get('limit', default=-1, type=int)\n bq3c = QePW.args.get('offset', default=0, type=int)\n if rk1T == -1:\n DW23 = mv1M.query.all()\n else:\n DW23 = mv1M.query.offset(bq3c).l...
[ "0.84531236", "0.8422409", "0.8369504", "0.8324988", "0.82283014", "0.82217157", "0.81564647", "0.815217", "0.81049776", "0.8068328", "0.80435693", "0.80017304", "0.79985785", "0.7976101", "0.7952817", "0.79234326", "0.79102105", "0.78573406", "0.78479445", "0.7845888", "0.78...
0.7898869
17
Get a single user.
def TKWP(NtEF): CBIr = mv1M.query.filter(mv1M.username == NtEF).first() if CBIr is None: return eTsH(404) return pz3A(**CBIr.__json__())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKWP(uJjO):\n return mv1M.query.get(uJjO)", "def TKWP(uJjO):\n CBIr = mv1M.objects.get_or_404(id=uJjO)\n return CBIr", "def TKWP(uJjO):\n return xyx6.find_one({'user_id': uJjO})", "def NMoC(uJjO):\n return mv1M.objects(user_id=uJjO).first()", "def TKWP(uJjO):\n return mv1M.query.get(u...
[ "0.84581923", "0.84392816", "0.84293646", "0.83658695", "0.83340496", "0.8325562", "0.82670844", "0.8252137", "0.8252137", "0.82084924", "0.82084924", "0.82084924", "0.8185696", "0.8185696", "0.8185696", "0.8168495", "0.8167072", "0.8145922", "0.8145407", "0.81435996", "0.813...
0.0
-1
Get name of this shader file with full modules path.
def W0tD(): return __name__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IMu3(YKHO):\n MJH2 = zIwI.Dir('.').srcnode().path\n return Hy7s.path.basename(Hy7s.path.normpath(MJH2))", "def GTiV(YKHO, mWFP):\n return Hy7s.path.join(YKHO.module_dir(), f'{mWFP}_modulefile')", "def t2ew(YKHO):\n return '%s/%s/%s_module.h' % (YKHO.__type, YKHO.__name, YKHO.id_name())", "def...
[ "0.7025121", "0.6980753", "0.6957914", "0.6932264", "0.6796936", "0.6749888", "0.6730752", "0.66894996", "0.668898", "0.66837704", "0.6682778", "0.6681022", "0.6626469", "0.65694886", "0.65676564", "0.65638655", "0.65517294", "0.6527476", "0.6527476", "0.6527476", "0.6527476"...
0.0
-1
Set zero texture generation flavor to this shader.
def Oalu(MQSJ, jM2h): if jM2h and (not JqNY.is_set(MQSJ)): q9GQ = MQSJ.nodes[E4Bp.THRD_GEOM_NODE] tKq3 = MQSJ.nodes[E4Bp.SEC_UV_SCALE_NODE] YmEA = MQSJ.nodes[E4Bp.BASE_1_TEX_NODE] q9GQ.location.x -= 185 * 2 Rci7 = (q9GQ.location.x + 185, q9GQ.location.y) JqNY.init(MQS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XW5Q(YKHO):\n with ht2j.no_grad():\n XW5Q(YKHO.base)\n if YKHO.is_registered():\n YKHO.original_tensor().zero_()", "def myYP(YKHO):\n YKHO.setRepeat()\n YKHO.setFilter()\n jCEW(PRLX, jBC3)\n if WbTk.maxAnisotropy > 1:\n nWhE(YKHO.glTarget, rj_T, WbTk.maxAnisotro...
[ "0.57626456", "0.57087773", "0.56921387", "0.567429", "0.5669249", "0.5642898", "0.55365825", "0.55046195", "0.54539394", "0.54308957", "0.5423821", "0.5396241", "0.53903043", "0.5370276", "0.5359729", "0.53435427", "0.5342806", "0.5322338", "0.53153384", "0.5300198", "0.5294...
0.0
-1
Fill missing values by interpolation. Checks for NaN and Inf in xin and interpolates along column (1st dim). If yin is None, then interpolation distance is determined by index number. If undef=number is given, it will be interpolated as well. If one of nan of inf is given, then only that will be checked,
def F7Pf(sFFK, o3v7=None, JNix=None, FfMS=None, lpf7=None, NKcE='interp', **B2fa): if o3v7 is not None: CAzz = sFFK Jd40 = o3v7 else: CAzz = None Jd40 = sFFK m1YZ = False if oyIN.ndim(Jd40) == 1: m1YZ = True Jd40 = Jd40[:, oyIN.newaxis] pvd3 = 1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TFWP(tolH):\n EcVT = IYWQ.copy()\n MFrU, fRuM = EcVT.shape\n BBA6 = oyIN.zeros(shape=(MFrU, fRuM), dtype=float) * oyIN.nan\n a1PO = oyIN.arange(fRuM)\n for P2GO in range(0, MFrU):\n Y7fn = EcVT[P2GO, :]\n NTak = oyIN.where(oyIN.isnan(Y7fn))\n RvHA = oyIN.where(~oyIN.isnan(Y7...
[ "0.72807056", "0.7104552", "0.6766458", "0.6637929", "0.65337425", "0.64737344", "0.64466065", "0.63433087", "0.633092", "0.6317714", "0.6231455", "0.6227621", "0.62260985", "0.6221467", "0.6180515", "0.6129933", "0.60926545", "0.60476625", "0.6042654", "0.60179156", "0.60041...
0.82292616
0
Log a local file as an artifact, optionally taking an ``artifact_path`` to place it in within the run's artifacts. Run artifacts can be organized into directories, so you can place the artifact in a directory this way.
def zNg6(YKHO, hvL1, niZZ=None): YKHO.repo.log_artifact(hvL1, niZZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R28y(YKHO, nWeE, niZZ=None):\n YKHO.repo.log_artifacts(nWeE, niZZ)", "def zNg6(YKHO, pmON, mWFP=None, tnnt=None, YPaw=None, E3oo=None):\n YKHO._log_has_events()\n mWFP = mWFP or yq3l(pmON)\n YBcr = TXmV(filepath=pmON)\n tnnt = tnnt or uIJk.FILE\n Cib7 = wz0P(run_path=YKHO._artifacts_path, k...
[ "0.7855293", "0.7086954", "0.70810956", "0.65714765", "0.6338776", "0.62472683", "0.619112", "0.5983006", "0.58780646", "0.57624364", "0.5653099", "0.55448127", "0.5540141", "0.55188435", "0.5457479", "0.54572743", "0.5431823", "0.53534645", "0.5344162", "0.5300838", "0.52956...
0.8668229
0
Get the cim_type for any returned cim object. Normally this is the name of the class name except that the classname return from getclass and enumerate class is just unicode string
def tu_3(ei4T): if isinstance(ei4T, list) and ei4T: FAmx = ei4T[0] elif ei4T: FAmx = object else: return None if isinstance(FAmx, tuple): WyLo = FAmx[1].__class__.__name__ else: WyLo = FAmx.__class__.__name__ if isinstance(FAmx, jKi7.string_types): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YwLH(YKHO):\n return Um9M(YKHO)", "def w_bp(YKHO):\n if YKHO._type_name:\n h_UO = YKHO._type_name\n else:\n h_UO = YKHO.name\n return h_UO", "def D3KC(YKHO):\n return YKHO._class_type", "def Hghu(Emd4):\n return UvrF(Emd4.__name__)", "def type(YKHO):\n return YKHO.typ...
[ "0.737375", "0.73618746", "0.72633475", "0.7162415", "0.7073759", "0.70104593", "0.70104593", "0.70104593", "0.70104593", "0.70104593", "0.70104593", "0.70104593", "0.70104593", "0.70104593", "0.70104593", "0.70104593", "0.70104593", "0.70104593", "0.70104593", "0.70104593", ...
0.803019
0
Return a path using the posix path separator given a path that may contain
def OQcE(pmON): return pmON.replace(Om__.sep, Qumu.sep)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xgnN(pmON):\n ddn9 = Qumu.join(*pmON.split(Hy7s.path.sep))\n if pmON.startswith('/'):\n ddn9 = '/' + ddn9\n elif pmON.startswith('\\\\\\\\'):\n ddn9 = '//' + ddn9\n return ddn9", "def g8rx():\n return str(PKXz(Hy7s.sep).as_posix())", "def h9_6(pmON):\n if Hy7s.name != 'nt':\...
[ "0.79744434", "0.79177797", "0.7694771", "0.76451993", "0.74924064", "0.74626976", "0.7141933", "0.71224815", "0.7037436", "0.7037322", "0.7023206", "0.69745386", "0.6921651", "0.6917734", "0.69148546", "0.6845255", "0.68362683", "0.68142104", "0.6791529", "0.6780504", "0.672...
0.7809821
2
Return a list of invalid characters in the file name of `path`.
def rpkk(pmON): pmON = OQcE(pmON) mYwz = kFeU(pmON) mWFP = mYwz.lower() return [Z9rn for Z9rn in mWFP if Z9rn in fEFC]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NYUE(mWFP):\n IFZK = [Z9rn for Z9rn in mWFP if Z9rn not in LOnh.VALID_FILENAME_CHARS]\n return IFZK", "def dfT3(YKHO, qaEx):\n e_b4 = ''.join([URgV().whitespace, URgV().quotes, URgV().escape])\n if any(map(lambda WKvO: WKvO in e_b4, list(qaEx))):\n raise YGXP('Please do not use special cha...
[ "0.69488955", "0.69435436", "0.6924553", "0.69232917", "0.67533904", "0.6642881", "0.6621574", "0.66183686", "0.6547636", "0.641648", "0.63571155", "0.6319887", "0.62092996", "0.6208569", "0.61320144", "0.6114716", "0.60793275", "0.59975874", "0.5888917", "0.5886518", "0.5873...
0.8791614
0
Return a path using the current OS path separator given a path that may contain posix or windows separators, converting "/" to "\\" on windows and "\\" to "/" on posix OSes.
def dGsl(pmON): pmON = pmON.replace(Om__.sep, Hy7s.path.sep) pmON = pmON.replace(Qumu.sep, Hy7s.path.sep) return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JzpO(JZXy, g8rx=None):\n if g8rx is None:\n g8rx = Hy7s.sep\n if g8rx not in ('\\\\', '/'):\n raise ValueError('normalize_path_separator() requires valid Unix or Windows separator.')\n if g8rx == '\\\\':\n if JZXy.find('/') >= 0:\n JZXy = JZXy.replace('/', '\\\\')\n ...
[ "0.79250455", "0.76951087", "0.75576794", "0.7540527", "0.7377668", "0.7377668", "0.7352094", "0.7270169", "0.7201076", "0.7200833", "0.7110131", "0.7093457", "0.7083427", "0.7050046", "0.69863766", "0.69776106", "0.6859397", "0.6859258", "0.6814685", "0.67811227", "0.6765560...
0.73248994
7
Return True if the path represents a valid ABOUT file name.
def Z0fE(pmON): if pmON: pmON = pmON.lower() return pmON.endswith('.about') and pmON != '.about'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t_gb(pmON: str) -> bool:\n pass", "def ILDs(mWFP):\n return bool(ZbWC.match('^[a-z0-9]+([-./][a-z0-9]+)*$', mWFP))", "def im3z(YKHO, pmON):\n raise NotImplementedError('!')", "def j5yz(Emd4, uRP3: String) -> xpzE:\n l7bS.trace('>>')\n Aofo = len(uRP3) > 2 and (uRP3[1] == ':' or uRP3.starts...
[ "0.65341055", "0.6336025", "0.6309155", "0.62629855", "0.61471933", "0.6108409", "0.61065954", "0.600438", "0.5975928", "0.5961438", "0.5952078", "0.5952078", "0.5916706", "0.5910239", "0.58705586", "0.58621305", "0.5848915", "0.5844379", "0.5842943", "0.5835018", "0.5828889"...
0.74102306
0
Return a list of unique `errors` Error object filtering errors that have a severity below `minimum_severity`.
def zwaL(UAju, UwXL=ln3w): return [tTpl for tTpl in UAju if tTpl.severity >= UwXL]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zwaL(UAju, UwXL=ln3w):\n return kcwm([tTpl for tTpl in UAju if tTpl.severity >= UwXL])", "def UwXL(YKHO, UwXL):\n BbPm = ['Info', 'Low', 'Medium', 'High', 'Critical']\n if UwXL not in BbPm:\n raise ValueError('Invalid value for `minimum_severity` ({0}), must be one of {1}'.format(UwXL, BbPm))...
[ "0.8896289", "0.58247304", "0.5800057", "0.575596", "0.5724777", "0.56905186", "0.5619711", "0.54017866", "0.53870106", "0.5369864", "0.5368528", "0.53544104", "0.53402984", "0.52838653", "0.5273463", "0.5253644", "0.5127242", "0.5083385", "0.5059889", "0.50433785", "0.504072...
0.8792091
1
Converts a multidimensional array to a list of tuples This may be useful for displaying part or all of an array as a table or exporting to a pandas dataframe, database or spreadsheet. positional arguments
def Iaoi(wc14, *CA5i, k1TJ=None): def MNuu(or8S): """ adds appropriate copies of a list item based on its index within the dim_vals list """ ROpF = [len(rDXN) for rDXN in CA5i] yv6U = CA5i[or8S] uv6v = ROpF[:or8S] m8z6 = ROpF[or8S + 1:] U8Lx =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EV8W(qw7D):\n return (qw7D[0], qw7D[1], qw7D[2], qw7D[3])", "def Jya0(QLR1):\n if isinstance(QLR1, (list, tuple)):\n return tuple(map(Jya0, QLR1))\n return QLR1", "def uqyb(nPrm):\n if len(nPrm) == 0:\n return eXg7([])\n else:\n Crrw = list(zip(*nPrm))\n fUYa = Cr...
[ "0.7606514", "0.6964264", "0.6792263", "0.6689753", "0.658502", "0.64407015", "0.64248335", "0.6318324", "0.62988967", "0.6223488", "0.6206304", "0.61584663", "0.6155462", "0.61528975", "0.61278236", "0.6078376", "0.6064373", "0.6032248", "0.5996238", "0.5979643", "0.5950505"...
0.0
-1
Converts a multidimensional array to a list of tuples This may be useful for displaying part or all of an array as a table or exporting to a pandas dataframe, database or spreadsheet. positional arguments
def LSBh(DAcW, aPmV, *CA5i, k1TJ=None): def MNuu(or8S): """ adds appropriate copies of a list item based on its index within the dim_vals list """ ROpF = [len(rDXN) for rDXN in CA5i] yv6U = CA5i[or8S] uv6v = ROpF[:or8S] m8z6 = ROpF[or8S + 1:] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EV8W(qw7D):\n return (qw7D[0], qw7D[1], qw7D[2], qw7D[3])", "def Jya0(QLR1):\n if isinstance(QLR1, (list, tuple)):\n return tuple(map(Jya0, QLR1))\n return QLR1", "def uqyb(nPrm):\n if len(nPrm) == 0:\n return eXg7([])\n else:\n Crrw = list(zip(*nPrm))\n fUYa = Cr...
[ "0.76069397", "0.69642186", "0.6790826", "0.6689374", "0.6584206", "0.6440682", "0.6426606", "0.6316997", "0.6298257", "0.62227434", "0.62074804", "0.6160248", "0.615443", "0.6151197", "0.6127297", "0.6077587", "0.6062711", "0.60312575", "0.5995398", "0.5978749", "0.5949413",...
0.0
-1
Return the initial value of the given variable
def x72x(C3ST): if C3ST.defvalue is not None: BWXx = C3ST.defvalue elif len(C3ST.defvalues) > 0: BWXx = [Ty9i for Ty9i in C3ST.defvalues] else: BWXx = LO0Z(C3ST) return '{%s}' % ', '.join((str(Ty9i).lower() for Ty9i in BWXx)) if isinstance(BWXx, list) else str(BWXx).lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lJf5(YKHO):\n return YKHO._initial_value", "def Ttz4(YKHO, w5u3, begE, zYWM, **B2fa):\n if w5u3 == 0:\n return B2fa['initial_value']\n else:\n assert zYWM is not None\n assert begE is not None\n assert B2fa is not None\n\n def C0S7():\n if QpfX.executing...
[ "0.7295747", "0.69739664", "0.6894183", "0.6890364", "0.68646437", "0.6773741", "0.6664114", "0.65961945", "0.6427797", "0.63470125", "0.61868036", "0.6118392", "0.60306484", "0.6018763", "0.60040367", "0.6003928", "0.59160554", "0.5895783", "0.585532", "0.58319515", "0.58079...
0.5438503
70
Returns MD5 signature of given file This calculates the MD5 signature of a given file.
def xORj(IznC): pFtS = HBct.md5() with open(IznC, 'rb') as eHNT: for yOAJ in iter(lambda: eHNT.read(4096), b''): pFtS.update(yOAJ) return pFtS.hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pQm7(gIsw):\n with open(gIsw, 'rb') as eHNT:\n OZKa = eHNT.read()\n dQiW = HBct.md5(OZKa).hexdigest()\n return dQiW", "def vkAf(Ux0P):\n return vFhS(Ux0P, 'md5')", "def uPUs(nUeQ):\n return HBct.md5(open(nUeQ, 'rb').read()).hexdigest()", "def WwXu(YKHO, gIsw):\n try:\n ...
[ "0.7302311", "0.7217663", "0.72035575", "0.7120818", "0.7101917", "0.7078391", "0.70593107", "0.7058007", "0.7047268", "0.69589335", "0.6949705", "0.69324195", "0.6926052", "0.6918495", "0.6895357", "0.6853338", "0.6842336", "0.68302655", "0.6810939", "0.6799787", "0.67790306...
0.645099
62
Returns the Cygwin path equivalent of a given path. This method returns the Cygwin equivalent of a given path. The path may be a path to a folder or a file.
def oNhd(ZnIW): RSBG, b1p6 = Hy7s.path.splitdrive(ZnIW) if Hy7s.path.isfile(ZnIW): pmON, nUeQ = Hy7s.path.split(b1p6) aYGF = pmON.split(Hy7s.sep) else: aYGF = b1p6.split(Hy7s.sep) aYGF.pop(0) MaFQ = '/cygdrive/' + RSBG[0] + '/' for eOtH in aYGF: MaFQ += eOtH ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H6do(pmON):\n MaFQ = GPtr['cygpath_bin']\n OeU2, O2PE = J1fi([MaFQ, pmON])\n if OeU2 != 0:\n raise IOError('cygpath returned with exit code {}'.format(OeU2))\n if not len(O2PE) > 0:\n raise IOError('No cygwin path was found for {}.'.format(pmON))\n return O2PE", "def tAso(pmON):\...
[ "0.829051", "0.8277615", "0.82691973", "0.8140379", "0.8098585", "0.7853065", "0.77775556", "0.773504", "0.7633025", "0.7262579", "0.71157146", "0.69268596", "0.69268596", "0.66506326", "0.6635605", "0.65662545", "0.6523061", "0.65049076", "0.6464234", "0.64207906", "0.641278...
0.69272256
11
Given an input device, return its config dict in the app config. The dict will be created if it does not exist.
def OtNR(begE: ba.InputDevice, WmM4: bool) -> AzJI[cuzp, str]: _Fei = Zj3h.app.config mWFP = begE.name H9zo: cuzp[str, ImMB] = _Fei.setdefault('Controllers', {}) H9zo.setdefault(mWFP, {}) ShR8 = begE.unique_identifier if WmM4: if ShR8 in H9zo[mWFP]: del H9zo[mWFP][ShR8] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDtM(begE):\n return QpfX.context().get_logical_device_configuration(begE)", "def tgzD(YKHO) -> None:\n TBsA = Yn8Y.req_body(YKHO.manager, 'devicedetail')\n TBsA['method'] = 'configurations'\n TBsA['uuid'] = YKHO.uuid\n Mkmy, bGrB = Yn8Y.call_api('/outdoorsocket15a/v1/device/configurations', '...
[ "0.6869044", "0.6784175", "0.6758029", "0.66976607", "0.63633895", "0.6309319", "0.62646264", "0.62542874", "0.61998934", "0.6186635", "0.6173012", "0.6080404", "0.60462594", "0.6037223", "0.60173327", "0.5934585", "0.59244794", "0.5894525", "0.5868739", "0.5854888", "0.58548...
0.76073194
0
Returns the squared length of the vectors along the rows in arr, where arr is a 2D array.
def SUnP(ezWE): return (ezWE ** 2).sum(axis=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i1gc(ezWE):\n return epAf.sqrt(sum(oyIN.square(ezWE)))", "def Iqpv(jzdc):\n jbXL = oyIN.sum(jzdc ** 2, axis=1)\n return oyIN.sqrt(jbXL)", "def f_9U(he6J):\n he6J = oyIN.array(oyIN.atleast_2d(he6J))\n ywwl, Csk6 = he6J.shape\n if ywwl > 1:\n return oyIN.linalg.norm(he6J, axis=1)\n ...
[ "0.8042088", "0.70011985", "0.6572224", "0.65311116", "0.6524109", "0.6454544", "0.64355886", "0.6386396", "0.6262469", "0.6233391", "0.6222906", "0.61761034", "0.61385584", "0.6087034", "0.6077041", "0.59965867", "0.5995188", "0.59311146", "0.59139836", "0.59083885", "0.5891...
0.63779116
8
Converts a list of tuples to a list of keyvalue tuples
def v4Nj(nPrm): mpdT = [] for a1PO in nPrm: if len(a1PO) == 2: mpdT.append((a1PO[0], a1PO[1])) return mpdT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a19L(vC9B):\n yvT9 = []\n for H5ew in vC9B:\n G1Hx = [H5ew[YRbF] for YRbF in range(0, len(H5ew))]\n G1Hx = ' '.join(G1Hx)\n yvT9.append(G1Hx)\n return yvT9", "def hXWe(IqQl):\n return tuple(IqQl)", "def uk_e(Csk6):\n for H5ew, BWXx in Csk6.items():\n G1Hx = [H5ew[...
[ "0.7100389", "0.69224936", "0.6863063", "0.68607235", "0.6753767", "0.65742105", "0.65742105", "0.65611345", "0.65481395", "0.6525661", "0.6525661", "0.64632535", "0.64156854", "0.63874555", "0.6379169", "0.6379169", "0.636351", "0.634822", "0.6313897", "0.63135505", "0.62635...
0.695189
1
Given the X and Y bounds generated with calc_bounds() calculate the X and Y dimensions
def fS8G(WKvO, LVAh): Jgwa = WKvO[1] - WKvO[0] NsEU = LVAh[1] - LVAh[0] return (Jgwa, NsEU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ps5F(YKHO):\n iSU7 = YKHO.z_raw.shape[1]\n GCHw = YKHO.z_raw.shape[0]\n fUYa = oyIN.arange(float(iSU7))\n bEXe = oyIN.arange(float(GCHw))\n WKvO, LVAh = oyIN.meshgrid(fUYa, bEXe)\n YKHO.x_raw = WKvO\n YKHO.y_raw = LVAh", "def bCHG(YKHO):\n if YKHO.nDim != 3:\n raise xxyF('getBo...
[ "0.72852767", "0.68938565", "0.67667514", "0.675101", "0.67301846", "0.67290556", "0.6695661", "0.6650053", "0.66477525", "0.66158503", "0.66050726", "0.65895957", "0.65804857", "0.6573675", "0.6570505", "0.655509", "0.6549389", "0.642822", "0.6421639", "0.63718367", "0.63679...
0.7106329
1
Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.
def lZwM(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'profile_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lZwM(YKHO) -> str:\n return qe4Y.get(YKHO, 'profile_name')", "def lZwM(YKHO) -> laHg.Optional[str]:\n return YKHO._data.get('profile_name')", "def z39Z(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'profile')", "def z39Z(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'profile')", "def z39Z(YKHO)...
[ "0.7494562", "0.6999801", "0.68406177", "0.68406177", "0.68406177", "0.67748237", "0.66390336", "0.6590362", "0.6574028", "0.6423965", "0.6404476", "0.6321718", "0.62914383", "0.62411994", "0.62303287", "0.6222461", "0.62103283", "0.61755586", "0.60722417", "0.6018224", "0.60...
0.67149353
6
Name of the Resource group within the Azure subscription.
def TRLE(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'reso...
[ "0.8762081", "0.8762081", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "0.8392516", "...
0.7928287
53
Finds all permission models specific to the current app.
def ZMuA(): wuJU = DDS9.objects.filter(app_label__contains='cae') XFLM = [] for m5r4 in wuJU: XFLM.append(m5r4.id) CUwa = [] for ZJcy in XFLM: RokB = CXiN.objects.filter(content_type_id=ZJcy) for ZfUD in RokB: CUwa.append(ZfUD) return CUwa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cUfb(Emd4):\n if isinstance(Emd4, str):\n tKz9, ZGE9 = Emd4.split('.')\n C3ST = XLL2.get_model(tKz9, ZGE9)\n else:\n C3ST = Emd4\n MkEV = z_e1(C3ST)\n return CXiN.objects.filter(content_type=MkEV)", "def uoOV(QpfX):\n DumB = []\n E6wA = FEcn(QpfX)\n for C3ST, FBP7 in...
[ "0.7151861", "0.711", "0.7094708", "0.69004065", "0.68831015", "0.68831015", "0.68831015", "0.68831015", "0.68831015", "0.68831015", "0.68831015", "0.68831015", "0.68831015", "0.68831015", "0.68831015", "0.68831015", "0.68831015", "0.68831015", "0.68831015", "0.68679154", "0....
0.75179255
0
Interpret a matrix as a row of vectors, and divide each by its norm. 0vectors are left changed.
def ZmtP(Ty9i): gZcO = oyIN.sqrt((Ty9i ** 2).sum(axis=1)) gZcO[gZcO == 0] = 1.0 hQHm = Ty9i / gZcO[..., oyIN.newaxis] return hQHm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kwsU(vb7U):\n return vb7U / oyIN.sum(vb7U ** 2, axis=1, keepdims=True)", "def U95B(WKvO):\n return WKvO / oyIN.linalg.norm(WKvO, axis=1)[:, None]", "def zEzL(E3D9):\n CumI = oyIN.ndarray(E3D9.shape)\n for r845 in range(E3D9.shape[1]):\n max = 0\n min = 0\n rGqu = []\n ...
[ "0.7575381", "0.74120873", "0.74032146", "0.7387197", "0.73822373", "0.71414477", "0.7138497", "0.71002877", "0.7090855", "0.7040253", "0.70289284", "0.70227164", "0.70132387", "0.69929", "0.6974169", "0.6969026", "0.6968771", "0.69611025", "0.69439745", "0.69439745", "0.6899...
0.6953867
18
Add a new experience to memory.
def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins): tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins) YKHO.memory.append(tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ilp5(YKHO, GsKL):\n YKHO.memory.append(GsKL)", "def H2v5(YKHO, GsKL):\n YKHO.memory.append(GsKL)", "def GsKL(YKHO, GsKL: Experience[ActionType]) -> None:\n YKHO.memory.append(GsKL)", "def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.memory.append(XlZM(QTBn, XeOP, vOGg, rxHc, _ins))", "d...
[ "0.8763217", "0.8755159", "0.8509186", "0.79707366", "0.7879077", "0.7878838", "0.7878838", "0.7709677", "0.7708713", "0.7609456", "0.74958277", "0.7470479", "0.74537706", "0.737918", "0.73555547", "0.730577", "0.7283659", "0.7276514", "0.72636735", "0.7246649", "0.72328925",...
0.7176967
59
Randomly sample a batch of experiences from memory.
def mvm2(YKHO, Ep8u=64): rFed = tuKI.sample(YKHO.memory, k=YKHO.batch_size) return rFed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mvm2(YKHO, Ep8u=64):\n return tuKI.sample(YKHO.memory, Ep8u)", "def cQJh(YKHO):\n Wc9F = []\n for YRbF in Ni9Y(YKHO.minibatch_size):\n Wc9F.append(YKHO.experiences[qukk(0, len(YKHO.experiences))])\n return oyIN.asarray(Wc9F)", "def mvm2(YKHO):\n wfZK = tuKI.sample(YKHO.memory, k=YKHO....
[ "0.7983961", "0.79046863", "0.7868443", "0.7706011", "0.7525482", "0.75070703", "0.7481443", "0.74332356", "0.7432144", "0.7427844", "0.74261487", "0.74147487", "0.7403821", "0.7403821", "0.7403821", "0.7392868", "0.7389204", "0.7389204", "0.7389204", "0.7379021", "0.7376972"...
0.6487691
83
Launches translation (inference). Inference is executed on a single GPU, implementation supports beam search with length normalization and coverage penalty.
def b8V_(): qIxc = dCXb() dcx9 = qIxc.world_size > 1 if dcx9: DDLl = 'nccl' if qIxc.cuda else 'gloo' pImw.init_process_group(backend=DDLl, rank=qIxc.rank, init_method=qIxc.dist_url, world_size=qIxc.world_size) tqPq() G9jH.info(f'Run arguments: {qIxc}') if qIxc.cuda: ht2j....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vhUV(YKHO):\n YKHO._launch_inference()", "def b7La():\n lMIx = PR8q(vocab_filepath=qIxc.vocab_filepath, mean_std_filepath=qIxc.mean_std_filepath, augmentation_config='{}', specgram_type=qIxc.specgram_type, num_threads=qIxc.num_threads_data)\n esI9 = CbyH.layer.data(name='audio_spectrogram', type=Cby...
[ "0.64260477", "0.6346004", "0.6261265", "0.62265176", "0.6225771", "0.6213411", "0.61495656", "0.61450356", "0.61364484", "0.6112017", "0.6111971", "0.60876596", "0.6017962", "0.6014969", "0.6007651", "0.59502554", "0.5950123", "0.5942575", "0.5942143", "0.5934877", "0.592065...
0.5625931
75
Updates an existing test case (partial updates are supported, i.e. you can submit and update specific fields only).
def aKzt(YKHO, r6gR: int, **B2fa) -> dict: return YKHO.s.post(endpoint=f'update_case/{r6gR}', json=B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O4Hs(YKHO, Pcn2, U34r, NxB3):\n if Pcn2 is not None:\n RIEv = YKHO.get_summary(Pcn2)\n nmdc = Pcn2.fields.description\n C8Cc = ''\n try:\n C8Cc = YKHO.get_cf_value(Pcn2, 'Test Suite')[0].value\n except TypeError:\n YKHO.class_logger.warning('Test Suit...
[ "0.72244596", "0.7078603", "0.68940914", "0.6783968", "0.660652", "0.6483435", "0.6471572", "0.6425215", "0.6425215", "0.6385752", "0.6356823", "0.6310612", "0.627877", "0.6254724", "0.6239993", "0.6224477", "0.62235814", "0.62080044", "0.620366", "0.6153467", "0.6150503", ...
0.60782605
27
Returns an existing user.
def TKWP(YKHO, uJjO: int) -> dict: return YKHO.s.get(endpoint=f'get_user/{uJjO}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKWP(Emd4, id):\n C3ST = Nc2H.query.filter_by(id=id).first()\n return Emd4.create_user_from_model(C3ST)", "def TKWP(Gen1, Gjbv):\n try:\n CBIr = Gen1.users.get(Gjbv)\n except oEgM:\n CBIr = Gen1.users.find(name=Gjbv)\n return CBIr", "def cDO8(YKHO, **B2fa):\n SGYn = B2fa.cop...
[ "0.8048204", "0.79740876", "0.79352236", "0.77934986", "0.77534026", "0.76681715", "0.7649149", "0.76237404", "0.7603789", "0.7594863", "0.7553603", "0.7538706", "0.75010043", "0.74953413", "0.7438997", "0.7428005", "0.74210846", "0.7407372", "0.7385458", "0.73797095", "0.736...
0.0
-1
Returns an existing user by his/her email address.
def CYTf(YKHO, D3lj: str) -> dict: return YKHO.s.get(endpoint='get_user_by_email', params={'email': D3lj})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lN4b():\n return mv1M.query.filter(mv1M.email == D3lj).first()", "def CYTf(NCls: Session, D3lj: str):\n return NCls.query(FYrf.User).filter(FYrf.User.email == D3lj).first()", "def CYTf(NCls: Session, D3lj: str):\n return NCls.query(FYrf.User).filter(FYrf.User.email == D3lj).first()", "def CYTf(D...
[ "0.84827155", "0.8328815", "0.8328815", "0.83060235", "0.8278599", "0.82490116", "0.8241227", "0.8237661", "0.8235763", "0.8234609", "0.82046944", "0.82046753", "0.8203546", "0.8201288", "0.8186252", "0.81749266", "0.8164641", "0.815818", "0.815818", "0.815818", "0.8151823", ...
0.7456989
85
Get ordered corners of given 3D bounding box dict or disordered corners
def pNE8(klSS: (dict, np.ndarray)): if isinstance(klSS, oyIN.ndarray): e6ux = oyIN.mean(klSS, axis=0) epBp = klSS[:, -1] _w9w = [] for J20S in (klSS[epBp < e6ux[-1]], klSS[epBp >= e6ux[-1]]): XAAW = J20S[:, :2] b3WG = e6ux[:2] gb4e = XAAW - b3WG ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TVnl(X7zS, Rusy=(0, 1)):\n return oyIN.array(list(Hs6x.product(X7zS[:2], X7zS[2:4], X7zS[4:] or Rusy)))", "def TvXH(YKHO, IPYA: Object3d):\n NOG0 = []\n LHO6 = []\n for gnKj in IPYA:\n if gnKj.type == 'DontCare':\n continue\n Z9rn = gnKj.t\n yzQ0 = gnKj.w\n ...
[ "0.69172645", "0.6796493", "0.6757593", "0.6727007", "0.6687711", "0.65884364", "0.65846056", "0.65836644", "0.6569201", "0.6568693", "0.65559286", "0.6547489", "0.6422858", "0.64022666", "0.63566315", "0.6312472", "0.62529016", "0.6252489", "0.6220877", "0.6220877", "0.61617...
0.73240197
0
Transform 3D points or 3D bounding boxes from world coordinate frame to camera coordinate frame.
def FbCY(YKHO, EmUK): return YKHO.transform(YKHO['world2cam3d'], EmUK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VTdl(YKHO, EcVT):\n raise NotImplementedError", "def _NCN(YKHO, EcVT):\n raise NotImplementedError", "def SZJu(YKHO, V6IE):\n assert len(V6IE.shape) == 2\n assert V6IE.shape[1] == 3\n a7ln = YKHO.R.dot(V6IE.T - YKHO.T)\n return a7ln.T", "def tn0s(wQPn, H6L0, MGMY):\n return ZylS.tens...
[ "0.7056971", "0.6892903", "0.6799567", "0.67931896", "0.6787232", "0.67855704", "0.6740757", "0.66950303", "0.6662659", "0.6653311", "0.657874", "0.6491414", "0.6473195", "0.6422132", "0.6419199", "0.64157623", "0.63954544", "0.6362591", "0.6341441", "0.6291213", "0.62852883"...
0.6823016
2
Gets the end_date of this ReportingDetailProperties. The end date provided as a parameter for this report
def KhBf(YKHO): return YKHO._end_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mjdP(YKHO):\n return YKHO.end_date", "def mjdP(YKHO):\n return YKHO.end_date", "def mjdP(YKHO):\n return YKHO.end_date", "def mjdP(YKHO):\n return YKHO.end_date", "def neRo(YKHO):\n return YKHO._reportingEndDate", "def KhBf(YKHO):\n if YKHO._end_date_present:\n return YKHO._e...
[ "0.80977654", "0.80977654", "0.80977654", "0.80977654", "0.7969908", "0.7915671", "0.7833363", "0.77249765", "0.76289594", "0.75587445", "0.753333", "0.7500213", "0.74622405", "0.74532384", "0.72562605", "0.72562605", "0.72537446", "0.72537446", "0.71804744", "0.71689576", "0...
0.7840315
6
Sets the end_date of this ReportingDetailProperties. The end date provided as a parameter for this report
def KhBf(YKHO, KhBf): YKHO._end_date = KhBf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eiFi(YKHO, eiFi: datetime):\n YKHO._enddate = eiFi", "def ddKN(YKHO, ddKN):\n YKHO._date_end = ddKN", "def ddKN(YKHO, ddKN):\n YKHO._date_end = ddKN", "def ddKN(YKHO, ddKN):\n YKHO._date_end = ddKN", "def KhBf(YKHO, KhBf: datetime):\n if KhBf is None:\n raise ValueError('Invalid v...
[ "0.8102166", "0.79909825", "0.79909825", "0.79909825", "0.7832162", "0.7801616", "0.7672224", "0.73471093", "0.69914347", "0.69665056", "0.6944191", "0.6916774", "0.68268466", "0.68268466", "0.68268466", "0.68268466", "0.68268466", "0.68268466", "0.68203187", "0.68129015", "0...
0.82690454
0
Gets the start_date of this ReportingDetailProperties. The end date provided as a parameter for this report
def kepv(YKHO): return YKHO._start_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUNa(YKHO):\n return YKHO.start_date", "def nUNa(YKHO):\n return YKHO.start_date", "def nUNa(YKHO):\n return YKHO.start_date", "def nUNa(YKHO):\n return YKHO.start_date", "def nUNa(YKHO):\n return YKHO.__start_date", "def kepv(YKHO):\n if YKHO._start_date_present:\n return YK...
[ "0.714957", "0.714957", "0.714957", "0.714957", "0.7085969", "0.68791074", "0.6798665", "0.67058307", "0.66156465", "0.65883386", "0.65646785", "0.65077794", "0.6495205", "0.6432068", "0.640897", "0.63773376", "0.63460267", "0.6295259", "0.6276305", "0.61879796", "0.6095562",...
0.6639169
8
Sets the start_date of this ReportingDetailProperties. The end date provided as a parameter for this report
def kepv(YKHO, kepv): YKHO._start_date = kepv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YFxH(YKHO, kepv):\n YKHO.__start_date = kepv", "def YFxH(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def wEtp(YKHO, wEtp):\n YKHO._date_start = wEtp", "def wEtp(YKHO, wEtp):\n YKHO._date_start = wEtp", "def wEtp(YKHO, wEtp):\n YKHO._d...
[ "0.7486067", "0.7446265", "0.73195004", "0.707248", "0.707248", "0.707248", "0.707248", "0.707248", "0.70644313", "0.677906", "0.6718797", "0.66992027", "0.66266817", "0.6597446", "0.6530004", "0.6280534", "0.62462825", "0.6089383", "0.6064035", "0.6059037", "0.60589504", "...
0.7288192
3
Returns the string representation of the model
def gTzM(YKHO): return EyO9(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Write the union of list and list2 into list. If intersection is not None, that list will be filled with the intersection of list and list2.
def ztxm(Kt9y, I_KI, iQin=None): for ZfUD in I_KI: if ZfUD not in Kt9y: Kt9y.append(ZfUD) elif iQin is not None: iQin.append(ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b65I(TBom, AYbL):\n Aofo = TBom.copy()\n Aofo.append(AYbL.copy().head)\n return Aofo", "def zk73(zznG, Wd5v):\n Hvvh = set(zznG).union(set(Wd5v))\n return Hvvh", "def bJry(YKHO, I_KI, LpaZ=True):\n if LpaZ:\n return list(set(YKHO).union(set(I_KI)))\n else:\n ycBG = YKHO.c...
[ "0.71364003", "0.68253124", "0.6825105", "0.6603342", "0.6523843", "0.641472", "0.63878167", "0.63309896", "0.6320797", "0.6274889", "0.62336665", "0.6228987", "0.62132835", "0.62074447", "0.6172358", "0.6145443", "0.6125893", "0.60901314", "0.6089953", "0.60465837", "0.60297...
0.7481396
0
Remove all elements from list which occur in list2.
def KixV(Kt9y, I_KI): for ZfUD in I_KI: if ZfUD in Kt9y: Kt9y.remove(ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dDv2(Kt9y):\n Aofo = []\n for U6D_ in Kt9y:\n if U6D_ not in Aofo:\n Aofo.append(U6D_)\n return Aofo", "def KixV(Kt9y, I_KI):\n ZySs = []\n for YRbF in Kt9y:\n if YRbF not in I_KI:\n ZySs.append(YRbF)\n return ZySs", "def Cvre(YKHO, I_KI, LpaZ=True):\n ...
[ "0.7384383", "0.7336999", "0.73346424", "0.7309175", "0.72696996", "0.7143461", "0.7135449", "0.71349365", "0.7125201", "0.7082071", "0.70192385", "0.69958186", "0.6991804", "0.69188774", "0.6916903", "0.68777823", "0.68593746", "0.685215", "0.6800359", "0.67737997", "0.67526...
0.7725018
0
Convert QueryDict into querystring. Useful when doing the GETPOSTREDIRECT pattern. Cleans Select and blank values from the querystring by default.
def pju6(ChdF, x0SS=True): gFWx = ChdF.copy() for xDcj in ChdF: if xDcj == 'csrfmiddlewaretoken': del gFWx[xDcj] elif x0SS and gFWx[xDcj] == '--Select--': del gFWx[xDcj] elif x0SS and (not gFWx[xDcj]): del gFWx[xDcj] Xvcc = gFWx.urlencode(True) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP_p(YKHO):\n YKHO.query_string = '?'\n for G1Hx, Ty9i in YKHO.query_dict.items():\n YKHO.query_string += G1Hx + '=' + Ty9i + '&'\n YKHO.query_string = YKHO.query_string[:-1]", "def XKBv(YKHO, W6RH):\n if W6RH:\n Xvcc = '?%s' % W6RH.urlencode()\n else:\n Xvcc = ''\n ret...
[ "0.72298056", "0.71892506", "0.7154699", "0.7101832", "0.68967587", "0.6789672", "0.6647908", "0.6630179", "0.6627349", "0.6598993", "0.6585988", "0.65354925", "0.64677644", "0.64461", "0.64204043", "0.6407201", "0.6313541", "0.6304668", "0.6284142", "0.6277887", "0.62275976"...
0.8000877
0
Return a function `t > bool` which is true if any `f(t) == true`.
def SSrl(Vb5F: Iterable[Callable[[T], bool]]) -> YrBT[[Kt_s], bool]: return lambda a1PO: any((eHNT(a1PO) for eHNT in Vb5F))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def any(eHNT, OxJJ) -> bool:\n for tTpl in OxJJ:\n if eHNT(tTpl):\n return True\n return False", "def ql9s(BWXx: t.Any) -> bool:\n return BWXx is True or BWXx is False", "def TfvV(BWXx):\n if BWXx:\n return '.true.'\n else:\n return '.false.'", "def fSrY(eHNT: C...
[ "0.6941752", "0.6722382", "0.66675544", "0.66403157", "0.66016257", "0.6516175", "0.63741535", "0.63736546", "0.6349542", "0.63395476", "0.630719", "0.6263616", "0.62468976", "0.6230859", "0.62050456", "0.6157257", "0.61115766", "0.60752934", "0.6008703", "0.59949315", "0.599...
0.6977174
0
Convert a keyword argument dict to a dict that can be given as argData to a commit operation.
def AU4a(Emd4, YSA3): CSXg = {} for EOK0, wEf2 in YSA3.items(): if isinstance(wEf2, URbA): wEf2 = wEf2.value if type(wEf2) not in (list, tuple, set, frozenset, dict): wEf2 = [wEf2] else: try: wEf2 = Emd4._attributes[EOK0].default.__clas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kkWs(YKHO, *qIxc):\n B2fa = {}\n for d7pR in qIxc:\n for G1Hx, Ty9i in d7pR.items():\n B2fa[G1Hx] = Ty9i\n return B2fa", "def cQ0U(YKHO, khtY, WNtM, NArs):\n if isinstance(NArs, tuple):\n SGPK = {}\n if khtY == vk2a.DELETE:\n HlGW = '^DELETE FROM (.+?) W...
[ "0.65146136", "0.6450633", "0.6277026", "0.6165648", "0.6074259", "0.6057354", "0.6035033", "0.5999498", "0.59494656", "0.5899994", "0.58683765", "0.5850017", "0.58308667", "0.5821675", "0.5821077", "0.5815454", "0.5779596", "0.57726836", "0.57553047", "0.5729537", "0.5711626...
0.5987614
8
Handle instansiation of new toc classes. Very special as it goes through the namespace and for all derived Attribute classes found creates an object instance of that class which it replaces the original class with. This means that all TOIs later will share the same attribute instances throughout, meaning that the actua...
def fwuD(Emd4, mWFP, gitN, _63S): na_E = {} o8Kj = {} FLlb = mWFP if mWFP == '__extend__': FLlb = gitN[0].__name__ try: del _63S['__extend__'] except KeyError: pass for X4kj, NZQz in list(_63S.items()): if isinstance(NZQz, URbA) or (isinstance(NZQz, type) and ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QViY(Emd4, **B2fa):\n ZYWN = {}\n for G1Hx in Emd4.__dict__:\n if not G1Hx in ('__dict__', '__weakref__'):\n ZYWN[G1Hx] = Emd4.__dict__[G1Hx]\n\n class Attributes(Emd4.Attributes):\n pass\n ZYWN['Attributes'] = OVEI\n\n class Annotations(Emd4.Annotations):\n pass\...
[ "0.6112805", "0.61002547", "0.6061318", "0.60497683", "0.60092103", "0.592654", "0.5851358", "0.5845279", "0.5751181", "0.5750885", "0.5747001", "0.5683316", "0.5681618", "0.56723756", "0.56655234", "0.5652691", "0.5633928", "0.5625368", "0.5616072", "0.5610437", "0.5551766",...
0.7349857
0
Convert a numpy uint8 array to a bytearray
def hYAj(Xn71): Xn71 = VRIG(Xn71) LaVg = aKaX() with gbPf.SpooledTemporaryFile() as UdKW: Xn71.save(UdKW, 'PNG') UdKW.seek(0) RDuA.copyfileobj(UdKW, LaVg) return LaVg.getvalue()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vcmC(jzdc: Any) -> oyIN.ndarray:\n return L1QN(jzdc, oyIN.uint8)", "def lWih(ezWE, vWp3=bytes):\n ctNS = xDSY.BytesIO()\n oyIN.save(ctNS, ezWE, allow_pickle=False)\n return vWp3(ctNS.getvalue())", "def VbBP(qw7D):\n if isinstance(qw7D, LQRw):\n qw7D = qw7D.array\n if isinstance(qw7...
[ "0.7843565", "0.76509106", "0.76240516", "0.7596306", "0.7528256", "0.7311848", "0.7198358", "0.71142834", "0.7095598", "0.7064498", "0.6991219", "0.68880457", "0.68733174", "0.6869711", "0.6775129", "0.67677426", "0.67555887", "0.6734691", "0.6725632", "0.6676304", "0.667410...
0.0
-1
For a given string that is to appear in CSV output, quote it if it is nonnumeric
def jzb1(vGaq): if ZbWC.match('^-?[0-9]+(\\.[0-9]+)?$', vGaq): return vGaq else: return '"' + vGaq + '"'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aoM8(BWXx):\n dcv6 = [\"'\", '\"']\n try:\n BWXx = BWXx.replace(',', '_')\n except AttributeError:\n pass\n if BWXx is None:\n return ''\n elif any((Z9rn in str(BWXx) for Z9rn in dcv6)):\n return '\"' + str(BWXx) + '\"'\n else:\n return str(BWXx)", "def GU...
[ "0.6851204", "0.67424524", "0.66010314", "0.6343842", "0.62752455", "0.6237534", "0.6173559", "0.61266106", "0.60530674", "0.5967106", "0.59053373", "0.5901223", "0.5858695", "0.5767729", "0.5762391", "0.575966", "0.57543296", "0.5722846", "0.571183", "0.57072747", "0.568401"...
0.788114
0
Initializes a Message object.
def FIMM(YKHO, Dfxc: int, hGN5='', vC92='', Td1T=''): YKHO.msg_type = Dfxc YKHO.content = str(hGN5) YKHO.sender = str(vC92) YKHO.receiver = str(Td1T) if Dfxc is LuKW.CHAT_MESSAGE and hGN5 == '': raise rl5A('Chat message text is missing.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d):\n YKHO.__message = Ol8d", "def FIMM(YKHO, Ol8d):\n YKHO.__message = Ol8d", "def FI...
[ "0.7822428", "0.77624154", "0.77624154", "0.7643986", "0.7643986", "0.76247823", "0.7618367", "0.7618367", "0.7618367", "0.7618367", "0.7618367", "0.7618367", "0.7618367", "0.7618367", "0.7618367", "0.7618367", "0.7618367", "0.7618367", "0.7588928", "0.7571608", "0.7500988", ...
0.6706122
61
Test _get_best_gpus returns the best GPUs.
def u9Fw(dSUr, _SIr): def XyJS(jf3N): if jf3N == 0: return (6, 0) if jf3N == 1: return (7, 5) if jf3N == 2: return (6, 5) assert ht2j.cuda.device_count is _SIr assert ht2j.cuda.get_device_capability is dSUr _SIr.return_value = 3 dSUr.side_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OqkM():\n GPtr = ZylS.ConfigProto()\n GPtr.gpu_options.allow_growth = True\n GPtr.gpu_options.per_process_gpu_memory_fraction = 0.1\n GPtr.operation_timeout_in_ms = 60000\n DDLl.tensorflow_backend.set_session(ZylS.Session(config=GPtr))\n with ZylS.Session(config=GPtr) as bGrB:\n u95O =...
[ "0.7174759", "0.7149185", "0.71033716", "0.70845497", "0.70845497", "0.6996486", "0.69735664", "0.69735664", "0.69735664", "0.69735664", "0.69735664", "0.6963109", "0.6963109", "0.6905392", "0.6900128", "0.689339", "0.685687", "0.671852", "0.65949386", "0.6562224", "0.6524579...
0.7320105
0
Test get optimizer factory.
def gF79(): C3ST = dHcz(vuvg.nll_loss) K0do = nd_x(C3ST.parameters(), {'algorithm': 'sgd', 'lr': 0.1}) assert isinstance(K0do, EW5f) K0do = nd_x(C3ST.parameters(), {'algorithm': 'adam', 'lr': 0.1}) assert isinstance(K0do, qhl4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gF79():\n pj9U = QyGs()\n with trZe.raises(uHnM):\n bGrB = pj9U.get_optimizer(optimizer_name='forcebalanceoptimizer')\n fcLg = bO1m(penalty_type='L1')\n pj9U.add_optimizer(optimizer=fcLg)\n assert fcLg == pj9U.get_optimizer(optimizer_name=fcLg.optimizer_name)\n with trZe.raises(uHnM):\...
[ "0.7023128", "0.69397503", "0.6797642", "0.6749772", "0.6730856", "0.6696599", "0.6691843", "0.65676486", "0.65163153", "0.6481373", "0.645434", "0.645434", "0.6408963", "0.63764715", "0.6375285", "0.6371009", "0.63628674", "0.63574743", "0.62572485", "0.6249654", "0.6222684"...
0.6689448
7
Test API can register a user.
def l6D9(YKHO): geh0 = YKHO.client.post('/auth/register/', data=qQXR.dumps(YKHO.user_data), content_type='application/json') return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt2G(YKHO):\n geh0 = YKHO.client.post(YKHO.user_url, YKHO.user_data, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)", "def bt2G(YKHO):\n geh0 = YKHO.client().post('/api/v1/auth/register', data=qQXR.dumps(YKHO.test1_user), content_type='application/json')\n YKHO.assertE...
[ "0.8641086", "0.8612583", "0.8450289", "0.84252024", "0.8363022", "0.83599937", "0.835253", "0.8351207", "0.8338308", "0.8262917", "0.82494724", "0.82478017", "0.8245462", "0.8216278", "0.82051617", "0.8182033", "0.8179787", "0.81786615", "0.81734926", "0.81483895", "0.814760...
0.0
-1
Test invalid register details.
def J4it(YKHO): gFsc = {'username': 'janedoes', 'email': 'janedoe@janedoe.com'} geh0 = YKHO.client.post('/auth/register/', data=qQXR.dumps(gFsc), content_type='application/json') YKHO.assertEqual(geh0.status_code, 400)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KkDP(YKHO):\n with trZe.raises(ValueError):\n dQSj('reg_a', 'Register A', 'f0')", "def nrRo(YKHO):\n sr4B = {'ethereum_address': 'some_ethereum_address', 'fetchai_address': YKHO.address, 'signature_of_ethereum_address': 'some_signature_of_ethereum_address', 'signature_of_fetchai_address': 'some_...
[ "0.79546607", "0.75884223", "0.75066", "0.7355516", "0.73268354", "0.725014", "0.7232825", "0.719835", "0.70734817", "0.70271444", "0.70129156", "0.7001735", "0.692877", "0.69229776", "0.68948764", "0.68175876", "0.6801593", "0.6765255", "0.6741355", "0.672662", "0.6718167", ...
0.66937506
22
Test for invalid details in login.
def Ls8p(YKHO): o5Dc = YKHO.registration() YKHO.assertEqual(201, o5Dc.status_code) LOzg = {'email': YKHO.user_data['email'], 'password': '54321'} geh0 = YKHO.client.post('/auth/login/', data=qQXR.dumps(LOzg), content_type='application/json') YKHO.assertEqual(401, geh0.status_code)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def je_W(YKHO):\n YKHO.assertFalse(YKHO.flavia.login('fnsheme@gmail.com', '5236912'), msg='User can login with incorrect credentials')", "def ahax(YKHO):\n WGmE = {'password': ''.join((Acvy(vIwR.ascii_letters) for WKvO in range(ajWY(7, 10)))), 'id_number': ''.join((Acvy(vIwR.ascii_letters) for WKvO ...
[ "0.80760175", "0.7900604", "0.7768068", "0.77023983", "0.76893115", "0.765888", "0.7658216", "0.75879997", "0.7534186", "0.7522432", "0.7520402", "0.7519579", "0.75158435", "0.7504895", "0.7485942", "0.74789447", "0.7473177", "0.74720955", "0.7465578", "0.7460837", "0.7438383...
0.7012486
96
Resets all of the metric state variables. This function is called between epochs/steps, when a metric is evaluated during training.
def s0Da(YKHO): VNqG = oyIN.zeros(YKHO.M) ZylS.keras.backend.batch_set_value([(Ty9i, VNqG) for Ty9i in YKHO.variables])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n for AcYW in YKHO.metrics:\n AcYW.reset_states()", "def cAw6(YKHO):\n YKHO._session.run(YKHO._reset_variables_op)", "def s0Da(YKHO):\n bGrB = [r8hN.reset_states() for r8hN in YKHO.metrics.values()]", "def LfYq(YKHO):\n for AcYW in YKHO.metrics:\n AcYW.reset_states()...
[ "0.8416446", "0.8196252", "0.8040323", "0.7979124", "0.7915209", "0.7773238", "0.7756439", "0.76738626", "0.757487", "0.7524379", "0.7514383", "0.7511346", "0.74652994", "0.74641377", "0.7448818", "0.7443495", "0.74086", "0.7357595", "0.73333055", "0.72576493", "0.71964985", ...
0.74972767
12
Excludes any questions that aren't published yet.
def k66M(YKHO): return J0qS.objects.all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U1Z_(YKHO):\n return YKHO.questions.filter(answers__isnull=True).exclude(T8ck(is_intent=True) | T8ck(mark_answered=True))", "def wd1M(YKHO):\n cqqy = rIAI.now() + qcWV.timedelta(days=1)\n Os4s = rIAI.now() + qcWV.timedelta(days=5)\n yKGp = Y4Gy(pub_date=cqqy, end_date=Os4s)\n YKHO.assertIs(yKG...
[ "0.7141236", "0.7005369", "0.6689306", "0.6570558", "0.6237171", "0.6230217", "0.6227784", "0.6227784", "0.62168455", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.62100136", "0.6...
0.0
-1
Render a template to show the login/associate form form.
def Cu0C(QePW, kCLa='openid/login.html', Bhi2='openid/associate.html', V002=jX1p): g10W = svVj.get_redirect_to(QePW) Gckm = V002(QePW.POST or None) CBIr = svVj.get_user_from_request(QePW) qm1k = Bhi2 if CBIr else kCLa return SGJU(qm1k, {'form': Gckm, 'action': gxEw('openid-init'), svVj.get_redirect_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gckm():\n return TvZl('login_form.html')", "def LIPt():\n return TvZl('login.html')", "def WDGs():\n return TvZl('login_form.html')", "def WDGs():\n return TvZl('login-form.html')", "def Gckm():\n return TvZl('login.html')", "def XnII():\n return TvZl('login_form.html')", "def WDG...
[ "0.8350251", "0.83321446", "0.83043694", "0.8296379", "0.8261068", "0.82607144", "0.8253044", "0.7774451", "0.7744199", "0.76605123", "0.7611984", "0.7611984", "0.7611984", "0.76053727", "0.75918394", "0.7591251", "0.7580652", "0.7574927", "0.75617707", "0.75617707", "0.75587...
0.7360902
32