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
Number of seconds in a day = 86400
def _bXb(YKHO, Hayy, kj9G=False, VOlW=1800): FxRR = int(min(Hayy) / 86400) y69A = t7Ah() for a1PO in Hayy: CjKC = int(a1PO / 86400) - FxRR + 1 Olk8 = a1PO % 86400 y69A.add_element(CjKC, Olk8) WMZo = Jb9G(Hayy)[0] pj9U = vSIY(WMZo, interval=VOlW) YKHO.methods['time_dyn_cls...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CpwC(Sm0u):\n return int(Sm0u * 86400)", "def Ri7a(ITS7):\n return int(ITS7 / 86400)", "def YU8z(gVQW):\n return gVQW * 24 * 60 * 60", "def z0YJ(JRYC):\n return ((24.0 * 60 * 60 * JRYC.days + JRYC.seconds) * 10 ** 6 + JRYC.microseconds) / 10 ** 6", "def D_Ix(YKHO):\n return int(YKHO._shi...
[ "0.78322047", "0.7669997", "0.72789645", "0.72605044", "0.71967256", "0.70403594", "0.69336665", "0.6905637", "0.6737519", "0.6710355", "0.6690475", "0.66812146", "0.6679686", "0.6657958", "0.6653663", "0.6596503", "0.65039814", "0.64805216", "0.64296263", "0.6386751", "0.638...
0.0
-1
Returns an item from dataset
def OP2O(YKHO, or8S): l5Ny, UXqs = YKHO.data[or8S] A07C = YKHO.get_ids(l5Ny) return {'ids': A07C, 'label': UXqs}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, ZfUD):\n return YKHO.default_dataset[ZfUD]", "def OP2O(YKHO, d6pt):\n return YKHO.dataset[d6pt]", "def OP2O(YKHO, ZfUD):\n return YKHO.data.__getitem__(ZfUD)", "def OP2O(YKHO, ZfUD):\n return YKHO.get_data(stock=ZfUD)", "def kTCt(YKHO, hbFX: Union[UUID, str], fjgq: bool=True) -> ...
[ "0.7331154", "0.73001236", "0.70782506", "0.7059737", "0.704616", "0.70335186", "0.70335186", "0.70335186", "0.7004931", "0.6967193", "0.696698", "0.6906114", "0.6874898", "0.681933", "0.68029433", "0.68029433", "0.68029433", "0.6767995", "0.67607844", "0.6752889", "0.6744572...
0.0
-1
Collate function for PyTorch dataloaders This function is required to pad the sequences in batch
def dU7C(YKHO, Wc9F): A07C = [ZfUD['ids'] for ZfUD in Wc9F] UXqs = [ZfUD['label'] for ZfUD in Wc9F] A07C, UXqs = map(list, zip(*sorted(zip(A07C, UXqs), key=lambda h7TE: len(h7TE[0]), reverse=True))) wzH_ = len(A07C[0]) S6_U = [] T778 = [] for id in A07C: luey = len(id) eusk =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KbW8(Wc9F):\n\n def AeBf(Xtuq, yDqo=ht2j.float32):\n \"\"\" Pads a batch of sequences of varying seq_len. \"\"\"\n assert len(Xtuq) > 0 and all((WKvO.shape[1:] == Xtuq[0].shape[1:] for WKvO in Xtuq))\n tm40 = ht2j.LongTensor([len(WKvO) for WKvO in Xtuq])\n ZM6q = ht2j.max(tm40)\n...
[ "0.73158294", "0.72303694", "0.720215", "0.70178246", "0.6988935", "0.6987654", "0.6984616", "0.69347256", "0.69314164", "0.6929743", "0.6866151", "0.6806713", "0.6755359", "0.6730519", "0.67249703", "0.6670702", "0.6653288", "0.66521674", "0.6634389", "0.6608294", "0.6605508...
0.0
-1
slices num_start_samples and last num_end_samples from input_tensor.
def kCsb(YKHO, FRUf, SjmP, Eo8_, VyGp): zk33 = ZylS.shape(input=FRUf)[0] wyz0 = ZylS.less(ZylS.range(zk33), SjmP) Rkma = ZylS.greater_equal(ZylS.range(zk33), zk33 - Eo8_) _J7x = ZylS.logical_or(wyz0, Rkma) _J7x = ZylS.cast(_J7x, ZylS.float32) mgyh = ZylS.multiply(ZylS.cumsum(_J7x), _J7x) pj7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slice(oxOY, daUv, z68Q, eSIw, uZ53, uiNN, T_qx):\n g4y1 = []\n o4Jx = []\n T2fn = oxOY.index[0]\n while T2fn + daUv + z68Q <= oxOY.index[-1]:\n sWIx = T2fn + daUv\n SESY = sWIx + z68Q\n uUGG = oxOY[T2fn:sWIx]\n iYXR = oxOY[sWIx:SESY]\n uUGG = uUGG.resample(uiNN)\n...
[ "0.6398423", "0.6301577", "0.62422544", "0.6207991", "0.6033701", "0.6001836", "0.5863664", "0.57697195", "0.5736534", "0.5735169", "0.5735169", "0.5695087", "0.56871474", "0.56835836", "0.5664265", "0.5650765", "0.56340563", "0.5613769", "0.561273", "0.55625796", "0.55528635...
0.6243149
2
Get a model by name from models.
def YrZb(*, mWFP: str) -> laHg.Optional[laHg.Type]: return getattr(DJqJ.models, mWFP, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u5_9(Emd4, mWFP):\n ZGE9 = QQNo.camelize(mWFP)\n C3ST = Emd4.models[ZGE9]\n return C3ST", "def u5_9(YKHO, ZGE9):\n FYrf = EVMQ.get_model_by_name(ZGE9, pipeline=YKHO)\n return FYrf", "def YrZb(ZGE9):\n LCet = 'strain.models.strain_' + ZGE9.lower()\n iwaC = ANWz.import_module(LCet)\n ...
[ "0.82309574", "0.7897367", "0.789289", "0.7651126", "0.7275857", "0.724759", "0.7227102", "0.71979", "0.7093092", "0.6934342", "0.68831646", "0.6882101", "0.68638235", "0.681084", "0.67527384", "0.6750112", "0.66995806", "0.669248", "0.6669996", "0.66521996", "0.65691143", ...
0.7608497
4
Get the schema of a model by name from models.
def UfD7(*, mWFP: str) -> laHg.Optional[SnBA.Schema]: C3ST = YrZb(name=mWFP) if C3ST is None: return None return C3ST._schema
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uPxI(YKHO, mWFP):\n return C3ST.Schema(YKHO, mWFP)", "def YrZb(*, mWFP: str) -> laHg.Optional[laHg.Type]:\n return getattr(DJqJ.models, mWFP, None)", "def u5_9(YKHO, ZGE9):\n FYrf = EVMQ.get_model_by_name(ZGE9, pipeline=YKHO)\n return FYrf", "def nXRa(YKHO, C3ST: str) -> h8nf[Rm9M]:\n for ...
[ "0.69659853", "0.6304998", "0.6245256", "0.62337494", "0.6099817", "0.60613036", "0.5975672", "0.59240985", "0.5892701", "0.5835488", "0.5833662", "0.583204", "0.58270544", "0.5781039", "0.57488984", "0.57172143", "0.57025635", "0.5699908", "0.5598855", "0.5534844", "0.551866...
0.73033065
0
Given an example, returns the index of the top prediction.
def Gcik(YKHO, PU1l): DZoO = YKHO._model.predict([PU1l]) N93T = list(DZoO)[0]['preds'] q1NN = oyIN.argmax(N93T) return YKHO._model.output_spec()['preds'].vocab[q1NN]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KzMi(YKHO, N6Z1):\n cCrA = N6Z1.get_field('scores')\n uZq5 = ht2j.nonzero(cCrA > YKHO.confidence_threshold).squeeze(1)\n N6Z1 = N6Z1[uZq5]\n cCrA = N6Z1.get_field('scores')\n bGrB, or8S = cCrA.sort(0, descending=True)\n return N6Z1[or8S]", "def KzMi(YKHO, N6Z1):\n cCrA = N6Z1.get_field('...
[ "0.62452763", "0.62452763", "0.62452763", "0.60676634", "0.5989437", "0.58734274", "0.5791014", "0.57429034", "0.570899", "0.56964386", "0.56548774", "0.5654801", "0.56219155", "0.56219155", "0.56219155", "0.5609417", "0.5579979", "0.555093", "0.5547673", "0.5547556", "0.5507...
0.59843737
5
Tests the case when there no counterfactuals in the database.
def VJGk(YKHO): gwAu = 4.0 YKHO._config['Regression threshold'] = str(gwAu) YKHO._example = {'x_1': 1.0, 'x_2': 1.0} hlel = YKHO._gen.generate(example=YKHO._example, model=YKHO._model, dataset=YKHO._dataset, config=YKHO._config) YKHO.assertEmpty(hlel)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UtcJ(YKHO):\n vexM = YKHO.generate_query('view_manager_report', ())\n Ylbp = YKHO.execute_query(vexM)\n aEqx = []\n assert len(Ylbp) == 0, f'There is suppose to be an empty summary {Ylbp}'\n assert Ylbp == aEqx, f'The result is suppose to be empty {Ylbp}'", "def N16m(YKHO):\n YKHO.assertEqu...
[ "0.7155767", "0.6894186", "0.6736307", "0.66639924", "0.65927976", "0.6542009", "0.6449499", "0.64324975", "0.6413866", "0.64134836", "0.6337504", "0.633629", "0.6330963", "0.62947977", "0.6268821", "0.62683177", "0.62500495", "0.623947", "0.6233725", "0.62260556", "0.6161695...
0.631646
13
Immutable. The resource name of the backend environment where the key material for all CryptoKeyVersions associated with this CryptoKey reside and where all related cryptographic operations are performed. Only applicable if CryptoKeyVersions have a ProtectionLevel of EXTERNAL_VPC, with the resource name in the format `...
def Ni4C(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'crypto_key_backend')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V7mA(YKHO) -> str:\n return qe4Y.get(YKHO, 'kms_key_version_name')", "def mWFP(YKHO):\n return YKHO._env_name", "def zAat(YKHO) -> str:\n return qe4Y.get(YKHO, 'key_name')", "def YY4K(YKHO) -> str:\n return qe4Y.get(YKHO, 'kms_key_name')", "def YY4K(YKHO) -> str:\n return qe4Y.get(YKHO, ...
[ "0.6074543", "0.53154606", "0.52248967", "0.52245873", "0.52245873", "0.52245873", "0.5222759", "0.5211067", "0.5203351", "0.5180378", "0.5178732", "0.51735216", "0.5171954", "0.5117935", "0.51177925", "0.51157355", "0.5091082", "0.5063385", "0.5055134", "0.5055134", "0.50315...
0.0
-1
next_rotation_time will be advanced by this period when the service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours. If rotation_period is set, next_rotation_time must also be set. Keys with purpose ENCRYPT_DECRYPT support automatic rotation. For other keys, this field must be omitted.
def PLP3(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'rotation_period')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O8z4(YKHO, O8z4):\n if YKHO._configuration.client_side_validation and O8z4 is not None and (O8z4 < 0):\n raise ValueError('Invalid value for `next_key_rotation_date`, must be a value greater than or equal to `0`')\n YKHO._next_key_rotation_date = O8z4", "def NW8e(YKHO, NW8e):\n if YKHO._confi...
[ "0.69202644", "0.59437287", "0.57274806", "0.54584885", "0.5338199", "0.52847797", "0.5236162", "0.52021384", "0.52021384", "0.5055989", "0.50530267", "0.4900865", "0.4881133", "0.48766458", "0.48431367", "0.48349738", "0.478002", "0.47434768", "0.4723008", "0.4714412", "0.47...
0.57929075
2
The time at which this CryptoKey was created.
def x7vo(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'create_time')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OhEq(YKHO):\n return YKHO.get_signingTime()", "def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')", "def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')", "def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')", "def x7vo(YKHO):\n return YKHO._create_ti...
[ "0.8119994", "0.78333074", "0.78333074", "0.78333074", "0.77597255", "0.77597255", "0.77597255", "0.77542686", "0.77542686", "0.77542686", "0.7657691", "0.7632575", "0.7632575", "0.7632575", "0.7632575", "0.7632575", "0.7632575", "0.7632575", "0.7632575", "0.7632575", "0.7632...
0.6968153
70
Immutable. The resource name of the backend environment where the key material for all CryptoKeyVersions associated with this CryptoKey reside and where all related cryptographic operations are performed. Only applicable if CryptoKeyVersions have a ProtectionLevel of EXTERNAL_VPC, with the resource name in the format `...
def Ni4C(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'crypto_key_backend')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V7mA(YKHO) -> str:\n return qe4Y.get(YKHO, 'kms_key_version_name')", "def mWFP(YKHO):\n return YKHO._env_name", "def zAat(YKHO) -> str:\n return qe4Y.get(YKHO, 'key_name')", "def YY4K(YKHO) -> str:\n return qe4Y.get(YKHO, 'kms_key_name')", "def YY4K(YKHO) -> str:\n return qe4Y.get(YKHO, ...
[ "0.6074543", "0.53154606", "0.52248967", "0.52245873", "0.52245873", "0.52245873", "0.5211067", "0.5203351", "0.5180378", "0.5178732", "0.51735216", "0.5171954", "0.5117935", "0.51177925", "0.51157355", "0.5091082", "0.5063385", "0.5055134", "0.5055134", "0.50315326", "0.5025...
0.5222759
6
The resource name for this CryptoKey in the format `projects//locations//keyRings//cryptoKeys/`.
def mWFP(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAat(YKHO) -> str:\n return qe4Y.get(YKHO, 'key_name')", "def YY4K(YKHO) -> str:\n return qe4Y.get(YKHO, 'kms_key_name')", "def YY4K(YKHO) -> str:\n return qe4Y.get(YKHO, 'kms_key_name')", "def YY4K(YKHO) -> str:\n return qe4Y.get(YKHO, 'kms_key_name')", "def ME_S(YKHO, mWFP):\n XSj5 = Q...
[ "0.6939809", "0.68586695", "0.68586695", "0.68586695", "0.66053355", "0.6600515", "0.6504073", "0.64139056", "0.64043695", "0.6384725", "0.6384725", "0.635146", "0.6345613", "0.6328873", "0.6312036", "0.6308279", "0.63072455", "0.6306778", "0.6306778", "0.6291313", "0.6266739...
0.0
-1
next_rotation_time will be advanced by this period when the service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours. If rotation_period is set, next_rotation_time must also be set. Keys with purpose ENCRYPT_DECRYPT support automatic rotation. For other keys, this field must be omitted.
def PLP3(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'rotation_period')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O8z4(YKHO, O8z4):\n if YKHO._configuration.client_side_validation and O8z4 is not None and (O8z4 < 0):\n raise ValueError('Invalid value for `next_key_rotation_date`, must be a value greater than or equal to `0`')\n YKHO._next_key_rotation_date = O8z4", "def NW8e(YKHO, NW8e):\n if YKHO._confi...
[ "0.6921117", "0.5942846", "0.5790339", "0.54565567", "0.5337661", "0.52842206", "0.5234462", "0.52015394", "0.52015394", "0.50538373", "0.50518584", "0.49000585", "0.48790583", "0.48761037", "0.48417535", "0.483141", "0.47794032", "0.47424516", "0.47236624", "0.4712896", "0.4...
0.5724867
3
plot the training history from a a tensorflow project.
def qSo0(SkYi): with g5R2.File(SkYi, 'r') as eHNT: print('keys: %s' % eHNT.keys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cx7D(FLXQ: tf.keras.callbacks.History) -> None:\n QzFq = FLXQ.history\n if 'loss' not in QzFq:\n print(\"Error: 'loss' values not found in the history\")\n return\n QrM1.figure(figsize=(14, 4))\n QrM1.subplot(121)\n QrM1.plot(QzFq['loss'], label='Training')\n if 'val_loss' in Qz...
[ "0.71314675", "0.7130952", "0.6858491", "0.68078613", "0.6801595", "0.67823356", "0.67551917", "0.6726375", "0.66388524", "0.66155493", "0.6613517", "0.66095895", "0.65821105", "0.6552887", "0.65378743", "0.6486414", "0.63384265", "0.6279699", "0.6219405", "0.6210748", "0.618...
0.5687699
55
Test API can get all categories (GET request).
def _562(YKHO): Ylbp = YKHO.client().get('/categories') nPrm = qQXR.loads(Ylbp.data) YKHO.assertEqual(Ylbp.status_code, 200) YKHO.assertEqual(nPrm['success'], True) YKHO.assertTrue(len(nPrm['categories']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sqip(YKHO):\n geh0 = YKHO.client.get('/api/v1/categories', headers=YKHO.attendant_headers)\n YKHO.assertEqual(geh0.status_code, 200)", "def Sqip(YKHO):\n MC83 = YKHO.autheniticate()\n eOtH = qQXR.loads(MC83.data.decode()).get('token')\n YKHO.app.post(hDk4, data=qQXR.dumps(YKHO.data), headers=d...
[ "0.8913982", "0.85682416", "0.85104936", "0.8501755", "0.8380937", "0.8360935", "0.829501", "0.7893596", "0.7893596", "0.7877061", "0.7868084", "0.77602345", "0.77246004", "0.7668903", "0.7626901", "0.76239324", "0.76133144", "0.7596516", "0.7480586", "0.7458937", "0.74284315...
0.8427802
4
Test API for exected errors in get categories end point
def xXCZ(YKHO): Ylbp = YKHO.client().get('/categories/') nPrm = qQXR.loads(Ylbp.data) YKHO.assertEqual(Ylbp.status_code, 404) YKHO.assertEqual(nPrm['success'], False) YKHO.assertEqual(nPrm['message'], 'Resource Not Found.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E_iv(YKHO):\n geh0 = YKHO.client().get('/categories/10/questions')\n TBsA = qQXR.loads(geh0.data)\n YKHO.assertEqual(geh0.status_code, 404)\n YKHO.assertEqual(TBsA['success'], False)\n YKHO.assertNotEqual(len(TBsA['message']), 'resource not found')", "def _562(YKHO):\n Ylbp = YKHO.client()....
[ "0.7766824", "0.75165856", "0.7481711", "0.7465298", "0.74478316", "0.7370847", "0.73646003", "0.73605645", "0.73219633", "0.72993606", "0.72991806", "0.7297474", "0.7277399", "0.727482", "0.72570044", "0.7216054", "0.7154997", "0.7153083", "0.7142064", "0.7101459", "0.708060...
0.72765666
13
TEST API to post a question with URL that is not allowed
def lcs0(YKHO): Ylbp = YKHO.client().post('/questions/95', json={'question': 'What is chemical composition of water', 'answer': 'H2O', 'category': 1, 'difficulty': 2}) nPrm = qQXR.loads(Ylbp.data) YKHO.assertEqual(Ylbp.status_code, 405) YKHO.assertEqual...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RqsW(YKHO):\n geh0 = YKHO.post_question(YKHO.invalid_question)\n YKHO.assertEqual(geh0.status_code, 400)", "def HJ0E(YKHO):\n geh0 = YKHO.app.post('/api/v2/questions', headers=YKHO.headers, data=qQXR.dumps(YKHO.question))\n Aofo = qQXR.loads(geh0.data)\n YKHO.assertEqual(geh0.status_code, 200)...
[ "0.69736975", "0.6829877", "0.6745695", "0.66465354", "0.6512102", "0.6510603", "0.647551", "0.64748585", "0.6406284", "0.63875794", "0.63839096", "0.63802254", "0.63767767", "0.63683575", "0.63532585", "0.62969697", "0.6277592", "0.6273051", "0.6273051", "0.62493044", "0.622...
0.70382047
0
Test API to get error if request category do not exist
def gnQZ(YKHO): Ylbp = YKHO.client().get('/categories/10/questions') nPrm = qQXR.loads(Ylbp.data) YKHO.assertEqual(Ylbp.status_code, 404) YKHO.assertEqual(nPrm['success'], False) YKHO.assertEqual(nPrm['message'], 'Resource Not Found.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E_iv(YKHO):\n geh0 = YKHO.client().get('/categories/10/questions')\n TBsA = qQXR.loads(geh0.data)\n YKHO.assertEqual(geh0.status_code, 404)\n YKHO.assertEqual(TBsA['success'], False)\n YKHO.assertNotEqual(len(TBsA['message']), 'resource not found')", "def sqec(YKHO):\n Ylbp = YKHO.client()....
[ "0.7801562", "0.7635796", "0.7592893", "0.7585621", "0.757465", "0.7555331", "0.7469336", "0.7364538", "0.7353223", "0.7322306", "0.7314716", "0.7299143", "0.7282807", "0.7282157", "0.72706395", "0.72591376", "0.69266313", "0.6846525", "0.6837669", "0.6830053", "0.6826354", ...
0.76558286
1
Compute the residual activation for either the bias or the specified synapse.
def TBVA(YKHO, z6XT, oug5=None, fa4u=None, FM4J=None): ywwl = YKHO.N Kt_s = z6XT['T'] vuvg = z6XT['F'] XcU5 = YKHO.weight_model.W assert oug5 is not None or fa4u is not None UyRO, HCkc = YKHO._get_n(oug5, fa4u) nYlf = oyIN.zeros(Kt_s) if oug5 is None: nYlf += YKHO.bias_model.b[No...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HSLv(YKHO, WKvO, LVAh):\n MKlR = WKvO\n MKlR = YKHO.b1(MKlR, LVAh)\n MKlR = YKHO.activation(MKlR)\n MKlR = YKHO._upsample_conv(MKlR, YKHO.c1) if YKHO.upsample else YKHO.c1(MKlR)\n MKlR = YKHO.b2(MKlR, LVAh)\n MKlR = YKHO.activation(MKlR)\n MKlR = YKHO.c2(MKlR)\n return MKlR", "def mBE...
[ "0.66266346", "0.64367056", "0.6363776", "0.6360704", "0.6217522", "0.5983217", "0.59514165", "0.58521676", "0.578881", "0.5781729", "0.572319", "0.5719403", "0.5561563", "0.5553582", "0.55464333", "0.54401934", "0.5411634", "0.5337757", "0.5290858", "0.5231098", "0.52251184"...
0.65329283
1
Check if a cookie belongs to an admin.
def gmaE(zatQ): return ';admin=true;' in zatQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uJBC():\n if 'username' in cuiw and cuiw['username'] == 'admin':\n return True\n else:\n return False", "def Jo_v(CBIr):\n return CBIr in PDtd", "def _Kb1(CBIr):\n return CBIr.is_authenticated and CBIr.id == P4t4.config.get('ADMIN')", "async def is_admin(OaeV):\n mS46 = OaeV....
[ "0.73039424", "0.71584827", "0.7152261", "0.71180886", "0.7055976", "0.7051051", "0.69924986", "0.69816065", "0.69806427", "0.69778067", "0.69679797", "0.6959401", "0.6919211", "0.690156", "0.68937665", "0.68888205", "0.6888003", "0.688069", "0.6872552", "0.686421", "0.686264...
0.88378686
0
Find an author filtering by its id.
def ggdo(Emd4, inK4): try: taDc = Emd4.db.newsdb.find_one({'_id': aA6B(str(inK4))}) if taDc is not None: taDc = m6UV(taDc['name'], str(taDc['_id'])) except jss9: taDc = None return taDc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S3bd(id: int) -> o763:\n if not id:\n eTsH(400)\n taDc = o763.query.get(id)\n if not taDc:\n eTsH(404, 'Author is not found')\n return taDc.serialize()", "def I7YL(YKHO, FyhZ):\n DpUl = YKHO.conn.cursor()\n xDcj = 'SELECT author_id , name FROM author WHERE author_id = ?'\n ...
[ "0.70193875", "0.69206274", "0.6507975", "0.63866985", "0.62656254", "0.6044836", "0.60154885", "0.60046273", "0.59360933", "0.5899211", "0.58920836", "0.5891988", "0.58422047", "0.58422047", "0.58212465", "0.5784771", "0.57741094", "0.57559925", "0.57280236", "0.56905645", "...
0.7531766
0
Encodes a picture in PNG.
def JML7(ReDQ): print('---- Encoding', ReDQ.file_name, 'to PNG...') ZrNx = ReDQ.file_name + '.png' cYQs = ['optipng', '-o7', '-strip', 'all', '-snip', '-out', ZrNx, ReDQ.file_name] print(cYQs) NBjn = Yn3K.Popen(cYQs, stdout=Yn3K.PIPE) S7he, w1xV = NBjn.communicate() muOw = NBjn.wait() if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K1Eg(VXjJ: bytes) -> bytes:\n Xn71 = hnIv.open(aKaX(VXjJ))\n TVTK = 240\n H2v2 = int(Xn71.size[1] * (240 / Xn71.size[0]))\n Xn71 = Xn71.convert('RGB').resize((TVTK, H2v2))\n wOb_ = aKaX()\n Xn71.save(wOb_, format='PNG')\n return wOb_.getvalue()", "def bf5b(YKHO, LNo8):\n with open(LNo...
[ "0.70238346", "0.68059456", "0.66910887", "0.65075713", "0.6490932", "0.6362139", "0.63501203", "0.6288207", "0.6234699", "0.6222067", "0.61603814", "0.6148813", "0.6126176", "0.61154884", "0.6076154", "0.60518354", "0.60459554", "0.6040901", "0.60402936", "0.602476", "0.6019...
0.64133924
5
Init the WindowCovering Class.
def FIMM(YKHO, x3c9, UTX6, ACia, PAnk, Ekuk=None, JBZA=None, C3ST=None): I0uW.__init__(YKHO, x3c9, UTX6, ACia, PAnk, Ekuk, JBZA, C3ST) YKHO._stateList[1] = L2qS(YKHO._address, 'coverOpenLevel', 1, YKHO._send_msg, YKHO._message_callbacks, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.window = xNQ_()\n YKHO.__initialize_variables__()\n YKHO.__initialize_menu__()\n YKHO.__initialize_status_bar__()\n YKHO.__initialize_gui__()", "def w5Lr(YKHO, _AKB=None):\n YKHO.toolkit.app.initialize()\n if not YKHO.initialized:\n YKHO.setup(_AKB)\n YKH...
[ "0.6743704", "0.6717993", "0.66916996", "0.66435754", "0.66388917", "0.66207594", "0.6608951", "0.6592452", "0.65906817", "0.6444072", "0.6423846", "0.64215636", "0.6397306", "0.6392454", "0.6386095", "0.63827425", "0.63741344", "0.63722247", "0.6320398", "0.6258166", "0.6253...
0.0
-1
Integer type used by ``CSR`` data. Sparse ``CSR`` matrices can contain at most ``2idxint_size`` nonzeros elements.
def VJYj(YKHO): from .core import data return data.base.idxint_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qJCm(hHzj):\n Oxad = oyIN.iinfo(UztI.MKL_INT_NUMPY).max\n if hHzj.nnz > Oxad or max(hHzj.shape) > Oxad:\n tO9_ = 'MKL interface is {t} and cannot hold matrix {m}\\n'.format(m=repr(hHzj), t=UztI.MKL_INT_NUMPY)\n tO9_ += 'Try changing MKL to int64 with the environment variable MKL_INTERFACE_L...
[ "0.58542836", "0.5850885", "0.5507139", "0.55057424", "0.53648454", "0.53563046", "0.5269566", "0.52501446", "0.5246889", "0.524618", "0.5153443", "0.5144022", "0.51399034", "0.5124796", "0.5095699", "0.5082873", "0.50771564", "0.50197995", "0.5014201", "0.50036913", "0.49769...
0.5605299
2
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, L9Jq): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
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 if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
String representation of the transform.
def wHJl(YKHO): return '{}(value={})'.format(YKHO.__class__.__name__, YKHO.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n sI3h = YKHO.__class__.__name__ + '('\n for a1PO in YKHO.transforms:\n sI3h += f'\\n {a1PO}'\n sI3h += '\\n)'\n return sI3h", "def zAg0(YKHO):\n ZWCE = [YKHO.name]\n ZWCE += [zimS(SZFh) for SZFh in YKHO.transforms]\n return ' | '.join(ZWCE) + f' -> {YKHO.shape} {YK...
[ "0.75291336", "0.7338223", "0.7003522", "0.690618", "0.67028147", "0.6667577", "0.6622841", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0...
0.0
-1
String representation of the transform.
def wHJl(YKHO): return '{}(value={})'.format(YKHO.__class__.__name__, YKHO.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n sI3h = YKHO.__class__.__name__ + '('\n for a1PO in YKHO.transforms:\n sI3h += f'\\n {a1PO}'\n sI3h += '\\n)'\n return sI3h", "def zAg0(YKHO):\n ZWCE = [YKHO.name]\n ZWCE += [zimS(SZFh) for SZFh in YKHO.transforms]\n return ' | '.join(ZWCE) + f' -> {YKHO.shape} {YK...
[ "0.75291336", "0.7338223", "0.7003522", "0.690618", "0.67028147", "0.6667577", "0.6622841", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0...
0.0
-1
String representation of the transform.
def wHJl(YKHO): return '{}'.format(YKHO.__class__.__name__)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n sI3h = YKHO.__class__.__name__ + '('\n for a1PO in YKHO.transforms:\n sI3h += f'\\n {a1PO}'\n sI3h += '\\n)'\n return sI3h", "def zAg0(YKHO):\n ZWCE = [YKHO.name]\n ZWCE += [zimS(SZFh) for SZFh in YKHO.transforms]\n return ' | '.join(ZWCE) + f' -> {YKHO.shape} {YK...
[ "0.75291336", "0.7338223", "0.7003522", "0.690618", "0.67028147", "0.6667577", "0.6622841", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0.65933496", "0...
0.0
-1
Get a list of word lists from given list of words of the given length. Returns list of lists or None if length of given list is less than given length.
def FzC5(YKHO, V22M, u54L): if len(V22M) >= u54L: return [V22M[YRbF:YRbF + u54L] for YRbF in range(len(V22M) - u54L + 1)] else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M8nk(JTgH):\n NgyN = [GIN8 for GIN8 in JTgH if len(GIN8) in range(4, 7)]\n return NgyN", "def rdsW(JTgH):\n return [GIN8 for GIN8 in JTgH if len(GIN8) > 7]", "def l4Z4(Ux0P, z_9b):\n Nqlg = v47F(Ux0P)\n V1Rd = [yzQ0 for yzQ0 in Nqlg if len(yzQ0) == z_9b]\n return V1Rd", "def LbF2(JTgH):...
[ "0.6546789", "0.65173537", "0.65165776", "0.6513591", "0.6484576", "0.62821686", "0.6182719", "0.6164395", "0.61270535", "0.5997273", "0.5965274", "0.5960986", "0.59513617", "0.59046817", "0.5848427", "0.5756921", "0.57434124", "0.57303333", "0.5670121", "0.5668006", "0.56522...
0.71047616
0
Extract entities from tweet as text and return an entity dict.
def VeoF(YKHO, l5Ny): L77v = Y38t.Extractor(l5Ny) MMe4 = {} MMe4['user_mentions'] = [] for Xw1j in L77v.extract_mentioned_screen_names_with_indices(): MMe4['user_mentions'].append(Xw1j) MMe4['hashtags'] = [] for ZsLl in L77v.extract_hashtags_with_indices(): ZsLl['text'] = ZsLl['h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T3sD(Mau6):\n Csk6 = {}\n Csk6['hastags'] = [zTII['text'] for zTII in Mau6['entities']['hashtags']]\n Csk6['text'] = Mau6['text']\n Csk6['user'] = Mau6['user']['screen_name']\n Csk6['user_loc'] = Mau6['user']['location']\n return Csk6", "def pvi3(YKHO, l5Ny, rQow=''):\n TBsA = {'document...
[ "0.7163616", "0.70839727", "0.70036346", "0.68618387", "0.6622903", "0.66093665", "0.65984255", "0.6520099", "0.6395295", "0.6331853", "0.62736267", "0.6144974", "0.6093043", "0.60862595", "0.60741085", "0.6070696", "0.6049883", "0.6030686", "0.60216916", "0.5991131", "0.5897...
0.7987244
0
Slice the PDB file from residue ``start`` to residue ``stop`` where stop is INCLUSIVE Returns np.ndarray of shape (N, 15) of dtype=str where N is the number of atoms that compose the residue range.
def eO04(YKHO, yKcO, JCyR): return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def adRt(nPrm: pd.DataFrame, yKcO: int, Os4s: int):\n Dvh2 = nPrm.loc[:, 'start_locus'].searchsorted(yKcO)\n AA_C = nPrm.loc[:, 'start_locus'].searchsorted(Os4s, side='right')\n return nPrm.iloc[Dvh2:AA_C, :]", "def rypS(yKcO: Sequence[int], JCyR: Sequence[int]=None) -> AzJI[slice, ...]:\n if JCyR is...
[ "0.5702292", "0.55593574", "0.54967946", "0.5490665", "0.543095", "0.54012644", "0.54000926", "0.539916", "0.5375521", "0.5348228", "0.53296596", "0.52915376", "0.5247933", "0.52435577", "0.52367103", "0.52294683", "0.52173406", "0.51852584", "0.51783127", "0.51773906", "0.50...
0.71454847
0
Get output filename template for format.
def DAt9(YKHO, format): for mXDZ, aDxC in YKHO._patterns: if aDxC.format == format: rPXJ = mXDZ.generate('{name}') if rPXJ: return rPXJ return f'{{name}}.{format}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cgGb(YKHO):\n VPot = YKHO.cfg.get('mutations', 'format')\n if VPot == 'pdf':\n ZylS = 'PDFTemplate.bt'\n elif VPot == 'png':\n ZylS = 'PNG12Template.bt'\n TGQH = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n return Hy7s.path.join(TGQH, eZd9, ZylS)", "def nR3j(YKHO, AIkQ, format='o...
[ "0.76487124", "0.7485142", "0.7478703", "0.7468869", "0.717704", "0.7169842", "0.700266", "0.69933915", "0.6981283", "0.69616824", "0.6914643", "0.6879603", "0.6829703", "0.68107957", "0.67992496", "0.67655617", "0.6728994", "0.66414756", "0.6628191", "0.6625138", "0.66180015...
0.7496139
1
Ensure dictionary encoder labels are returned sorted
def Dtf1(YKHO): LJE9 = {3: 'a', 2: 'c', 1: 'b'} Efo2 = njzQ(DZBc(), encoder=LJE9) eQHC.assert_array_equal(Efo2._labels(), ['b', 'c', 'a'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aafu(YKHO):\n lCfJ = {}\n g_ND = {}\n ITJE = dict(YKHO.tree.nodes(data='name'))\n MnDN = dict([(BWXx, H5ew) for H5ew, BWXx in ITJE.items()])\n WKa2 = [Q6kx[0] for Q6kx in YKHO.tree.out_degree(YKHO.tree.nodes()) if Q6kx[1] == 0]\n WKa2 = [ITJE[Q6kx] for Q6kx in WKa2]\n ewCu = 0\n ni6f = ...
[ "0.6201525", "0.5995317", "0.598976", "0.5878736", "0.5865258", "0.58634645", "0.584119", "0.58251524", "0.58160883", "0.57951283", "0.5764054", "0.5741479", "0.57197803", "0.571861", "0.56800306", "0.56673956", "0.56570596", "0.56496453", "0.5636579", "0.56079656", "0.560789...
0.77027303
0
Get the app_config.yaml for default application needs 1. Set function variables 2. Read the YAML file 3. Return a dictionary of the contents
def RZII(): _bsB = str(nGWx) + '/application/static/app_config.yaml' ht5v = xRMc(_bsB) return ht5v
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD() -> dict:\n try:\n with open('config.yaml', 'rb') as SGPW:\n GPtr = eJb6.load(SGPW, Loader=eJb6.FullLoader)\n return GPtr\n except FileNotFoundError:\n bo34.error('Could not load the application config file.')\n return {}", "def juI9():\n C13M = open(...
[ "0.8288024", "0.8119227", "0.76034844", "0.75623", "0.7522903", "0.7418594", "0.7333753", "0.7287419", "0.7244445", "0.72259295", "0.7162807", "0.7069585", "0.7029109", "0.70020026", "0.6991378", "0.6976634", "0.6957481", "0.6922012", "0.6879575", "0.6879258", "0.6878876", ...
0.8843971
0
Read and return the YAML dict in the file location
def xRMc(_bsB): with open(_bsB, 'r') as wOb_: try: ht5v = eJb6.load(wOb_, Loader=eJb6.SafeLoader) except eJb6.YAMLError as e: bo34.error(tTpl) return ht5v
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M2Ye(VqRE: str) -> cuzp:\n return eJb6.safe_load(Nwr9(VqRE))", "def R4f_() -> dict:\n with GkAb('config.yaml').open('r') as GJvs:\n try:\n return eJb6.safe_load(GJvs)\n except eJb6.YAMLError as e:\n G9jH.error(tTpl)", "def xRMc(pmON: PathLike) -> cuzp:\n with op...
[ "0.759243", "0.75183564", "0.743243", "0.73257357", "0.7286708", "0.72731036", "0.72633284", "0.7197643", "0.71799684", "0.71573913", "0.7143258", "0.713992", "0.7136086", "0.7128368", "0.7115038", "0.71093214", "0.7101437", "0.70997053", "0.70577663", "0.704494", "0.70169413...
0.7267285
6
Escape the string with the supplied function. The function is expected to take an arbitrary string, then return it with all special characters escaped and ready for passing to the command interpreter. After calling this function, the next call to str() will return the escaped string.
def IguF(YKHO, PVOX, GtBp=tWdb): if YKHO.is_literal(): return PVOX(YKHO.data) elif ' ' in YKHO.data or '\t' in YKHO.data: return GtBp(YKHO.data) else: return YKHO.data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cizj(l5Ny):\n return IguF(l5Ny)", "def a_4o(KCHu):\n assert isinstance(KCHu, str), 'expected %s but got %s; value=%s' % (type(str), type(KCHu), KCHu)\n KCHu = KCHu.replace('\\\\', '\\\\\\\\')\n KCHu = KCHu.replace('\\n', '\\\\n')\n KCHu = KCHu.replace('\\t', '\\\\t')\n KCHu = KCHu.replace('...
[ "0.78236073", "0.6914006", "0.685613", "0.6712803", "0.66270393", "0.6603785", "0.6498684", "0.6478015", "0.64697385", "0.6415594", "0.64000726", "0.63349926", "0.63226914", "0.6292137", "0.62896633", "0.6157335", "0.61490804", "0.61439914", "0.6135253", "0.6128144", "0.61137...
0.64833534
7
Determines if the string s requires further expansion. Due to the implementation of ListSubber expand will call itself 2 additional times for an already expanded string. This method is used to determine if a string is already fully expanded and if so exit the loop early to prevent these recursive calls.
def Tdem(YKHO, KCHu): if not PP69(KCHu) or isinstance(KCHu, Y8jm): return False KCHu = str(KCHu) return K5ZW.findall(KCHu) is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lHli(YKHO) -> bool:\n YKHO.__build_iteration()\n return len(YKHO.__trees.keys()) == 0", "def fdIC(YKHO) -> bool:\n if YKHO._is_expandable is False:\n return YKHO._is_expandable\n elif YKHO.parse_grammar:\n return True\n elif YKHO.segments and any((KCHu.is_expandable for KCHu in Y...
[ "0.6171038", "0.6109091", "0.60169923", "0.59473646", "0.5829965", "0.57881844", "0.5753471", "0.56674725", "0.5637924", "0.5562003", "0.5455472", "0.54426134", "0.53587943", "0.5309808", "0.52773035", "0.522618", "0.5181424", "0.5179465", "0.51638067", "0.51443434", "0.51245...
0.68825835
0
Return an integer (broadcasted) valuation of x. Input x must be float32 or float64.
def fdMZ(WKvO): WKvO = t3jv(WKvO) if WKvO.dtype.type is HUFt: BWXx = UIq0(WKvO) elif WKvO.dtype.type is fSkI: BWXx = dlKk(WKvO) else: raise TypeError('%s not in (float64, float32)' % WKvO.dtype) return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dRO0(Emd4, WKvO):\n return oyIN.maximum(0, oyIN.minimum(1, 0.2 * WKvO + 0.5))", "def q4W8(YKHO, WKvO):\n return (WKvO - YKHO.__xmin) * (YKHO.__width - 1) // (YKHO.__xmax - YKHO.__xmin)", "def bkjm(YKHO, WKvO: np.array) -> oyIN.array:\n pass", "def EEnb(YKHO, WKvO):\n return YKHO.i * WKvO", ...
[ "0.642496", "0.63849723", "0.63603836", "0.6349625", "0.6288522", "0.6180796", "0.61380905", "0.61380905", "0.61259884", "0.6098477", "0.6064956", "0.6062511", "0.6041411", "0.60260904", "0.6014335", "0.5997265", "0.59946537", "0.59850824", "0.597165", "0.5959835", "0.5934623...
0.0
-1
Return the order distance from float64 x to float64 y
def fVrf(WKvO, LVAh): cxJM = UIq0(WKvO) OQzG = UIq0(LVAh) return okyX(cxJM, OQzG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pImw(YKHO, WKvO, LVAh):\n o4D3, si3g = WKvO\n ajwV, skBL = LVAh\n return oyIN.sqrt(pow(o4D3 - ajwV, 2) + pow(si3g - skBL, 2))", "def Ayfi(YKHO, WKvO: int, LVAh: int) -> float:\n return epAf.sqrt((WKvO - YKHO.x) ** 2 + (LVAh - YKHO.y) ** 2)", "def pImw(WKvO, LVAh):\n Jw7X = WKvO[0] - LVAh[0]\...
[ "0.7211161", "0.7161189", "0.7139409", "0.7123245", "0.7105878", "0.6947398", "0.69145316", "0.68679214", "0.6860378", "0.683358", "0.6826744", "0.68225163", "0.6816968", "0.67356527", "0.6727091", "0.6678646", "0.6665459", "0.6655285", "0.66527474", "0.6636007", "0.6568847",...
0.6453754
32
Return the order distance from float32 x to float32 y
def ZFmv(WKvO, LVAh): cxJM = dlKk(WKvO) OQzG = dlKk(LVAh) return wXTW(cxJM, OQzG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(YKHO, WKvO: int, LVAh: int) -> float:\n return epAf.sqrt((WKvO - YKHO.x) ** 2 + (LVAh - YKHO.y) ** 2)", "def s7yO(YKHO, WKvO, LVAh):\n Jw7X = WKvO - YKHO.x\n eUWA = LVAh - YKHO.y\n return epAf.sqrt(Jw7X ** 2 + eUWA ** 2)", "def pImw(YKHO, WKvO, LVAh):\n o4D3, si3g = WKvO\n ajwV, skBL...
[ "0.703354", "0.6897764", "0.6807558", "0.6752578", "0.66626596", "0.66416335", "0.6594259", "0.6527434", "0.6459107", "0.6452112", "0.64303774", "0.6419601", "0.6398172", "0.6356921", "0.6349424", "0.6314981", "0.6290956", "0.6285438", "0.62820977", "0.62751853", "0.62748665"...
0.0
-1
Determines if there is any overlap for a set of spheres
def QsJG(YKHO, LTIa, r1VO): eFr6 = Ayfi.cdist(LTIa, LTIa, 'euclidean') eFr6 = eFr6[oyIN.nonzero(eFr6)] return oyIN.any(eFr6 < 2.0 * r1VO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HR2Q(FBNX, r1VO):\n Wqlh = FBNX[0]\n bskW = FBNX[1]\n bxM2 = FBNX[2]\n wQzQ = bskW - Wqlh\n uw5A = wQzQ / oyIN.linalg.norm(wQzQ)\n Zppu = bxM2 - Wqlh\n YRbF = oyIN.dot(uw5A, Zppu)\n DB4O = Zppu - YRbF * uw5A\n lPK6 = DB4O / oyIN.linalg.norm(DB4O)\n zKFi = oyIN.cross(uw5A, lPK6)\n ...
[ "0.68703675", "0.65346265", "0.640801", "0.6404149", "0.63301796", "0.62730634", "0.6253626", "0.62496436", "0.6233539", "0.6183988", "0.6179826", "0.6161296", "0.61591285", "0.6132462", "0.61284155", "0.61213976", "0.6108121", "0.6082444", "0.60719913", "0.601815", "0.599528...
0.63474834
4
Instantiates room class with correct size and seats.
def kY8R(Emd4, VqRE): with open(VqRE, 'r') as eHNT: S6S3 = eHNT.read() TquA = Emd4() TquA._update_size(S6S3) TquA._add_seats(S6S3) TquA._add_seat_specifiers(S6S3) return TquA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def koYj(YKHO):\n return uHxD()", "def a2Be(Emd4, kJWX) -> 'Room':\n Tf5Y = []\n Tf5Y.extend([FxgQ.WOLF] * kJWX['wolf_num'])\n Tf5Y.extend([FxgQ.CITIZEN] * kJWX['citizen_num'])\n Tf5Y.extend(FxgQ.from_option(kJWX['god_wolf']))\n Tf5Y.extend(FxgQ.from_option(kJWX['god_citizen']))\n return BVd...
[ "0.7112003", "0.6659768", "0.6642154", "0.6437831", "0.64253527", "0.64140606", "0.6370894", "0.6368129", "0.63565534", "0.63321203", "0.62653", "0.62168074", "0.62146676", "0.6202642", "0.6163989", "0.6158893", "0.6137022", "0.6130841", "0.61292833", "0.60971713", "0.6024043...
0.64004844
6
Checks if an string is a valid IP
def mty4(rRzo): try: GGmw.inet_aton(rRzo) except GGmw.error: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tkzz(r3gH: str) -> bool:\n try:\n SwOd.ip_address(r3gH)\n return True\n except ValueError:\n return False", "def kxWU(vIwR):\n return nMQK.is_ip(vIwR) or vted.is_ip(vIwR)", "def kxWU(BWXx):\n try:\n Iof_(BWXx)\n except ValueError:\n return False\n return...
[ "0.8432014", "0.8395799", "0.7975387", "0.790139", "0.77903074", "0.7786871", "0.77834773", "0.7704797", "0.7671193", "0.76676226", "0.7662319", "0.7658113", "0.7638045", "0.76351607", "0.7613925", "0.75110185", "0.74708486", "0.7470602", "0.74609965", "0.74030775", "0.739083...
0.7398593
20
Iterates all successor atoms connected to given atom.
def PAWI(YKHO, WhQ6): JsLg = YKHO._execution_graph.successors_iter return RCtJ(YKHO._execution_graph, {SCpB.FLOW: JsLg, SCpB.TASK: JsLg, SCpB.RETRY: JsLg}, JsLg(WhQ6))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U08W(YKHO, QTBn):\n for Cuyv in YKHO.direction:\n KCXm = QTBn.move(Cuyv)\n if KCXm:\n yield (None, KCXm)", "def qmv7(YKHO, WhQ6=None):\n if WhQ6 is None:\n return Q_CA.unique_seen(YKHO.browse_atoms_for_execute(), YKHO.browse_atoms_for_revert())\n QTBn = YKHO.get_state...
[ "0.6513067", "0.6403368", "0.636138", "0.6059985", "0.5846734", "0.58120924", "0.5788682", "0.5768992", "0.5756145", "0.56459326", "0.5607793", "0.55902", "0.55776715", "0.55636036", "0.5545623", "0.55388427", "0.5516621", "0.55050546", "0.5455694", "0.54491234", "0.5398607",...
0.73879033
0
Gets the state of a given atom (from the backend storage unit).
def ja6o(YKHO, WhQ6): return YKHO._storage.get_atom_state(WhQ6.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDzx(YKHO, idIs):\n JZXy, bv2I = YKHO._atomdetail_by_name(idIs)\n return JZXy.state", "def ja6o(YKHO, PObu):\n with YKHO._directory_lock:\n return YKHO._directory[PObu]", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return...
[ "0.69925636", "0.5954553", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.594953", "0.59...
0.8119373
0
Reroot a tree between a give node and its parent.
def R1pC(Q6kx, mWFP=None): LFlW = Wy3Z(Q6kx, Q6kx.parent) _tIi = Wy3Z(Q6kx.parent, Q6kx) LFlW.length = _tIi.length = Q6kx.length / 2 Ylbp = i8DB(mWFP, children=[LFlW, _tIi]) Ylbp.support = None return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lvjw():\n mBtZ = sIdl()\n mBtZ.create_root(0)\n mBtZ.add_child(2, move=True)\n mBtZ.add_child(13)\n mBtZ.move_to_parent()\n mBtZ.add_child(7)\n a1PO = mBtZ.build()\n assert a1PO.parent is None\n assert a1PO[0].parent == a1PO\n assert a1PO[1].parent == a1PO\n assert a1PO[0][0].p...
[ "0.68858314", "0.64718103", "0.642249", "0.6385413", "0.6381746", "0.6353983", "0.6332923", "0.62463576", "0.620016", "0.61922896", "0.61676645", "0.61606437", "0.61405426", "0.6138119", "0.61142033", "0.6039022", "0.60051936", "0.6004119", "0.60008645", "0.59573907", "0.5936...
0.62639475
7
Create an Apachestyle password hash. This is basically just a simplfified interface to apachelib.password for use in generating htaccess files. Valid ctypes are crypt, sha and md5.
def qzFd(KaGP, MkEV='crypt'): if MkEV is 'crypt': from apachelib.password import crypt_password return crypt_password(KaGP) elif MkEV is 'sha': from apachelib.password import sha_password return sha_password(KaGP) elif MkEV is 'md5': from apachelib.password import md5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a2tF(jTXt, NTfD):\n return HBct.pbkdf2_hmac('sha512', jTXt.encode(), NTfD, 100000)", "def Nvki(KaGP):\n return HBct.sha224(KaGP).hexdigest()", "def qzFd(jTXt):\n NTfD = HBct.sha256(Hy7s.urandom(60)).hexdigest().encode('ascii')\n mNdd = HBct.pbkdf2_hmac('sha512', jTXt.encode('utf-8'), NTfD, 1000...
[ "0.7003393", "0.6988002", "0.6928529", "0.6884202", "0.6884202", "0.6884202", "0.68275356", "0.682356", "0.68225414", "0.6791371", "0.67701423", "0.6767131", "0.67525303", "0.6733553", "0.6726589", "0.6706386", "0.67037225", "0.6651411", "0.6645955", "0.66450185", "0.6629888"...
0.7362848
0
Remove a SizeGroup from the project. Note that this doesn't remove the widgets from the sizegroup.
def chBo(YKHO, r1LA): YKHO.sizegroups.remove(r1LA) YKHO.emit('remove-sizegroup', r1LA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xsZs():\n _eu6 = QePW.form['_id']\n nPrm, Wxnj, Ol8d = XPxY.remove_group(_eu6)\n return ACQn(nPrm, Wxnj, Ol8d)", "def RLmF(YKHO):\n ZfUD = YKHO.groupListBox.item(YKHO.groupListBox.currentItem())\n uOe2 = ZfUD.text().ascii()\n cQ68.Sequencer().slotRemoveGlobalGroup(uOe2)", "def B8Nn(YKHO, ...
[ "0.6484616", "0.6147702", "0.601694", "0.59556997", "0.58583", "0.58347404", "0.58286095", "0.5763573", "0.5685702", "0.56625384", "0.56575876", "0.5625066", "0.56161183", "0.55508155", "0.54975885", "0.5467939", "0.5463571", "0.5419239", "0.5393362", "0.5374217", "0.53465044...
0.8322592
0
Check if there are any commands in the undo stack.
def IWfr(YKHO): return YKHO._current_undo_command != -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WQVT(YKHO):\n return YKHO.undo_stack.stack_not_empty()", "def HyYS(YKHO) -> bool:\n return len(YKHO.commands) > 0", "def VmU1(YKHO):\n return YKHO._index > 0", "def CBBD(YKHO):\n return YKHO._current_undo_command + 1 != len(YKHO._commands)", "def aPyh(YKHO):\n pass", "def dUjC(YKHO) ->...
[ "0.7691589", "0.7123444", "0.7063447", "0.7060208", "0.67944515", "0.66322464", "0.6575193", "0.6546306", "0.64904016", "0.6447479", "0.63553", "0.63228846", "0.61926156", "0.61926156", "0.6179679", "0.6153126", "0.6105479", "0.6105479", "0.60647804", "0.6051087", "0.60212696...
0.76078385
1
Check if there are any commands in the redo stack.
def CBBD(YKHO): return YKHO._current_undo_command + 1 != len(YKHO._commands)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QKNw(YKHO):\n return YKHO._index < len(YKHO._commands)", "def HyYS(YKHO) -> bool:\n return len(YKHO.commands) > 0", "def i4zw(YKHO) -> bool:\n return YKHO.position < len(YKHO.history) - 1", "def WQVT(YKHO):\n return YKHO.undo_stack.stack_not_empty()", "def IWfr(YKHO):\n return YKHO._curr...
[ "0.7488757", "0.7130528", "0.705497", "0.68767244", "0.68025815", "0.6769421", "0.67669165", "0.66729945", "0.6573221", "0.6573221", "0.65471345", "0.6460022", "0.6355706", "0.6266418", "0.6239108", "0.6239108", "0.6198674", "0.6163735", "0.6157643", "0.6149139", "0.614755", ...
0.7874611
0
Get the current redo command description.
def JCqJ(YKHO): if YKHO.has_redo(): return YKHO._commands[YKHO._current_undo_command + 1].description return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t5do(YKHO):\n return YKHO['command_name']", "def E41G(YKHO):\n if YKHO.has_undo():\n return YKHO._commands[YKHO._current_undo_command].description\n return None", "def MBNF(YKHO):\n if YKHO.has_redo():\n HCmI = YKHO._commands[YKHO._current_undo_command + 1]\n YKHO._current_...
[ "0.72621584", "0.6762427", "0.65703106", "0.6521586", "0.6405202", "0.63182056", "0.63182056", "0.63182056", "0.63182056", "0.63182056", "0.63182056", "0.63182056", "0.63182056", "0.63182056", "0.63182056", "0.63182056", "0.63182056", "0.62986314", "0.6231213", "0.6231213", "...
0.8327532
0
Remove the widget from the current selection. This might emit a selectionchanged signal.
def kSdD(YKHO, TEdI, JHA8=True): if TEdI not in YKHO._selection: return EbXT(TEdI) YKHO._selection.remove(TEdI) if JHA8: YKHO.selection_changed()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hpkw(YKHO) -> None:\n if YKHO.selected_widget is not None:\n YKHO.handles.remove_selected_widget_handles()\n YKHO.selected_widget = None\n YKHO.attr_frame.update(YKHO.selected_widget)", "def wJoB(YKHO):\n assert len(YKHO.selection) == 1\n TEdI = YKHO.selection[0]\n IZhp = Nu0...
[ "0.8118124", "0.7525685", "0.6882451", "0.66998047", "0.6698724", "0.6694516", "0.66866076", "0.6635822", "0.64801097", "0.64374864", "0.636563", "0.6328299", "0.6292681", "0.6284533", "0.6270572", "0.6257519", "0.6244877", "0.6064279", "0.6021653", "0.5965383", "0.5961764", ...
0.8474104
0
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B) // exwG * exwG + exwG - 1, exwG): if len(vC9B[YRbF:YRbF + exwG]): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.7815877", "0.77655786", "0.77556044", "0.77441615", "0.7731815", "0.77288336", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.764...
0.0
-1
Generate a distribution of value at log scale around mean_scale
def sQxW(DiJ_, PCIm): SgQ6 = epAf.log(PCIm) return DiJ_ * epAf.exp(tuKI.normalvariate(0.0, SgQ6))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RFg8(YKHO, JBMS, IR53):\n SGf8 = ht2j.randn_like(JBMS).to(YKHO.device)\n epBp = ht2j.exp(0.5 * IR53) * SGf8 + JBMS\n return epBp", "def okWM(gqRb, ODP9, P8oC=10):\n return GX82(U2Tz(gqRb, ODP9 - gqRb), base=P8oC)", "def Kg96(WKvO: JaxArray, JBMS: JaxArray, NXpY: JaxArray) -> DKWv:\n epBp = (...
[ "0.72332907", "0.70803094", "0.70667666", "0.70076627", "0.6880286", "0.680574", "0.67798686", "0.677927", "0.6757918", "0.6755539", "0.6751315", "0.67479265", "0.6732749", "0.66909933", "0.66693336", "0.6661849", "0.6650324", "0.66226184", "0.6580182", "0.6580182", "0.658018...
0.77951986
0
Checks if the given resource class attribute is a collection resource attribute.
def WCg9(Emd4, hkS8): return Emd4._attributes[hkS8].kind == hNEO.COLLECTION
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RWe9(Emd4, hkS8):\n return Emd4._attributes[hkS8].kind in [hNEO.MEMBER, hNEO.COLLECTION]", "def WCg9(YEnM):\n return type(YEnM) in fo9f", "def gYQS(YEnM):\n return (issubclass(YEnM.__class__, V28l) or Kuz2(YEnM)) and (not WCg9(YEnM))", "def r5B4(YKHO, pmON):\n return YKHO._determineItemKind(p...
[ "0.7512374", "0.6675775", "0.6403263", "0.6302588", "0.6201079", "0.61626357", "0.57151306", "0.55506986", "0.5498639", "0.5381917", "0.52743983", "0.52050835", "0.51535946", "0.5115045", "0.511316", "0.5051032", "0.50288546", "0.4991826", "0.49807593", "0.4963643", "0.495923...
0.84112686
0
Returns a dictionary mapping the attribute names of the given
def h6gc(Emd4): return Emd4._attributes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gQH2(YKHO) -> 'dict[int, str]':\n return {YRbF: hkS8.name for YRbF, hkS8 in enumerate(YKHO._attrs())}", "def bjmO(YKHO, o8Kj):\n zyX_ = {}\n for J2gq in o8Kj:\n zyX_[J2gq[0]] = J2gq[1]\n return zyX_", "def h6gc(YKHO) -> cuzp[str, str]:\n pass", "def sjXb(YKHO):\n return list((KCH...
[ "0.7952509", "0.7643066", "0.74456847", "0.7258862", "0.72117114", "0.71999085", "0.71527404", "0.7140451", "0.7120132", "0.7114459", "0.7042364", "0.70258874", "0.6943029", "0.6925513", "0.69242495", "0.6918856", "0.67364424", "0.6682014", "0.6661952", "0.6656818", "0.660492...
0.0
-1
Gets the chebi of this CompoundInfoIdentifiers.
def XpFO(YKHO): return YKHO._chebi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _fxL(YKHO):\n return YKHO.ciclo_in", "def Ut9L(YKHO) -> int:\n return YKHO._icx", "def ix1H(YKHO):\n return YKHO._cisid", "def dOOm(YKHO):\n if hasattr(YKHO, '_bic'):\n return YKHO._bic\n else:\n YKHO._bic = YKHO.k * oyIN.log(YKHO.data['n'][YKHO.data['c'] == 0].sum()) + 2 * Y...
[ "0.5982249", "0.593267", "0.58943814", "0.5860985", "0.5602366", "0.55442077", "0.5541036", "0.55300653", "0.5460631", "0.5446391", "0.5446323", "0.5442885", "0.5429051", "0.5389399", "0.53831744", "0.5371793", "0.5343235", "0.5340355", "0.53214806", "0.5311838", "0.5308601",...
0.74371856
0
Gets the mychem_info of this CompoundInfoIdentifiers.
def dkDx(YKHO): return YKHO._mychem_info
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dkDx(YKHO, dkDx):\n YKHO._mychem_info = dkDx", "def VOpp(YKHO):\n return", "def Pqid(YKHO):\n return YKHO._pubchem", "def U_fg(YKHO):\n return YKHO['cmid']", "def GpGS(YKHO):\n return", "def kcTQ(YKHO):\n return YKHO._info", "def kcTQ(YKHO):\n return YKHO.info", "def lPr1(YKH...
[ "0.61632156", "0.59161484", "0.5825422", "0.5796069", "0.5726885", "0.5686033", "0.55943227", "0.55533034", "0.5511014", "0.54930747", "0.54425555", "0.53391033", "0.533289", "0.5241448", "0.5238748", "0.52244544", "0.5199093", "0.5187534", "0.5186067", "0.51711094", "0.51625...
0.8286394
0
Create the index page.
def d6pt(QePW): Qeod = Y4Gy.objects.order_by('-pub_date')[:] rPXJ = DWkG.get_template('polls/index.html') QpfX = {'latest_question_list': Qeod} return igJ6(rPXJ.render(QpfX, QePW))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return {'page': 'index'}", "def d6pt():\n return TvZl('index.html', title='Index')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def t7ng():\n return TvZl('index.html')", "def t7ng():\n return TvZl('index.html')", "def t7ng():\n...
[ "0.782788", "0.7670835", "0.75808257", "0.7578521", "0.75700676", "0.75700676", "0.75700676", "0.75515646", "0.75515646", "0.7547543", "0.7530295", "0.7497089", "0.7488716", "0.74755496", "0.74755496", "0.74740994", "0.7471232", "0.745537", "0.7403838", "0.73960316", "0.73823...
0.0
-1
Gets the currently playing song.
def ZQs3(YKHO): return G4JS.get(f'{l4ys}/me/player/currently-playing', headers={'Accept': 'application/json', 'Authorization': f'Bearer {YKHO.access_token}'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ono7(YKHO):\n if YKHO._cur_song is None:\n YKHO.restart()\n return YKHO._cur_song", "async def get_now_playing(YKHO) -> FYrf.MediaItem:\n return await YKHO._pytheos.api.player.get_now_playing_media(YKHO.id)", "def puku(YKHO):\n if YKHO.timestamp:\n RA_F = qcWV.datetime.now() - YKH...
[ "0.7999101", "0.78060657", "0.7144427", "0.69675887", "0.69615", "0.68961376", "0.6858216", "0.6847958", "0.68394667", "0.6811677", "0.67517906", "0.6744791", "0.6736351", "0.6697418", "0.6687871", "0.6663954", "0.6644427", "0.6632569", "0.65956944", "0.65908676", "0.6575432"...
0.7350294
2
Verify a given StreamAlert Athena table exists.
def PJaC(YKHO, GTA_): tx_6, MepS = YKHO.run_athena_query(query="SHOW TABLES LIKE '{}';".format(GTA_), database=YKHO.DATABASE_STREAMALERT) if tx_6 and MepS['ResultSet']['Rows']: return True S0MI.info("The streamalert table '%s' does not exist. For alert buckets, create it with the following command: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jqye(YKHO):\n BOjq = [{'alerts': True}]\n YKHO.client.athena_client = bK5l(results=BOjq)\n Aofo = YKHO.client.check_table_exists('unit-test')\n lU6q(Aofo)\n qc17 = 'unit-testing/{}'.format(qcWV.now().strftime('%Y/%m/%d'))\n SjMt(YKHO.client.athena_results_key, qc17)", "def kGsa(YKHO, Rxj2):...
[ "0.785302", "0.71963096", "0.71212554", "0.69332486", "0.6705361", "0.6654779", "0.661809", "0.6613061", "0.6593077", "0.65154326", "0.6503146", "0.6500852", "0.648272", "0.6476876", "0.6452689", "0.6439928", "0.6413171", "0.63934433", "0.6374866", "0.63568383", "0.6284899", ...
0.83428353
0
Get the SQS URL for Athena bucket s3 notifications
def eCGt(YKHO): zn0c = YKHO.config['global']['account']['region'] YKHO.sqs_client = iVGz.client('sqs', region_name=zn0c) YKHO.athena_sqs_url = YKHO.sqs_client.list_queues(QueueNamePrefix=YKHO.QUEUENAME)['QueueUrls'][0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BejY(YoW8):\n return 'http://%s.s3-website.%s.amazonaws.com/%s' % (cuHu, gQ2N['region_name'], YoW8)", "def BejY(YKHO, WE7e=None, zn0c=None):\n if WE7e is None:\n WE7e = YKHO.AWS_S3_BUCKET\n if zn0c is None:\n zn0c = YKHO.AWS_S3_REGION\n return 'https://{}.s3.{}.amazonaws.com/'.forma...
[ "0.7134451", "0.6746839", "0.67014647", "0.66929257", "0.6610239", "0.6574489", "0.64580905", "0.6392141", "0.6265416", "0.62616575", "0.6225564", "0.6173248", "0.6164725", "0.5975101", "0.59089816", "0.59063363", "0.59035134", "0.58641565", "0.5857158", "0.5850068", "0.58500...
0.0
-1
Test default product price being 10.
def MBCD(YKHO): QRFO = msfn('Test Product') YKHO.assertEqual(QRFO.price, 10)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MBCD(YKHO):\n QRFO = msfn('Test Product')\n YKHO.assertEqual(QRFO.price, 10)", "def MBCD(YKHO):\n QRFO = Lx3t('Test Product')\n YKHO.assertEqual(QRFO.price, 10)\n YKHO.assertEqual(QRFO.weight, 20)", "def MBCD(YKHO):\n QRFO = msfn('Test Product')\n YKHO.assertEqual(QRFO.price, 10)\n ...
[ "0.87333673", "0.8610413", "0.8580199", "0.7287374", "0.72686666", "0.72686666", "0.72686666", "0.72686666", "0.72686666", "0.72686666", "0.7263497", "0.717852", "0.6858057", "0.6813622", "0.67408824", "0.67408824", "0.6709257", "0.6688696", "0.66599596", "0.6654696", "0.6654...
0.8738257
7
Return the sequence of ngrams from the source iterator.
def kiTG(s2mk, exwG=2): pCSA = zip(*(uOgj(uOe2, or8S, None) for or8S, uOe2 in enumerate(y54_(s2mk, exwG)))) return pCSA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n return YKHO.ngrams()", "def Vs4Q(YKHO):\n return YKHO.root.ngrams()", "def cpbi(YKHO, aWuw):\n aWuw = YKHO.prefix + aWuw + YKHO.suffix\n for YRbF, tvqc in enumerate(aWuw[YKHO.n:], YKHO.n):\n yield (tvqc, aWuw[YRbF - YKHO.n:YRbF])", "def RisN(Q6uT, exwG):\n return", "...
[ "0.7459115", "0.73518085", "0.7348717", "0.69573367", "0.6782112", "0.66389537", "0.65920067", "0.64288414", "0.6400771", "0.6382921", "0.63693655", "0.63583654", "0.6291355", "0.62850034", "0.62539387", "0.62292004", "0.6211746", "0.6167697", "0.608409", "0.60630494", "0.605...
0.578046
32
Gets the color of this Border.
def qfpW(YKHO): return YKHO.container['color']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def usBB(YKHO):\n return YKHO._borderColor", "def xxp5(YKHO) -> int:\n return YKHO._border_color", "def xxp5(YKHO):\n return YKHO._border_rgba", "def xxp5(YKHO):\n if YKHO.has_border:\n return HRmL(YKHO._border_actor.GetProperty().GetColor())\n return None", "def PICn(YKHO):\n retu...
[ "0.838778", "0.8312679", "0.8244084", "0.8053312", "0.77918226", "0.7720178", "0.7720178", "0.76940954", "0.765093", "0.765093", "0.765093", "0.7647774", "0.7635175", "0.7628017", "0.7575632", "0.7514103", "0.746279", "0.7417188", "0.7417188", "0.7391515", "0.7367226", "0.7...
0.6883954
30
Gets the border_type of this Border.
def ou3g(YKHO): return YKHO.container['border_type']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jpgM(YKHO):\n ou3g = None\n if YKHO.radio_button.isChecked():\n ou3g = XC5k.BORDER_CONSTANT\n elif YKHO.radio_button2.isChecked():\n ou3g = XC5k.BORDER_REPLICATE\n elif YKHO.radio_button3.isChecked():\n ou3g = XC5k.BORDER_REFLECT\n print(f'Border type {ou3g}')\n return ou...
[ "0.74442786", "0.6669417", "0.65848345", "0.6561529", "0.65112704", "0.64829284", "0.64829284", "0.6384549", "0.62086326", "0.61164486", "0.6045356", "0.599585", "0.5933394", "0.5914833", "0.58138937", "0.58138937", "0.58138937", "0.5793292", "0.56463", "0.5645189", "0.561799...
0.86150444
0
Sets the border_type of this Border.
def ou3g(YKHO, ou3g): YKHO.container['border_type'] = ou3g
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ou3g(YKHO):\n return YKHO.container['border_type']", "def dTC4(YKHO, TVTK):\n YKHO._border.set_border_width(TVTK)\n YKHO._border_width = TVTK", "def Xo8l(YKHO, qfpW: tuple=(0, 0, 0, 255), TVTK: int=1):\n YKHO.border_color = qfpW\n YKHO.border = TVTK", "def y5RC(h0eg):\n vYXJ = xuBC.cfun...
[ "0.6473928", "0.59496564", "0.5891179", "0.57286805", "0.5655116", "0.5600376", "0.5526804", "0.5526804", "0.5490651", "0.54879457", "0.54860646", "0.5462281", "0.54602176", "0.5450605", "0.54421926", "0.5432004", "0.5392566", "0.5318965", "0.52812064", "0.5277778", "0.517013...
0.850068
0
Gets the line_style of this Border.
def eu60(YKHO): return YKHO.container['line_style']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vb6o(YKHO):\n return YKHO._line_styles", "def eu60(YKHO, eu60=None):\n if eu60 is None:\n return YKHO._line_style\n else:\n if not isinstance(eu60, str):\n raise TypeError(\"Line style must be str, not '%s'\" % eu60)\n if eu60 not in c30q:\n raise ValueErro...
[ "0.75714827", "0.7322469", "0.67106134", "0.6676015", "0.6461091", "0.6356543", "0.634824", "0.6169874", "0.609533", "0.60761803", "0.60250807", "0.60250807", "0.593056", "0.59279037", "0.5899835", "0.58462214", "0.58462214", "0.58359545", "0.5823512", "0.5808883", "0.5773731...
0.8360202
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, vQcQ): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
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 if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8456063", "0.83918154", "0.8144437", "0.8140196", "0.8132038", "0.8093834", "0.80918837", "0.80918837", "0.80918837", "0.80852824", "0.80852824", "0.807626", "0.807626", "0.80657643" ]
0.0
-1
Returns a function that returns True when a number, x, is between the min and the max, otherwise False
def xac_(min, max): def JfyU(WKvO): return min <= WKvO <= max return JfyU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xac_(WKvO, wNuL, Mlb1):\n return max(wNuL, Mlb1) > WKvO > min(wNuL, Mlb1)", "def X7zS(WKvO, FfQu, wghQ):\n if WKvO < FfQu:\n WKvO = FfQu\n elif WKvO > wghQ:\n WKvO = wghQ\n return WKvO", "def qnjG(wEf2, XLKX, J4g0):\n return wEf2 >= XLKX and wEf2 <= J4g0", "def sLy2(WKvO, jzd...
[ "0.8178", "0.7697419", "0.7613802", "0.7596197", "0.7559074", "0.74551415", "0.74369055", "0.7242014", "0.7141678", "0.71027523", "0.7044552", "0.70325136", "0.70203424", "0.6979103", "0.6938201", "0.6919412", "0.68297416", "0.6801495", "0.67799956", "0.6727597", "0.6726335",...
0.8035443
1
Returns True if all the characters in the string are comprised of digits [09], pound ( ) or star ( ), otherwise False
def XYXe(vIwR): return all([hcXw.isdigit() or hcXw in ('#', '*') for hcXw in vIwR])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O4FR(vIwR):\n for sZqf in vIwR:\n if sZqf in '$#@':\n return True\n print('Your password needs to contain one of those symbols: $#@')\n return False", "def tIyV(vIwR):\n for hcXw in vIwR:\n rbrL = ord(hcXw)\n if rbrL < 48 or rbrL > 57:\n return False\n ...
[ "0.71644783", "0.7070652", "0.70606464", "0.6980603", "0.69447327", "0.69088006", "0.6894829", "0.6857313", "0.674419", "0.6633162", "0.6624315", "0.6602388", "0.6592311", "0.6587429", "0.65425277", "0.65224105", "0.65126234", "0.6506785", "0.6436171", "0.6428618", "0.6398788...
0.8349278
0
Returns a numpy 2d array representing the ice to contour for the given config.
def Cs6h(GPtr, Ne2k=True, UzPk=False): if GPtr.get('daily', False) and GPtr.get('median', False): mcyV, wcVJ = GPtr['range'] PwnA = Wswm.extent_daily_median(GPtr['hemi'], mcyV, wcVJ, dayofyear=GPtr['dayofyear'], search_paths=GPtr['search_paths'], extent_threshold=GPtr['extent_threshold'], allow_empt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EBgE(YKHO, iLki, Ylkb):\n m_2b = []\n for rdlD in range(Ylkb):\n u35d = []\n for fvDH in range(Ylkb):\n if XC5k.pointPolygonTest(iLki, (rdlD, fvDH), True) > 0:\n u35d.append([rdlD, fvDH])\n if len(u35d):\n m_2b.append(u35d)\n return m_2b", "d...
[ "0.5621567", "0.56097174", "0.5550245", "0.5413701", "0.5399551", "0.5340533", "0.5315892", "0.5315892", "0.528273", "0.52460283", "0.5230506", "0.5118397", "0.5104906", "0.5088502", "0.507436", "0.5066148", "0.5063148", "0.5054553", "0.49497315", "0.49435", "0.4926403", "0...
0.0
-1
Convert landlike values to land. Returns a copy of the given data where any gridcells with a value in land_like_vals is replaced with land_val. For drawing monthly polylines, we treat land and coast as the same thing.
def ZoeF(nPrm, zOls=sGrS, gi95=[kA5X]): OOtL = oyIN.in1d(nPrm, gi95).reshape(nPrm.shape) return oyIN.where(OOtL, zOls, nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sStl(YKHO, uajt=None):\n if uajt is not None:\n for VmPb in YKHO.cells.keys():\n YKHO.cells[VmPb] = ' '\n if ut3e.is_land(xpt=YKHO.col_to_lon(VmPb[1]), ypt=YKHO.row_to_lat(VmPb[0])):\n YKHO.cells[VmPb] = YKHO.character_picker.random_character(script=uajt)\n ...
[ "0.5335857", "0.53330266", "0.51588714", "0.5143716", "0.48970535", "0.4872766", "0.4808741", "0.47741193", "0.47735545", "0.47683516", "0.47528407", "0.46907613", "0.46677044", "0.46574843", "0.4632379", "0.46047768", "0.4581934", "0.45711994", "0.4569815", "0.45351446", "0....
0.7997546
0
This function returns the nth value in a sum series. 'n' being it's input integer. 'x' being it's first value and 'y' it's second.
def bjoq(exwG, WKvO, LVAh): if exwG == 0: return WKvO elif exwG == 1: return LVAh else: return bjoq(exwG - 1, WKvO, LVAh) + bjoq(exwG - 2, WKvO, LVAh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q3d3(exwG, WKvO=0, LVAh=1):\n yv6U = []\n for YRbF in range(exwG):\n if YRbF == 0:\n yv6U.append(WKvO)\n elif YRbF == 1:\n yv6U.append(LVAh)\n elif YRbF > 1:\n yv6U.append(yv6U[YRbF - 2] + yv6U[YRbF - 1])\n _J4B = yv6U[YRbF]\n return _J4B", ...
[ "0.8265045", "0.8003039", "0.79264474", "0.74925494", "0.74632436", "0.73635286", "0.73578066", "0.72145236", "0.71769965", "0.71584576", "0.69851184", "0.6982123", "0.69547695", "0.6901262", "0.68534535", "0.6816009", "0.67345506", "0.65764654", "0.6432735", "0.63214874", "0...
0.7552295
3
Serializes this instance to a JSON string.
def IZ3T(YKHO): return qQXR.dumps(nf7Q.asdict(YKHO), indent=2, sort_keys=True) + '\n'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)", "def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_d...
[ "0.88999254", "0.8837045", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.87147456", "0.8637419", "0.8619328", "0.8598524", "0.8572258", "0.8568808", "0.8568808", "0.8446259", "0.8446259", "0.8446259", ...
0.0
-1
Serializes this instance to a Python dictionary.
def MNRr(YKHO): hlel = jth9.deepcopy(YKHO.__dict__) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO):\n return qyWT(YKHO)", "def MNRr(YKHO):\n oAiD = YKHO._serializer().dump(YKHO)\n return oAiD.data", "def MNRr(YKHO):\n return MNRr(YKHO.__dict__)", "def MNRr(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO):\n return YKHO.__dict...
[ "0.8421195", "0.84043926", "0.8362277", "0.83090377", "0.82829785", "0.82829785", "0.82829785", "0.82829785", "0.82829785", "0.82829785", "0.8236021", "0.82179517", "0.82133806", "0.82032114", "0.8181652", "0.8179579", "0.81732064", "0.81534773", "0.8118078", "0.8090142", "0....
0.0
-1
Serializes this instance to a JSON string.
def IZ3T(YKHO): return qQXR.dumps(YKHO.to_dict(), indent=2, sort_keys=True) + '\n'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)", "def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_d...
[ "0.88999254", "0.8837045", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.87147456", "0.8637419", "0.8619328", "0.8598524", "0.8572258", "0.8568808", "0.8568808", "0.8446259", "0.8446259", "0.8446259", ...
0.0
-1
Gets a collection of `InputExample`s for the train set.
def rNg5(YKHO, h_xa): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vGUt(YKHO, PU1l):\n return PU1l", "def rNg5(YKHO):\n raise NotImplementedError()", "def rNg5(YKHO, eZ_W):\n raise NotImplementedError()", "def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):\n Artt = '%s-%s' % (TG_K, YRbF)\n l5Ny = LihS[0]\n UX...
[ "0.73499966", "0.7173421", "0.7126833", "0.65602446", "0.64204013", "0.64052176", "0.63422555", "0.6290186", "0.6282746", "0.625262", "0.62499267", "0.62466323", "0.62466323", "0.62466323", "0.62466323", "0.62466323", "0.62466323", "0.62466323", "0.62466323", "0.62466323", "0...
0.6192528
35
Gets a collection of `InputExample`s for the dev set.
def JdXm(YKHO, h_xa): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JdXm(YKHO, eZ_W):\n raise NotImplementedError()", "def vGUt(YKHO, PU1l):\n return PU1l", "def X2wT(YKHO, sEAN):\n return YKHO.fam.c_get_examples(YKHO, sEAN)", "def JdXm(YKHO):\n raise NotImplementedError()", "def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):...
[ "0.6808781", "0.65892154", "0.65570337", "0.6550629", "0.64273113", "0.63810956", "0.62559575", "0.6191911", "0.6113954", "0.60946536", "0.6055742", "0.60524946", "0.59929484", "0.59929484", "0.59929484", "0.59929484", "0.59929484", "0.59929484", "0.59929484", "0.59929484", "...
0.5919036
30
Returns True if the path is valid from the current node position or False otherwise
def vRlk(YKHO, pmON): nK1k = [0 for YRbF in range(len(YKHO.node_names))] KLQp = oyIN.matrix(nK1k).T AJEJ = oyIN.matrix(YKHO.state).T for d6pt, D70y in enumerate(pmON): P97p = YKHO.edges.index(D70y) cUvr = YKHO.edge_matrices[P97p] AJEJ = cUvr * AJEJ if AJEJ.any() == KLQp.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zwDd(YKHO, pmON: []) -> bool:\n if not pmON:\n return True\n if len(pmON) == 1:\n return YKHO.contains_vertex(pmON[0])\n YRbF = 0\n r845 = 1\n while r845 < len(pmON):\n if pmON[r845] not in YKHO.adj_list[pmON[YRbF]]:\n return False\n else:\n YRbF...
[ "0.73826545", "0.72639185", "0.7195065", "0.70296586", "0.69636863", "0.67928785", "0.6786323", "0.66549635", "0.6625065", "0.66118425", "0.65545315", "0.65288675", "0.6511632", "0.6454299", "0.64465696", "0.6443826", "0.6439577", "0.6435393", "0.6382641", "0.6379812", "0.637...
0.76453304
0
Checks that data is not changed for the first closed path found. Returns True if data==data after moving around the closed path, False otherwise. Starting point is current_node
def DotB(YKHO): h3qM = YKHO.data pmON = YKHO.get_path(YKHO.current_node, YKHO.current_node) if YKHO.is_path_valid(pmON): pass else: print('Path is not valid, graph definition is broken') raise yvT9 = h3qM == YKHO.data uED7 = [YKHO.current_node, pmON, yvT9] print('The ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eozd(YKHO):\n yvY1 = YKHO._get_recurrence_graph()\n q9WW = next(jHsn.strongly_connected_components(yvY1))\n gJik = {abs(WKvO) for WKvO in q9WW}\n return gJik == set(range(1, YKHO.num_branches() + 1))", "def Ks25(YKHO, nGHW: 'StateNode') -> bool:\n if YKHO == nGHW:\n return True\n if ...
[ "0.60923976", "0.6071266", "0.6061803", "0.6057873", "0.60539556", "0.60369587", "0.5970202", "0.5904765", "0.58929324", "0.58816034", "0.58525264", "0.58504", "0.584496", "0.583019", "0.583019", "0.583019", "0.58099115", "0.580115", "0.5798618", "0.5791039", "0.5787569", "...
0.7567156
0
Given a customer id and a date message. Return the message, the main feeling and the emotions names and rates.
def idMb(r2U1: int, pXn1: datetime.datetime): wxqk.execute(f"SELECT Emotion.nom_emotion, Emotion.rate_emotion \n FROM User LEFT JOIN Daily_message on Daily_message.id_user = User.id_user \n LEFT JOIN Emotion on Emotion.id_message = Daily_message.id_message \n ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def read_messages(r2U1: int, _c1T: Optional[datetime.datetime]=None):\n if _c1T:\n wxqk.execute(f\"SELECT * FROM Daily_message \\n WHERE id_user = {r2U1}\\n AND date_message = '{_c1T}'\")\n else:\n wxqk.execute(f'SELECT * FROM Daily_me...
[ "0.54106104", "0.53628945", "0.52908003", "0.528489", "0.51975524", "0.5157272", "0.51061064", "0.50011015", "0.49999964", "0.4997713", "0.49843815", "0.49834582", "0.4961871", "0.49301404", "0.4924637", "0.49158132", "0.49133378", "0.48975998", "0.487003", "0.48600465", "0.4...
0.63624537
0
Checks to see if a user has this message.
def bn5W(YKHO, bseI): yEHD = LnrL(bseI) yEHD = [Ol8d[RC5h].id for Ol8d in yEHD] if YKHO.message.id in yEHD: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYM_(YKHO, CBIr):\n return False", "def BYM_(YKHO):\n return len(YKHO.a_token) > 0 and len(YKHO.a_secret) > 0", "def tKsZ(YKHO, id):\n try:\n YKHO.getUser(id)\n return True\n except KeyError:\n return False", "def pHvU(OaeV: Context, YwkQ: TextChannel) -> bool:\n for m...
[ "0.7716402", "0.71434", "0.70900714", "0.69371533", "0.69144", "0.6892923", "0.6861886", "0.6846339", "0.68240535", "0.68146676", "0.6808213", "0.67256224", "0.66321266", "0.66079754", "0.65523326", "0.65482193", "0.6526536", "0.6512283", "0.65047", "0.64958555", "0.6440854",...
0.6717808
12
Compute a columnwise two point derivative
def QRjM(aYtW): eUWA = aYtW.diff(2).shift(-1) Jw7X = rLdf.Series(aYtW.index).diff(2).shift(-1) return eUWA.apply(lambda WKvO: WKvO.values / Jw7X.values, axis=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fi7w(irsQ, AYir):\n exwG = irsQ.shape[0]\n E3D9 = oyIN.zeros([exwG, exwG])\n Csk6 = oyIN.zeros([exwG, 1])\n for YRbF in oyIN.arange(1, exwG - 1):\n E3D9[YRbF, YRbF - 1] = (irsQ[YRbF] - irsQ[YRbF - 1]) / 6.0\n E3D9[YRbF, YRbF] = (irsQ[YRbF + 1] - irsQ[YRbF - 1]) / 3.0\n E3D9[YRb...
[ "0.71178526", "0.69272935", "0.69237393", "0.67812395", "0.6621284", "0.66185516", "0.6533492", "0.6533492", "0.6533375", "0.6525556", "0.65158296", "0.65038645", "0.6500095", "0.64921296", "0.6462247", "0.6435429", "0.64307964", "0.64096475", "0.6405511", "0.6396413", "0.638...
0.67631936
4
Initializes all the attributes of a Neural Network object
def FIMM(YKHO, YYlS): YKHO.biases = [YKHO.randomArray(YRbF, 1) for YRbF in YYlS[1:]] YKHO.netSize = YYlS YKHO.weights = [YKHO.randomArray(YRbF, r845) for YRbF, r845 in zip(YYlS[:-1], YYlS[1:])]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.topology = None\n YKHO.learningRate = None\n YKHO.momentum = None\n YKHO.name = None\n YKHO.size = None", "def FIMM(YKHO, Zt8E, yB6h=None, MJAh=None, **B2fa):\n assert len(Zt8E) > 1, 'At least one input layer and one output layer is needed'\n uPrp = IT1r.getSizeOfWeigh...
[ "0.757918", "0.7466897", "0.7454284", "0.7448913", "0.74208635", "0.7308732", "0.72702533", "0.7266554", "0.7265684", "0.7220891", "0.7167719", "0.7119762", "0.7110364", "0.7094354", "0.70691323", "0.7068245", "0.7055415", "0.70379025", "0.7007916", "0.69958955", "0.69809294"...
0.7181007
10
Creates an array of zeroes with specified dimensions
def qw7D(YKHO, u54L, TVTK): return [[0 for YRbF in range(TVTK)] for r845 in range(u54L)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bzSx(tpio):\n return (oyIN.zeros((tpio, 1)), 0.0)", "def VNqG(tpio):\n return oyIN.zeros(tpio, dtype='uint8')", "def II46(ROpF):\n return [[0 for LVAh in range(ROpF[1])] for WKvO in range(ROpF[0])]", "def VNqG(ROpF, yDqo=None):\n return vBWh(ROpF, 0, yDqo)", "def VNqG(Emd4, Htse, KpGw):\n ...
[ "0.80720776", "0.79910487", "0.7800127", "0.7705183", "0.76541394", "0.76202357", "0.74942774", "0.7424594", "0.7395434", "0.73787457", "0.7378386", "0.7369177", "0.73355037", "0.7305291", "0.72439414", "0.72324413", "0.7221382", "0.7198468", "0.71924585", "0.7170428", "0.717...
0.0
-1
This simply returns the value of our sigmoid function
def C6qs(YKHO, WKvO): uBFe = len(WKvO) HpHR = len(WKvO[0]) return [[YKHO.sigmoid(WKvO[r845][YRbF]) for YRbF in range(HpHR)] for r845 in range(uBFe)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1Hg(WKvO):\n return 1 / (1 + r8hN.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + epAf.exp(-WKvO))", "def m1Hg(BWXx):\n return 1.0 / (1.0 + epAf.exp(-BWXx))", "def m1Hg(WKvO):\n ret...
[ "0.85256183", "0.84686184", "0.84686184", "0.84682834", "0.84524685", "0.8413482", "0.8404144", "0.8395439", "0.83948785", "0.83915544", "0.83914274", "0.83914274", "0.83914274", "0.83914274", "0.83914274", "0.83914274", "0.83835536", "0.83654255", "0.8361889", "0.8361889", "...
0.0
-1
Compares the quota usage in the provided AbsoluteLimits.
def hiti(YKHO, L14x, ss5A, RgEL=True): YKHO.assertEqual(L14x['totalInstancesUsed'], ss5A['totalInstancesUsed'], 'totalInstancesUsed does not match') YKHO.assertEqual(L14x['totalCoresUsed'], ss5A['totalCoresUsed'], 'totalCoresUsed does not match') if RgEL: YKHO.assertNotEqual(L14x['totalRAMUsed'], ss...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aLT1(YKHO, G4JS: Sequence[RequestedQuota], E3oo: Optional[Timestamp]=None) -> AzJI[umfa, bdIy[_oRD]]:\n raise NotImplementedError()", "def Zcf_(YKHO, Elif):\n lmk2 = YKHO._numerator * Elif.denominator()\n B9EC = Elif.numerator() * YKHO._denominator\n return lmk2 >= B9EC", "def qk7K(Emd4, lzqS, ...
[ "0.5585655", "0.55408514", "0.54217476", "0.52968216", "0.52919036", "0.528751", "0.52812916", "0.52579385", "0.5187048", "0.5157344", "0.5156284", "0.51517034", "0.51237553", "0.51236606", "0.5121862", "0.51024026", "0.50794137", "0.5051632", "0.5039611", "0.5030834", "0.502...
0.605653
0
Compute the 2d planview projection of area of polygon. The last point should not be repeated. Points are represented as (x, y, z) triples.
def W2cR(j5tF): return Fw8z.gmPolygonArea(j5tF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZrLT(cyvo):\n m07n = cyvo.vertices\n if len(m07n) < 3:\n return 0.0\n A3mO = m07n[:, 1] - m07n[:, 1].mean()\n ijL8 = m07n[:, 0] - m07n[:, 0].mean()\n i0Uw = A3mO[-1] * ijL8[0] - ijL8[-1] * A3mO[0]\n stU2 = oyIN.dot(A3mO[:-1], ijL8[1:]) - oyIN.dot(ijL8[:-1], A3mO[1:])\n return 0.5 * ...
[ "0.6278647", "0.62592435", "0.615552", "0.599304", "0.59736884", "0.5937404", "0.5907365", "0.59035474", "0.58873886", "0.58869046", "0.58161867", "0.5787581", "0.57770455", "0.5761289", "0.57594526", "0.57417035", "0.57195246", "0.5694026", "0.56449425", "0.56354564", "0.563...
0.64978117
0
Determines whether a point pt is on the line defined by p1 and p2. If p1 and p2 are equal within tol, this function may fail. Points are represented as (x, y, z) triples.
def AQFv(EBgd, HpuQ, Xf84, yJiH=None): if yJiH is None: yJiH = Qpeu() return Fw8z.gmOnLineWithTol(EBgd, HpuQ, Xf84, yJiH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aJSs(AU8u, zFiD, yJiH=0.0):\n Csk6 = PZDs(AU8u, zFiD)\n return Csk6 <= yJiH", "def tQzj(y4fz, EBgd, HpuQ, gwAu=0.01):\n y4fz, EBgd, HpuQ = map(lambda SjLr: oyIN.array(SjLr[:2]), [y4fz, EBgd, HpuQ])\n EBgd -= y4fz\n HpuQ -= y4fz\n return abs(EBgd[0] / EBgd[1] - HpuQ[0] / HpuQ[1]) < gwAu", ...
[ "0.76189196", "0.73657006", "0.72076005", "0.70648324", "0.70077527", "0.69340825", "0.6926088", "0.6922854", "0.685894", "0.6720597", "0.6690552", "0.6665522", "0.66225433", "0.6565142", "0.6523567", "0.6510564", "0.6391002", "0.6385", "0.6311969", "0.62888914", "0.6280078",...
0.6941079
5
Tests whether a point is on the same side of a line as a reference point, or on the line itself. Assumes reference_point is not on the line (within tol). Points are represented as (x, y, z) triples.
def cO7S(EBgd, HpuQ, kTpI, Xf84, yJiH=None): if yJiH is None: yJiH = Qpeu() return Fw8z.gmInsideOrOnLineWithTol(EBgd, HpuQ, kTpI, Xf84, yJiH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aJSs(AU8u, zFiD, yJiH=0.0):\n Csk6 = PZDs(AU8u, zFiD)\n return Csk6 <= yJiH", "def nbg0(X3qZ, ZYCo, kTpI, Xf84, yJiH=None):\n if yJiH is None:\n yJiH = Qpeu()\n return Fw8z.gmInsideOfLineWithTol(X3qZ, ZYCo, kTpI, Xf84, yJiH)", "def tQzj(KwKv, YBrO, Qz2I):\n return (YBrO[0] - KwKv[0]) ...
[ "0.71606946", "0.6793397", "0.64484173", "0.63999796", "0.6361008", "0.62922925", "0.6263737", "0.62290245", "0.62049687", "0.6154206", "0.6149698", "0.6100681", "0.6071826", "0.5998668", "0.5986444", "0.5958222", "0.5956532", "0.59325963", "0.5873165", "0.58472866", "0.58096...
0.680826
1
Tests whether a point is on the same side of a line as another point. Assumes reference_point is not on the line (within tol). Points are represented as (x, y, z) triples.
def nbg0(X3qZ, ZYCo, kTpI, Xf84, yJiH=None): if yJiH is None: yJiH = Qpeu() return Fw8z.gmInsideOfLineWithTol(X3qZ, ZYCo, kTpI, Xf84, yJiH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aJSs(AU8u, zFiD, yJiH=0.0):\n Csk6 = PZDs(AU8u, zFiD)\n return Csk6 <= yJiH", "def cO7S(EBgd, HpuQ, kTpI, Xf84, yJiH=None):\n if yJiH is None:\n yJiH = Qpeu()\n return Fw8z.gmInsideOrOnLineWithTol(EBgd, HpuQ, kTpI, Xf84, yJiH)", "def tQzj(KwKv, YBrO, Qz2I):\n return (YBrO[0] - KwKv[0]...
[ "0.72202367", "0.6812142", "0.6577592", "0.655708", "0.64811605", "0.6476953", "0.6416038", "0.6395197", "0.63682914", "0.6231086", "0.6215987", "0.62051535", "0.61671454", "0.6143577", "0.6141982", "0.6125084", "0.61095905", "0.60841167", "0.60741806", "0.60181713", "0.60052...
0.6856059
1
Tests whether two points are equal to within tolerance. Points are represented as (x, y, z) triples.
def u8m5(EBgd, HpuQ, yJiH=None): if yJiH is None: yJiH = Qpeu() return Fw8z.gmEqualPointsXY(EBgd, HpuQ, yJiH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tbdk(WKvO, LVAh, D1sU=1e-15):\n return abs(WKvO - LVAh) < D1sU", "def Tbdk(WKvO, LVAh, D1sU=1e-06):\n return abs(WKvO - LVAh) < D1sU", "def pIzM(WKvO, LVAh, _hZ2):\n if -_hZ2 <= WKvO - LVAh <= _hZ2:\n return True\n if -_hZ2 <= WKvO <= _hZ2 or -_hZ2 <= LVAh <= _hZ2:\n return False\...
[ "0.67942303", "0.6775216", "0.6666116", "0.6657528", "0.6634444", "0.658396", "0.65597373", "0.65597373", "0.6543186", "0.65058345", "0.64889735", "0.6488207", "0.64641845", "0.6444757", "0.64233494", "0.6420534", "0.64170897", "0.637392", "0.63714737", "0.6243911", "0.621862...
0.6884697
0
Tests whether pt is on the line segment defined by pt1 and pt2. Points are represented as (x, y, z) triples.
def nYkc(X3qZ, ZYCo, Xf84, yJiH=None): if yJiH is None: yJiH = Qpeu() return Fw8z.gmOnLineAndBetweenEndpointsWithTol(X3qZ, ZYCo, Xf84, yJiH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reUi(i4Va, rUTj, AU8u):\n r8hN, Fg_i, Csk6 = Fw8z.lineSpec(i4Va, rUTj)\n if Csk6 == -1:\n if i4Va == AU8u:\n return True\n else:\n return False\n elif r8hN == True:\n if AU8u[0] == Fg_i and (i4Va[1] <= AU8u[1] and AU8u[1] <= rUTj[1] or (rUTj[1] <= AU8u[1] and...
[ "0.73231405", "0.7282912", "0.723982", "0.7223311", "0.7108988", "0.70953757", "0.70592695", "0.7058627", "0.7003406", "0.69622123", "0.69482034", "0.6882417", "0.68217635", "0.68212765", "0.68096787", "0.68079436", "0.6770083", "0.67513764", "0.6739109", "0.6691163", "0.6643...
0.7282344
2
Computes the cross product of two points. Points are represented as (x, y, z) triples.
def dhE_(hLRM, jzdc, Fg_i): return Fw8z.gmCross2D(hLRM, jzdc, Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wnaF(hQHm, jlSq):\n return _J6W.CG3dVector(hQHm[1] * jlSq[2] - jlSq[1] * hQHm[2], hQHm[2] * jlSq[0] - jlSq[2] * hQHm[0], hQHm[0] * jlSq[1] - jlSq[0] * hQHm[1])", "def wnaF(y4fz, EBgd, HpuQ):\n return (EBgd[0] - y4fz[0]) * (HpuQ[1] - y4fz[1]) - (HpuQ[0] - y4fz[0]) * (EBgd[1] - y4fz[1])", "def XHzM(YKH...
[ "0.768028", "0.7640519", "0.7530705", "0.7495768", "0.7412133", "0.7390931", "0.73895144", "0.73361033", "0.7324387", "0.7308877", "0.72916734", "0.72532153", "0.72347593", "0.72310704", "0.7201172", "0.7178708", "0.7161169", "0.7138592", "0.7103409", "0.7099777", "0.70903033...
0.6257996
46
Get the closest distance from pt to the line defined by pt1 and pt2. Unlike distance_to_line_segment_2d, points outside the line segment defined by pt1 and pt2 will be considered when finding the closest distance to pt. Points are represented as (x, y, z) triples.
def CneI(X3qZ, ZYCo, Xf84, yJiH=None): if yJiH is None: yJiH = Qpeu() return Fw8z.gm2DDistanceToLineWithTol(X3qZ, ZYCo, Xf84, yJiH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uwRh(X3qZ, ZYCo, Xf84, yJiH=None):\n if yJiH is None:\n yJiH = Qpeu()\n return Fw8z.gm2DDistanceToLineSegmentWithTol(X3qZ, ZYCo, Xf84, yJiH)", "def n7_e(X3qZ, ZYCo, Xf84, yJiH=None):\n if yJiH is None:\n yJiH = Qpeu()\n return Fw8z.gmFindClosestPtOnSegment(X3qZ, ZYCo, Xf84, yJiH)", ...
[ "0.7893652", "0.76820993", "0.767087", "0.75213945", "0.74758786", "0.7378801", "0.7350677", "0.7307005", "0.7270144", "0.7205404", "0.7203808", "0.71905786", "0.7172129", "0.7111912", "0.709697", "0.7088243", "0.7072708", "0.7059955", "0.7057612", "0.70487237", "0.7031816", ...
0.79312575
0
Set the querystring for this query
def n7FZ(YKHO, xDcj): return YKHO.set_param('query', xDcj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ovbf(YKHO):\n if YKHO.search_by == 'by-postal-code':\n YKHO.querystring = {'postalCode': YKHO.search_input, 'countryCode': 'US'}\n else:\n YKHO.querystring = {'city': YKHO.search_input}", "def q7Ld(bD7m, _N6A, vRBi):\n ht58, RYr6, pmON, R7S5, vBtp = NoPH(bD7m)\n o2VW = _Ibt(R7S5)\n ...
[ "0.7069244", "0.63677895", "0.6338271", "0.630879", "0.6301944", "0.6274575", "0.6196228", "0.6181019", "0.61202955", "0.60866344", "0.60465926", "0.60445064", "0.59915936", "0.59330064", "0.5908653", "0.5881391", "0.58460206", "0.579809", "0.5794021", "0.5791899", "0.5666475...
0.6850091
1