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 |
|---|---|---|---|---|---|---|
Get the referenced defined type (from schema). | def sQeM(YKHO):
if YKHO.is_ref:
return YKHO.schema.get_defined_type(YKHO._raw_value)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pRAU(wp4N, KW9X, fawc):\n Im_q = pjHr(wp4N, KW9X, fawc)\n C3FZ = None\n for type in Im_q:\n if type.name == KW9X and type.source == wp4N.fileName:\n C3FZ = type\n break\n if C3FZ is None:\n G9jH.error(\"can't find external type: desiredTypeName=%s, file=%s\" % (K... | [
"0.6846936",
"0.6829122",
"0.67494446",
"0.6512128",
"0.6483681",
"0.6481076",
"0.6470561",
"0.64630055",
"0.6461864",
"0.642548",
"0.63866603",
"0.6359771",
"0.6359771",
"0.6359771",
"0.6359771",
"0.6359771",
"0.6359771",
"0.6359771",
"0.6359771",
"0.6359771",
"0.6359771",
... | 0.7742955 | 0 |
Returns a QuerySet of user objects who have created a relationship to the given user, but which the given user has not reciprocated | def AxNm(YKHO, jGRS):
araI = YKHO.get_relationships(jGRS)
MzRb = YKHO.get_related_to(jGRS)
return MzRb.exclude(pk__in=araI.values_list('pk')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AFP6(YKHO, CBIr):\n from .models import ItemInventory\n GFQK = ItemInventory.objects.filter(part_of__in=CBIr.sets_owned.values_list('owned_set', flat=True))\n return YKHO.exclude(pk__in=GFQK.values_list('element', flat=True)).distinct()",
"def yGvv(YKHO, CBIr):\n return super(BTQf, YKHO).get_quer... | [
"0.6512115",
"0.6418452",
"0.6306797",
"0.6296937",
"0.6235923",
"0.6235923",
"0.60916185",
"0.60646135",
"0.60294354",
"0.597584",
"0.59681463",
"0.5956723",
"0.5946193",
"0.5916532",
"0.58914113",
"0.5869384",
"0.5791086",
"0.5784955",
"0.57551914",
"0.573793",
"0.5735226",... | 0.5335014 | 64 |
Test that when no serializer arg is passed in, and an instance serializer has been set, and a class serializer has not been set, the instance serializer is used. | def fedf(YKHO):
nqXO, CBIr, jTXt = dFvA.get_hosts()
L86L = {'hosts': nqXO, 'serialization': (Jalh, YWNo)}
x0hE = dFvA.get_new_connection(L86L)
geh0 = x0hE.put(YKHO.test_key, YKHO.mixed_record)
bGrB, bGrB, Pyrc = x0hE.get(YKHO.test_key)
assert Pyrc == {'normal': 1234, 'tuple': ('instance serializ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p7Cb():\n assert issubclass(VHuE, p0CG)",
"def hgDD(YKHO):\n if len(YKHO._inst_kwargs) == 0 and YKHO._cls == 'DefaultSerialize':\n for IF30 in YKHO.testing_options['objects']:\n tO9_ = YKHO.instance.serialize(IF30, header_kwargs=YKHO._header_info)\n HRMl, obwh = YKHO.instan... | [
"0.7084033",
"0.70640266",
"0.70487046",
"0.6970678",
"0.6947952",
"0.69236064",
"0.69022715",
"0.6868566",
"0.6867128",
"0.68629247",
"0.6846223",
"0.67334133",
"0.6724524",
"0.6667094",
"0.66296124",
"0.6528733",
"0.649565",
"0.6471867",
"0.6426656",
"0.6417944",
"0.641203"... | 0.61288697 | 35 |
Remove entity mentions (eg. '') Correct errors (eg. '&' to '&') | def FkG6(l5Ny):
l5Ny = ZbWC.sub('(@.*?)[\\s]', ' ', l5Ny)
l5Ny = ZbWC.sub('http\\S+', '', l5Ny)
l5Ny = ZbWC.sub('&', '&', l5Ny)
l5Ny = ZbWC.sub('\\s+', ' ', l5Ny).strip()
l5Ny = l5Ny.replace('...', ' ')
l5Ny = l5Ny.replace('.', '')
l5Ny = l5Ny.replace("'s", '')
l5Ny = cQ_D(l5Ny)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CmRb(YKHO, l5Ny):\n Hmau = ['@', '#']\n V22M = []\n for GIN8 in l5Ny.split():\n GIN8 = GIN8.strip()\n if GIN8:\n if GIN8[0] not in Hmau:\n V22M.append(GIN8)\n return ' '.join(V22M)",
"def Yczo(vAnR):\n di0c = '(of|in|to|and|or|the|a)'\n YTyg = '^\\\\s... | [
"0.7214164",
"0.7083951",
"0.7010158",
"0.7010158",
"0.68730897",
"0.6866103",
"0.6668549",
"0.6638386",
"0.6625865",
"0.65798414",
"0.6575189",
"0.6571171",
"0.6569471",
"0.6568677",
"0.6550656",
"0.6528914",
"0.6515104",
"0.6501388",
"0.6491255",
"0.64565086",
"0.64557886",... | 0.0 | -1 |
Remove entity mentions (eg. '') Correct errors (eg. '&' to '&') | def t4RZ(l5Ny):
l5Ny = ZbWC.sub('(@.*?)[\\s]', ' ', l5Ny)
l5Ny = ZbWC.sub('http\\S+', '', l5Ny)
l5Ny = ZbWC.sub('&', '&', l5Ny)
l5Ny = ZbWC.sub('\\s+', ' ', l5Ny).strip()
l5Ny = l5Ny.replace('#', '')
return l5Ny | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CmRb(YKHO, l5Ny):\n Hmau = ['@', '#']\n V22M = []\n for GIN8 in l5Ny.split():\n GIN8 = GIN8.strip()\n if GIN8:\n if GIN8[0] not in Hmau:\n V22M.append(GIN8)\n return ' '.join(V22M)",
"def Yczo(vAnR):\n di0c = '(of|in|to|and|or|the|a)'\n YTyg = '^\\\\s... | [
"0.72128975",
"0.70831084",
"0.700931",
"0.700931",
"0.68710184",
"0.68656844",
"0.6667937",
"0.6637628",
"0.66258323",
"0.65781397",
"0.65738314",
"0.6571478",
"0.6568957",
"0.6568031",
"0.65503407",
"0.65288013",
"0.6516238",
"0.65002716",
"0.64915526",
"0.6457995",
"0.6455... | 0.0 | -1 |
This function is called when the extension is loaded. It accepts an IPython InteractiveShell instance. We can register the magic with the `register_magic_function` method of the shell instance. | def UzVy(vFch):
Hy7s.environ['PATH'] = '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin'
vFch.register_magic_function(m6_J, 'cell')
vFch.register_magic_function(e_s_, 'cell') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UzVy(D8Ke):\n D8Ke.register_magics(dLsz)\n\n def haYd(YKHO, VmPb, **c_sp):\n if VmPb.startswith('%'):\n u0_H = VmPb\n else:\n u0_H = '%%cryauto\\n' + VmPb\n YKHO.old_run_cell(u0_H, **c_sp)\n from IPython.core.interactiveshell import InteractiveShell\n VztR... | [
"0.755918",
"0.7475083",
"0.7313217",
"0.70990413",
"0.707373",
"0.7024612",
"0.70081365",
"0.6987524",
"0.69538206",
"0.69513065",
"0.6885471",
"0.68137735",
"0.6810746",
"0.6756129",
"0.6733209",
"0.6724132",
"0.66925174",
"0.66310793",
"0.64050347",
"0.6274295",
"0.6269922... | 0.6613098 | 18 |
Add extra text to self.message about the reason why permission was denied. Uses lazy object so the message string is evaluated only when rendered. If optional argument `format` is given, then it's used with format_lazy to format the message with the dictionary arguments from `format` arg. Optional argument `delim` can ... | def tf1m(YKHO, Ol8d: str, SAEY=None, format=None, qx_G=False):
if SAEY is None:
SAEY = ': '
if format:
Ol8d = HmUm(Ol8d, **format)
if qx_G:
YKHO.message = Ol8d
else:
assert 'message' not in YKHO.__dict__, 'You are calling error_msg without replace=True after calling it wi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VMI5(YKHO, tO9_, ABDL, qIxc):\n if YKHO.isEnabledFor(ABDL):\n if qIxc:\n return YKHO._getUnterpolatedMessage(tO9_, qIxc)\n else:\n return tO9_\n else:\n return '(log message suppressed due to insufficient log level)'",
"def e_b4(Emd4, Ol8d='Sorry, access is de... | [
"0.5870432",
"0.5311324",
"0.5131353",
"0.5097083",
"0.50673085",
"0.50353336",
"0.4969715",
"0.49438596",
"0.4868086",
"0.48625317",
"0.48309153",
"0.4782676",
"0.4777977",
"0.47674716",
"0.47543022",
"0.4752648",
"0.4731548",
"0.47302905",
"0.47049746",
"0.47036162",
"0.470... | 0.597048 | 0 |
Tests that MIT test works with good MIT licences | def wxDi(YKHO):
jLgh = ba27.lint.PipelineLint(U7SE)
jLgh.check_licence()
assert len(jLgh.failed) == 0, 'Expected 0 MIT FAIL, but found %r' % len(jLgh.failed)
assert len(jLgh.warned) == 0, 'Expected 0 MIT WARN, but found %r' % len(jLgh.passed)
assert len(jLgh.passed) == 1, 'Expected 1 MIT PASS, but f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yvr0():\n QXuz = Hy7s.path.normpath(Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.realpath(xAKo)), '../../../Cargo.toml'))\n BfDw.run_cmd('cargo deny --manifest-path {} check licenses'.format(QXuz))",
"def gjfF(YKHO):\n dRyw = ba27.lint.PipelineLint(sOp7)\n dRyw.check_licence()\n assert len(dRyw.... | [
"0.72542304",
"0.71438664",
"0.71039647",
"0.6968375",
"0.6907116",
"0.689984",
"0.6744754",
"0.653575",
"0.64693034",
"0.6421439",
"0.6396033",
"0.63953936",
"0.6388373",
"0.63518447",
"0.6342535",
"0.6337817",
"0.6325995",
"0.632302",
"0.6296768",
"0.6258332",
"0.6230479",
... | 0.727162 | 0 |
Tests that MIT test works with bad MIT licences | def gjfF(YKHO):
dRyw = ba27.lint.PipelineLint(sOp7)
dRyw.check_licence()
assert len(dRyw.failed) == 1, 'Expected 1 MIT FAIL, but found %r' % len(dRyw.failed)
assert len(dRyw.warned) == 0, 'Expected 0 MIT WARN, but found %r' % len(dRyw.passed)
assert len(dRyw.passed) == 0, 'Expected 0 MIT PASS, but f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wxDi(YKHO):\n jLgh = ba27.lint.PipelineLint(U7SE)\n jLgh.check_licence()\n assert len(jLgh.failed) == 0, 'Expected 0 MIT FAIL, but found %r' % len(jLgh.failed)\n assert len(jLgh.warned) == 0, 'Expected 0 MIT WARN, but found %r' % len(jLgh.passed)\n assert len(jLgh.passed) == 1, 'Expected 1 MIT P... | [
"0.7249338",
"0.71502185",
"0.690331",
"0.67858577",
"0.6666035",
"0.65929544",
"0.6582557",
"0.6551195",
"0.6397765",
"0.63904786",
"0.6342781",
"0.6288832",
"0.6259682",
"0.62510264",
"0.62253547",
"0.616543",
"0.6153618",
"0.6096271",
"0.6087078",
"0.60374045",
"0.60170346... | 0.7533096 | 0 |
open()like wrapper for fast_gzip/fast_gunzip | def ACwB(pmON, Tuqy='rt'):
if 'w' in Tuqy:
return h1ai(pmON, Tuqy)
return yLCr(pmON, Tuqy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S5dg(YKHO):\n return lGU7.open(YKHO.baseFilename, mode=YKHO.mode, encoding=YKHO.encoding)",
"def t6oX(mWFP, Tuqy):\n if e2GX(mWFP):\n return lGU7.open(mWFP, Tuqy)\n else:\n return open(mWFP, Tuqy)",
"def open(Ux0P, Tuqy='rb', MQLm=9, QS6K=None, ym_X=58315):\n return ADky(Ux0P, Tuq... | [
"0.78581387",
"0.78104204",
"0.75614786",
"0.73491716",
"0.7236509",
"0.71259916",
"0.7028813",
"0.70170426",
"0.7003157",
"0.69500494",
"0.69180715",
"0.6893861",
"0.68881965",
"0.6849315",
"0.68364924",
"0.68211585",
"0.68172145",
"0.6790153",
"0.6772514",
"0.67631733",
"0.... | 0.8474236 | 0 |
Construct the CNN model. Please add your model implementation here, and don't forget compile the model E.g., model.compile(loss='categorical_crossentropy', optimizer='sgd', metrics=['accuracy']) NOTE, You must include 'accuracy' in as one of your metrics, which will be used for marking later. | def YZe9():
C3ST = ileL()
C3ST.add(D2Bo())
C3ST.add(l6ZH(units=64, activation='relu'))
C3ST.add(l6ZH(units=3, activation='softmax'))
C3ST.compile(loss='categorical_crossentropy', optimizer='sgd', metrics=['accuracy'])
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YZe9():\n C3ST = ileL()\n C3ST.add(fhcK.Conv2D(32, (3, 3), activation='relu', input_shape=(64, 64, 3)))\n C3ST.add(fhcK.MaxPooling2D((2, 2)))\n C3ST.add(fhcK.Conv2D(32, (3, 3), activation='relu'))\n C3ST.add(fhcK.MaxPooling2D((2, 2)))\n C3ST.add(fhcK.Conv2D(64, (3, 3), activation='relu'))\n ... | [
"0.79609865",
"0.77306",
"0.76642877",
"0.7612955",
"0.7502109",
"0.74872744",
"0.7480193",
"0.7473053",
"0.74688375",
"0.7423201",
"0.740078",
"0.7390512",
"0.7389203",
"0.738596",
"0.73788434",
"0.7377408",
"0.7373826",
"0.73624045",
"0.73430973",
"0.73389107",
"0.73160666"... | 0.7488639 | 5 |
Initialize the location dictionary and directory stack. | def FIMM(YKHO) -> None:
YKHO.dirs = {}
YKHO.stack = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, jRYS, MFy5):\n YKHO.loc = jRYS\n YKHO.dir = MFy5",
"def FIMM(YKHO, Rci7):\n super(w5to, YKHO).__init__(Rci7, byIX())\n YKHO.root = YKHO.config_env.get_store_config('filesystem')['path']",
"def FIMM(YKHO, AQSv=[], piCl={}):\n YKHO._current_world = None\n YKHO._current_world_hand... | [
"0.71472794",
"0.69433874",
"0.6796035",
"0.6682933",
"0.660777",
"0.66076314",
"0.65885115",
"0.65814924",
"0.6552634",
"0.6541549",
"0.64079815",
"0.6370298",
"0.63625616",
"0.6354105",
"0.63136667",
"0.630964",
"0.6307874",
"0.62808686",
"0.6273635",
"0.62172997",
"0.62154... | 0.7515958 | 0 |
Hash of the latest release | def SGjS(YKHO):
CUCQ = dict((Q1bM.split()[::-1] for Q1bM in YKHO._download('SHA2-256SUMS', YKHO._tag).decode().splitlines()))
return CUCQ[YKHO.release_name] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EQWG():\n return iXC1(jwET)",
"def hash(YKHO):\n return Hy7s.popen('git rev-parse HEAD').read().strip()",
"def hash(YKHO):\n return Hy7s.popen('git rev-parse HEAD').read().strip()",
"def fSxW(YKHO, B7c0):\n return YKHO.get_by_id(B7c0)['commit']",
"def JlXm(YKHO):\n Gy4f = None\n if Hy... | [
"0.7400336",
"0.7225273",
"0.7225273",
"0.71101344",
"0.70692444",
"0.68943036",
"0.6821035",
"0.6809862",
"0.6809862",
"0.6809862",
"0.6778789",
"0.675833",
"0.6720923",
"0.67159283",
"0.6702286",
"0.6697193",
"0.6650139",
"0.66423225",
"0.6626001",
"0.6594901",
"0.65310395"... | 0.801414 | 0 |
Calculate radius of curvature. | def gtRu(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T0Dp(YKHO):\n B9Au = YKHO.y_eval\n WgYu = YKHO.best_fit_m\n nfXe = (1 + (2 * WgYu[0] * B9Au + WgYu[1]) ** 2) ** 1.5 / oyIN.absolute(2 * WgYu[0])\n YKHO.radius_of_curvature = nfXe\n return",
"def HRUp(YKHO, il5t):\n B9Au = oyIN.max(il5t)\n Who5 = 30 / 720\n YvJw = 3.7 / 700\n wE01 =... | [
"0.8368824",
"0.7689337",
"0.76146346",
"0.7592764",
"0.7566354",
"0.75369716",
"0.75218827",
"0.75028306",
"0.7462675",
"0.7442231",
"0.7423732",
"0.7316745",
"0.7266618",
"0.7256891",
"0.7249562",
"0.7152415",
"0.71437645",
"0.713795",
"0.7136143",
"0.7130652",
"0.7122185",... | 0.8123052 | 1 |
Funciton for creating spark session, and return the spark session object. | def FWXP(YzxL):
ujem = lBG2.builder.config(YzxL).getOrCreate()
return ujem | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yu9h():\n return lBG2.builder.getOrCreate()",
"def Yu9h():\n return lBG2.builder.appName('Sales processor').master('local[*]').getOrCreate()",
"def KfiN():\n return lBG2.builder.config(conf=Mwml()).getOrCreate()",
"def Yu9h():\n usjt = qcWV.datetime.now()\n print('Started create_spark_sess... | [
"0.8759596",
"0.86740077",
"0.8527401",
"0.8436773",
"0.84160304",
"0.83830583",
"0.8299336",
"0.82616955",
"0.8233838",
"0.8205541",
"0.819648",
"0.81958586",
"0.819152",
"0.81844795",
"0.81844795",
"0.81844795",
"0.81844795",
"0.81844795",
"0.81844795",
"0.81844795",
"0.818... | 0.8316181 | 6 |
Function for reading in immigration dataset, performing ETL process, and saveing it to the output path | def CEx2(ujem, O38l='immigration_data_sample.csv', n80H='../immigration.parquet', jrsd='../date.parquet', qUQs='csv', ZLJ_=['cicid', 'i94yr', 'i94mon', 'i94res', 'i94port', 'arrdate', 'depdate', 'airline', 'i94addr', 'i94visa', 'i94mode', 'visatype', 'gender', 'i94bir', 'i94cit'], qoqK=None, Z2JS=['i94yr', 'i94mon'], x... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TUiP(ujem):\n vbhX = BfDw.create_immigration_data(ujem, Luru)\n BfDw.save_fact_immigration(vbhX, VdBn)",
"def b8V_():\n if not Hy7s.path.exists(yt7q):\n Hy7s.makedirs(yt7q)\n zdRf = IUXg.ImmigrationPipeline()\n NlcY = zdRf.run()\n NlcY.write.mode('overwrite').partitionBy('i94mon').pa... | [
"0.6485092",
"0.62645906",
"0.6128286",
"0.60791934",
"0.6040858",
"0.60141665",
"0.60073215",
"0.597169",
"0.594837",
"0.59024996",
"0.58486235",
"0.58103806",
"0.5774936",
"0.57425874",
"0.5737558",
"0.57281286",
"0.57209396",
"0.569633",
"0.56947625",
"0.5683645",
"0.56745... | 0.0 | -1 |
return a session object. The session id is created and the session is stored in the database. | def ZhvG(Emd4, NCls, CBIr):
Wswm = IAes.genSID()
bo34.info('Created session. sid: %s', Wswm)
AFkL.store_session(NCls, sid=Wswm, uid=CBIr.uid)
return Emd4(Wswm, CBIr, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UCvV(YKHO):\n PObu = YKHO._mkuid()\n cuiw = YKHO.sessions[PObu] = YKHO.sessionFactory(YKHO, PObu)\n cuiw.startCheckingExpiration()\n return cuiw",
"def gte4():\n return NCls.session",
"def KfiN() -> DMju:\n return NGRy()",
"def KfiN():\n return DMju()",
"def gte4():\n eQSh.up('a... | [
"0.8116568",
"0.80262405",
"0.79689956",
"0.79462034",
"0.7925021",
"0.79160064",
"0.79108286",
"0.78820777",
"0.7828316",
"0.78189564",
"0.78189564",
"0.77874386",
"0.77708876",
"0.76815605",
"0.7622294",
"0.76160073",
"0.7613542",
"0.75835526",
"0.75835526",
"0.75546163",
"... | 0.0 | -1 |
Find airspace sector intersection positions from a smoothed trajectory. | def jtlh(yHuE):
xZFf = yHuE.path.ecef_path()
uMII = mxGl(yHuE, xZFf)
Vz7_ = sOhE(yHuE, xZFf)
if not Vz7_.empty:
uMII = Vz7_ if uMII.empty else rLdf.concat([uMII, Vz7_], ignore_index=True)
j1M1 = RU1b(yHuE, xZFf)
if not j1M1.empty:
uMII = j1M1 if uMII.empty else rLdf.concat([uMII,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXO3(yHuE, xZFf, a1eo, JCYq, N4Up, FPzo):\n LD1b = []\n k_Cy = []\n hWbg = []\n FBNX = xZFf.subsection_positions(N4Up, FPzo)\n Q0sG = PKyo(FBNX)\n tTos = VA5Z(FBNX)\n LD1b, k_Cy, hWbg = Rrbd(yHuE.flight_id, Q0sG, tTos, int(a1eo), int(JCYq))\n if len(LD1b):\n Of2x = {}\n gS... | [
"0.71243596",
"0.6805197",
"0.6571982",
"0.5919663",
"0.5665756",
"0.5649845",
"0.56002676",
"0.55536926",
"0.5522148",
"0.5471612",
"0.546222",
"0.5456622",
"0.543509",
"0.5418861",
"0.5415417",
"0.5295266",
"0.5284059",
"0.5274978",
"0.52719784",
"0.5266487",
"0.5245765",
... | 0.66613156 | 2 |
Look for an existing model with the same model group, train matrix metadata, and experimentlevel random seed and reuse this model's random seed if found, otherwise generate a new one. If multiple matching models are found, we'll use the one with the most recent run time. | def p4Dw(YKHO, ZXxM, qvN7, I2Ze):
f4YC = qvN7['end_time']
K_bI = qvN7['label_timespan']
WaX1 = fiV_(YKHO.db_engine, ZXxM, f4YC, I2Ze, K_bI, YKHO.experiment_random_seed)
if WaX1:
return WaX1[0]
else:
return N_l7() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fp_V(YKHO, yokr):\n JQEJ = {id(xlLU): xlLU for xlLU in YKHO.rng_inputs}\n if len(JQEJ) == 0:\n bo34.warning(f'Model {YKHO} has no RNGs; nothing to reseed.')\n if len(JQEJ) > 1:\n raise NotImplementedError(\"`reseed_rngs` doesn't support models with multiple random number generators.\")\n... | [
"0.6102052",
"0.6064594",
"0.5943332",
"0.5865048",
"0.5777908",
"0.57768697",
"0.5774284",
"0.5716255",
"0.56957394",
"0.5674071",
"0.5648632",
"0.5626467",
"0.5604604",
"0.56027555",
"0.5571482",
"0.5567292",
"0.55631655",
"0.555039",
"0.54885423",
"0.5450226",
"0.5423981",... | 0.6946856 | 0 |
Squared Exponential (SE) kernel function | def WZcn(YKHO, Gaqb, JjvA):
XBqC = Gaqb.reshape(-1, 1)
oiS9 = JjvA.reshape(1, -1)
return YKHO.gain * oyIN.exp(-1 / (2.0 * YKHO.length) * oyIN.power(XBqC - oiS9, 2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fFA3(o4sw):\n Ptm0 = 0\n VMqD = 0\n Ya2r = 0\n for YRbF in range(len(o4sw)):\n for r845 in range(1, len(o4sw[YRbF])):\n VMqD += pow(o4sw[YRbF][r845][0] - o4sw[YRbF][0][0], 2)\n Ya2r += pow(o4sw[YRbF][r845][1] - o4sw[YRbF][0][1], 2)\n Ptm0 = VMqD + Ya2r\n return Pt... | [
"0.6740032",
"0.67263",
"0.6672172",
"0.664627",
"0.6631833",
"0.65773195",
"0.64985424",
"0.6495343",
"0.6495343",
"0.6495343",
"0.6495343",
"0.6495343",
"0.64791",
"0.64692396",
"0.6466473",
"0.6455073",
"0.64425486",
"0.6436913",
"0.64206165",
"0.64023465",
"0.63853973",
... | 0.0 | -1 |
Shift an array along one of the eight (inter)cardinal directions. Pixels padded to the edges of the axes retain the value from the original array. | def M0OX(E3D9, dir, exwG):
o4sw = E3D9.copy()
if dir == 0:
o4sw[:-exwG - 1, :] = E3D9[1 + exwG:, :]
elif dir == 1:
o4sw[:-exwG - 1, 1 + exwG:] = E3D9[1 + exwG:, :-exwG - 1]
elif dir == 2:
o4sw[:, 1 + exwG:] = E3D9[:, :-exwG - 1]
elif dir == 3:
o4sw[1 + exwG:, 1 + exwG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eh7J(qw7D, DkWr, P9SZ='periodic'):\n OuhA = int(DkWr[0])\n pHrd = int(DkWr[1])\n if P9SZ == 'periodic':\n f6cs = oyIN.roll(qw7D, pHrd, axis=0)\n f6cs = oyIN.roll(f6cs, OuhA, axis=1)\n else:\n JXxg = oyIN.shape(qw7D)\n Q9GL = JXxg[0]\n jWa5 = JXxg[1]\n TuH3 ... | [
"0.7160622",
"0.7066118",
"0.70014846",
"0.6979328",
"0.6973238",
"0.6837294",
"0.6805081",
"0.67953354",
"0.6774198",
"0.66682726",
"0.66330576",
"0.6538919",
"0.65248096",
"0.65205777",
"0.64903",
"0.6440725",
"0.64300066",
"0.6414292",
"0.6378242",
"0.637491",
"0.6348827",... | 0.5961442 | 55 |
Get the display name for a record. | def y0hN(AIu6):
return str(AIu6['family']) + ':' + str(AIu6['revision']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y0hN(AIu6):\n return AIu6['LoadBalancerName'] + ' (' + AIu6['DNSName'] + ')'",
"def y0hN(YKHO):\n return YKHO.display_name",
"def Jx3D(YKHO):\n Aofo = YKHO.get_attribute(s6Cf.AttributeIds.DisplayName)\n return Aofo.Value.Value",
"def y0hN(YKHO):\n return YKHO._data['name']",
"def y0hN(YK... | [
"0.81549954",
"0.81403536",
"0.81090486",
"0.80901897",
"0.79877996",
"0.79653203",
"0.78851736",
"0.77918774",
"0.77918774",
"0.77918774",
"0.77867806",
"0.77846473",
"0.77846473",
"0.77846473",
"0.77846473",
"0.77846473",
"0.77846473",
"0.77846473",
"0.77846473",
"0.7782408",... | 0.84340364 | 0 |
Get the display name for a version from its ARN. | def JZiu(AIu6):
ktSz = AIu6.split(':')
mWFP = ktSz[5]
DpZH = ktSz[6]
SzCd = mWFP.split('/')
qBg8 = SzCd[1]
return str(qBg8) + ':' + str(DpZH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQNS(YKHO):\n return YKHO['bundle']['display_name']",
"def jtRV(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'version_name')",
"def LXqN():\n return \"Doin' it Right\"",
"def qQNS(YKHO):\n return YKHO['basebundle']['display_name']",
"def LXqN(YKHO) -> str:\n raise NotImplementedErr... | [
"0.6571753",
"0.65464866",
"0.642428",
"0.64135903",
"0.6403414",
"0.63907564",
"0.63907564",
"0.6338801",
"0.6294787",
"0.6284733",
"0.6284733",
"0.6284733",
"0.6284733",
"0.6284733",
"0.6284733",
"0.6284733",
"0.6284733",
"0.6284733",
"0.6284733",
"0.6284733",
"0.6284733",
... | 0.7390939 | 0 |
Applies a given function to each subexpression of the input expr | def Cx8t(FYKK, VN2L, *qIxc, **B2fa):
V25t(FYKK, VN2L, Exmq.AstMap(), *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tYwp(VN2L, y_j7):\n if isinstance(VN2L, str):\n VN2L = i6QF(VN2L)\n for o61b, ecqT in y_j7:\n if isinstance(o61b, str):\n o61b = i6QF(o61b)\n if isinstance(ecqT, str):\n ecqT = i6QF(ecqT)\n if isinstance(o61b, JgRb):\n VN2L = mfCn(VN2L, o61b, e... | [
"0.66991246",
"0.6698065",
"0.627023",
"0.6266534",
"0.6251347",
"0.6173092",
"0.6036375",
"0.60082036",
"0.6007916",
"0.60049814",
"0.59752434",
"0.5966584",
"0.59605885",
"0.5952285",
"0.5911383",
"0.5893073",
"0.58902276",
"0.5882469",
"0.5860095",
"0.58045775",
"0.5797506... | 0.6584128 | 2 |
Retrieves the key value from inside the section the connector.config file. This function is in multiple modules because it was originally designed that each module could be standalone. | def ObFT(GPtr, XLMv, H5ew, type='str'):
try:
if type == 'boolean':
Aofo = GPtr.getboolean(XLMv, H5ew)
else:
Aofo = GPtr.get(XLMv, H5ew)
except enR0.NoSectionError:
print('Warning: ' + XLMv + ' does not exist in config file')
if type == 'boolean':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD(YKHO, XLMv, H5ew):\n return YKHO.result_dict[XLMv][H5ew]",
"def egFI(YKHO, H5ew):\n return YKHO.config.get(H5ew)",
"def NMoC(YKHO, H5ew):\n return YKHO.config.get(H5ew)",
"def NMoC(H5ew):\n return viqz[H5ew]",
"def GPtr(H5ew):\n return P4t4.config.get(H5ew.upper(), None)",
"def Un... | [
"0.7520649",
"0.7462147",
"0.74351275",
"0.7423067",
"0.7382579",
"0.7355189",
"0.73355407",
"0.7288922",
"0.7275265",
"0.7253837",
"0.7217886",
"0.7148747",
"0.7107827",
"0.70803607",
"0.7075867",
"0.70552295",
"0.70438534",
"0.7007173",
"0.7000913",
"0.69958824",
"0.6956836... | 0.6473397 | 83 |
Get a connection to the Azure Resource Mananger | def H7Ii(YKHO):
if YKHO.FILE_PATH is not None and YKHO.FILE_PATH != '':
from azure.common.client_factory import get_client_from_auth_file
return get_client_from_auth_file(bHne)
elif YKHO.KEY is not None and YKHO.KEY != '':
from azure.common.credentials import ServicePrincipalCredentials
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lxP0(YKHO):\n NtEF, jTXt = YKHO.get_service_account()\n XDpN = YKHO.get_mgr_endpoint()\n UzPC = qcae.AdminAPI(url=XDpN, auth=(NtEF, jTXt))\n return UzPC",
"def Ykhp(YKHO):\n return qnvx(aml_subscription_id=YKHO.config.aml.subscription_id, aml_resource_group=YKHO.config.aml.resource_group, aml_... | [
"0.722712",
"0.6813952",
"0.6333525",
"0.6321604",
"0.6321604",
"0.63075703",
"0.623223",
"0.6197428",
"0.617017",
"0.6163693",
"0.6098034",
"0.6081265",
"0.6079971",
"0.6069428",
"0.60440797",
"0.60398966",
"0.6013965",
"0.59919834",
"0.59657973",
"0.5958683",
"0.59509987",
... | 0.5972519 | 18 |
Returns a string representation of this object. | def zAg0(YKHO):
return 'DQ2 backend exception [%s]' % YKHO.desc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.88221776",
"0.8807481",
"0.8807481",
"0.8804844",
"0.87643355",
"0.87466544",
"0.8653123",
"0.86519974",
"0.86482596",
"0.8647437",
"0.85231245",
"0.85231245",
"0.85231245",
"0.85119647",
"0.8506517",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0... | 0.0 | -1 |
Constructs a DQConfigurationException instance. | def FIMM(YKHO, QoB4, pS4F=None):
YKHO.desc = QoB4
uCoI.__init__(YKHO, root_cause=pS4F) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d):\n YKHO.message = Ol8d\n uCoI.__init__(YKHO)",
"def FIMM(YKHO, QoB4):\n YKHO.desc = QoB4\n uCoI.__init__(YKHO)",
"def FIMM(YKHO, pS4F=None):\n uCoI.__init__(YKHO, root_cause=pS4F)",
"def FIMM(YKHO, Ol8d, pS4F=None):\n YKHO.message = Ol8d\n uCoI.__init__(YKHO, root_ca... | [
"0.6240823",
"0.6218672",
"0.6049546",
"0.5922046",
"0.5791949",
"0.5425958",
"0.5393858",
"0.53847545",
"0.5317198",
"0.52841645",
"0.5106577",
"0.5060311",
"0.50419456",
"0.49897906",
"0.49865374",
"0.49830413",
"0.4942094",
"0.4938882",
"0.48998684",
"0.4899168",
"0.488294... | 0.5845542 | 4 |
Returns a string representation of this object. | def zAg0(YKHO):
return '%s%s %s' % (fbQO.prefix, MAtn.prefix, YKHO.desc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.8821741",
"0.8807097",
"0.8807097",
"0.8804248",
"0.87637526",
"0.87460744",
"0.86522645",
"0.8651334",
"0.86480457",
"0.864688",
"0.85227656",
"0.85227656",
"0.85227656",
"0.85113096",
"0.85060763",
"0.85057133",
"0.85057133",
"0.85057133",
"0.85057133",
"0.85057133",
"0.... | 0.0 | -1 |
Returns a string representation of this object. | def zAg0(YKHO):
return '%s%s %s' % (fbQO.prefix, Mjfb.prefix, YKHO.message) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.88221776",
"0.8807481",
"0.8807481",
"0.8804844",
"0.87643355",
"0.87466544",
"0.8653123",
"0.86519974",
"0.86482596",
"0.8647437",
"0.85231245",
"0.85231245",
"0.85231245",
"0.85119647",
"0.8506517",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0... | 0.0 | -1 |
Constructs a DQSecurityException instance. | def FIMM(YKHO, Ol8d, pS4F=None):
YKHO.message = Ol8d
uCoI.__init__(YKHO, root_cause=pS4F) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d):\n YKHO.message = Ol8d\n uCoI.__init__(YKHO)",
"def Kxvi(YKHO):\n return YKHO.ExecuteAdvanced('VulnerabilityExceptionCreateRequest')",
"def FIMM(YKHO, pS4F=None):\n uCoI.__init__(YKHO, root_cause=pS4F)",
"def FIMM(YKHO, QoB4):\n YKHO.desc = QoB4\n uCoI.__init__(YKHO)",
... | [
"0.5671241",
"0.53382766",
"0.53375685",
"0.5159486",
"0.5068185",
"0.50224847",
"0.50157565",
"0.49889752",
"0.4955471",
"0.49370956",
"0.49224365",
"0.49038914",
"0.48921254",
"0.48796538",
"0.48733485",
"0.48694432",
"0.4853974",
"0.48465553",
"0.48461455",
"0.4837475",
"0... | 0.52345973 | 3 |
Returns a string representation of this object. | def zAg0(YKHO):
return '%s%s %s' % (fbQO.prefix, Mjfb.prefix, YKHO.message) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.8821741",
"0.8807097",
"0.8807097",
"0.8804248",
"0.87637526",
"0.87460744",
"0.86522645",
"0.8651334",
"0.86480457",
"0.864688",
"0.85227656",
"0.85227656",
"0.85227656",
"0.85113096",
"0.85060763",
"0.85057133",
"0.85057133",
"0.85057133",
"0.85057133",
"0.85057133",
"0.... | 0.0 | -1 |
Constructs a DQBadServerResponse instance. | def FIMM(YKHO, geh0, bD7m, ccAk, Kie9):
YKHO.response = geh0
YKHO.url = bD7m
YKHO.urlsec = ccAk
YKHO.curl_error = Kie9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, lo9Y, h0nS, Zjhd):\n Exception.__init__(YKHO, lo9Y)\n YKHO.response_code = h0nS\n YKHO.response_body = Zjhd",
"def kAAG(tTpl):\n return geh0(QePW, status=400, reason=tTpl.description)",
"def r1yd(Emd4):\n return Emd4(status=JurS, content=['<html><body><h1>Internal Server Error</h1... | [
"0.5859831",
"0.5824295",
"0.5764279",
"0.573316",
"0.5655353",
"0.55748826",
"0.5555964",
"0.5521965",
"0.55167764",
"0.55159366",
"0.55043554",
"0.5501338",
"0.5501338",
"0.54998076",
"0.54936445",
"0.5489342",
"0.5464034",
"0.5423113",
"0.54209095",
"0.5409187",
"0.5402394... | 0.0 | -1 |
Returns a string representation of this object. | def zAg0(YKHO):
Ol8d = 'The server returned a bad response!\n%s\n%s]\n[%s][%s]' % (YKHO.url, YKHO.urlsec, YKHO.curl_error, YKHO.response)
return '%s%s %s' % (KpTn.prefix, lC1a.prefix, Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.88221776",
"0.8807481",
"0.8807481",
"0.8804844",
"0.87643355",
"0.87466544",
"0.8653123",
"0.86519974",
"0.86482596",
"0.8647437",
"0.85231245",
"0.85231245",
"0.85231245",
"0.85119647",
"0.8506517",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0... | 0.0 | -1 |
Returns a string representation of this object. | def zAg0(YKHO):
Ol8d = 'The DN ( %s ) is blocked!' % YKHO.dn
return '%s%s %s' % (adJ9.prefix, lC1a.prefix, Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.8821741",
"0.8807097",
"0.8807097",
"0.8804248",
"0.87637526",
"0.87460744",
"0.86522645",
"0.8651334",
"0.86480457",
"0.864688",
"0.85227656",
"0.85227656",
"0.85227656",
"0.85113096",
"0.85060763",
"0.85057133",
"0.85057133",
"0.85057133",
"0.85057133",
"0.85057133",
"0.... | 0.0 | -1 |
Constructs a DQInvalidAPIException instance. | def FIMM(YKHO, nNXP):
YKHO.api = nNXP
uCoI.__init__(YKHO, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d):\n YKHO.message = Ol8d\n uCoI.__init__(YKHO)",
"def FIMM(YKHO, pS4F=None):\n uCoI.__init__(YKHO, root_cause=pS4F)",
"def FIMM(YKHO, QoB4):\n YKHO.desc = QoB4\n uCoI.__init__(YKHO)",
"def J_8H(Emd4, BQDi, bD7m=None):\n if isinstance(BQDi, G4JS.exceptions.RequestException... | [
"0.60720444",
"0.60692394",
"0.59961796",
"0.5948468",
"0.5795378",
"0.5760635",
"0.57494175",
"0.572677",
"0.56630915",
"0.56558394",
"0.55974156",
"0.5579267",
"0.5549551",
"0.55487937",
"0.55487937",
"0.5546336",
"0.5541688",
"0.5541109",
"0.55180633",
"0.5516498",
"0.5504... | 0.77285016 | 0 |
Returns a string representation of this object. | def zAg0(YKHO):
Ol8d = "%s isn't a valid API." % YKHO.api
return '%s%s %s' % (adJ9.prefix, lC1a.prefix, Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.88221776",
"0.8807481",
"0.8807481",
"0.8804844",
"0.87643355",
"0.87466544",
"0.8653123",
"0.86519974",
"0.86482596",
"0.8647437",
"0.85231245",
"0.85231245",
"0.85231245",
"0.85119647",
"0.8506517",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0... | 0.0 | -1 |
Returns a string representation of this object. | def zAg0(YKHO):
Ol8d = 'HTTP request has an invalid operation!'
return '%s%s %s' % (adJ9.prefix, lC1a.prefix, Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.8821741",
"0.8807097",
"0.8807097",
"0.8804248",
"0.87637526",
"0.87460744",
"0.86522645",
"0.8651334",
"0.86480457",
"0.864688",
"0.85227656",
"0.85227656",
"0.85227656",
"0.85113096",
"0.85060763",
"0.85057133",
"0.85057133",
"0.85057133",
"0.85057133",
"0.85057133",
"0.... | 0.0 | -1 |
Returns a string representation of this object. | def zAg0(YKHO):
Ol8d = 'HTTP request is missing mandatory header (%s)!' % YKHO.header
return '%s%s %s' % (adJ9.prefix, lC1a.prefix, Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.88221776",
"0.8807481",
"0.8807481",
"0.8804844",
"0.87643355",
"0.87466544",
"0.8653123",
"0.86519974",
"0.86482596",
"0.8647437",
"0.85231245",
"0.85231245",
"0.85231245",
"0.85119647",
"0.8506517",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0.85054994",
"0... | 0.0 | -1 |
Returns a string representation of this object. | def zAg0(YKHO):
Ol8d = 'HTTP request is missing mandatory parameter (%s)!' % YKHO.param
return '%s%s %s' % (adJ9.prefix, lC1a.prefix, Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def MFu_(YKHO):\n return ... | [
"0.8821741",
"0.8807097",
"0.8807097",
"0.8804248",
"0.87637526",
"0.87460744",
"0.86522645",
"0.8651334",
"0.86480457",
"0.864688",
"0.85227656",
"0.85227656",
"0.85227656",
"0.85113096",
"0.85060763",
"0.85057133",
"0.85057133",
"0.85057133",
"0.85057133",
"0.85057133",
"0.... | 0.0 | -1 |
Fixes ordering in the chunks to match original sentence, strips empty lists | def EYPy(YKHO, eHxA, _dZy):
eHxA.sort(key=lambda WKvO: len(WKvO), reverse=True)
Y2eJ = []
YRbF = 0
while YRbF < len(_dZy):
TB4W = YKHO.find_chunk(eHxA, _dZy, YRbF)
if TB4W:
Y2eJ.append(TB4W)
YRbF += len(TB4W)
else:
YRbF += 1
return Y2eJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsuz(l5Ny):\n GIN8 = ''\n oeNL = ''\n A6as = ''\n DsnP = []\n pckj = []\n for LVAh in range(0, len(l5Ny['sentences']) - 1):\n for WKvO in l5Ny['sentences'][LVAh]['tokens']:\n for G1Hx, Ty9i in WKvO.items():\n if G1Hx == 'word':\n GIN8 = Ty9i... | [
"0.6319538",
"0.62532127",
"0.6077118",
"0.604534",
"0.6022724",
"0.596273",
"0.588331",
"0.5878335",
"0.5868892",
"0.58115464",
"0.5734824",
"0.5730783",
"0.5730582",
"0.5730582",
"0.5729803",
"0.5729493",
"0.57133055",
"0.5700632",
"0.5693341",
"0.5693341",
"0.5693341",
"... | 0.64510006 | 0 |
Handles POST request to create a new question if the new question and answer text, category, and difficulty score are provided. If a search term is provided instead, retrieve questions based on the search term. It should return any questions for whom the search term is a substring of the question. | def Uu1T():
TBsA = QePW.get_json()
if not TBsA:
print(HwRy.exc_info())
eTsH(400)
_jzK = TBsA.get('question', None)
aafV = TBsA.get('answer', None)
sahT = TBsA.get('difficulty', None)
V3q3 = TBsA.get('category', None)
fNjO = TBsA.get('searchTerm', None)
if fNjO:
Tt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bwh_(YKHO):\n Ylbp = YKHO.client().post('/api/v1.0/questions/search', json={'searchTerm': 'what'})\n nPrm = qQXR.loads(Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, 200)\n YKHO.assertTrue(nPrm['total_questions'])\n YKHO.assertTrue(len(nPrm['questions']))",
"def z7LA():\n TBsA = QePW.get_j... | [
"0.630058",
"0.60638356",
"0.60380834",
"0.6021674",
"0.59614307",
"0.5930768",
"0.58927",
"0.580551",
"0.57974416",
"0.57875246",
"0.57808375",
"0.5769364",
"0.5762781",
"0.57351816",
"0.57057166",
"0.5675633",
"0.56720954",
"0.5643721",
"0.56027126",
"0.55937916",
"0.559312... | 0.76344275 | 0 |
Calculate the ratio of overlap between two polygons and the given area | def xMXf(hRYE, WjCt, f0tD):
assert f0tD > 0
zRv5 = help.polygon_intersection_area([hRYE, WjCt])
return zRv5 / f0tD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ysha(jrHV: Polygon, Z8sb: Polygon) -> float:\n if not jrHV.intersects(Z8sb):\n return 0\n else:\n iQin = jrHV.intersection(Z8sb).area\n b65I = jrHV.area + Z8sb.area - iQin\n return iQin / b65I",
"def imB3(knvf, IkxF):\n zRv5 = zUj0(knvf, IkxF)\n jwoo = r0Ao(knvf) + r0A... | [
"0.7626216",
"0.7450302",
"0.7368087",
"0.73614156",
"0.72907865",
"0.72396076",
"0.7158238",
"0.7123704",
"0.70948184",
"0.7080009",
"0.7047028",
"0.7039601",
"0.7025637",
"0.69690645",
"0.69501346",
"0.69501346",
"0.69167423",
"0.68892163",
"0.68447304",
"0.68115526",
"0.68... | 0.72839725 | 5 |
Name of this object | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO: object) -> str:\n return YKHO.__name",
"def mWFP(YKHO: object) -> str:\n return YKHO.__name",
"def mWFP(YKHO):\n return YKHO.__name",
"def mWFP(YKHO):\n return YKHO.__name",
"def mWFP(YKHO):\n return YKHO.__name",
"def mWFP(YKHO):\n pass",
"def mWFP(YKHO):\n pass",
... | [
"0.90099835",
"0.90099835",
"0.89249325",
"0.89249325",
"0.89115983",
"0.89064",
"0.89064",
"0.89064",
"0.89064",
"0.89064",
"0.89064",
"0.89064",
"0.8892154",
"0.8892154",
"0.8880584",
"0.8873447",
"0.8873447",
"0.88343835",
"0.88343835",
"0.88343835",
"0.88343835",
"0.883... | 0.0 | -1 |
returns a list of all scores in the database | def lZRP(YKHO):
try:
YKHO.connection = iHv3.connect(YKHO.name)
YKHO.cursor = YKHO.connection.cursor()
YKHO.cursor.execute('SELECT * FROM GAME_DATA')
return YKHO.cursor.fetchall()
except iHv3.OperationalError as e:
return tTpl
finally:
if YKHO.connection:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lZRP():\n cCrA = []\n for rdlD in eVLl.scores.search(xU0C.order_by('time', ascending=True)):\n cCrA.append({'rank': 0, 'time': round(rdlD['time'], 2), 'name': rdlD['name'], 'source_word': rdlD['source_word'], 'matches': rdlD['matches']})\n return cCrA",
"def lZRP(VUF1):\n cCrA = []\n SV... | [
"0.8008066",
"0.79071796",
"0.77280337",
"0.7640734",
"0.7532795",
"0.75265837",
"0.7438545",
"0.74228424",
"0.73620874",
"0.707196",
"0.7046003",
"0.7025877",
"0.70214826",
"0.6974312",
"0.6951373",
"0.6951373",
"0.6867429",
"0.68422556",
"0.6815367",
"0.6794008",
"0.6784497... | 0.69736135 | 14 |
Sets the comment of this RemoteApp. | def aM_I(YKHO, aM_I):
if aM_I is not None and len(aM_I) > 128:
raise ValueError('Invalid value for `comment`, length must be less than or equal to `128`')
YKHO._comment = aM_I | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TDCb(YKHO, aM_I):\n YKHO.options['comment'] = aM_I",
"def aM_I(YKHO, aM_I):\n YKHO._comment = aM_I",
"def aM_I(YKHO, aM_I):\n YKHO._comment = aM_I",
"def aM_I(YKHO, aM_I):\n YKHO._comment = aM_I",
"def aM_I(YKHO, aM_I):\n YKHO._comment = aM_I",
"def aM_I(YKHO, aM_I):\n YKHO._comment... | [
"0.7846231",
"0.7466745",
"0.7423744",
"0.7423744",
"0.7423744",
"0.7423744",
"0.7423744",
"0.7423744",
"0.7423744",
"0.7423744",
"0.73051",
"0.7122357",
"0.7122357",
"0.71216214",
"0.6995234",
"0.69213",
"0.68544555",
"0.67832",
"0.66808754",
"0.66352856",
"0.65891683",
"0... | 0.6845267 | 17 |
Sets the created_by of this RemoteApp. | def tC0c(YKHO, tC0c):
if tC0c is not None and len(tC0c) < 1:
raise ValueError('Invalid value for `created_by`, length must be greater than or equal to `1`')
YKHO._created_by = tC0c | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tC0c(YKHO, tC0c):\n YKHO._created_by = tC0c",
"def tC0c(YKHO, tC0c):\n YKHO._created_by = tC0c",
"def tC0c(YKHO, tC0c):\n YKHO._created_by = tC0c",
"def tC0c(YKHO, tC0c):\n YKHO._created_by = tC0c",
"def tC0c(YKHO, tC0c):\n YKHO._created_by = tC0c",
"def tC0c(YKHO, tC0c):\n YKHO._cr... | [
"0.7561429",
"0.7561429",
"0.7561429",
"0.7561429",
"0.7561429",
"0.7561429",
"0.7561429",
"0.7561429",
"0.7561429",
"0.7561429",
"0.7561429",
"0.7561429",
"0.7561429",
"0.7561429",
"0.7561429",
"0.7561429",
"0.7529186",
"0.7529186",
"0.73476833",
"0.68959117",
"0.6761065",
... | 0.6946149 | 19 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.8641601",
"0.85101396",
"0.7854588",
"0.77447397",
"0.7712095",
"0.7697975",
"0.7660445",
"0.76389617",
"0.76230335",
"0.7608357",
"0.7608357",
"0.7608357",
"0.7607762",
"0.7600412",
"0.75866044",
"0.7583521",
"0.75721645",
"0.7569367",
"0.7540305",
"0.7540305",
"0.7528848... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 35 |
Set up System Bridge binary sensor based on a config entry. | async def async_setup_entry(ajET: HomeAssistant, bTKY: ConfigEntry, QEEk: AddEntitiesCallback) -> None:
S3vU: ff0V = ajET.data[Sugg][bTKY.entry_id]
MMe4 = []
for JBZA in mqlU:
MMe4.append(ddos(S3vU, JBZA, bTKY.data[ZcvP]))
if S3vU.data.battery and S3vU.data.battery.percentage and (S3vU.data.batt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_setup_platform(ajET: HomeAssistant, GPtr: ConfigType, QEEk: AddEntitiesCallback, tR5e: DiscoveryInfoType | None=None) -> None:\n if tR5e is not None:\n Fv2L, S3vU, AEPt = await wOus(ajET, zR2c.BINARY_SENSOR, tR5e)\n else:\n vzeF.info('?? # Could not find binary_sensor configurat... | [
"0.66737545",
"0.64971673",
"0.64234906",
"0.63530004",
"0.6219896",
"0.62062085",
"0.6184306",
"0.61788213",
"0.6152232",
"0.6117014",
"0.6114781",
"0.6079521",
"0.60541624",
"0.6048258",
"0.60462236",
"0.60355824",
"0.60266286",
"0.6013672",
"0.60104626",
"0.599638",
"0.599... | 0.6111069 | 11 |
Create a channel from the channelCode with the name as read from the file via the MetadataReader and the color (RGB) as read. channelCode Code of the channel as generated by extractImagesMetadata(). | def A9W3(YKHO, TrEw):
LlSK, d3JN = YKHO._getSeriesAndChannelNumbers(TrEw)
mWFP = YKHO._getChannelName(LlSK, d3JN)
rP_R = YKHO._getChannelColor(LlSK, d3JN)
if YKHO._DEBUG:
YKHO._logger.info('GENERICTIFFSERIESCOMPOSITEDATASETCONFIG::createChannel(): ' + 'channel (s = ' + str(LlSK) + ', c = ' + str... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O9Qc(R5yJ='channel', RWkk=None, PTep=None):\n YwkQ = YnkN.RooStats.HistFactory.Channel(R5yJ)\n YnkN.SetOwnership(YwkQ, False)\n YwkQ.SetData(RWkk)\n YwkQ.SetStatErrorConfig(0.05, 'Poisson')\n if PTep:\n for mvm2 in PTep:\n YwkQ.AddSample(mvm2)\n return YwkQ",
"def rhk9():\... | [
"0.5989561",
"0.5940909",
"0.57927924",
"0.57890874",
"0.5683528",
"0.5669842",
"0.56088567",
"0.5556333",
"0.55394775",
"0.5534975",
"0.5528706",
"0.55188406",
"0.5518118",
"0.5497243",
"0.5496599",
"0.5482766",
"0.5477082",
"0.5470959",
"0.5458806",
"0.5458459",
"0.54373574... | 0.7005118 | 0 |
Returns the channel name (from the parsed metadata) for a given channel in a given series." | def ip78(YKHO, LlSK, d3JN):
mWFP = 'SERIES_' + str(LlSK) + '_CHANNEL_' + str(d3JN)
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JGQG(YKHO, YwkQ: str) -> str:\n return YKHO._bot.channelid_to_channelname(YwkQ)",
"def R5yJ(YKHO) -> str:\n return YKHO._values.get('channel_name')",
"def mWFP(YKHO, YwkQ):\n return None",
"def iEPN(YwkQ):\n if YwkQ in ttFR[nmTU]:\n return EYxb[YwkQ]\n elif YwkQ in ttFR[NDiq]:\n ... | [
"0.719087",
"0.7137669",
"0.70501435",
"0.7023887",
"0.6979816",
"0.6929614",
"0.6857181",
"0.68085533",
"0.68085533",
"0.6738727",
"0.6684785",
"0.66763395",
"0.6632221",
"0.64513576",
"0.64351135",
"0.6418057",
"0.6398276",
"0.63435674",
"0.62519974",
"0.6197025",
"0.617102... | 0.7787007 | 0 |
Initialies the SQLAlchemy app | def JawI():
global app
msfn.init_db(P4t4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbxN(Emd4):\n bo34.info('Initializing database')\n pths.init_app(P4t4)\n P4t4.app_context().push()\n pths.create_all()",
"def JawI(Emd4, P4t4):\n bo34.info('Initializing database')\n Emd4.app = P4t4\n NCls.init_app(P4t4)\n P4t4.app_context().push()\n NCls.create_all()",
"def JawI... | [
"0.8258911",
"0.81532556",
"0.81532556",
"0.81532556",
"0.81532556",
"0.8023361",
"0.7908556",
"0.78537923",
"0.7830822",
"0.7809931",
"0.77840835",
"0.7758547",
"0.76809",
"0.7635198",
"0.7635198",
"0.7635198",
"0.7635198",
"0.7635198",
"0.75887394",
"0.7536347",
"0.7533999"... | 0.7513153 | 23 |
Handles bad reuests with 204_NO_CONTENT | def MvAI(P1dF):
Ol8d = str(P1dF)
P4t4.logger.warning(Ol8d)
return (pz3A(status=jGRS.HTTP_204_NO_CONTENT, error='No content', message=Ol8d), jGRS.HTTP_204_NO_CONTENT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CFd4(Mkmy):\n if Mkmy.status_code != 200 and Mkmy.status_code != 201 and (Mkmy.status_code != 204):\n N5Pj = T_Uj.getreader('utf-8')\n hGN5 = qQXR.load(N5Pj(Mkmy.raw))\n UAju = hGN5.get('errors')\n print('Code: ' + str(UAju[0]['code']))\n print('Message: ' + UAju[0]['... | [
"0.7000247",
"0.69350785",
"0.6919037",
"0.6794308",
"0.65794563",
"0.6560209",
"0.64958304",
"0.6484767",
"0.64707255",
"0.6463623",
"0.6428079",
"0.6428079",
"0.64087325",
"0.6347648",
"0.63448906",
"0.63387406",
"0.63152623",
"0.6312948",
"0.63025343",
"0.62990767",
"0.628... | 0.68154025 | 3 |
Handles bad reuests with 400_BAD_REQUEST | def _ef9(P1dF):
Ol8d = str(P1dF)
P4t4.logger.warning(Ol8d)
return (pz3A(status=jGRS.HTTP_400_BAD_REQUEST, error='Bad Request', message=Ol8d), jGRS.HTTP_400_BAD_REQUEST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ef9(QePW, AJ5d, *qIxc, **B2fa):\n nPrm = {'error': 'Bad Request (400)'}\n return jnRN(nPrm, status=jGRS.HTTP_400_BAD_REQUEST)",
"def _ef9():\n UAju = {'_request': ['bad request']}\n return P1dF(400, UAju)",
"def b0c3():\n eTsH(qed_.BAD_REQUEST)",
"def KQIY(YKHO):\n YKHO.response.set_st... | [
"0.8324726",
"0.8226602",
"0.8212275",
"0.8066888",
"0.8060185",
"0.8026464",
"0.78220975",
"0.78220975",
"0.78220975",
"0.78220975",
"0.78220975",
"0.78220975",
"0.7765412",
"0.7756241",
"0.76972204",
"0.76790065",
"0.76240385",
"0.76240385",
"0.75862193",
"0.756933",
"0.755... | 0.75117666 | 23 |
Handles unexpected server error with 500_SERVER_ERROR | def r1yd(P1dF):
Ol8d = str(P1dF)
P4t4.logger.error(Ol8d)
return (pz3A(status=jGRS.HTTP_500_INTERNAL_SERVER_ERROR, error='Internal Server Error', message=Ol8d), jGRS.HTTP_500_INTERNAL_SERVER_ERROR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n_XA(fWKK):\n RKD7.exception(wVCK.format_exc())\n if QePW.is_xhr:\n return oGir(status=500)\n else:\n return (N2Mn('500.html'), 500)",
"def D8YB(Wehb):\n return Yxsy(pz3A({'error': 'Server error'}), 500)",
"def eVBK(YKHO, QePW, _n4O=None, ICJ3=False):\n if not ICJ3:\n RK... | [
"0.8389705",
"0.83048093",
"0.83016497",
"0.8282621",
"0.81807256",
"0.8151604",
"0.8117752",
"0.8114206",
"0.8077019",
"0.80634403",
"0.8050843",
"0.8049716",
"0.80332714",
"0.8014705",
"0.79989296",
"0.7995657",
"0.79924005",
"0.79848427",
"0.7983808",
"0.79772526",
"0.7975... | 0.7777903 | 28 |
This function takes in a model name and returns its corresponding model | def aPxR(ZGE9, qIxc):
if ZGE9 == 'resnet18_features':
C3ST = FYrf.resnet18(pretrained=True)
C3ST.fc = U78l.Identity()
yEc4 = True
if ZGE9 == 'pose_features':
C3ST = JH8g()
yEc4 = True
if ZGE9 == 'baseline_lstm':
C3ST = EDDA(KTBb, qIxc.hidden_size, e4v7, dropou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YrZb(mWFP):\n return vJaZ(mWFP)[0]",
"def YrZb(YKHO, ZGE9):\n pass",
"def YrZb(C3ST):\n return CNDk('rio.models.%s.%s' % (C3ST.lower(), C3ST.capitalize()))",
"def YrZb(ZGE9):\n C3ST = ccBJ(ZGE9, QVOl)\n if C3ST is None:\n raise O6uQ('Unknown model name %s' % ZGE9)\n return C3ST[1... | [
"0.86705077",
"0.86091673",
"0.8410003",
"0.83444124",
"0.81959397",
"0.81755114",
"0.80556464",
"0.8052925",
"0.8030721",
"0.7938149",
"0.79196054",
"0.7852084",
"0.7846611",
"0.78031605",
"0.7793912",
"0.7725625",
"0.76865655",
"0.7671367",
"0.76615477",
"0.76571435",
"0.76... | 0.0 | -1 |
Return True if specified gene has phenotype data. | def C6k9(lJZH):
if lJZH not in r1Sj():
raise qstl(lJZH)
jQ3Z = XPSz()
return lJZH in jQ3Z[~jQ3Z.PhenotypeMethod.isna()].Gene.to_list() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V2A7(lJZH, BMLi):\n if lJZH not in BMLi:\n return False\n for uFSR in BMLi[lJZH]:\n if uFSR['Annotation_Impact'] == 'HIGH':\n return True\n return False",
"def qBbm(RDhP):\n return RDhP.type == 'gene'",
"def LokS(YKHO, SZFe):\n return",
"def kowQ(YKHO, gx6J: str) -... | [
"0.69248986",
"0.68977004",
"0.6590589",
"0.6516692",
"0.6163578",
"0.6126656",
"0.6063651",
"0.60547954",
"0.60422176",
"0.60344684",
"0.60283357",
"0.59743834",
"0.59304655",
"0.59269565",
"0.5925216",
"0.58916795",
"0.58735055",
"0.5842782",
"0.58170545",
"0.5815914",
"0.5... | 0.80576813 | 0 |
Return True if specified gene is one of the target genes. | def dRTP(lJZH):
return lJZH in r1Sj(mode='target') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, lJZH):\n return lJZH in YKHO.value",
"def qBbm(RDhP):\n return RDhP.type == 'gene'",
"def HBaX(YKHO, pan_):\n return pan_ in YKHO._targetFlags",
"def vtfo(yKcO, Os4s):\n return any((lJZH.start == yKcO and lJZH.end == Os4s for lJZH in mriO._genes))",
"def _Grl(YKHO):\n if (YKHO... | [
"0.67339754",
"0.653383",
"0.6424832",
"0.62565094",
"0.6225759",
"0.61525935",
"0.61498594",
"0.6117849",
"0.6040875",
"0.58944434",
"0.5880126",
"0.5871536",
"0.5855711",
"0.58349",
"0.577678",
"0.57486135",
"0.5733756",
"0.57285947",
"0.57282025",
"0.5712652",
"0.5707703",... | 0.86794436 | 0 |
Load the diplotype table. Returns pandas.DataFrame Requested table. Examples >>> import pypgx >>> df = pypgx.load_diplotype_table() | def hxdF():
Fg_i = aKaX(M7QU.get_data(__name__, 'data/diplotype-table.csv'))
return rLdf.read_csv(Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HeIg():\n Fg_i = aKaX(M7QU.get_data(__name__, 'data/phenotype-table.csv'))\n return rLdf.read_csv(Fg_i)",
"def x6QD(UL8P):\n UL8P = Hy7s.path.abspath(UL8P)\n Fst3 = UL8P.split('.')[-1]\n if Fst3 == 'csv':\n return rLdf.read_csv(UL8P)\n if Fst3 == 'tsv':\n return rLdf.read_csv(... | [
"0.70112276",
"0.57267004",
"0.566199",
"0.5655347",
"0.5643223",
"0.56419027",
"0.5634587",
"0.5622625",
"0.5590781",
"0.55612683",
"0.5532207",
"0.5465025",
"0.5448492",
"0.5432981",
"0.5428447",
"0.54170036",
"0.5415036",
"0.53992695",
"0.5376254",
"0.53680474",
"0.5363331... | 0.8737147 | 0 |
fills the publication object with details from bibtex | def LGJQ(YKHO, cqqy):
return YKHO.scholarly.fill(cqqy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vYzm(YKHO):\n mIEz = YKHO.bib_key()\n bD7m = 'https://arxiv.org/abs/{}'.format(YKHO.ax_id)\n leAC = aJE7(YKHO.title)\n yUuc = '@article{{{0},\\n\\tAuthor = {{{1}}},\\n\\tTitle = {{{2}}},\\n\\tYear = {{{3}}},\\n\\tNote = {{\\\\href{{{4}}}{{arXiv:{5}}}}}\\n}}'.format(mIEz, YKHO.authors, leAC, YKHO.ye... | [
"0.7027543",
"0.66451514",
"0.65164953",
"0.64925027",
"0.64738506",
"0.6466743",
"0.6389323",
"0.62860245",
"0.6284777",
"0.61929643",
"0.6173174",
"0.61346537",
"0.61081773",
"0.60728884",
"0.60704195",
"0.60304695",
"0.60077846",
"0.5994297",
"0.59931",
"0.59812415",
"0.59... | 0.0 | -1 |
Forces `x` to be within the ball's permitted `x` range | def FADi(YKHO, WKvO):
if YKHO.left < YKHO._x_lower_limit:
return YKHO._x_lower_limit
elif YKHO.right > YKHO._x_upper_limit:
return YKHO._x_upper_limit
else:
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vCdE(YKHO, WKvO):\n if WKvO < 0 or WKvO > YKHO.plateauX:\n raise ValueError(\"The rover's x-value is out of bounds. itshould fall between 0 and {}\".format(YKHO.plateauX))\n YKHO.positionX = WKvO",
"def OifZ(YKHO, WKvO: int) -> int:\n if YKHO._at_boundary == 'wrap':\n return YKHO._wrap... | [
"0.7078556",
"0.69621426",
"0.69064665",
"0.6819118",
"0.6793444",
"0.6663505",
"0.64695525",
"0.64587426",
"0.6457639",
"0.64294934",
"0.64206696",
"0.6409776",
"0.64092773",
"0.6385133",
"0.6326245",
"0.6275582",
"0.6115405",
"0.6094514",
"0.60800254",
"0.60038424",
"0.6003... | 0.6804049 | 4 |
normalize each element of the dictionary | def Bgo0(IBDZ, t7hl):
for H5ew in IBDZ.keys():
IBDZ[H5ew] = 1.0 * IBDZ[H5ew] / t7hl
return IBDZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO, Op6c):\n for geyT in Op6c:\n Op6c[geyT] = {G1Hx: Ty9i / wjRY for wjRY in (sum(Op6c[geyT].values()),) for G1Hx, Ty9i in Op6c[geyT].items()}\n return Op6c",
"def NkkI(Csk6):\n mhAC = {}\n for G1Hx, Ty9i in Csk6.iteritems():\n try:\n mhAC[G1Hx] = x0SS(Ty9i)\n ... | [
"0.778561",
"0.7670121",
"0.72912407",
"0.7150071",
"0.71374404",
"0.71225804",
"0.70838225",
"0.6829647",
"0.6817676",
"0.6809778",
"0.6785918",
"0.67664975",
"0.6748617",
"0.67052853",
"0.66930276",
"0.6679429",
"0.66702706",
"0.6616791",
"0.6612777",
"0.6555765",
"0.654919... | 0.7025779 | 7 |
returns whether two nodes are in the same set or not | def jiIg(YKHO, i4Va, rUTj):
r7jQ, _B4G = YKHO._get_upward_path(i4Va)
YKHO._change_parent(r7jQ, _B4G)
CHTE, r3Lo = YKHO._get_upward_path(rUTj)
YKHO._change_parent(CHTE, r3Lo)
if r7jQ == CHTE:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Avg2(vsJz, OWJi):\n if vsJz.node_count() != OWJi.node_count():\n return False\n elif len(Izkl(vsJz, OWJi)) == vsJz.node_count():\n return True\n else:\n return False",
"def g057(YKHO, i4Va, rUTj):\n return YKHO[i4Va] == YKHO[rUTj]",
"def xa14(YKHO, Elif):\n return set(YK... | [
"0.7435593",
"0.7250783",
"0.7241133",
"0.71968824",
"0.7183501",
"0.7172205",
"0.7076435",
"0.6880565",
"0.6867195",
"0.6856261",
"0.6848616",
"0.68208045",
"0.6806782",
"0.68040305",
"0.67738616",
"0.6742183",
"0.6734659",
"0.6734659",
"0.6734659",
"0.6734659",
"0.6734659",... | 0.6348053 | 79 |
This view will handle the rendering of Home Page | def kZiy(QePW):
return _1tc(QePW, 'index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO):\n YKHO.render('home.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')",
"def kZiy():\n return TvZl('home.html')",
"def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')",
"def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')",
"def kZiy():\n return T... | [
"0.831454",
"0.82982826",
"0.82390255",
"0.8215784",
"0.8215784",
"0.8206481",
"0.81987494",
"0.81970054",
"0.81744254",
"0.8170011",
"0.8154092",
"0.8151945",
"0.8128678",
"0.8127857",
"0.8123833",
"0.8123356",
"0.8090959",
"0.80901396",
"0.807106",
"0.80693173",
"0.80669606... | 0.8122725 | 16 |
This method/will return a view of the current user's account details | def ZrNc(QePW):
CBIr = mv1M.objects.get(id=QePW.user.id)
return _1tc(QePW, 'account.html', {'user_form': CBIr, 'profile_form': CBIr.profile, 'address_form': CBIr.address}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P6xe():\n cHyp = c5ow.email\n BaHi = c5ow.username\n mwlV = UXsa.get_all_ratings(c5ow.id)\n return TvZl('account.html', email=cHyp, username=BaHi, rated=mwlV)",
"def cd1l():\n if 'email' in cuiw:\n CBIr = qm8v.db.user_accounts.find_one({'email': cuiw['email']})\n return TvZl('use... | [
"0.8159792",
"0.7641554",
"0.7516684",
"0.74292725",
"0.7242577",
"0.7134022",
"0.7134022",
"0.71275836",
"0.7108105",
"0.7095486",
"0.707035",
"0.707035",
"0.707035",
"0.707035",
"0.70621026",
"0.7056115",
"0.7052733",
"0.702259",
"0.7019724",
"0.6999522",
"0.6984361",
"0.... | 0.74505514 | 3 |
This method/view will enable the edit profile for the user | def _KOf(QePW):
CBIr = mv1M.objects.get(id=QePW.user.id)
BuGS = KhUR(instance=QePW.user)
otWV = LZ9C(instance=QePW.user.profile)
return _1tc(QePW, 'account.html', {'user_form': BuGS, 'profile_form': otWV, 'address_form': CBIr.address}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _KOf():\n if not CBIr.logged_in:\n return vKnz(nKyW('index'))\n else:\n return TvZl('profile/edit_profile.html', user=CBIr)",
"def b1oj(YKHO, id, mWFP=None):\n Z9rn.page_user = e5kH.Session.query(gIAB.User).get(id)\n if not Z9rn.page_user:\n eTsH(404)\n if Z9rn.page_user !... | [
"0.79342717",
"0.7879735",
"0.7681696",
"0.76695365",
"0.7614672",
"0.7607275",
"0.7589358",
"0.7462449",
"0.7446269",
"0.74131995",
"0.7364057",
"0.736295",
"0.7344043",
"0.7321352",
"0.7312146",
"0.72885585",
"0.72818035",
"0.7279709",
"0.7262887",
"0.725408",
"0.7240164",
... | 0.7495888 | 7 |
limits the dataset to sentences that are not true about all their images should help avoid spurious signal (there are about 10% such sentences in the training set) | def brdi(YKHO):
tAhN = lambda trmw: not all([KCHu.label == True for KCHu in trmw])
YKHO.use_subset_by_images_condition(tAhN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QrZ9(YKHO, nPrm):\n V22M = b0j5.tokenize(nPrm)\n LBQ_ = Dhdw.pos_tag(V22M)\n T0TI = [YKHO.get_wordnet_pos(yzQ0[1]) for yzQ0 in LBQ_]\n for YRbF, GIN8 in enumerate(V22M):\n if T0TI[YRbF] is None:\n V22M[YRbF] = HD_u.lemmatize(GIN8)\n else:\n V22M[YRbF] = HD_u.lemm... | [
"0.6052485",
"0.6052485",
"0.6048329",
"0.6042073",
"0.6008924",
"0.59441555",
"0.59316057",
"0.5928333",
"0.58846796",
"0.5860899",
"0.58585787",
"0.585277",
"0.5817807",
"0.5806928",
"0.5802448",
"0.5796293",
"0.5757091",
"0.57464063",
"0.5744685",
"0.57310474",
"0.5699038"... | 0.55390126 | 37 |
Return the name of this object. | def zAg0(YKHO):
return 'PAL (Original): Scenario #1' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO: object) -> str:\n return YKHO.__name",
"def mWFP(YKHO: object) -> str:\n return YKHO.__name",
"def mWFP(YKHO):\n return YKHO._obj.name",
"def W0tD(YKHO):\n return YKHO.__name",
"def W0tD(YKHO):\n return YKHO.__name",
"def W0tD(YKHO):\n return YKHO.__name",
"def W0tD(YKH... | [
"0.92169195",
"0.92169195",
"0.90303457",
"0.89758676",
"0.89588517",
"0.89588517",
"0.89588517",
"0.89588517",
"0.89588517",
"0.89588517",
"0.89588517",
"0.89588517",
"0.8947592",
"0.8947592",
"0.8947592",
"0.893906",
"0.893906",
"0.89337736",
"0.88999885",
"0.88999885",
"0.... | 0.0 | -1 |
Return the name of this object. | def zAg0(YKHO):
return 'PAL (Original): Scenario #2' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO: object) -> str:\n return YKHO.__name",
"def mWFP(YKHO: object) -> str:\n return YKHO.__name",
"def mWFP(YKHO):\n return YKHO._obj.name",
"def W0tD(YKHO):\n return YKHO.__name",
"def W0tD(YKHO):\n return YKHO.__name",
"def W0tD(YKHO):\n return YKHO.__name",
"def W0tD(YKH... | [
"0.92169195",
"0.92169195",
"0.90303457",
"0.89758676",
"0.89588517",
"0.89588517",
"0.89588517",
"0.89588517",
"0.89588517",
"0.89588517",
"0.89588517",
"0.89588517",
"0.8947592",
"0.8947592",
"0.8947592",
"0.893906",
"0.893906",
"0.89337736",
"0.88999885",
"0.88999885",
"0.... | 0.0 | -1 |
Return the name of this object. | def zAg0(YKHO):
return 'PAL (Original): Scenario #3' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO: object) -> str:\n return YKHO.__name",
"def mWFP(YKHO: object) -> str:\n return YKHO.__name",
"def mWFP(YKHO):\n return YKHO._obj.name",
"def W0tD(YKHO):\n return YKHO.__name",
"def W0tD(YKHO):\n return YKHO.__name",
"def W0tD(YKHO):\n return YKHO.__name",
"def W0tD(YKH... | [
"0.92169195",
"0.92169195",
"0.90303457",
"0.89758676",
"0.89588517",
"0.89588517",
"0.89588517",
"0.89588517",
"0.89588517",
"0.89588517",
"0.89588517",
"0.89588517",
"0.8947592",
"0.8947592",
"0.8947592",
"0.893906",
"0.893906",
"0.89337736",
"0.88999885",
"0.88999885",
"0.... | 0.0 | -1 |
Used to validate a movie, if the provided date isinstance is valid Returns a list of validation errors. | def xzCw(YKHO, LHvA):
if isinstance(LHvA, H4Ej) == False:
raise TypeError('Can only validate Movie objects!')
YKHO._errors = []
if len(LHvA.getTitle()) == 0:
YKHO._errors.append('Movie must have a name!')
if len(LHvA.getGenere()) == 0:
YKHO._errors.append('Movie must have a name!... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sBY3(YKHO):\n if type(YKHO.date) is not SnBA.IntType:\n raise oX63('Invalid date type')\n try:\n lO87, x0eS, CjKC = YKHO.toTuple()\n except ValueError:\n raise oX63('Invalid date values')\n if lO87 < -9999 or lO87 > 9999 or lO87 == 0:\n raise oX63('Invalid year value')\n... | [
"0.625836",
"0.60281044",
"0.6022493",
"0.59742844",
"0.5936674",
"0.5915397",
"0.58910084",
"0.5860998",
"0.585822",
"0.5843617",
"0.58423394",
"0.5812414",
"0.5800948",
"0.57979876",
"0.5780771",
"0.57775265",
"0.57593375",
"0.5758631",
"0.5739161",
"0.5722275",
"0.57200587... | 0.656138 | 0 |
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter. | def cfQO(tvqc, QpfX):
print('event.session.application.applicationId=' + tvqc['session']['application']['applicationId'])
"\n Uncomment this if statement and populate with your skill's application ID to\n prevent someone else from configuring a skill that sends requests to this\n function.\n "
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])... | [
"0.6919228",
"0.6762499",
"0.65828645",
"0.6490292",
"0.645727",
"0.637779",
"0.62864256",
"0.62710816",
"0.62686974",
"0.62461996",
"0.6219076",
"0.6215725",
"0.61949486",
"0.6179929",
"0.6152384",
"0.61419386",
"0.6133499",
"0.613178",
"0.60512537",
"0.6010108",
"0.59821844... | 0.5661301 | 54 |
Create an instance of an Oscillator wrapping oscillator number in the xmltree provided | def FIMM(YKHO, GbG_, KRB_):
V6D9 = 'SignalChain%d' % KRB_
YKHO.signalchain = getattr(GbG_.Ableton.UltraAnalog, V6D9)
YKHO._toggle = XDS4(name='OscillatorToggle', type='bool')
YKHO._waveshape = XDS4(name='OscillatorWaveShape', type='enum', dict=NOsn.Waveforms)
YKHO._octave = XDS4(name='OscillatorOct'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M_ie(C13M):\n rnk0 = C13M.createElement('math')\n qaMm = 'http://www.w3.org/1998/Math/MathML'\n rnk0.setAttribute('xmlns', qaMm)\n h3o2 = 'http://www.sbml.org/sbml/level3/'\n rnk0.setAttribute('xmlns:sbml', h3o2)\n return rnk0",
"def Bqmm(YKHO, ywwl, skhz=None, UXqs=None):\n if UXqs == N... | [
"0.56021255",
"0.55180806",
"0.5473255",
"0.5469011",
"0.5468159",
"0.5405261",
"0.5308384",
"0.524942",
"0.51293486",
"0.5121911",
"0.50909853",
"0.50734377",
"0.50289077",
"0.5011091",
"0.4985253",
"0.49544835",
"0.4930369",
"0.49272794",
"0.49231154",
"0.4897234",
"0.48919... | 0.6763049 | 0 |
Set the version of the API. This function should really only be used in bot.py. | def R2V2(fUpG: str):
global version
DpZH = fUpG
return DpZH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ujwj(YKHO, mWFP, DpZH):\n YKHO.api_name = mWFP\n YKHO.api_version = DpZH",
"def clva(YKHO, clva):\n YKHO._api_version = clva",
"def dPFR(YKHO, DpZH):\n YKHO.version = DpZH",
"def R2V2(YKHO, DpZH):\n YKHO.version = DpZH",
"def cBgm(DpZH):\n if not isinstance(DpZH, jUrF) and DpZH is not... | [
"0.78381795",
"0.7778926",
"0.7546553",
"0.7490021",
"0.73556864",
"0.73327553",
"0.72717816",
"0.72717816",
"0.72717816",
"0.7264763",
"0.7191649",
"0.71845984",
"0.7182888",
"0.70858073",
"0.7075389",
"0.70429105",
"0.70296717",
"0.6984173",
"0.69822127",
"0.69822127",
"0.6... | 0.67208445 | 81 |
Se inicializara y se declaran los valores dependientes de este objeto en este el vehiculo. | def FIMM(YKHO, LU_Y, i1OL, Akme, RKNt, f76V, _hJ8, GEJ8):
YKHO.numero_de_placa = LU_Y
YKHO.marca = i1OL
YKHO.modelo = Akme
YKHO.tipo_vehiculo = RKNt
YKHO.fecha_ingreso = qcWV.date.fecha_ingreso
YKHO.hora_ingreso = qcWV.time.hora_ingreso
YKHO.estado = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, gKPu, _Wrt, SWox, Uqdo):\n YKHO.vehicle_type = gKPu\n YKHO.vehicle_plate = _Wrt\n YKHO.start_time = SWox\n YKHO.end_time = None\n YKHO.car_lot = Uqdo\n YKHO.fee = 0",
"def zPKT(YKHO):\n YKHO.arrive_at = {Ty9i: 0 for Ty9i in fC1M} if not bool(YKHO.arrive_at) else YKHO.arrive_at... | [
"0.6206331",
"0.59925497",
"0.5862845",
"0.5786744",
"0.57866746",
"0.57653934",
"0.57485956",
"0.5720848",
"0.57159364",
"0.57078385",
"0.5683232",
"0.56512773",
"0.5641802",
"0.56256735",
"0.5607983",
"0.56063396",
"0.55853915",
"0.5581404",
"0.55758023",
"0.5557504",
"0.55... | 0.55238956 | 23 |
Returns a flattened dictionary containing the results. Keys will be used as headers and Values as a row. | def dixj(YKHO):
aO_Q = {'siteName': '-'.join((D5ht, str(qxeD.getnode()))), 'siteLocation': fP_P, 'type': YKHO.type, 'name': YKHO.name, 'nodes': YKHO.config['nodes'], 'ppn': YKHO.config['ppn'], 'runtime': YKHO.get_runtime(), 'memory': YKHO.get_memory(), 'cpuModel': YKHO.get_cpu_model(), 'createdAt': qcWV.datetime.no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dict(YKHO):\n return {G1Hx: tuple([rdlD[G1Hx] for rdlD in YKHO._result]) for G1Hx in YKHO._keys}",
"def B87d(YKHO, dixj):\n Mkmy = {}\n for G1Hx, Ty9i in dixj.items():\n if isinstance(Ty9i, GySg):\n Ty9i = YKHO.flatten_results_dict(Ty9i)\n for ERMG, MHxz in Ty9i.items():... | [
"0.69089884",
"0.6575528",
"0.65665364",
"0.65350145",
"0.65152425",
"0.650007",
"0.6496227",
"0.6464718",
"0.643414",
"0.64192814",
"0.6331454",
"0.632662",
"0.6211603",
"0.6176345",
"0.6117478",
"0.61034745",
"0.6093277",
"0.6088488",
"0.6082599",
"0.6068487",
"0.6060611",
... | 0.57722855 | 60 |
Helper function to compute the gradient of negative log posterior for a given set of GLM parameters. The parameters are passed in as a vector. | def TUeH(TPzV, WKvO):
Vnf9 = yL6K(TPzV, cRc4)
XPKt(qN9E, WKvO['glm'], Vnf9)
TQOV = g2nk(sFmk, GlbD, WKvO)
for nPrm in CHNM.data_sequences:
CHNM.set_data(nPrm)
TQOV += g2nk(y7lw, GlbD, WKvO)
return -1.0 * TQOV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NfqM(YKHO, NArs=None):\n if NArs is not None:\n YKHO.expandParam(NArs)\n gKnk, GSPo, Hx54, FIJF = YKHO.logLikeGradient()\n if YKHO.heteroNoise:\n return oyIN.concatenate((-oyIN.asarray(gKnk).flatten(), oyIN.asarray([-GSPo]), oyIN.asarray([-Hx54]), -oyIN.asarray(FIJF).flatten()))\n els... | [
"0.6998868",
"0.67767227",
"0.66617805",
"0.6658834",
"0.66154146",
"0.6614917",
"0.6601237",
"0.660003",
"0.65774584",
"0.6547502",
"0.6505797",
"0.6502818",
"0.64840144",
"0.64694566",
"0.6453762",
"0.6422047",
"0.6390591",
"0.6385514",
"0.63842905",
"0.63403106",
"0.632889... | 0.64840776 | 12 |
Helper function to compute the gradient of negative log posterior for a given set of GLM parameters. The parameters are passed in as a vector. | def TUeH(TPzV, WKvO):
eLPO = yL6K(TPzV, KbFK)
XPKt(qZNr, WKvO['net'], eLPO)
TQOV = g2nk(Al3Y, GlbD, WKvO)
return -1.0 * TQOV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NfqM(YKHO, NArs=None):\n if NArs is not None:\n YKHO.expandParam(NArs)\n gKnk, GSPo, Hx54, FIJF = YKHO.logLikeGradient()\n if YKHO.heteroNoise:\n return oyIN.concatenate((-oyIN.asarray(gKnk).flatten(), oyIN.asarray([-GSPo]), oyIN.asarray([-Hx54]), -oyIN.asarray(FIJF).flatten()))\n els... | [
"0.6999103",
"0.67770976",
"0.6661781",
"0.66580254",
"0.66156846",
"0.6614256",
"0.66003567",
"0.66003317",
"0.65768325",
"0.6546668",
"0.6506898",
"0.65039974",
"0.6482636",
"0.64824826",
"0.6469819",
"0.6452584",
"0.6420946",
"0.63905346",
"0.6385048",
"0.63831574",
"0.633... | 0.63107115 | 22 |
Thresholds given ROIs and returns the ones passing the threshold. | def ILK8(pJTG, AE0g):
if AE0g is None:
print('No threshold used.')
return pJTG
IeFH = AE0g.keys()
BfGN = UT_A(pJTG, IeFH)
_S0V = oyIN.ones((1, len(pJTG)))
for H5ew, BWXx in AE0g.items():
if type(BWXx) == tuple:
if BWXx[0] == 'b':
_S0V = _S0V * (oyI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fr6c(YKHO, oUSw, gwAu=0.3):\n N6Z1 = oUSw.data\n ZHfW = oyIN.ones(len(N6Z1), dtype=oyIN.bool)\n for YRbF in range(len(N6Z1)):\n if ZHfW[YRbF]:\n for r845 in range(YRbF + 1, len(N6Z1)):\n CV1J = bHWF(N6Z1[YRbF, :4], N6Z1[r845, :4])\n if any([YRbF > gwAu f... | [
"0.67144984",
"0.63729954",
"0.61923164",
"0.61084783",
"0.6107635",
"0.6097478",
"0.6097056",
"0.6057002",
"0.6056746",
"0.5987216",
"0.5968806",
"0.5963255",
"0.59452116",
"0.59434646",
"0.59375334",
"0.59350085",
"0.59220254",
"0.59220254",
"0.59083223",
"0.59083223",
"0.5... | 0.71399975 | 0 |
Ensure incoming data can be represented with matching signedness. Needed if the process of casting data from some accepted dtype to the internal dtype(s) bears the risk of truncation (e.g. float to int). | def DnWK(Emd4, nPrm: np.ndarray, peEM: np.ndarray) -> None:
if KTDg(peEM.dtype):
if not oyIN.array_equal(nPrm, peEM):
raise TypeError('Unsafe NumPy casting, you must explicitly cast') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PZNl(YKHO):\n return YKHO.is_integer() and (not YKHO.std_type(YKHO.memory_type).starts_with('u'))",
"def caFS(nPrm):\n nPrm = nPrm.copy()\n nPrm = nPrm.astype(oyIN.float64)\n if nPrm.dtype.byteorder == '>':\n nPrm.byteswap(True)\n return nPrm",
"def PZNl(YKHO, WKvO):\n pass",
"de... | [
"0.66968346",
"0.6413346",
"0.63846564",
"0.62755585",
"0.6240036",
"0.6084414",
"0.60063964",
"0.5925331",
"0.58650017",
"0.5843752",
"0.583138",
"0.57889146",
"0.57836103",
"0.5761163",
"0.5734317",
"0.5726708",
"0.5725303",
"0.57199717",
"0.5710619",
"0.56757593",
"0.56491... | 0.689831 | 0 |
Configures and instantiates the logger. | def ZD3O(YKHO):
if 'logs' not in Hy7s.listdir(YKHO.config_path):
Hy7s.mkdir(YKHO.config_path + '/logs')
b9xm = 'logging' + str(qcWV.now().date()) + '.log'
if b9xm not in Hy7s.listdir(YKHO.config_path + '/logs'):
lwsi = open(YKHO.config_path + '/logs/' + b9xm, 'w')
lwsi.close()
G9... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WWrj(YKHO):\n wiAm = getattr(G9jH, GPtr.LOG_LEVEL)\n bo34 = G9jH.getLogger(GPtr.LOGGER_NAME)\n bo34.setLevel(wiAm)\n DCgT = G9jH.FileHandler(GPtr.LOG_FILENAME)\n uaPq = G9jH.Formatter(GPtr.LOG_FORMAT)\n DCgT.setFormatter(uaPq)\n DCgT.setLevel(wiAm)\n bo34.addHandler(DCgT)\n return bo... | [
"0.80663013",
"0.80462646",
"0.80202025",
"0.79874533",
"0.7923552",
"0.78882337",
"0.78134304",
"0.78106236",
"0.7751346",
"0.7713968",
"0.7684587",
"0.76825994",
"0.7682373",
"0.76685506",
"0.76461273",
"0.76461273",
"0.76461273",
"0.76461273",
"0.76324403",
"0.76183194",
"... | 0.7841665 | 6 |
Function to a load an image and normalised it (0 mean / 1 standard deviation) | def F0Iy(C7_O, ZHfW=None, yDqo=oyIN.float32, _9tk=False):
LNo8 = iQrK(C7_O).get_fdata()
if ZHfW is None:
s7fw = LNo8.astype(oyIN.bool)
else:
s7fw = ZHfW.astype(oyIN.bool)
if len(LNo8.shape) > len(s7fw.shape):
CL5K = []
for YRbF in range(LNo8.shape[-1]):
IQCM =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(VXjJ, JBMS, M1Jx):\n return (VXjJ - JBMS) / M1Jx",
"def l9RK(VXjJ, JBMS, M1Jx):\n VXjJ = VXjJ * 255.0\n VXjJ = (VXjJ - JBMS[:, None, None]) / M1Jx[:, None, None]\n return VXjJ",
"def DZ0a(pD6d, JBMS, M1Jx):\n WKvO = oyIN.load(pD6d)\n WKvO = oyIN.subtract(WKvO, JBMS)\n WKvO = oyIN.... | [
"0.76540256",
"0.759012",
"0.7431863",
"0.7309847",
"0.7298086",
"0.72963417",
"0.72921175",
"0.7258208",
"0.7250182",
"0.7216564",
"0.7207551",
"0.7151438",
"0.71489215",
"0.7144793",
"0.7132943",
"0.7111275",
"0.7095817",
"0.7035455",
"0.70238775",
"0.701402",
"0.7002602",
... | 0.6773917 | 36 |
Convert the 2D image to a list of x y I coordinates where x == x_img detector_center[0] and y == y_img detector_center[1] | def use1(VXjJ, UV8M, vHO5, sc3I=None, hW_V=None):
if sc3I is not None and hW_V is not None:
if sc3I <= 0:
raise ValueError('Input parameter pixel_size_x must be greater than 0. Your value was ' + jKi7.text_type(sc3I))
if hW_V <= 0:
raise ValueError('Input parameter pixel_size... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fcuU(YKHO):\n if YKHO.track_progress:\n print('extracting coordinates...', end=' ')\n WKvO, LVAh = oyIN.where(YKHO.image_array < 255 / 3)\n [wVRM, aEc9] = YKHO.image_array.shape\n WKvO = oyIN.ones(len(WKvO)) * (YKHO.image_array.shape[0] - 1) - WKvO\n WKvO = WKvO - min(WKvO)\n jQ3Z = rL... | [
"0.6912863",
"0.6779758",
"0.67719525",
"0.66253406",
"0.66009843",
"0.6598707",
"0.6577289",
"0.65648824",
"0.6564541",
"0.6561423",
"0.6500034",
"0.64800453",
"0.6395944",
"0.6383588",
"0.6383302",
"0.63141644",
"0.6310278",
"0.6304047",
"0.6304047",
"0.62998474",
"0.626958... | 0.0 | -1 |
Find the Hydrologic Unit Code (HUC) of the watershed. | def am1e(YKHO):
Hnxh = YKHO.data['featurecollection'][0]['feature']
am1e = Hnxh['features'][0]['properties']['HUCID']
return am1e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JeQ9(yGTL, I7xd, A7og):\n ENi9 = 1000 * ((yGTL - I7xd) / (I7xd - A7og))\n return ENi9",
"def WAe9(YKHO, lxnx):\n GPtr = YKHO.sam_sys_inputs_with_site_data(lxnx)\n return int(GPtr['wind_turbine_hub_ht'])",
"def A0KD(YKHO):\n YKHO.bus.write_byte_data(YKHO.SHT21_ADDR, YKHO.SHT21_SS, YKHO.SHT21_... | [
"0.6346582",
"0.6302651",
"0.62733924",
"0.61196077",
"0.6029402",
"0.60017955",
"0.59849316",
"0.5975878",
"0.5895985",
"0.5809017",
"0.5807992",
"0.5739903",
"0.5725854",
"0.5624905",
"0.5610839",
"0.56016535",
"0.55799055",
"0.5564402",
"0.5559823",
"0.55589116",
"0.555374... | 0.7659809 | 0 |
Return the full watershed GeoJSON as a dictionary. | def zXil(YKHO):
for cmPJ in YKHO.data['featurecollection']:
if cmPJ.get('name', '') == 'globalwatershed':
return cmPJ['feature']
raise LookupError('Could not find "globalwatershed" in the featurecollection.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mk8n(YKHO) -> dict:\n TuoA = {'type': 'FeatureCollection', 'features': []}\n aTNe = YKHO.polygon\n for fvDH in aTNe.columns:\n mEdp = aTNe[fvDH].dtype.name == 'category'\n aTNe[fvDH] = aTNe[fvDH] if mEdp else aTNe[fvDH].fillna('null')\n for YRbF, rdlD in aTNe.iterrows():\n if r... | [
"0.67598677",
"0.6525916",
"0.6443525",
"0.63666135",
"0.6302376",
"0.62510514",
"0.6202412",
"0.61657625",
"0.612718",
"0.6053879",
"0.6052917",
"0.60527974",
"0.6047537",
"0.59989196",
"0.5993286",
"0.5992775",
"0.5967597",
"0.595378",
"0.59423405",
"0.59328586",
"0.5918308... | 0.0 | -1 |
Return the full set of unique stms in a preassembled stmt graph. The flattened list of of statements returned by this function can be compared to the original set of unique statements to make sure no statements have been lost during the preassembly process. | def rF6f(pHmp):
BnoJ = set(pHmp)
for ZlgM in pHmp:
if ZlgM.supported_by:
afYC = rF6f(ZlgM.supported_by)
BnoJ = BnoJ.union(afYC)
return list(BnoJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bkit(YKHO, NCls, rb7A, giOu, X_M6=None):\n YKHO._log('There are %d distilled raw statement ids to preassemble.' % len(rb7A))\n if X_M6 is None:\n X_M6 = set()\n tfvG = set()\n PmAP = giOu / YKHO.batch_size\n for YRbF, hPfi in YKHO._raw_sid_stmt_iter(NCls, rb7A, True):\n YKHO._log('... | [
"0.64856416",
"0.631914",
"0.62376",
"0.62376",
"0.62102264",
"0.6111122",
"0.59999245",
"0.58266765",
"0.56828433",
"0.5671803",
"0.56439036",
"0.55502146",
"0.54976666",
"0.54854226",
"0.5450088",
"0.54468787",
"0.5433984",
"0.5380163",
"0.5345058",
"0.53341883",
"0.5219658... | 0.60412717 | 6 |
Return the tallest grand_child and an integer value "type" > O(1) Type = 0 ==> Need a single rotatation left to rebalance Type = 1 ==> Need a single rotatation right to rebalance Type = 2 ==> Need a double rotation to rebalance | def j9Nz(YKHO, XP5J):
aUGN, o0ZM = YKHO._tall_child(XP5J)
KYa1 = aUGN == YKHO.left(XP5J)
eyzw, EFzD = YKHO._tall_child(aUGN, KYa1)
if EFzD == o0ZM and EFzD:
type = 1
elif EFzD == o0ZM:
type = 0
else:
type = 2
return (eyzw, type) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gSNC(YKHO, _AKB, zC6q, type):\n LFlW = YKHO.left(_AKB)\n _tIi = YKHO.right(_AKB)\n if type == 0:\n if _AKB._node._balance_factor == 0:\n LFlW._node._balance_factor = -1\n _AKB._node._balance_factor = 1\n else:\n LFlW._node._balance_factor = 0\n ... | [
"0.6631921",
"0.5758719",
"0.5590035",
"0.5477147",
"0.5474046",
"0.5471552",
"0.5435782",
"0.5411925",
"0.54076713",
"0.5397279",
"0.532765",
"0.5267793",
"0.52646005",
"0.526459",
"0.5249511",
"0.5239748",
"0.51842093",
"0.5154215",
"0.5131995",
"0.5102159",
"0.50917506",
... | 0.62277603 | 1 |
test, a function that takes an int parameter and returns a Boolean Assumes there exists an int, x, such that test(x) is True Returns an int, x, with the smallest absolute value such that test(x) is True In case of ties, return any one of them. | def XyOp(QOe9):
WKvO = 0
while True:
if QOe9(WKvO):
return WKvO
if QOe9(-WKvO):
return -WKvO
WKvO += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XyOp(QOe9):\n fjjX = None\n for WKvO in range(-1000, 1000):\n try:\n if QOe9(WKvO):\n if not fjjX or abs(WKvO) <= abs(fjjX):\n fjjX = WKvO\n except IndexError:\n continue\n return fjjX",
"def XyOp(QOe9):\n exwG = 0\n while T... | [
"0.7247981",
"0.6738052",
"0.6697765",
"0.66867286",
"0.65639484",
"0.6225412",
"0.6087727",
"0.6059483",
"0.5960666",
"0.594465",
"0.58935916",
"0.5871935",
"0.5807945",
"0.57773876",
"0.57678777",
"0.57538867",
"0.57161987",
"0.57095337",
"0.5690192",
"0.56808376",
"0.56657... | 0.7291097 | 0 |
Save this entity to the database | def xkzz(YKHO):
NCls.session.add(YKHO)
NCls.session.commit() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _TTP(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()",
"def xkzz(YKHO) -> None:\n NCls.session.add(YKHO)\n NCls.session.commit()",
"def _TTP(YKHO) -> None:\n NCls.session.add(YKHO)\n NCls.session.commit()",
"def _TTP(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()"... | [
"0.81922776",
"0.8185422",
"0.8159179",
"0.8131361",
"0.8131361",
"0.8131361",
"0.8131361",
"0.8131361",
"0.8131361",
"0.8131361",
"0.8131361",
"0.81199884",
"0.8109002",
"0.8109002",
"0.8109002",
"0.8109002",
"0.8109002",
"0.8109002",
"0.8109002",
"0.8109002",
"0.8109002",
... | 0.8152432 | 3 |
Rearrange the data in the mean face to a 2D array Organize the contents in the mean face vector to a 2D array. Normalize this image. Resize it to match the new dimensions parameter | def M7Ji(H4fn, zNig, tGoK):
FmI6 = oyIN.reshape(H4fn, zNig)
dgIT = FmI6.min()
bQ6z = FmI6.max()
HBfW = (FmI6 - dgIT) / (bQ6z - dgIT) * 255
cH34 = XC5k.resize(HBfW, tGoK)
return cH34 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bcW2(d7uv):\n FHlE = oyIN.zeros(d7uv.shape)\n for YwkQ, JBMS, M1Jx in zip(range(3), FBgC[0], FBgC[1]):\n FHlE[YwkQ] = d7uv[YwkQ] * M1Jx + JBMS\n return FHlE",
"def biH0(VXjJ, zNig):\n MKlR, yzQ0 = zNig\n VXjJ = oyIN.copy(VXjJ)\n VXjJ = XC5k.resize(VXjJ, (yzQ0, MKlR), XC5k.INTER_LINEA... | [
"0.68050057",
"0.66584337",
"0.65393925",
"0.65344876",
"0.63764954",
"0.6302778",
"0.63002986",
"0.62765366",
"0.62140775",
"0.619488",
"0.6149426",
"0.61420834",
"0.61412984",
"0.6097165",
"0.6082987",
"0.60551417",
"0.6051277",
"0.6048137",
"0.60471255",
"0.60431707",
"0.6... | 0.7158809 | 0 |
Get all the JSON files in directory. | def D4Xn(YKHO, PBUt):
if PBUt is None:
tO9_ = 'Must set the collection configuration directory'
I45O.error(tO9_)
raise ValueError(tO9_)
I45O.debug('Searching %s for JSON files associated with %s', PBUt, YKHO.load_config()['Name'])
return [nUeQ for nUeQ in SC2F.glob(PBUt + '/*.json') ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r8ET(YKHO):\n return SC2F.glob(Hy7s.path.join(YKHO.data_dir, '*.json'))",
"def frip(YNZY):\n AeXe = 'save'\n hlel = YNZY + '/' + AeXe\n r8ET = SC2F.glob(hlel + '/*.json')\n dixj = []\n for wM3v in r8ET:\n zNig = Hy7s.path.getsize(wM3v)\n if zNig == 0:\n G9jH.warning... | [
"0.8083041",
"0.7954337",
"0.7913192",
"0.78665453",
"0.7787533",
"0.7787194",
"0.765422",
"0.76304656",
"0.7435761",
"0.7342327",
"0.72826076",
"0.7270187",
"0.72331583",
"0.71659774",
"0.7162432",
"0.71585304",
"0.71532863",
"0.7150415",
"0.70723915",
"0.7070115",
"0.702056... | 0.70236635 | 20 |
Calculates the world population rank of a person with the given date of birth, gender and country of origin as of today. The world population rank is defined as the position of someone's birthday when compared to the entire world population ordered by date of birth decreasing. That is, the last person born is assigned ... | def YNDF(QePW, i_8Y, EE3v, vxW9):
i_8Y = qBzN(i_8Y)
return oGir({'rank': 1234, 'dob': jrfV(i_8Y), 'gender': EE3v, 'country': vxW9}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jcwL(QePW, i_8Y, EE3v, vxW9, _c1T):\n i_8Y = qBzN(i_8Y)\n return oGir({'rank': 1234, 'dob': jrfV(i_8Y), 'gender': EE3v, 'country': vxW9, 'date': _c1T})",
"def bsm5() -> int:\n return zaAz().world_rank",
"def CbjY(QePW, i_8Y, EE3v, vxW9, fdMZ):\n i_8Y = qBzN(i_8Y)\n return oGir({'dob': jrfV(i... | [
"0.61698663",
"0.60955554",
"0.608274",
"0.59395736",
"0.59277487",
"0.58749",
"0.5742671",
"0.5742272",
"0.56387407",
"0.56236243",
"0.54496723",
"0.5330019",
"0.53021455",
"0.52109176",
"0.5172401",
"0.51567715",
"0.51514435",
"0.51292723",
"0.511467",
"0.5089467",
"0.50785... | 0.61508805 | 1 |
Calculates the world population rank of a person with the given date of birth, gender and country of origin on a certain date. The world population rank is defined as the position of someone's birthday when compared to the entire world population ordered by date of birth decreasing. That is, the last person born is ass... | def jcwL(QePW, i_8Y, EE3v, vxW9, _c1T):
i_8Y = qBzN(i_8Y)
return oGir({'rank': 1234, 'dob': jrfV(i_8Y), 'gender': EE3v, 'country': vxW9, 'date': _c1T}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CbjY(QePW, i_8Y, EE3v, vxW9, fdMZ):\n i_8Y = qBzN(i_8Y)\n return oGir({'dob': jrfV(i_8Y), 'gender': EE3v, 'country': vxW9, 'rank': fdMZ, 'date_on_rank': jrfV(qcWV.datetime(2000, 1, 1))})",
"def YNDF(QePW, i_8Y, EE3v, vxW9):\n i_8Y = qBzN(i_8Y)\n return oGir({'rank': 1234, 'dob': jrfV(i_8Y), 'gend... | [
"0.61586577",
"0.5795023",
"0.57298577",
"0.56822896",
"0.56818014",
"0.5665203",
"0.56455874",
"0.55228746",
"0.53242874",
"0.5283604",
"0.5254323",
"0.52536374",
"0.5203668",
"0.51577085",
"0.50895685",
"0.50774574",
"0.5021972",
"0.49986768",
"0.4945337",
"0.4943342",
"0.4... | 0.6361069 | 0 |
Calculates the remaining life expectancy of a person with the given date of birth, gender and country. The result is given in a decimal number of years as of today (UTC). | def nbWN(QePW, i_8Y, EE3v, vxW9):
i_8Y = qBzN(i_8Y)
return oGir({'dob': jrfV(i_8Y), 'gender': EE3v, 'country': vxW9, 'life_expectancy': 12.34}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PQNy(YKHO):\n Kb0M = qcWV.datetime.strptime(YKHO.birthday, '%d %b %Y')\n yo7_ = qcWV.datetime.now()\n if YKHO.death != 'NA':\n HcVg = qcWV.datetime.strptime(YKHO.death, '%d %b %Y')\n if HcVg <= yo7_:\n return int(abs(HcVg.year)) - int(abs(Kb0M.year))\n return int(abs(yo7_.y... | [
"0.73714644",
"0.7354378",
"0.7267813",
"0.7097713",
"0.7064906",
"0.70294863",
"0.7012429",
"0.7009614",
"0.69721943",
"0.6954361",
"0.6908242",
"0.6907826",
"0.6906778",
"0.6845887",
"0.6844476",
"0.6774185",
"0.6773456",
"0.6751317",
"0.6730728",
"0.6722021",
"0.6722021",
... | 0.6404139 | 41 |
Returns true if this rule matches the line in one of its resolved_values. | def kUBT(YKHO, zFiD):
return zFiD in YKHO.resolved_values | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H3iC(**B2fa):\n zFiD = B2fa.get('line')\n x6A0 = B2fa.get('value')\n bo34.debug('condition__line_match_any({%s}, {%s})', zFiD, x6A0)\n zFiD = zFiD.lower()\n return any([a1PO.lower() in zFiD for a1PO in x6A0])",
"def kUBT(Emd4, zFiD):\n return False",
"def lIhf(YKHO, zFiD: str):\n for i... | [
"0.64549786",
"0.6374994",
"0.62763405",
"0.6146292",
"0.61186224",
"0.61186224",
"0.60783094",
"0.5975055",
"0.59716505",
"0.5897917",
"0.58507854",
"0.58426696",
"0.57489544",
"0.5742969",
"0.57248974",
"0.57128686",
"0.56997913",
"0.569949",
"0.56969935",
"0.5684799",
"0.5... | 0.8556758 | 0 |
Checks that the maximum amplitude of the traces in the stream are ALL within a defined range. Only applied to counts/raw data. | def ozj7(aevO, min=5, max=2000000.0, GPtr=None):
if not aevO.passed:
return aevO
for yKIT in aevO:
if yKIT.passed:
if 'remove_response' not in yKIT.getProvenanceKeys():
if abs(yKIT.max()) < float(min) or abs(yKIT.max()) > float(max):
yKIT.fail('Fai... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SjpM(YKHO):\n return YKHO.min_spread < YKHO.data['spread'] < YKHO.max_spread",
"def kppo(YKHO, gGnb: np.ndarray) -> None:\n for mvm2 in gGnb:\n if mvm2 > WStc or mvm2 < jUYH:\n return\n raise RuntimeError('The input audio has low input volume. Please check your microphone settings ... | [
"0.6253336",
"0.6244683",
"0.6206812",
"0.61993235",
"0.61882824",
"0.61610824",
"0.608695",
"0.60797113",
"0.60653883",
"0.6052801",
"0.604624",
"0.5972033",
"0.5967638",
"0.5947716",
"0.5931701",
"0.59302783",
"0.5920978",
"0.5914059",
"0.59004563",
"0.588689",
"0.5875398",... | 0.70986617 | 0 |
create an initially empty binary tree | def FIMM(YKHO):
YKHO._root = None
YKHO._size = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n \"\"\"Takes no arguments.\n Returns an empty tree.\"\"\"\n YKHO.root = None\n YKHO.size = 0",
"def WNcL():\n return UmtR()",
"def HpWW():\n tk5Y = o7DN(1)\n tk5Y.left = o7DN(2)\n tk5Y.right = o7DN(3)\n tk5Y.left.left = o7DN(4)\n tk5Y.left.right = o7DN(5)\n ... | [
"0.7997524",
"0.7840878",
"0.75874805",
"0.7403964",
"0.7361495",
"0.7335094",
"0.73227257",
"0.7180522",
"0.71665883",
"0.7162906",
"0.7154257",
"0.7104309",
"0.70983446",
"0.70768946",
"0.70764196",
"0.70371354",
"0.7028182",
"0.7021693",
"0.69997007",
"0.6991475",
"0.69852... | 0.0 | -1 |
answers if the node a leaf | def loae(YKHO):
if YKHO._Node._left is None and YKHO._Node._right is None:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def loae():\n return False",
"def loae() -> bool:\n return True",
"def loae(YKHO):\n return True",
"def loae(YKHO):\n return not YKHO.left and (not YKHO.right)",
"def loae(YKHO):\n return not YKHO.children",
"def loae(YKHO):\n return not YKHO.children",
"def loae(YKHO):\n return YK... | [
"0.8801937",
"0.86759114",
"0.8531009",
"0.84840256",
"0.84640384",
"0.84640384",
"0.8424849",
"0.842342",
"0.83582383",
"0.8351076",
"0.8342808",
"0.83153445",
"0.8283567",
"0.8283567",
"0.8279457",
"0.82571155",
"0.82571155",
"0.82571155",
"0.82571155",
"0.82497317",
"0.824... | 0.81084585 | 37 |
Test Tree with single root node with no children | def w8mw(YKHO):
YKHO.bst.add(1)
YKHO.bt.add(2)
YKHO.assertTrue(pcG9(YKHO.bst.root))
YKHO.assertTrue(pcG9(YKHO.bt.root)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s_fx():\n from bst import Tree\n kmbS = Tree()\n assert kmbS.size() == 0",
"def MT0O():\n J_Es = CTBE.tree.CombinationTree()\n assert J_Es.root is None\n assert J_Es.count() == 0",
"def ZZji(YKHO):\n YKHO.assertIsNone(pcG9(YKHO.bst.root))\n YKHO.assertIsNone(pcG9(YKHO.bt.root))",
... | [
"0.81370777",
"0.7521258",
"0.74982625",
"0.74630404",
"0.7296111",
"0.716285",
"0.7111506",
"0.7076748",
"0.7039821",
"0.6970256",
"0.69406205",
"0.68975836",
"0.6886132",
"0.68700135",
"0.6866819",
"0.6861765",
"0.6861765",
"0.68612576",
"0.683614",
"0.6812692",
"0.6810131"... | 0.6790285 | 23 |