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 |
|---|---|---|---|---|---|---|
Returns the ViewElements object associated with the class. The returned object can be used to access all the view elements associated with the class. | def eeW0(Emd4):
return Emd4.__dict__[tR00] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ebzU(YKHO):\n return YKHO.__class__.class_trait_view_elements()",
"def tTee(YKHO):\n return YKHO._view_class(YKHO)",
"def NjKx(YKHO):\n for yzQ0 in YKHO.child_widgets():\n return yzQ0",
"def AHMg(YKHO):\n raise NotImplementedError()",
"def RCd1(YKHO):\n return CWuy(YKHO)",
"def ... | [
"0.69987655",
"0.6314625",
"0.6076076",
"0.60502577",
"0.6036594",
"0.577361",
"0.5769521",
"0.5760625",
"0.5759953",
"0.5729227",
"0.5707806",
"0.5667476",
"0.5667459",
"0.56308",
"0.5608086",
"0.5558152",
"0.55277455",
"0.55063367",
"0.5492773",
"0.5482256",
"0.54760814",
... | 0.7372777 | 0 |
Returns a dictionary containing the definitions of all of the trait attributes of this object that match the set of metadata criteria. | def acbC(YKHO, **yIVm):
acbC = YKHO.__base_traits__.copy()
for mWFP in YKHO.__dict__.keys():
if mWFP not in acbC:
FZKb = YKHO.trait(mWFP)
if FZKb is not None:
acbC[mWFP] = FZKb
if len(yIVm) == 0:
return acbC
for esh_, KTgi in yIVm.items():
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A11e(YKHO):\n Xfhm = g760.defaultdict(dict)\n for xC3W in YKHO.attributes:\n Xfhm[xC3W.name]['valuemap'] = xC3W.valuemap\n Xfhm[xC3W.name]['qualifiers'] = xC3W.qualifiers\n return dict(Xfhm)",
"def o8Kj(YKHO):\n return [mWFP for mWFP in YKHO.traits() if YKHO.trait_metadata(mWFP, 'at... | [
"0.7249715",
"0.701137",
"0.701137",
"0.66442627",
"0.6524752",
"0.64437425",
"0.6420204",
"0.6414024",
"0.63503736",
"0.6348395",
"0.6322816",
"0.6297726",
"0.62878114",
"0.6222519",
"0.61846226",
"0.61397904",
"0.61185944",
"0.611537",
"0.6106369",
"0.609271",
"0.60782975",... | 0.67845094 | 3 |
Returns a dictionary containing the definitions of all of the trait attributes of the class that match the set of metadata criteria. | def HbaL(Emd4, **yIVm):
if len(yIVm) == 0:
return Emd4.__base_traits__.copy()
Aofo = {}
for esh_, KTgi in yIVm.items():
if type(KTgi) is not kI0w:
yIVm[esh_] = tCIs(KTgi)
for mWFP, FZKb in Emd4.__base_traits__.items():
for esh_, KTgi in yIVm.items():
if no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A11e(YKHO):\n Xfhm = g760.defaultdict(dict)\n for xC3W in YKHO.attributes:\n Xfhm[xC3W.name]['valuemap'] = xC3W.valuemap\n Xfhm[xC3W.name]['qualifiers'] = xC3W.qualifiers\n return dict(Xfhm)",
"def o8Kj(YKHO):\n return [mWFP for mWFP in YKHO.traits() if YKHO.trait_metadata(mWFP, 'at... | [
"0.68591374",
"0.67183685",
"0.67183685",
"0.6694591",
"0.6648074",
"0.6356712",
"0.6346735",
"0.6252706",
"0.62233305",
"0.62102",
"0.61872417",
"0.61740786",
"0.61126864",
"0.60940385",
"0.603699",
"0.6022116",
"0.5960168",
"0.5945254",
"0.5938842",
"0.59247947",
"0.5905271... | 0.6778053 | 1 |
Returns a list of the names of all trait attributes whose definitions match the set of metadata criteria specified. | def RzcW(YKHO, **yIVm):
return YKHO.traits(**yIVm).keys() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o8Kj(YKHO):\n return [mWFP for mWFP in YKHO.traits() if YKHO.trait_metadata(mWFP, 'attr')]",
"def o8Kj(YKHO):\n return [mWFP for mWFP in YKHO.traits() if YKHO.trait_metadata(mWFP, 'attr')]",
"def z1uS(Emd4, **yIVm):\n return Emd4.class_traits(**yIVm).keys()",
"def mTh6(YKHO):\n return YKHO.ha... | [
"0.7302168",
"0.7302168",
"0.63058066",
"0.6274375",
"0.6248903",
"0.6107232",
"0.60708135",
"0.5896398",
"0.5839022",
"0.5827281",
"0.58270544",
"0.5826019",
"0.58208394",
"0.58203703",
"0.5783917",
"0.5751298",
"0.57125586",
"0.5644148",
"0.5625836",
"0.56247765",
"0.559326... | 0.727666 | 2 |
Returns a list of the names of all trait attributes whose definitions match the set of metadata criteria specified. | def z1uS(Emd4, **yIVm):
return Emd4.class_traits(**yIVm).keys() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o8Kj(YKHO):\n return [mWFP for mWFP in YKHO.traits() if YKHO.trait_metadata(mWFP, 'attr')]",
"def o8Kj(YKHO):\n return [mWFP for mWFP in YKHO.traits() if YKHO.trait_metadata(mWFP, 'attr')]",
"def RzcW(YKHO, **yIVm):\n return YKHO.traits(**yIVm).keys()",
"def mTh6(YKHO):\n return YKHO.harmoniz... | [
"0.7302168",
"0.7302168",
"0.727666",
"0.6274375",
"0.6248903",
"0.6107232",
"0.60708135",
"0.5896398",
"0.5839022",
"0.5827281",
"0.58270544",
"0.5826019",
"0.58208394",
"0.58203703",
"0.5783917",
"0.5751298",
"0.57125586",
"0.5644148",
"0.5625836",
"0.56247765",
"0.5593262"... | 0.63058066 | 3 |
Get presentation string of object. | def zAg0(YKHO):
a1PO = GSRe('\n <h4>$title</h4>\n $imgs\n $footnotes\n <hr/>')
return a1PO.substitute({'title': YKHO.title, 'imgs': YKHO.render_images(), 'footnotes': YKHO.render_footnotes()}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HRRg(YKHO, YEnM):\n if YKHO.pretty:\n return CgYo.pformat(YEnM)\n else:\n return str(YEnM)",
"def wHJl(YKHO):\n sI3h = YKHO.__class__.__name__ + '('\n for a1PO in YKHO.transforms:\n sI3h += f'\\n {a1PO}'\n sI3h += '\\n)'\n return sI3h",
"def CZBi(YKHO):\n return... | [
"0.7532989",
"0.7114322",
"0.6822366",
"0.6800005",
"0.6745579",
"0.6712902",
"0.6671583",
"0.66520745",
"0.6650797",
"0.6624461",
"0.6623283",
"0.6623283",
"0.6623283",
"0.6623283",
"0.6623283",
"0.6623283",
"0.6623283",
"0.6623283",
"0.6623283",
"0.6623283",
"0.6623283",
... | 0.0 | -1 |
Sets the plan_type of this Coverage. | def YaYm(YKHO, YaYm):
BbPm = ['PPO', 'HMO', 'UNKNOWN']
if YKHO._configuration.client_side_validation and YaYm not in BbPm:
raise ValueError('Invalid value for `plan_type` ({0}), must be one of {1}'.format(YaYm, BbPm))
YKHO._plan_type = YaYm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qUyJ(YKHO, qUyJ):\n YKHO._plan = qUyJ",
"def Q7_x(YKHO, YsUp):\n YKHO._type = YsUp",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def TG_K(YKHO, type):\n YKHO._type = type",
"def zwpN(YKHO, zwpN):\n YKHO._schedule_type = zwpN",
"def zwpN... | [
"0.65996706",
"0.65409553",
"0.6472678",
"0.6472678",
"0.64411205",
"0.6425523",
"0.6425523",
"0.64197",
"0.6414196",
"0.62454444",
"0.61953306",
"0.60962695",
"0.60174125",
"0.598808",
"0.598808",
"0.598808",
"0.59785974",
"0.59785974",
"0.59785974",
"0.5895885",
"0.5870454"... | 0.81874585 | 0 |
Sets the end_date of this Coverage. | def KhBf(YKHO, KhBf):
YKHO._end_date = KhBf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def FRO3(YKHO, FRO3):\n YKHO._coverage_end_date = FRO3",
"def FRO3(YKHO, FRO3):\n YKHO._coverage_end_date = FRO3",
"def EmhK(YKHO, _c1T):\n pass",
"def KhBf(YKHO, KhBf):\n if KhBf is None:\n raise ValueError('Invalid value for `end_date... | [
"0.88387686",
"0.86962634",
"0.86962634",
"0.8588706",
"0.8545356",
"0.82517916",
"0.8201665",
"0.8118219",
"0.8116101",
"0.8009223",
"0.79495656",
"0.7753214",
"0.76863015",
"0.747641",
"0.736343",
"0.7189802",
"0.7094919",
"0.7094919",
"0.7094919",
"0.70281756",
"0.70061046... | 0.8874975 | 3 |
Sets the type of this Coverage. | def type(YKHO, type):
BbPm = ['VISION', 'DENTAL', 'MEDICAL', 'HEALTH', 'DEATH_COVER', 'TOTAL_PERMANENT_DISABILITY', 'ACCIDENTAL_DEATH_COVER', 'INCOME_PROTECTION', 'DEATH_TOTAL_PERMANENT_DISABILITY', 'OTHER']
if YKHO._configuration.client_side_validation and type not in BbPm:
raise ValueError('Invalid va... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TG_K(YKHO, type):\n YKHO.type = type",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def TG_K(YKHO, type):\n YKHO._type = type",
"def Q7_x(YKHO, YsUp):\n YKHO._type = YsUp",
"def TG_K(YKHO, type, IbHI=None):\n YKHO._set_property('pc:type', type, IbHI)",
"def type(YKHO, type):\n YKHO.... | [
"0.7840302",
"0.7840302",
"0.7741099",
"0.74387985",
"0.7376227",
"0.72777694",
"0.72777694",
"0.7265618",
"0.7248968",
"0.72474843",
"0.72474843",
"0.72474843",
"0.72474843",
"0.72474843",
"0.72474843",
"0.72474843",
"0.72474843",
"0.72474843",
"0.72474843",
"0.72474843",
"0... | 0.6673879 | 52 |
Sets the start_date of this Coverage. | def kepv(YKHO, kepv):
YKHO._start_date = kepv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n if kepv is None:\n raise ValueError('Invalid value for `start_date`, must not be `None`')\n YKHO._start_date = kepv",
"def YFxH(YKHO, _c1T):\n pass",
"def wEtp... | [
"0.8849892",
"0.87420374",
"0.8573919",
"0.8524821",
"0.84364605",
"0.8288916",
"0.8288916",
"0.8267746",
"0.790393",
"0.7767776",
"0.770781",
"0.72306526",
"0.7194386",
"0.7032111",
"0.7032111",
"0.7020181",
"0.6844589",
"0.6712894",
"0.6686032",
"0.6669154",
"0.66461456",
... | 0.87911475 | 5 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, vykX):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, vykX):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Add an array of Point objects The skeleton needs to be populated with its segments before calling this method. Segments need to have the point count (Segment.pointcount) for this method to pass the points to their correct segments. | def JDH3(YKHO, LTIa):
Z9rn = 0
cR7J = 0
vyLO = YKHO.segments[Z9rn].pointcount
for AU8u in LTIa:
cR7J += 1
KCHu = YKHO.segments[Z9rn]
if cR7J > vyLO:
Z9rn = +1
vyLO += YKHO.segments[Z9rn].pointcount
YKHO.segments[Z9rn].points.append(AU8u) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JDH3(YKHO, LTIa):\n YKHO._add_leaf(LTIa, None)",
"def JDH3(YKHO, *LTIa):\n for y5bX in LTIa:\n if not isinstance(y5bX, list):\n y5bX = [y5bX]\n for AU8u in y5bX:\n YKHO.points.append(AU8u)",
"def nrAN(YKHO, LTIa):\n YKHO.points.extend(LTIa)",
"def JDH3(YKHO, L... | [
"0.69908977",
"0.6924786",
"0.69151545",
"0.68857086",
"0.669715",
"0.6604968",
"0.6561548",
"0.63526505",
"0.615614",
"0.60864747",
"0.6060742",
"0.6040317",
"0.5952948",
"0.5928178",
"0.5911921",
"0.5874591",
"0.5846516",
"0.57557154",
"0.57289875",
"0.57057774",
"0.5704275... | 0.69558066 | 1 |
a constructor for the TextModel class | def FIMM(YKHO, ZGE9):
YKHO.name = ZGE9
YKHO.words = {}
YKHO.word_lengths = {}
YKHO.stems = {}
YKHO.sentence_lengths = {}
YKHO.endings = {}
YKHO.total = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, l5Ny):\n YKHO.text = l5Ny",
"def FIMM(YKHO, l5Ny):\n YKHO.text = l5Ny",
"def FIMM(YKHO, l5Ny):\n YKHO.text = l5Ny",
"def FIMM(YKHO, l5Ny: str) -> None:\n super().__init__(l5Ny)",
"def FIMM(YKHO, b0j5, C3ST, l5Ny=None, **B2fa):\n YKHO.tokenizer = b0j5\n YKHO.model = C3ST\n ... | [
"0.7422422",
"0.7347982",
"0.7347982",
"0.7083003",
"0.70051116",
"0.6944997",
"0.67722434",
"0.67104936",
"0.6645276",
"0.6632868",
"0.6632868",
"0.6632868",
"0.6632868",
"0.6632868",
"0.6632868",
"0.6632868",
"0.6632868",
"0.6632868",
"0.6540648",
"0.6521952",
"0.6520165",
... | 0.6177789 | 39 |
returns the model name, number of words and number of word lengths in the dictionary | def wHJl(YKHO):
KCHu = 'text model name: ' + YKHO.name + '\n'
KCHu += 'number of words: ' + str(len(YKHO.words)) + '\n'
KCHu += 'number of word lengths: ' + str(len(YKHO.word_lengths)) + '\n'
KCHu += 'number of word stems: ' + str(len(YKHO.stems)) + '\n'
KCHu += 'number of sentence lengths: ' + str(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, ZGE9):\n YKHO.name = str(ZGE9)\n YKHO.numwords = 0\n YKHO.words = {}\n YKHO.word_lengths = {}\n YKHO.stems = {}\n YKHO.sentence_lengths = {}\n YKHO.common_word = []",
"def oLG2(YKHO):\n Ux0P = YKHO.name + '_words'\n eHNT = open(Ux0P, 'r')\n sZgU = eHNT.read()\n eHN... | [
"0.7216381",
"0.66041285",
"0.64716375",
"0.6439382",
"0.6403826",
"0.63772523",
"0.62535375",
"0.6180672",
"0.6159909",
"0.6119545",
"0.6099896",
"0.5993539",
"0.599347",
"0.59202695",
"0.5907893",
"0.58977383",
"0.58976674",
"0.588987",
"0.58821434",
"0.5863835",
"0.5862241... | 0.6127196 | 9 |
checks for a suffix and returns it | def cp89(KCHu):
if len(KCHu) > 4:
if KCHu[-2:] == 'ed':
return 'ed'
elif KCHu[-2:] == 'er':
return 'er'
elif KCHu[-3:] == 'ing':
return 'ing'
elif KCHu[-3:] == 'ily':
return 'ily'
elif KCHu[-2:] == 'ly':
return 'ly'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xuwD(ZI14: str, GIN8: str):\n return GIN8.endswith(ZI14)",
"def ZI14(YKHO) -> laHg.Optional[str]:\n return YKHO._values.get('suffix')",
"def ZI14(YKHO):\n return YKHO['suffix']",
"def ZI14(YKHO):\n return YKHO['suffix']",
"def qmW4(YKHO, WKvO) -> FgBH:\n pass",
"def uzLI(YKHO):\n YK... | [
"0.78620005",
"0.75828964",
"0.74372447",
"0.74372447",
"0.72073585",
"0.7205478",
"0.71993834",
"0.71993834",
"0.71993834",
"0.71342146",
"0.710814",
"0.7063348",
"0.7060691",
"0.70558757",
"0.7052936",
"0.7052936",
"0.7025339",
"0.70101523",
"0.70039064",
"0.70002913",
"0.6... | 0.0 | -1 |
Closes the database session after each request. | def ssTe(P1dF):
S8SU.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ryg1(YKHO, cuiw):\n cuiw.close()",
"def rYe1():\n NCls.close()",
"def DDI8(YKHO):\n if YKHO.authenticated:\n YKHO.db.logout()\n if YKHO.connection is not None:\n YKHO.connection.close()",
"def gBn5(AJ5d):\n if NCls.session is not None:\n NCls.session.close()\n else:... | [
"0.8110407",
"0.7753594",
"0.77217776",
"0.75928366",
"0.7384172",
"0.7376199",
"0.7353973",
"0.73509383",
"0.73196524",
"0.7307376",
"0.7307376",
"0.7307376",
"0.7307376",
"0.7307376",
"0.7307376",
"0.7287967",
"0.72746843",
"0.7270765",
"0.72533697",
"0.72533697",
"0.725336... | 0.0 | -1 |
Flask route at /hbnb. Fills the hbnb homepage. | def oxmT():
wspz = S8SU.all(wHLO).values()
wspz = sorted(wspz, key=lambda G1Hx: G1Hx.name)
_nDD = []
for QTBn in wspz:
_nDD.append([QTBn, sorted(QTBn.cities, key=lambda G1Hx: G1Hx.name)])
YP9k = S8SU.all(HvY3).values()
YP9k = sorted(YP9k, key=lambda G1Hx: G1Hx.name)
nvWN = S8SU.all(p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt():\n return 'Hello HBNB!'",
"def d6pt():\n geh0.view_title = wjQK.get('app.name') + ' Home Page'\n return dict(message='')",
"def w3KU():\n return TvZl('contact_us.html')",
"def kZiy():\n pB3N = p_z1.get_payload()\n return TvZl('index.html', payload=pB3N)",
"def d6pt():\n retu... | [
"0.7443706",
"0.65811014",
"0.653675",
"0.6414784",
"0.64034665",
"0.63931346",
"0.6357144",
"0.6350925",
"0.6347675",
"0.63474023",
"0.63466084",
"0.6293009",
"0.6293009",
"0.6293009",
"0.6293009",
"0.62878007",
"0.6281002",
"0.62774676",
"0.6277451",
"0.6273539",
"0.6264542... | 0.0 | -1 |
Return the macaddr of the spa wifi | def nJmA(YKHO):
return YKHO.macaddr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QfE5():\n wohN = [WKvO for WKvO in bT5T.interfaces() if 'wlan' in WKvO or 'wlp' in WKvO][0]\n return bT5T.ifaddresses(wohN)[bT5T.AF_LINK][0]['addr']",
"def QfE5(YKHO) -> str:\n YKHO.sendline('iw {} info'.format(YKHO.iface_dut))\n YKHO.expect('addr (?P<mac>..:..:..:..:..:..)\\r\\n\\t(type|ssid)')\... | [
"0.80236024",
"0.75477827",
"0.74468887",
"0.735236",
"0.7316297",
"0.7302612",
"0.7287245",
"0.7265488",
"0.72178465",
"0.71928966",
"0.71795547",
"0.7065681",
"0.7054268",
"0.70459473",
"0.70179325",
"0.6986395",
"0.6977939",
"0.6892038",
"0.6829231",
"0.6829231",
"0.678885... | 0.64319426 | 33 |
return True if admin has permission and else False | def kjA5(YKHO, QePW):
QePW.needAuthType(QePW.ADMIN)
QePW.checkArgs('perm_name', 'admin_username')
if QePW.auth_name != QePW['admin_username']:
QePW.getAuthNameObj().canDo('SEE ADMIN PERMISSIONS')
return Wk1E.getLoader().getAdminByName(QePW['admin_username']).hasPerm(QePW['perm_name']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hfMq(YKHO):\n if YKHO.user is None:\n return False\n return YKHO.user.has_permission('admin')",
"def l4un() -> bool:\n return gk2W.windll.shell32.IsUserAnAdmin() == 1",
"def ZNeh(YKHO):\n return False",
"def dp9S(YKHO):\n if YKHO.is_admin:\n return True\n return False",
... | [
"0.8294695",
"0.82505375",
"0.8240802",
"0.81962305",
"0.8156185",
"0.81511855",
"0.8129814",
"0.8123106",
"0.80915314",
"0.8064388",
"0.8064388",
"0.8020813",
"0.7981043",
"0.7978934",
"0.79182297",
"0.79153806",
"0.79153806",
"0.790319",
"0.790319",
"0.7892414",
"0.7892414"... | 0.7836217 | 25 |
Get a random element from the collection. | def UIrZ(YKHO) -> int:
return Acvy(YKHO.items) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P8Zf(YKHO) -> 'PFElement':\n return tuKI.choice(list(iter(YKHO)))",
"def m5AQ(YKHO, OxJJ):\n yv6U = list(OxJJ)\n or8S = YKHO._rand_int(0, len(yv6U))\n return yv6U[or8S]",
"def UIrZ(YKHO):\n Gv0a = ajWY(0, len(YKHO.list_val) - 1)\n return YKHO.list_val[Gv0a]",
"def UIrZ(YKHO):\n retur... | [
"0.7651958",
"0.7149041",
"0.70814615",
"0.7044879",
"0.70404017",
"0.7034526",
"0.6959262",
"0.69563407",
"0.68719393",
"0.68376184",
"0.6797525",
"0.670551",
"0.6692588",
"0.6692588",
"0.6692588",
"0.6692588",
"0.66815263",
"0.66744214",
"0.6673934",
"0.66513956",
"0.663908... | 0.6697882 | 12 |
calculate the distance of each 2D points from the center (xc, yc) | def IzHd(g0Hx, dlau):
return PZyS((WKvO - g0Hx) ** 2 + (LVAh - dlau) ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pImw(WKvO, LVAh, g0Hx=0.0, dlau=0.0):\n return PZyS((WKvO - g0Hx) ** 2 + (LVAh - dlau) ** 2)",
"def FnxZ(WKvO, LVAh, hgjH=None):\n if hgjH is None:\n g0Hx, dlau = (oyIN.mean(WKvO), oyIN.mean(LVAh))\n else:\n g0Hx, dlau = (hgjH[0], hgjH[1])\n Mkmy = oyIN.sqrt((WKvO - g0Hx) ** 2 + (LV... | [
"0.74404234",
"0.7137503",
"0.71229076",
"0.6839393",
"0.67520154",
"0.6622933",
"0.66085243",
"0.65774816",
"0.6509382",
"0.64701796",
"0.6452887",
"0.6414572",
"0.64142925",
"0.63884366",
"0.63667786",
"0.63655823",
"0.6351538",
"0.6347358",
"0.6333488",
"0.63114494",
"0.63... | 0.0 | -1 |
Convert a scipy sparse matrix to a torch sparse tensor. | def FXf_(On0F):
On0F = On0F.tocoo().astype(oyIN.float32)
_0VL = ht2j.from_numpy(oyIN.vstack((On0F.row, On0F.col)).astype(oyIN.int64))
hkxX = ht2j.from_numpy(On0F.data)
ROpF = ht2j.Size(On0F.shape)
return ht2j.sparse.FloatTensor(_0VL, hkxX, ROpF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TWjY(YKHO, SppC: sp.csr_matrix):\n SppC = SppC.tocoo()\n WKvO = ht2j.sparse.FloatTensor(ht2j.LongTensor(oyIN.array([SppC.row, SppC.col])), ht2j.FloatTensor(SppC.data.astype(oyIN.float32)), SppC.shape).to(YKHO.device)\n return WKvO",
"def FXf_(On0F):\n _0VL = ht2j.from_numpy(oyIN.vstack((On0F.row,... | [
"0.8299787",
"0.8148542",
"0.8045949",
"0.80325705",
"0.80134654",
"0.79973555",
"0.79973555",
"0.7985302",
"0.7985302",
"0.7985302",
"0.7977018",
"0.79650825",
"0.7754673",
"0.7713117",
"0.7429514",
"0.7429514",
"0.735423",
"0.71969247",
"0.7156927",
"0.69882196",
"0.6969645... | 0.80300856 | 11 |
Parses the property's value. | def dV7Y(YKHO, Amyp):
YKHO.logger.debug("Attempting to parse %s's value", Amyp)
if isinstance(Amyp, MnJ1):
if 8 == Amyp.format:
if hasattr(Amyp.value, 'buf'):
BWXx = str(Amyp.value.buf())
else:
BWXx = ''
for yOAJ in Amyp.value:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tL1h(Emd4, BWXx):\n return BWXx",
"def tL1h(Emd4, BWXx):\n return BWXx",
"def tL1h(Emd4, BWXx):\n raise NotImplementedError('subclass must implement parse_value()')",
"def hfK9(YKHO, BWXx):\n raise NotImplementedError('Please implement the Class')",
"def F1JZ(YKHO, EtM5, ZgoD, EJwJ, Q6kx):\... | [
"0.74567074",
"0.74567074",
"0.67889404",
"0.6679075",
"0.6486109",
"0.63721883",
"0.632833",
"0.6242701",
"0.6185294",
"0.6101606",
"0.6095932",
"0.6026381",
"0.6013318",
"0.59587044",
"0.5914812",
"0.59128195",
"0.5889779",
"0.5883207",
"0.58717465",
"0.5858357",
"0.5827920... | 0.6967067 | 2 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
print("Hello! Let's explore some US bikeshare data!")
gysO = ['chicago', 'new york city', 'washington']
dcER = 'n'
while dcER == 'n':
j5sA = input('Enter the name of the city to analyze (Chicago, New York City, Washington): ').lower()
if j5sA in gysO:
print(rUyw.G... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.66714007",
"0.65354675",
"0.64593667",
"0.6374057",
"0.6348314",
"0.63097656",
"0.62868035",
"0.6259136",
"0.62316",
"0.62130964",
"0.62050414",
"0.6181105",
"0.6171822",
"0.61686903",
"0.6158568",
"0.61582303",
"0.61532456",
"0.61444426",
"0.6131269",
"0.610484",
"0.61025... | 0.57692695 | 72 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
jQ3Z = rLdf.read_csv(OerS[j5sA])
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name
if x0eS != 'all':
X_bn = ['january', 'february', 'march', 'april', 'may'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =... | [
"0.81320685",
"0.8108889",
"0.8045821",
"0.8042514",
"0.80090284",
"0.80071104",
"0.79991937",
"0.7998333",
"0.7988789",
"0.797905",
"0.79737365",
"0.79610896",
"0.7956163",
"0.7947432",
"0.79463065",
"0.7908287",
"0.7908229",
"0.7904569",
"0.7900715",
"0.78930074",
"0.788921... | 0.77491575 | 49 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
X_bn = ['all', 'january', 'february', 'march', 'april', 'may', 'june']
Sm0u = ['all', 'sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
jQ3Z['Start Time'] = rLdf.to_datetime(j... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.80247396",
"0.80233026",
"0.7915788",
"0.78266186",
"0.7822246",
"0.78143597",
"0.77659196",
"0.7740343",
"0.773628",
"0.77344066",
"0.76867086",
"0.7668633",
"0.7651731",
"0.7644636",
"0.76399267",
"0.76367253",
"0.7625196",
"0.7623158",
"0.7612803",
"0.76002145",
"0.7583... | 0.7053383 | 91 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
_8rG = jQ3Z['Start Station'].mode()[0]
print('The most popular start station is {}.'.format(_8rG))
oFx8 = jQ3Z['End Station'].mode()[0]
print('The most popular end station is {}.'.format(oFx8))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.7815675",
"0.7662213",
"0.7553417",
"0.74914914",
"0.74748665",
"0.7446617",
"0.7428588",
"0.74237514",
"0.74177027",
"0.7400495",
"0.7387161",
"0.7385634",
"0.73647535",
"0.735934",
"0.73566747",
"0.73548365",
"0.7351854",
"0.7351274",
"0.735057",
"0.73421645",
"0.7340198... | 0.7121673 | 62 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
qZ1g = jQ3Z['Trip Duration'].sum()
k68k = str(qcWV.timedelta(seconds=int(qZ1g)))
k68k = k68k.replace(' ', '').replace('days', '')
Q3bt, a7zG = k68k.split(',')
mBKx, WQ41, kDRY = a7zG.split(':')
print('The total ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.814274",
"0.8025143",
"0.80041367",
"0.79496753",
"0.7937415",
"0.79312176",
"0.7926815",
"0.7915187",
"0.79142886",
"0.7908032",
"0.79055744",
"0.7900715",
"0.7891682",
"0.78894734",
"0.7886722",
"0.78851086",
"0.7884266",
"0.7882474",
"0.78738385",
"0.78686154",
"0.78664... | 0.76541585 | 79 |
Initializes neural network with 3 convolutional layers and 1 fullyconnected layer. | def FIMM(YKHO, ur8p, ZPop, DXYc):
super(cnLD, YKHO).__init__()
wjdW = 16
YKHO.conv1 = U78l.Conv2d(1, wjdW, (ur8p, 1), padding=0)
YKHO.batchnorm1 = U78l.BatchNorm2d(wjdW, False)
d2bm = 4
bWZj = 32
L0hJ = 2
YKHO.padding1 = U78l.ZeroPad2d((bWZj // 2, bWZj // 2 - 1, L0hJ // 2 - 1, L0hJ // 2)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J2K6(YKHO):\n YKHO.relu = U78l.ReLU(inplace=True)\n YKHO.cls_convs = U78l.ModuleList()\n YKHO.reg_convs = U78l.ModuleList()\n for YRbF in range(YKHO.stacked_convs):\n Fpx_ = YKHO.in_channels if YRbF == 0 else YKHO.feat_channels\n YKHO.cls_convs.append(R48A(Fpx_, YKHO.feat_channels, 3,... | [
"0.7472666",
"0.73977536",
"0.73484737",
"0.7269336",
"0.72688764",
"0.7210978",
"0.71856695",
"0.71799654",
"0.717974",
"0.7157589",
"0.71530175",
"0.7147972",
"0.71275854",
"0.71214545",
"0.7115341",
"0.70854706",
"0.7084484",
"0.70780665",
"0.7070742",
"0.7059944",
"0.7044... | 0.0 | -1 |
Applies forward pass consisting of 3 convolutional layers followed by a fullyconnected linear layer. | def KVH6(YKHO, WKvO):
WKvO = vuvg.elu(YKHO.conv1(WKvO))
WKvO = YKHO.batchnorm1(WKvO)
WKvO = vuvg.dropout(WKvO, 0.25)
WKvO = WKvO.permute(0, 2, 1, 3)
WKvO = YKHO.padding1(WKvO)
WKvO = vuvg.elu(YKHO.conv2(WKvO))
WKvO = YKHO.batchnorm2(WKvO)
WKvO = vuvg.dropout(WKvO, 0.25)
WKvO = YKHO.p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n WKvO = vuvg.max_pool2d(vuvg.relu(YKHO.batch_norm1(YKHO.conv1(WKvO))), 3, stride=2, padding=1)\n WKvO = vuvg.max_pool2d(vuvg.relu(YKHO.batch_norm2(YKHO.conv2(WKvO))), 3, stride=2, padding=1)\n WKvO = vuvg.max_pool2d(vuvg.relu(YKHO.batch_norm3_b(YKHO.conv3_b(vuvg.relu(YKHO.batch_norm... | [
"0.7332494",
"0.7319827",
"0.7144881",
"0.71123207",
"0.709837",
"0.70697784",
"0.70541847",
"0.6945545",
"0.693962",
"0.686619",
"0.68218064",
"0.6816627",
"0.6810239",
"0.677971",
"0.673936",
"0.6722642",
"0.67043847",
"0.6697434",
"0.669198",
"0.6684526",
"0.66803217",
"... | 0.73849595 | 0 |
Standard definition of the softmax function | def N93T(WKvO):
return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n \"\"\"\"\"\"\n return kLQb(WKvO) / sum(kLQb(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.ex... | [
"0.84756714",
"0.8455151",
"0.83407307",
"0.83404344",
"0.8333861",
"0.8310943",
"0.82958037",
"0.8276476",
"0.82595813",
"0.8244072",
"0.82290536",
"0.82290536",
"0.8205396",
"0.8193545",
"0.8189999",
"0.8189999",
"0.8179601",
"0.8175118",
"0.8174349",
"0.8159165",
"0.813881... | 0.8230934 | 15 |
Check if all elements of self are respectively equal to elements in other | def xa14(YKHO, Elif):
if not YKHO.checkCmp(Elif):
return False
AFpR = True
for S34b, rhw3 in zip(YKHO.vector, Elif):
if S34b != rhw3:
AFpR = False
return AFpR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yodv(YKHO, Elif):\n if YKHO.__class__ is Elif.__class__ and len(YKHO) == len(Elif):\n for jzdc, Fg_i in zip(YKHO, Elif):\n if not jzdc.almost_equals(Fg_i):\n return False\n return True\n else:\n return False",
"def xa14(YKHO, cmJd) -> bool:\n return {*m... | [
"0.7696739",
"0.76858586",
"0.7553242",
"0.7339385",
"0.73373455",
"0.7336962",
"0.7292206",
"0.72643137",
"0.725659",
"0.7202528",
"0.72005475",
"0.7190923",
"0.71680814",
"0.71530485",
"0.7120712",
"0.71044266",
"0.7046938",
"0.7023484",
"0.70151997",
"0.70102894",
"0.70028... | 0.0 | -1 |
Check if all elements of self are respectively equal to elements in other | def Vdqg(YKHO, Elif):
return not YKHO.__eq__(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yodv(YKHO, Elif):\n if YKHO.__class__ is Elif.__class__ and len(YKHO) == len(Elif):\n for jzdc, Fg_i in zip(YKHO, Elif):\n if not jzdc.almost_equals(Fg_i):\n return False\n return True\n else:\n return False",
"def xa14(YKHO, cmJd) -> bool:\n return {*m... | [
"0.7696739",
"0.76858586",
"0.7553242",
"0.7339385",
"0.73373455",
"0.7336962",
"0.7292206",
"0.72643137",
"0.725659",
"0.7202528",
"0.72005475",
"0.7190923",
"0.71680814",
"0.71530485",
"0.7120712",
"0.71044266",
"0.7046938",
"0.7023484",
"0.70151997",
"0.70102894",
"0.70028... | 0.0 | -1 |
Split text string (comment) into words | def wr3U(str):
return str.split() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMzd(l5Ny: str) -> list:\n biwZ = l5Ny.strip()\n wQcs = biwZ.split(' ')\n return wQcs",
"def wr3U(l5Ny):\n return l5Ny.split(' ')",
"def l4Z4(l5Ny):\n gYbi = ZbWC.compile('[^0-9^a-z^A-Z\\\\s]').sub('', l5Ny)\n return gYbi.split(' ')",
"def pd6c(l5Ny):\n return [yzQ0 for yzQ0 in l5Ny.... | [
"0.7288073",
"0.72480184",
"0.7105977",
"0.7054411",
"0.70433086",
"0.68705803",
"0.6862473",
"0.6831843",
"0.6821556",
"0.67823786",
"0.6763283",
"0.6715265",
"0.6710809",
"0.67073345",
"0.6705492",
"0.6694802",
"0.66398674",
"0.6635116",
"0.66306597",
"0.66165197",
"0.65901... | 0.0 | -1 |
Renders the home page. | def kZiy():
Kt9y = ''
I_KI = ''
Pe7z = ''
Lvky = ''
hAVj = iHv3.connect(P8oC)
DpUl = hAVj.cursor()
DpUl.execute('select * from white')
for rdlD in DpUl.fetchall():
Pe7z = Pe7z + rdlD[0] + '\n'
DpUl.execute('select * from ban')
for rdlD in DpUl.fetchall():
Kt9y = K... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.85574406",
"0.853399",
"0.8351404",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.827363",
"... | 0.0 | -1 |
Renders the about page. | def vsuQ():
return '123' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Utility function that checks that the filename has an allowed extension. Used when uploading the file. Checks the modulelevel variable `ALLOWED_EXTENSIONS` for allowed uploads. | def XT0o(Ux0P):
UWr8 = set(['pdf'])
return '.' in Ux0P and Ux0P.rsplit('.', 1)[1].lower() in UWr8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YgKf(Ux0P):\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in UWr8",
"def jxyL(Ux0P):\n KrOO = Ux0P.rsplit('.', 1)[1].lower() in UWr8\n return '.' in Ux0P and KrOO",
"def jxyL(Ux0P, KrOO):\n YBcr = Ux0P.rsplit('.', 1)[1].lower() in KrOO\n return YBcr and '.' in Ux0P",
"def XT0o(Ux0P):\n ... | [
"0.8799707",
"0.8668506",
"0.8551998",
"0.85111934",
"0.85111934",
"0.8493873",
"0.8493873",
"0.8493873",
"0.8493873",
"0.8493873",
"0.8493873",
"0.8493357",
"0.8493357",
"0.8482313",
"0.8482313",
"0.8482313",
"0.8482313",
"0.8482313",
"0.8482313",
"0.8482313",
"0.8482313",
... | 0.7802079 | 42 |
Get attribute of resolved attribute. The resolved attribute is where the actual loaded reference instance is stored on the referring model instance. | def AXX7(YKHO):
return '_RESOLVED' + YKHO._attr_name() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xC3W(YKHO):\n return getattr(YKHO.parent_model, YKHO.name)",
"def b_bQ(YKHO):\n return YKHO.__resolved",
"def nWc_(YKHO, hGI9: str) -> ImMB:\n XigM = super().__getattribute__(hGI9)\n if hGI9 in {'_struct_metadata', '_valid_struct_metadata'}:\n return XigM\n rhol = YKHO._valid_struct_m... | [
"0.6402029",
"0.63460624",
"0.6339",
"0.6325199",
"0.63221025",
"0.62893313",
"0.62453425",
"0.6235004",
"0.6233016",
"0.6219533",
"0.6188824",
"0.61706257",
"0.6102585",
"0.6077589",
"0.5980897",
"0.5971218",
"0.59586567",
"0.5950579",
"0.5905455",
"0.58483857",
"0.58264256"... | 0.6904162 | 0 |
Takes a List (or np.List) and returns a np.List of the softmax output | def N93T(WKvO):
A3sN = oyIN.array(WKvO)
xbFY = oyIN.exp(WKvO)
return xbFY / sum(xbFY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(input):\n IKl7 = []\n HgJS = input.shape[-1]\n Tijy = input.shape\n for WKvO in input.reshape(-1, HgJS):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n Ylbp = uw5A / uw5A.sum(axis=0)\n IKl7.append(Ylbp)\n return oyIN.array(IKl7).reshape(Tijy)",
"def N93T(WKvO):\n uw5A ... | [
"0.81420714",
"0.76800984",
"0.7649117",
"0.7503935",
"0.7478199",
"0.7475148",
"0.73761344",
"0.7198165",
"0.70765084",
"0.7062951",
"0.6933868",
"0.69118494",
"0.69118494",
"0.6897624",
"0.6896057",
"0.68762475",
"0.687072",
"0.6858857",
"0.6840219",
"0.6835572",
"0.6818635... | 0.68947315 | 15 |
Cumulative distribution function for the standard normal distribution. Much faster than scipy.stats.norm.cdf even without jit (if added). Use np.erf for nonvectorized version. (adds ~1 second) | def _Ttn(yGTL, WTkW, WKvO):
return 0.5 * (1 + epAf.erf((WKvO - yGTL) / (WTkW * epAf.sqrt(2.0)))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7fw(WKvO, z2bo):\n return 0.5 * (1.0 + ZylS.erf(WKvO / (epAf.sqrt(2) * z2bo + 1e-20)))",
"def YMdG(WKvO):\n WKvO = oyIN.asarray(WKvO).copy()\n jXSM = oyIN.zeros_like(WKvO)\n ywwl = WKvO.size\n zjzU = '#include <math.h>'\n Wxnj = '\\n\\n double sign, t, erf;\\n for (int i=0; i<N; i++)... | [
"0.767847",
"0.7547598",
"0.73621356",
"0.73264456",
"0.72257537",
"0.7179102",
"0.7156002",
"0.71534973",
"0.6951498",
"0.6791709",
"0.67281115",
"0.6725083",
"0.66958356",
"0.6686724",
"0.65974194",
"0.6515479",
"0.6371044",
"0.63550216",
"0.63239247",
"0.6315476",
"0.63102... | 0.72471195 | 4 |
3) filter geneDict on noncoding genes | def FZM9(msTk, jQ3Z):
jZog = ['Mt_rRNA', 'Mt_tRNA', 'rRNA', 'miRNA', 'scRNA', 'scaRNA', 'snoRNA', 'snRNA', 'sRNA', 'vaultRNA']
_sug = U8Lr()
for lJZH in msTk:
yKIT = jQ3Z.loc[msTk[lJZH][0], 'transcript_id']
fjrB = NNiI(yKIT)
if fjrB['gene_type'][0] in jZog:
_sug[lJZH] = m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lFR2(FyVK, gwAu):\n EqfX = {}\n EW1d = {}\n if gwAu == 0:\n return FyVK\n G9jH.info('Filtering the result dictionaries with following threshold: ' + str(gwAu) + '.')\n for ajBB, v_fn in FyVK.iteritems():\n if isinstance(v_fn, dict):\n for iAph in v_fn.keys():\n ... | [
"0.6517187",
"0.59973127",
"0.59713715",
"0.59498125",
"0.5922235",
"0.5881543",
"0.5771859",
"0.57132214",
"0.56925255",
"0.56631047",
"0.5659312",
"0.5650732",
"0.5606287",
"0.5585774",
"0.5558884",
"0.5528005",
"0.55002797",
"0.54889435",
"0.5487171",
"0.5469382",
"0.54483... | 0.72774786 | 0 |
Create a flask application with certain configuration | def LUif(Zu8l):
P4t4 = L2w0(__name__)
nNXP = fyIx(P4t4)
CyRP(P4t4)
P4t4.config.from_object(GPtr.configurations[Zu8l])
'This ensures that the urls /login and /login/ are recognized as same\n without considering the trailing slash '
P4t4.url_map.strict_slashes = False
with P4t4.app_context(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nd3k() -> L2w0:\n bo34.info('creating flask application')\n P4t4 = L2w0('pasta', static_url_path='/static', static_folder='./static', template_folder='./views')\n GPtr.flask.SECRET_KEY = Hy7s.urandom(32)\n GPtr.flask.SERVER_NAME = None\n P4t4.config.from_mapping(GPtr.flask)\n return P4t4",
... | [
"0.8320881",
"0.82613516",
"0.81839406",
"0.81755877",
"0.80952543",
"0.8063145",
"0.80428404",
"0.8039477",
"0.80203795",
"0.800921",
"0.8000817",
"0.7997701",
"0.79955053",
"0.7995151",
"0.7991429",
"0.79910755",
"0.79760885",
"0.7955191",
"0.79498166",
"0.7947507",
"0.7938... | 0.77372634 | 47 |
Return a random card from the drawstack. If the drawstack is empty, it will be regenerated | def FVNx(YKHO) -> aIpH.Card:
if len(YKHO.drawstack) < 1:
for fvDH in list(aIpH.CardColour):
for cM24 in list(aIpH.CardType)[1:13]:
YKHO.drawstack.append(aIpH.Card(cM24, fvDH))
YKHO.drawstack.append(aIpH.Card(cM24, fvDH))
YKHO.drawstack.append(aIpH.Card... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qIgS() -> 'Card':\n XVAW = F1Hz.objects.count() - 1\n d6pt = tuKI.randint(0, XVAW)\n return F1Hz.objects.all()[d6pt]",
"def G372(khoC):\n import random\n w1eb = random.choices(xrDl)\n khoC.append(w1eb[0])\n return",
"def F48w(YKHO):\n dxhl = tuKI.randint(1, 13)\n return dxhl",
... | [
"0.7441488",
"0.7440397",
"0.7075059",
"0.703138",
"0.7008788",
"0.69914556",
"0.6943711",
"0.69413555",
"0.69183993",
"0.6898644",
"0.6749779",
"0.67188674",
"0.6714708",
"0.67104226",
"0.66383463",
"0.6595507",
"0.65374845",
"0.65081036",
"0.6497055",
"0.6481229",
"0.645033... | 0.8634099 | 0 |
Generate initial state for attn wrapped rnn cell | def W9gz(YKHO):
NgLN = ZylS.zeros([1, YKHO._num_units], YKHO._dtype)
ApL7 = YKHO._compute_context(NgLN)
NgLN = ApL7 * 0
if YKHO._dec_init_states is None:
Ep8u = ZylS.shape(YKHO._memory)[0]
Kq6v = YKHO._cell.zero_state(Ep8u, YKHO._dtype)
else:
Kq6v = YKHO._dec_init_states
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kqci(Ep8u, wggQ):\n iHrl = ZylS.contrib.rnn.BasicLSTMCell(wggQ)\n VmPb = ZylS.contrib.rnn.MultiRNNCell([iHrl] * 3)\n W9gz = VmPb.zero_state(Ep8u, ZylS.float32)\n W9gz = ZylS.identity(W9gz, name='initial_state')\n return (VmPb, W9gz)",
"def Kqci(Ep8u, wggQ):\n VmPb = ZylS.contrib.rnn.BasicLS... | [
"0.7132366",
"0.7090915",
"0.69429237",
"0.6908267",
"0.684218",
"0.6768209",
"0.66969436",
"0.66935176",
"0.6625112",
"0.65694475",
"0.6542697",
"0.65020555",
"0.6467875",
"0.64642566",
"0.64642566",
"0.6380301",
"0.6367871",
"0.6360753",
"0.6336993",
"0.6292103",
"0.6264426... | 0.68367213 | 5 |
Create a dataset that LVQ_PAK can understand. | def _uKE(EcVT, fuBA, cTBg=None, Sd0C='datasets\\lvq'):
if cTBg == None:
cTBg = len(fuBA) / 2
pex6 = syiT().fit(EcVT, fuBA)
KuTc = range(len(fuBA))
tuKI.shuffle(KuTc)
nIKz = KuTc[:cTBg]
qhJ1 = KuTc[cTBg:]
with open(Sd0C + '_train.txt', 'w') as _RR0:
_RR0.write('3\n')
f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oUGu(y7GR):\n zQKy = rYeY(y7GR)\n __n6 = zQKy.load_data()\n return __n6",
"def oUGu(y7GR):\n zQKy = rYeY(y7GR)\n __n6 = zQKy.load_data()\n return __n6",
"def CroE(YKHO):\n YKHO.dataset = yzDX(YKHO.dataset_config, YKHO.transform)\n return YKHO.dataset",
"def oUGu():\n c55i = '{}... | [
"0.71592635",
"0.7078532",
"0.68327874",
"0.674011",
"0.6707892",
"0.6664559",
"0.66530573",
"0.66183674",
"0.6466004",
"0.64567834",
"0.64108497",
"0.6380463",
"0.63757545",
"0.6357727",
"0.6293597",
"0.6270287",
"0.6269097",
"0.6228842",
"0.6179571",
"0.6175429",
"0.6136473... | 0.0 | -1 |
Compute crossentropy loss on relation labels. Ignore diagonal entries and entries giving relations between masked out spans. | def pPtm(YKHO, BJTz, dQRo):
ZADN = BJTz.view(-1, YKHO._n_labels + 1)
F6y_ = dQRo.view(-1)
N77f = YKHO._loss(ZADN, F6y_)
return N77f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qN0O(o4Jx, Crrw):\n r8hN = Crrw.shape[0]\n XP5J = o4Jx\n d_oh = -1 * ht2j.log(XP5J[range(r8hN), Crrw])\n N77f = ht2j.sum(d_oh) / r8hN\n return N77f.item()",
"def qN0O(Bm62, Un7c, Mn2C):\n yk4i = ZylS.nn.sigmoid_cross_entropy_with_logits(labels=Bm62, logits=Un7c, pos_weight=Mn2C)\n N77f =... | [
"0.712009",
"0.70225364",
"0.6961675",
"0.6939214",
"0.68967867",
"0.68864",
"0.6853448",
"0.68470687",
"0.67875034",
"0.67738473",
"0.6739838",
"0.6725983",
"0.6717858",
"0.66940284",
"0.6685413",
"0.66685754",
"0.6650294",
"0.6645746",
"0.66255295",
"0.66201985",
"0.6617375... | 0.71338195 | 0 |
Returns path to the directory where the image files are located in. | def EEPu(YKHO):
return YKHO.frame_directory | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kfi_():\n AGPF = Hy7s.path.abspath(Hy7s.path.dirname(xAKo))\n AGPF = Hy7s.path.join(AGPF, 'images')\n return AGPF",
"def K7RJ(YKHO):\n return Hy7s.path.join(YKHO.extracted_path, 'images')",
"def Kfi_(YKHO):\n return YKHO.img_dir",
"def eEoI():\n SWUC = Hy7s.path.dirname(xAKo)\n usOW ... | [
"0.87343574",
"0.8063427",
"0.8015947",
"0.79045343",
"0.77573377",
"0.75623655",
"0.75016487",
"0.74132186",
"0.72146994",
"0.72132033",
"0.7168296",
"0.71662945",
"0.7068373",
"0.7034467",
"0.6993475",
"0.68836826",
"0.6881692",
"0.68630046",
"0.6842804",
"0.6779864",
"0.67... | 0.0 | -1 |
Returns a dictionary of the constructor parameters needed to reinitialize this decomposer instance. | def W6RH(YKHO):
return {'nspecies': YKHO.nspecies, 'lmax': YKHO.lmax, 'nmax': YKHO.nmax, 'rcut': YKHO.rcut, 'sigma': YKHO.sigma, 'trans_width': YKHO.trans_width} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OQMv(YKHO) -> cuzp[str, ImMB]:\n return dict(obs_space=YKHO.obs_space, action_space=YKHO.action_space, scale_imgs=YKHO.scale_imgs)",
"def U_sI(YKHO):\n UMV5 = super().getInitParams()\n UMV5['method'] = YKHO.method\n UMV5['dimension'] = YKHO.dimension\n UMV5['rank'] = YKHO.rank\n UMV5['mu'] ... | [
"0.7442162",
"0.68150693",
"0.6808022",
"0.6675666",
"0.6647618",
"0.65139157",
"0.6408746",
"0.6383646",
"0.6383646",
"0.6379762",
"0.636821",
"0.6354684",
"0.6337408",
"0.6300463",
"0.62952626",
"0.62542886",
"0.62513936",
"0.6229614",
"0.6226545",
"0.6213492",
"0.6213492",... | 0.61513007 | 24 |
Computes the summed radial distribution function for the specified decomposed `P` vector. | def jO3H(YKHO, WihF, ydZk, DkUh=True):
SQ3m = oyIN.zeros((len(WihF), len(ydZk)))
for YRbF, CGkB in enumerate(WihF):
yzQ0 = oyIN.sign(CGkB[1]) * oyIN.sqrt(oyIN.sqrt(oyIN.abs(CGkB[1])))
SQ3m[YRbF, :] = yzQ0 * YKHO.apnl(CGkB, ydZk, fast=DkUh)
return oyIN.sum(SQ3m, axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jfGq(YKHO):\n ywwl = len(YKHO.listOfParticles)\n r8hN = YKHO.listOfParticles[0].m\n PtUL = 0\n for il4J in YKHO.listOfParticles:\n PtUL += il4J.V.len()\n k0lF = oyIN.pi * YKHO.R ** 2\n vuvg = 0.5 * k0lF * (2 * YKHO.R) * r8hN * ywwl * PtUL ** 2\n return vuvg",
"def jsrQ(YKHO, KFyH)... | [
"0.6314159",
"0.62371457",
"0.6164323",
"0.5895731",
"0.5823391",
"0.580841",
"0.5731659",
"0.5679429",
"0.56705576",
"0.56696606",
"0.5663881",
"0.56519175",
"0.5645086",
"0.55601126",
"0.5552655",
"0.55437446",
"0.5531621",
"0.5492125",
"0.5483412",
"0.5475694",
"0.54485303... | 0.5437653 | 22 |
Determines the distance between two DFs using the dot product metric. | def qjfR(YKHO, Elif):
if not hasattr(Elif, 'dtype') or YKHO.dtype != Elif.dtype:
raise TypeError('Can only calculate distance between two DFs. of the same type.')
return abs(oyIN.dot(YKHO.df, Elif.df) / (YKHO.norm * Elif.norm) - 1.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(YKHO, X3qZ, ZYCo):\n if _eFN:\n Tq9Y()\n Csk6 = ((float(X3qZ[0]) - float(ZYCo[0])) ** 2 + (float(X3qZ[1]) - float(ZYCo[1])) ** 2 + (float(X3qZ[2]) - float(ZYCo[2])) ** 2) ** 0.5\n return Csk6",
"def Ayfi(YKHO, X3qZ, ZYCo):\n if _eFN:\n Tq9Y()\n Csk6 = ((float(X3qZ[0]) - floa... | [
"0.6767505",
"0.66965914",
"0.6643104",
"0.6634885",
"0.6627882",
"0.6607545",
"0.6564397",
"0.6514842",
"0.64932764",
"0.64868736",
"0.64857775",
"0.64519465",
"0.6436199",
"0.6421477",
"0.64203244",
"0.6418315",
"0.64116",
"0.6411081",
"0.64090276",
"0.6388189",
"0.6386424"... | 0.6504075 | 8 |
Restores a DF from file. | def aBOe(Ux0P, MrcD=None, WKvO=None):
from six.moves.cPickle import load
with open(Ux0P, 'rb') as eHNT:
nPrm = load(eHNT)
return TYfJ.from_dict(nPrm, MrcD, WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bW0j(YKHO, gIsw: str):\n rLdf.read_csv(gIsw)",
"def tyeH() -> hxoQ:\n return DMrX(xAKo, 'default.csv.gz')",
"def DMrX(YKHO):\n YKHO.df = YKHO.sqlContext.read.csv(YKHO.source, sep=YKHO.sep, header=True, inferSchema=True)",
"def fJ39(YKHO):\n return rLdf.read_csv(YKHO.file_location, index_col=0... | [
"0.59928375",
"0.59581906",
"0.5940021",
"0.5889469",
"0.5850384",
"0.58437526",
"0.58260196",
"0.5813945",
"0.5769381",
"0.57409114",
"0.5665236",
"0.5646026",
"0.56440026",
"0.5624831",
"0.5595068",
"0.55518967",
"0.5543048",
"0.553934",
"0.55236995",
"0.55149215",
"0.55139... | 0.598158 | 1 |
Restores a DF from a serialized dict (i.e., one returned by | def jG8h(nPrm, MrcD=None, WKvO=None):
if WKvO is not None and nPrm['x'] is None:
nPrm['x'] = WKvO
Aofo = TYfJ(nPrm['dP'], nPrm['catom'], nPrm['x'], MrcD, nPrm['dtype'] == 'R', calculate=False)
Aofo.df = nPrm['df']
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CDXF(S8SU, Csk6, jQ3Z):\n nPrm = vvnB.factories[S8SU].from_dict(Csk6, jQ3Z)\n return nPrm",
"def jG8h(Emd4, qHj0) -> 'DataFileFormat':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def jG8h(Emd4, qHj0) -> 'DataView':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def aBOe(Ux0P, MrcD=None, WK... | [
"0.6646093",
"0.6299715",
"0.6285159",
"0.60915476",
"0.58948565",
"0.5870701",
"0.584504",
"0.58111876",
"0.5783925",
"0.5774692",
"0.5774659",
"0.56885755",
"0.56623095",
"0.5656708",
"0.56360584",
"0.56145734",
"0.5535191",
"0.5532201",
"0.5515236",
"0.5500709",
"0.5492723... | 0.58926773 | 5 |
Returns a serializable dictionary that represents this DF. | def Napc(YKHO, TFaL=True, zUmT=None, OIHT=True):
Aofo = {'dP': YKHO.dP if OIHT else None, 'catom': YKHO.catom, 'x': None if zUmT is not None and oyIN.allclose(zUmT, YKHO.x) else YKHO.x, 'dtype': YKHO.dtype, 'df': YKHO.df}
if TFaL:
Aofo['decomposer'] = YKHO.decomposer.get_params()
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO) -> cuzp:\n return dict(name=YKHO.name, typed=YKHO.typed, line=YKHO.line, column=YKHO.column, type=str(YKHO.type))",
"def _fYl(YKHO):\n return dict(YKHO.as_OD())",
"def MNRr(YKHO) -> dict:\n return nf7Q.asdict(YKHO)",
"def MNRr(YKHO):\n return YKHO._data_dict",
"def MNRr(YKHO):\n ... | [
"0.76832294",
"0.7665559",
"0.7604922",
"0.7560921",
"0.74917877",
"0.7488321",
"0.7452016",
"0.7436024",
"0.7429488",
"0.74239695",
"0.74239695",
"0.74239695",
"0.74239695",
"0.74181545",
"0.7414909",
"0.7413423",
"0.7413423",
"0.7413423",
"0.7413423",
"0.7413423",
"0.741342... | 0.0 | -1 |
Tests whether the specifed DF is similar to this one. | def g057(YKHO, Elif, STPv=None):
if STPv is None:
return YKHO - Elif < _hZ2
else:
return YKHO - Elif < STPv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tAcF(YKHO, Elif):\n if YKHO.rows == Elif.rows and YKHO.columns == Elif.columns:\n return True\n else:\n return False",
"def kRZn(LFlW: pd.DataFrame, _tIi: pd.DataFrame, **B2fa) -> bool:\n rLdf.testing.assert_frame_equal(LFlW, _tIi, **B2fa)\n return True",
"def OnYr(jQ3Z: pd.DataFr... | [
"0.69976294",
"0.65393454",
"0.6343995",
"0.62868977",
"0.62094605",
"0.6167531",
"0.61225456",
"0.6077134",
"0.60327977",
"0.5929656",
"0.58873004",
"0.58816206",
"0.584362",
"0.58327645",
"0.5832684",
"0.5786548",
"0.57839423",
"0.57174987",
"0.5708053",
"0.56977814",
"0.56... | 0.0 | -1 |
Tests the equality of this DFCollection with another. | def xa14(YKHO, Elif):
if isinstance(Elif, LaGZ):
return all([HJBP == v0PI for HJBP, v0PI in zip(YKHO, Elif)])
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not isinstance(Elif, IXwG):\n return False\n for H5ew, ZfUD in YKHO.items():\n if H5ew not in Elif:\n return False\n if isinstance(ZfUD, rLdf.DataFrame):\n if not YKHO[H5ew].equals(Elif[H5ew]):\n return False\n elif n... | [
"0.7321153",
"0.7259259",
"0.7256609",
"0.71629655",
"0.7114983",
"0.70464605",
"0.7044397",
"0.7023681",
"0.6988598",
"0.69706315",
"0.6929648",
"0.69221437",
"0.6893449",
"0.68927926",
"0.68721485",
"0.68692607",
"0.684994",
"0.6836221",
"0.68287075",
"0.68236506",
"0.68158... | 0.8649632 | 0 |
Restores a DFCollection from a serialized dict (i.e., one returned by | def jG8h(nPrm):
K2kF = []
MrcD = tPqd(**nPrm['decomposer'])
for eUat in nPrm['dfs']:
K2kF.append(TYfJ.from_dict(eUat, MrcD, nPrm['x']))
if len(K2kF) > 0:
yDqo = K2kF[0].dtype
else:
yDqo == 'R'
if yDqo == 'R':
Aofo = BEYl(K2kF, nPrm['counts'])
else:
Aof... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aBOe(Ux0P):\n from six.moves.cPickle import load\n with open(Ux0P, 'rb') as eHNT:\n nPrm = load(eHNT)\n return LaGZ.from_dict(nPrm)",
"def jG8h(YKHO, nPrm, cuiw=False):\n for mWFP, Jyyj in YKHO._fields.items():\n if not cuiw and mWFP not in YKHO._permanent_fields:\n conti... | [
"0.6325665",
"0.6000796",
"0.5860946",
"0.5758597",
"0.57526726",
"0.5681839",
"0.55863136",
"0.55668956",
"0.5544405",
"0.55119216",
"0.55009925",
"0.5495764",
"0.5478889",
"0.5463957",
"0.5458083",
"0.5421062",
"0.54140025",
"0.54064083",
"0.54013336",
"0.5397772",
"0.53805... | 0.54060906 | 18 |
Returns a serializable dictionary that represents this DFCollection. | def Napc(YKHO, OIHT=False):
MrcD = None
if len(YKHO) > 0:
MrcD = YKHO.dfs[0].decomposer
WKvO = YKHO.dfs[0].x
K2kF = []
for jQ3Z in YKHO:
K2kF.append(jQ3Z.serialize(withdecomp=False, commonx=WKvO, withdP=OIHT))
Aofo = {'dfs': K2kF, 'counts': YKHO.counts, 'label': YKHO.label, '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _fYl(YKHO):\n return dict(YKHO._d)",
"def MNRr(YKHO) -> dict:\n return nf7Q.asdict(YKHO)",
"def MNRr(YKHO):\n return YKHO._dict",
"def dict(YKHO):\n return YKHO.__data_dict",
"def _fYl(YKHO):\n return dict(YKHO.as_OD())",
"def MNRr(YKHO):\n return YKHO._data_dict",
"def MNRr(YKHO)... | [
"0.75616926",
"0.7511635",
"0.7491039",
"0.74859595",
"0.7482238",
"0.7481384",
"0.7476598",
"0.7449606",
"0.7449606",
"0.7449606",
"0.7449606",
"0.7449606",
"0.7449606",
"0.74495673",
"0.7432124",
"0.74137396",
"0.74137396",
"0.74137396",
"0.74137396",
"0.74137396",
"0.74137... | 0.0 | -1 |
Performs a more thorough equality check by also comparing the SOAP decomposers and RDFs. | def InF8(YKHO, Elif):
qdcB = YKHO == Elif
pM2u = YKHO.decomposer.get_params() == Elif.decomposer.get_params()
if YKHO.rx is not None:
if Elif.rx is not None:
EX1f = oyIN.allclose(YKHO.rx, Elif.rx) and (YKHO.cRDF is None and Elif.cRDF is None or (YKHO.cRDF is not None and Elif.cRDF is not... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO == Elif and YKHO._rdfs == Elif._rdfs and (YKHO._adfs == Elif._adfs)",
"def whu6(YKHO):\n pass",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, Zei5):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif: Any) -> bool:\n retu... | [
"0.6582844",
"0.6490502",
"0.6468094",
"0.646124",
"0.6441796",
"0.63963175",
"0.63323045",
"0.6321787",
"0.6317981",
"0.6301232",
"0.6287055",
"0.62754256",
"0.6247537",
"0.62326133",
"0.61812586",
"0.61812234",
"0.61768264",
"0.6174306",
"0.6147846",
"0.6146905",
"0.614353"... | 0.6886738 | 0 |
Returns a serializable dictionary that represents this SOAP Vector. | def Napc(YKHO, TFaL=True, YjAB=None, OIHT=True, lDug=None):
Aofo = {'P': YKHO.P, 'dcP': YKHO.dcP if OIHT else None, 'dnP': YKHO.dnP if OIHT else None, 'rx': None, 'ax': None, 'cRDF': None, 'nRDF': None, 'cADF': None, 'nADF': None}
if TFaL:
Aofo['decomposer'] = YKHO.decomposer.get_params()
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hg0N(YKHO):\n return YKHO.MOVE_DATA",
"def hg0N(YKHO):\n return YKHO.MOVE_DATA",
"def _fYl(YKHO):\n return {YKHO.words[YRbF]: YKHO.vectors[YRbF] for YRbF in range(YKHO.n)}",
"def Napc(YKHO):\n return {'type': YKHO.type, 'parameters': YKHO.parameters}",
"def hati(YKHO):\n return {H5ew: BW... | [
"0.7095322",
"0.7095322",
"0.6698339",
"0.66114575",
"0.657164",
"0.6513534",
"0.64937156",
"0.64863515",
"0.6451674",
"0.64432317",
"0.6386333",
"0.6381001",
"0.63809884",
"0.6335962",
"0.63265383",
"0.6326339",
"0.632167",
"0.632167",
"0.632167",
"0.632167",
"0.632167",
"... | 0.0 | -1 |
Performs a more rigorous equality test for two collections by also comparing the radial and angular distribution functions. | def InF8(YKHO, Elif):
return YKHO == Elif and YKHO._rdfs == Elif._rdfs and (YKHO._adfs == Elif._adfs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uq87(YKHO):\n J1b4 = ZCgf(4, 2, {'Hadamard': 1, 'CNOT': 1}, {1: 1, 2: 1}, 2, Ihf6(100))\n CYjz = ZCgf(4, 2, {'Hadamard': 1, 'CNOT': 1}, {1: 1, 2: 1}, 2, Ihf6(100))\n bpa0 = ZCgf(4, 2, {'CNOT': 1, 'Hadamard': 1}, {2: 1, 1: 1}, 2, Ihf6(100))\n nE4S = ZCgf(1, 2, {'Hadamard': 1, 'CNOT': 1}, {1: 1, 2: 1... | [
"0.6245225",
"0.6170157",
"0.6079659",
"0.6056684",
"0.59617877",
"0.59408987",
"0.5919135",
"0.588124",
"0.58621323",
"0.585822",
"0.5832414",
"0.58267003",
"0.5820708",
"0.5809908",
"0.58022666",
"0.5787736",
"0.5743084",
"0.57348627",
"0.5733868",
"0.57305956",
"0.5718367"... | 0.5527718 | 62 |
Returns a serializable dictionary that represents this | def Napc(YKHO, OIHT=False):
if len(YKHO) > 0:
ydZk = YKHO.vectors[0].rx
aNZO = YKHO.vectors[0].ax
else:
ydZk = None
aNZO = None
M8d_ = []
for he6J in YKHO.vectors:
M8d_.append(he6J.serialize(False, ydZk, OIHT, aNZO))
Aofo = {'decomposer': YKHO.decomposer.get_p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n return YKHO.__dict__",
"def _fYl(YKHO):\n return YKHO.__dict__",
"def lKKu(YKHO) -> dict:\n return YKHO.__asdict(YKHO)",
"def MNRr(YKHO):\n return MNRr(YKHO.__dict__)",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO... | [
"0.8595002",
"0.85555863",
"0.8555447",
"0.85523504",
"0.8523171",
"0.8523171",
"0.8523171",
"0.8523171",
"0.8523171",
"0.8523171",
"0.8507033",
"0.8489085",
"0.8478109",
"0.8478109",
"0.8478109",
"0.8478109",
"0.8478109",
"0.8478109",
"0.8478109",
"0.8421665",
"0.83539957",
... | 0.0 | -1 |
Simulate a failure to pull from origin. This test uses mocks, and doesn't reach out to the Internet. | def LxUk(iXC1):
from envoy import Response
_hkX = Response()
_hkX.status_code = 1
iXC1.return_value = _hkX
with trZe.raises(R6Sl.GitException):
R6Sl.pull_from_origin('/var/git/bower-cache') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pQLo(YKHO):\n raise NotImplementedError",
"def lQpe():\n with Po4F('cheddar.index.remote.get') as _xNI:\n _xNI.return_value = CFMy()\n _xNI.return_value.status_code = cwhV.bad_request\n with DQkc(mgaz):\n K2qG('http://example.com', D2fq, fhOf())",
"def StEW():\n wit... | [
"0.70107675",
"0.6947662",
"0.69358534",
"0.67239624",
"0.6571006",
"0.64593565",
"0.63515395",
"0.626154",
"0.62339056",
"0.6212326",
"0.6192882",
"0.61674815",
"0.6139515",
"0.61208487",
"0.61024463",
"0.60577905",
"0.6035372",
"0.6028136",
"0.60221356",
"0.6013819",
"0.601... | 0.7326702 | 0 |
Set the min and max values that should be allowed | def GI76(YKHO):
OOiM = YKHO.myParent.myIndustry[YKHO.myIndustryData.id]
ONpv = YKHO.myParent.myOldIndustry[YKHO.myIndustryData.id]
YKHO.setMinValue(-OOiM)
if ONpv > OOiM:
YKHO.setMaxValue(ONpv - OOiM)
elif YKHO.isIndustryResearched() == 0:
YKHO.setMaxValue(0)
else:
max = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, max: pulumi.Input[int], min: pulumi.Input[int]):\n qe4Y.set(Ro_8, 'max', max)\n qe4Y.set(Ro_8, 'min', min)",
"def FIMM(Ro_8, *, max: pulumi.Input[int], min: pulumi.Input[int]):\n qe4Y.set(Ro_8, 'max', max)\n qe4Y.set(Ro_8, 'min', min)",
"def FIMM(YKHO, kpLf, JCoA):\n YKHO.value... | [
"0.7520717",
"0.7520717",
"0.7507985",
"0.7507985",
"0.7507985",
"0.7507985",
"0.7295363",
"0.72809225",
"0.72809225",
"0.7242402",
"0.72358733",
"0.7219513",
"0.7049293",
"0.7033741",
"0.70287097",
"0.70029205",
"0.6978113",
"0.69233465",
"0.6887454",
"0.6857084",
"0.6814537... | 0.64361787 | 41 |
Path within data directory. | def YCtt(Qth0):
return Hy7s.path.join(tHKr, Qth0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TNBq():\n return '..' + Hy7s.sep + 'data' + Hy7s.sep",
"def s8df():\n return Hy7s.getcwd() + '/data/'",
"def s8df():\n return fHZh[m1hO]",
"def i0XC(YKHO):\n raise NotImplementedError",
"def h_xa(YKHO) -> GkAb:\n return YKHO._data_dir",
"def h_xa():\n return Hy7s.path.join(Hy7s.path... | [
"0.8704643",
"0.8704128",
"0.8440264",
"0.8373306",
"0.8307922",
"0.8163271",
"0.8108895",
"0.80921334",
"0.79625916",
"0.7922505",
"0.7918759",
"0.79187316",
"0.79162365",
"0.791422",
"0.7913816",
"0.79010504",
"0.78894436",
"0.78734744",
"0.78734744",
"0.7871642",
"0.787097... | 0.7559221 | 31 |
Generate random string of size "size" (defaults to 16) | def AW8b(zNig=16, gLiZ=vIwR.digits + vIwR.ascii_letters + vIwR.digits):
return ''.join((tuKI.choice(gLiZ) for bGrB in range(zNig))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mkg7(zNig, gLiZ=vIwR.ascii_uppercase + vIwR.digits):\n return ''.join((tuKI.choice(gLiZ) for bGrB in range(zNig)))",
"def EIGR(zNig=16):\n return ''.join(tuKI.SystemRandom().choices(vIwR.ascii_lowercase, k=zNig))",
"def eHHU(YKHO, zNig, gLiZ=None):\n return ''.join((tuKI.choice(gLiZ or r8SH) for b... | [
"0.8429512",
"0.8261857",
"0.822442",
"0.7779204",
"0.77691424",
"0.769575",
"0.75587434",
"0.75444233",
"0.74542755",
"0.7438945",
"0.7398973",
"0.7396432",
"0.73738956",
"0.7364241",
"0.7309675",
"0.73053277",
"0.7288789",
"0.7277877",
"0.725975",
"0.7156029",
"0.71492094",... | 0.7638601 | 6 |
Get state for serialization. Ensures that the context stack is cleared prior to serialization, since partial functions cannot be pickled reliably. | def k8jS(YKHO):
iNRS = YKHO.__dict__.copy()
iNRS['_contexts'] = []
return iNRS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8jS(YKHO):\n QTBn = YKHO.__dict__.copy()\n YKHO.__cleanState__(QTBn)\n return QTBn",
"def k8jS(YKHO):\n QTBn = YKHO.__dict__\n QTBn['_lock'] = None\n return QTBn",
"def k8jS(YKHO):\n QTBn = YKHO.__dict__.copy()\n QTBn['_logger'] = None\n return QTBn",
"def k8jS(YKHO):\n Aof... | [
"0.7276553",
"0.7138975",
"0.7133166",
"0.69625574",
"0.69519717",
"0.69327104",
"0.68639445",
"0.68538463",
"0.68538463",
"0.68538463",
"0.68538463",
"0.68538463",
"0.68538463",
"0.68538463",
"0.68538463",
"0.68538463",
"0.68538463",
"0.68538463",
"0.68538463",
"0.68538463",
... | 0.66980654 | 84 |
Initializes the Species object using strain vs allele matrix | def TKo5(YKHO, P0lE, bliN=True, VluR=None):
def b7x5():
"""Drops the alleles (columns) from Species vs Alleles matrix that are not in
the genome-scale model.
Parameters:
-----------
"""
EH7B = [str(WKvO.id) for WKvO in YKHO.base_cobra_model.genes]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n SiRx()\n YKHO.n_species = 5\n YKHO.n_examples = 100\n YKHO.n_features = 100\n YKHO.epsilon = 1e-05\n YKHO.X = oyIN.random.rand(YKHO.n_examples, YKHO.n_features)\n YKHO.y = oyIN.random.randint(0, 2, YKHO.n_examples)\n URIw(YKHO.X, YKHO.y.astype(oyIN.double))\n YKHO.w = o... | [
"0.6287631",
"0.61418396",
"0.6049554",
"0.5975972",
"0.59754276",
"0.5946852",
"0.5860813",
"0.58268523",
"0.57499176",
"0.5749532",
"0.57359403",
"0.5732591",
"0.5714261",
"0.5693881",
"0.5648901",
"0.5633708",
"0.5630515",
"0.5626761",
"0.5604717",
"0.56019825",
"0.5600567... | 0.53165716 | 86 |
Removes the association from self.model The change is reverted upon exit when using the model as a context. | def o8vu(YKHO, n2kx=False):
YKHO._model.remove_metabolites(YKHO, n2kx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MUsK(YKHO):\n return _VfD.Submodel_unsetModelRef(YKHO)",
"def wR7Z(YKHO, C3ST):\n assert isinstance(C3ST, wOed)\n YKHO.model_list.remove(C3ST)\n del YKHO.model_dict[C3ST.model_id]\n C3ST.structure = None\n if C3ST == YKHO.default_model:\n if len(YKHO.model_list) > 0:\n YKH... | [
"0.6827026",
"0.68237674",
"0.65594053",
"0.6555517",
"0.6534694",
"0.64836365",
"0.6468449",
"0.6403428",
"0.63953567",
"0.637884",
"0.63623077",
"0.6325461",
"0.6316599",
"0.6224635",
"0.61337614",
"0.6097289",
"0.60815513",
"0.6040511",
"0.60149527",
"0.5995405",
"0.598600... | 0.6038041 | 18 |
Filter X and Y to have same index and drop NANs | def ZgVm(wnko, Yq2Z, qPgi, PJWX=False):
LVAh = Yq2Z[qPgi]
LVAh.dropna(axis=0, how='all', inplace=True)
EcVT = wnko
EcVT = EcVT.reindex(LVAh.index)
return (EcVT, LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rHar(YKHO, nzV8, OJCd):\n cDK5 = nzV8.shape[0]\n if cDK5 != OJCd.shape[0]:\n raise ValueError(\"x and y sample lengths don't match\")\n y92i = oyIN.zeros(cDK5)\n for YRbF in range(cDK5):\n fJpR = nzV8[YRbF, :]\n ZqT5 = OJCd[YRbF, :]\n y92i[YRbF] = oyIN.isfinite(fJpR).all... | [
"0.70992655",
"0.6896083",
"0.6887405",
"0.6864373",
"0.66145563",
"0.6454961",
"0.6421214",
"0.63147473",
"0.6313013",
"0.62434214",
"0.62400633",
"0.61488336",
"0.612666",
"0.6085935",
"0.60481715",
"0.6031617",
"0.5991052",
"0.59695274",
"0.5951884",
"0.58480346",
"0.58156... | 0.6780217 | 4 |
Read lines from txt file | def Ueki(YKHO, i0XC: str=None, *qIxc, **B2fa) -> cuzp:
with open(i0XC) as eHNT:
hGN5 = eHNT.readlines()
__n6 = dict()
__n6['train'] = [(zFiD,) for zFiD in hGN5]
__n6['valid'] = []
__n6['test'] = []
return __n6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bIr9(YKHO, Ux0P):\n YKHO.text_lines = WDl8.read_text_file(Ux0P)",
"def Np1T(gIsw):\n YB6w = open(gIsw)\n Nqlg = YB6w.readlines()\n YB6w.close()\n return Nqlg",
"def YVtT(ied8: str):\n with open(file=ied8) as eHNT:\n Nqlg = eHNT.read()\n return Nqlg",
"def zlYa(pmON):\n with... | [
"0.7568076",
"0.7550429",
"0.7536287",
"0.742346",
"0.742346",
"0.74187857",
"0.7387999",
"0.7387999",
"0.73353577",
"0.7314123",
"0.7283472",
"0.7224448",
"0.7203126",
"0.7201152",
"0.71644336",
"0.71588165",
"0.71048474",
"0.7094382",
"0.7069796",
"0.70020205",
"0.6993603",... | 0.0 | -1 |
The evaluate process, calcluate the eval loss and metric. | def b7La(pETf, AcYW, N77f, gXXc, UlVL, zQKy, JT9N='eval'):
AcYW.reset()
CuxP = [N77f]
if isinstance(gXXc, list) or isinstance(gXXc, tuple):
CuxP.extend(list(gXXc))
else:
CuxP.append(gXXc)
for Wc9F in zQKy:
pETf.run(UlVL, feed=Wc9F, fetch_list=CuxP)
D0aC = pETf.run(UlV... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7La(YKHO) -> cuzp[str, float]:\n Ycl9 = YKHO.get_eval_dataloader()\n hlel = YKHO._prediction_loop(Ycl9, description='Evaluation')\n return hlel.metrics",
"def eval(YKHO):\n ht2j = h6ls('torch')\n vNAw = 0\n uZdl = 0\n BsIc = 0\n YKHO._set_eval()\n if YKHO.info:\n print(f'\\... | [
"0.74899846",
"0.7473894",
"0.7177148",
"0.7151574",
"0.7143763",
"0.7094778",
"0.70521444",
"0.70158106",
"0.6974163",
"0.69477504",
"0.69228894",
"0.69228894",
"0.6919093",
"0.6907223",
"0.6857874",
"0.6855203",
"0.6848403",
"0.68474495",
"0.68434274",
"0.6841688",
"0.68241... | 0.6670292 | 31 |
def hz2cents(pitchInHz, tonic=261.626)/ convert hz to cents | def _RvC(wyov, DacO=261.626):
Q0uV = 1200 * oyIN.log2(1.0 * wyov / DacO)
return Q0uV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiE2(fytP, Q0uV=0):\n QTg7 = 440 * mlmb(fytP - 69, Q0uV)\n return QTg7",
"def oHea(T6S7):\n return T6S7 * 3600.0 / P48T",
"def Cv5L(YRvy: str) -> int:\n ITS7 = int(YRvy[2:7])\n O66n = ITS7 // (Kmii.SECOND * 100)\n ITS7 = ITS7 % (Kmii.SECOND * 100) + O66n * Kmii.MINUTE\n return ITS7",
... | [
"0.64433503",
"0.62079906",
"0.61642134",
"0.6160762",
"0.5976477",
"0.5973125",
"0.59396815",
"0.5915583",
"0.58915544",
"0.58262277",
"0.5750366",
"0.57239604",
"0.567089",
"0.56618226",
"0.5660766",
"0.56244016",
"0.5623901",
"0.56217813",
"0.5580607",
"0.557691",
"0.55581... | 0.9625357 | 0 |
Create and save a user with the given username, email, and password. | def xWi2(YKHO, NtEF, D3lj, jTXt, bWtk, **wdCM):
NtEF = YKHO.model.normalize_username(NtEF)
CBIr = YKHO.model(username=NtEF, email=D3lj, phone=bWtk, **wdCM)
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, NtEF, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n if not NtEF:\n raise ValueError('The given username must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, username=str.strip(NtEF), **wdCM)\n CBIr.se... | [
"0.85967624",
"0.8440654",
"0.84264034",
"0.8423257",
"0.84063315",
"0.8393488",
"0.83878005",
"0.8341707",
"0.8334409",
"0.8332718",
"0.83224976",
"0.8288854",
"0.827502",
"0.8269521",
"0.8267577",
"0.81637603",
"0.8159258",
"0.8158126",
"0.81423306",
"0.8136717",
"0.8127502... | 0.82819235 | 12 |
Return pressure drop (psi) based on heuristics. | def Wggl(D8Ke, khtY) -> 'psi':
if 'l' in D8Ke and 'g' in khtY or ('g' in D8Ke and 'l' in khtY):
return 1.5
elif D8Ke == 'l':
return 5
elif khtY == 'g':
return 3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def get_pressure(YKHO) -> float:\n ...",
"def CJ2p(YKHO):\n YKHO._read_temperature()\n Yh3e = YKHO._read24(S7ov) / 16\n CIn9 = float(YKHO._t_fine) / 2.0 - 64000.0\n AhCl = CIn9 * CIn9 * YKHO._pressure_calib[5] / 32768.0\n AhCl = AhCl + CIn9 * YKHO._pressure_calib[4] * 2.0\n AhCl = AhCl... | [
"0.5929737",
"0.5903118",
"0.5830406",
"0.57982993",
"0.5649691",
"0.55875623",
"0.5575163",
"0.55590636",
"0.5542457",
"0.5524898",
"0.5497243",
"0.5474609",
"0.5465228",
"0.5431891",
"0.541882",
"0.5416765",
"0.5408484",
"0.54036",
"0.54035014",
"0.53881204",
"0.5383275",
... | 0.5879781 | 2 |
Return an estimate of pressure drops. Returns | def UbjN(Emd4, yuVB, ekgN, SCpB, Gqn7, YgS4):
uSA2, yLCN, szhH, jbYB = (yuVB.phase, ekgN.phase, SCpB.phase, Gqn7.phase)
oHt1 = Emd4._get_dP(uSA2, szhH)
EHbx = Emd4._get_dP(yLCN, jbYB)
if YgS4:
jfUg = oHt1
mTi5 = EHbx
else:
jfUg = EHbx
mTi5 = oHt1
return (jfUg, mTi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def get_pressure(YKHO) -> float:\n ...",
"def MLFu(YKHO):\n e1RO = YKHO.pressure_sensor.getVoltage()\n Qj8D = 250 * e1RO / 5 - 25\n YKHO._pressure_samples.append(Qj8D)\n if not YKHO.pressure_timer.hasPeriodPassed(YKHO.pressure_timer_delay):\n return YKHO._last_pressure_value\n YRL3... | [
"0.65462226",
"0.6483933",
"0.6420176",
"0.62605524",
"0.61167556",
"0.60894585",
"0.6008741",
"0.5937967",
"0.58765686",
"0.58653706",
"0.5822526",
"0.5820426",
"0.5812988",
"0.5793003",
"0.5792735",
"0.57696724",
"0.57687104",
"0.5764833",
"0.5750096",
"0.57481503",
"0.5746... | 0.0 | -1 |
Return overall heat transfer coefficient in kW/m2/K for concentric tubes. | def uQGV(LSOh, MDho, vj0r, Nduf, YgS4):
raise NotImplementedError()
Qa7W = LSOh.massnet / 3600
OlGG = LSOh.rho
VU_J = LSOh.mu
spAQ = (4 / mM0K * Qa7W * VU_J / vj0r) ** 0.5 / OlGG
UShr = 0.036576
kms6 = spAQ + 2 * UShr
StSB = LSOh.Pr
hxsk = MDho.Pr
wnoa = kms6 - spAQ
if vj0r <... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DaJg(YKHO, xNQ_=None, VWrU=None):\n xNQ_ = YRCA(VWrU, xNQ_)\n YKHO.checkPropertyTempRange('thermal conductivity', xNQ_)\n DaJg = 2.13014e-08 * xNQ_ ** 3 - 6.31916e-05 * xNQ_ ** 2 + 0.111629 * xNQ_ - 2.00043\n return DaJg * 0.001",
"def UqZj(YKHO):\n r8hN = 0.0167296736\n Z9rn = 8.54665149e-... | [
"0.60779226",
"0.5924128",
"0.5857128",
"0.58564323",
"0.58514094",
"0.5830105",
"0.58190376",
"0.58187425",
"0.5786457",
"0.5749674",
"0.57187116",
"0.5688183",
"0.5679539",
"0.56586283",
"0.5640102",
"0.56385636",
"0.562866",
"0.56221175",
"0.5619003",
"0.56082326",
"0.5585... | 0.53796893 | 44 |
True if POCS is setup and weather conditions are safe, False otherwise. | def HAYG(YKHO):
return YKHO.is_setup and YKHO.pocs.is_safe() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ASje(YKHO):\n if not YKHO.is_setup:\n return False\n if YKHO.pocs.observatory.mount.is_parked:\n bUk8('Mount is parked. To unpark run `unpark`')\n return False\n return YKHO.pocs.is_safe()",
"def fi5j(YKHO):\n if YKHO.pocs is None:\n bUk8('POCS has not been setup. Plea... | [
"0.6781441",
"0.6543211",
"0.6343394",
"0.62981725",
"0.6267585",
"0.61818415",
"0.615216",
"0.61397934",
"0.61342967",
"0.61317486",
"0.6084678",
"0.6021381",
"0.59994334",
"0.5925882",
"0.5910036",
"0.58711314",
"0.58443713",
"0.58311737",
"0.58311737",
"0.58311737",
"0.583... | 0.6946813 | 0 |
Copy of skimage.color.colorconv.xyz2rgb without sRGB to linear RGB conversion | def XDvP(d7Eb):
ezWE = Y1RL(d7Eb).copy()
return VnKZ(gk7L, ezWE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BqiF(d7Eb):\n return oyIN.where(d7Eb <= 0.03928, d7Eb / 12.92, oyIN.power((d7Eb + 0.055) / 1.055, 2.4))",
"def BiNr(CJh7):\n U5bT = oyIN.zeros_like(CJh7)\n yxfW = CJh7 <= 0.04045\n a06Z = CJh7 > 0.04045\n U5bT[yxfW] = CJh7[yxfW] / 12.92\n U5bT[a06Z] = oyIN.power((CJh7[a06Z] + 0.055) / 1.055... | [
"0.7423023",
"0.7058805",
"0.68922067",
"0.6646686",
"0.65456516",
"0.651969",
"0.6517755",
"0.6494007",
"0.64541024",
"0.64275265",
"0.636734",
"0.6355332",
"0.6348366",
"0.6275594",
"0.62734365",
"0.6272642",
"0.62708086",
"0.62463146",
"0.6244657",
"0.6228655",
"0.6189344"... | 0.60774916 | 32 |
Copy of skimage.color.colorconv.rgb2xyz without sRGB to linear RGB conversion | def FAlm(d7Eb):
ezWE = Y1RL(d7Eb).copy()
return VnKZ(yW9F, ezWE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BqiF(d7Eb):\n return oyIN.where(d7Eb <= 0.03928, d7Eb / 12.92, oyIN.power((d7Eb + 0.055) / 1.055, 2.4))",
"def ZWKa(Z9rn):\n if Z9rn <= 0.04045:\n return Z9rn / 12.92\n return epAf.pow((0.055 + Z9rn) / 1.055, 2.4)",
"def lb4R(d7Eb: Vector) -> lNLu:\n return lfCk.dot(GMnD, d7Eb, dims=lfCk... | [
"0.7300667",
"0.68105495",
"0.6629093",
"0.6404828",
"0.6403227",
"0.63833475",
"0.63555765",
"0.6340704",
"0.63375604",
"0.62844026",
"0.6269481",
"0.620081",
"0.61803615",
"0.6164831",
"0.61158353",
"0.6109969",
"0.60983247",
"0.60923177",
"0.60889184",
"0.607241",
"0.60684... | 0.65469146 | 3 |
Copy of skimage.color.colorconv.rgb2lab for linear RGB values | def He47(d7Eb, Le_y='D65', LiTy='2'):
return UGoT(FAlm(d7Eb), Le_y, LiTy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZWKa(Z9rn):\n if Z9rn <= 0.04045:\n return Z9rn / 12.92\n return epAf.pow((0.055 + Z9rn) / 1.055, 2.4)",
"def gmSy(d7Eb):\n return H5YI(P7uD(d7Eb), [0.9504559, 1, 1.089058])",
"def BqiF(d7Eb):\n return oyIN.where(d7Eb <= 0.03928, d7Eb / 12.92, oyIN.power((d7Eb + 0.055) / 1.055, 2.4))",
... | [
"0.73782295",
"0.7316201",
"0.727597",
"0.7130921",
"0.7006965",
"0.6987847",
"0.69228286",
"0.68951553",
"0.6878933",
"0.6737128",
"0.6712794",
"0.6665095",
"0.6635229",
"0.64935607",
"0.6483073",
"0.6374686",
"0.63507605",
"0.63361466",
"0.6329407",
"0.6321032",
"0.6304532"... | 0.6790627 | 9 |
Return number of nodes in binary search tree. | def zNig(YKHO):
return YKHO._size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kytq(YKHO):\n if YKHO.is_empty():\n return 0\n elif YKHO.is_leaf():\n return 1\n elif YKHO.get_left():\n if YKHO.get_right():\n return 1 + YKHO.get_left().count_nodes() + YKHO.get_right().count_nodes()\n else:\n return 1 + YKHO.get_left().count_nodes()... | [
"0.8351543",
"0.82648873",
"0.81702185",
"0.8096258",
"0.80228376",
"0.79952407",
"0.798081",
"0.78988373",
"0.7850317",
"0.7845933",
"0.7825513",
"0.76978314",
"0.7689033",
"0.7687506",
"0.7629483",
"0.75857615",
"0.75857615",
"0.75728494",
"0.75450623",
"0.74884015",
"0.746... | 0.0 | -1 |
Return the max depth of the binary search tree. | def rb7a(YKHO):
return YKHO._max_depth | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xll4(YKHO):\n fz7m = oyIN.array([kjp6.tree_depth for kjp6 in YKHO.leaves])\n return fz7m.max()",
"def sX7H(YKHO):\n qi10 = 0\n for Q6kx, nPrm in YKHO.traverse():\n qi10 = max(qi10, nPrm['level'])\n return qi10",
"def WLtg(Q6kx):\n if Q6kx is None:\n return 0\n else:\n ... | [
"0.85611963",
"0.8247156",
"0.81712496",
"0.8162375",
"0.8101124",
"0.80669117",
"0.8064293",
"0.80352896",
"0.8010666",
"0.7918433",
"0.789473",
"0.77646166",
"0.77548516",
"0.7748836",
"0.7733801",
"0.7696442",
"0.7680308",
"0.7650054",
"0.76317525",
"0.75359696",
"0.749083... | 0.78111154 | 11 |
Set the new right and left balance. | def g8bq(YKHO, Q6kx, tR4o):
_tIi = tR4o
LFlW = tR4o
if Q6kx._rkid:
_tIi = YKHO._new_depth(Q6kx._rkid, tR4o + 1)
if Q6kx._lkid:
LFlW = YKHO._new_depth(Q6kx._lkid, tR4o + 1)
if _tIi > LFlW:
return _tIi
return LFlW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xil7(YKHO):\n if YKHO.left is not None:\n YKHO.left = YKHO.left._balance()\n if YKHO.right is not None:\n YKHO.right = YKHO.right._balance()\n uu_g = YKHO._get_left_height()\n EV81 = YKHO._get_right_height()\n if abs(uu_g - EV81) > 1:\n if uu_g > EV81:\n return YK... | [
"0.7193358",
"0.6852323",
"0.6536458",
"0.6536458",
"0.64843196",
"0.64701253",
"0.6445271",
"0.6291261",
"0.6272844",
"0.6153494",
"0.6139571",
"0.6095175",
"0.6095175",
"0.6095175",
"0.6063707",
"0.6063189",
"0.6042922",
"0.6008766",
"0.59920156",
"0.59826595",
"0.598137",
... | 0.0 | -1 |
Get the new max depth. | def pE9Z(YKHO, JPHp=True):
_tIi = 1
LFlW = 1
if YKHO._root:
if YKHO._root._rkid:
_tIi = YKHO._new_depth(YKHO._root._rkid, 2)
if YKHO._root._lkid:
LFlW = YKHO._new_depth(YKHO._root._lkid, 2)
YKHO._rbal = _tIi
YKHO._lbal = LFlW
if JPHp:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tALi(YKHO):\n return YKHO.MAX_DEPTH",
"def qi10(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_depth')",
"def rb7a(YKHO):\n return YKHO._max_depth",
"def qi10(YKHO) -> int:\n return 0",
"def sX7H(YKHO):\n qi10 = 0\n for Q6kx, nPrm in YKHO.traverse():\n qi10 = max(qi10, nPrm['level'... | [
"0.83674264",
"0.82600397",
"0.8203152",
"0.80693704",
"0.7971046",
"0.789223",
"0.77345216",
"0.76835483",
"0.76775944",
"0.755396",
"0.7552425",
"0.7476909",
"0.73662543",
"0.7358727",
"0.73505074",
"0.73019785",
"0.72963804",
"0.72882825",
"0.72334474",
"0.7210142",
"0.716... | 0.7605794 | 9 |
Detects edges in an image. Uses Canny edge detection method. Bases thresholding on image statistics combined with the provided sigma. | def HgE4(LNo8, ihbl=0.33):
Ty9i = oyIN.median(LNo8)
LSh8 = int(max(0, (1.0 - ihbl) * Ty9i))
CN9P = int(min(255, (1.0 + ihbl) * Ty9i))
hCb1 = XC5k.Canny(LNo8, LSh8, CN9P)
return hCb1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aGAH(LNo8, WTkW=0.33):\n Ty9i = oyIN.median(LNo8)\n LSh8 = int(max(0, (1.0 - WTkW) * Ty9i))\n CN9P = int(min(255, (1.0 + WTkW) * Ty9i))\n MvDL = XC5k.Canny(LNo8, LSh8, CN9P)\n return MvDL",
"def aGAH(nJpj, WTkW=0.6):\n LVAh, WKvO = nJpj.shape\n FJil = 3\n F6tB = nJpj[LVAh / FJil:LVAh ... | [
"0.79609406",
"0.7908045",
"0.77093595",
"0.76847136",
"0.7640001",
"0.75924146",
"0.7459797",
"0.7433382",
"0.72532666",
"0.72225964",
"0.71686184",
"0.71023804",
"0.7076249",
"0.6958066",
"0.68751484",
"0.6853335",
"0.6736577",
"0.67272276",
"0.66508996",
"0.66180295",
"0.6... | 0.7600349 | 5 |
Setup multipliers for stageN layers (kernel and bias) | def t7MJ(C3ST):
wyWs = dict()
for gEmA in C3ST.layers:
if isinstance(gEmA, yHwh):
if ZbWC.match('Mconv\\d_stage1.*', gEmA.name):
AcwX = gEmA.weights[0].name
z2l9 = gEmA.weights[1].name
wyWs[AcwX] = 1
wyWs[z2l9] = 2
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ot1W, KUnM, EtM5, XkN1):\n super().__init__(name='identity' + str(EtM5) + XkN1)\n DZWo, MXwb, wMAF = KUnM\n if nMvt.image_data_format() == 'channels_last':\n z5f9 = 3\n else:\n z5f9 = 1\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n lPXw = 'bn' + str(EtM5) + XkN1 + '... | [
"0.6249089",
"0.6072116",
"0.6070728",
"0.587276",
"0.57109284",
"0.5698923",
"0.56985873",
"0.569087",
"0.5665633",
"0.5628388",
"0.5591559",
"0.55882686",
"0.55724263",
"0.5559083",
"0.5545881",
"0.5541538",
"0.5530732",
"0.5529899",
"0.5521045",
"0.5520058",
"0.55168074",
... | 0.5489509 | 25 |
Initializes the Vanilla RNN with the provided vocabulary_size, hidden layer size, and bptt_truncate. Also initializes the functions used in this RNN. | def FIMM(YKHO, ORyb=8000, Agjb=100, eZgp=100, JNU5=4, C3ST=None):
YKHO.log = G9jH.getLogger('TEST.Embed')
YKHO.log.setLevel(G9jH.INFO)
YKHO.unknown_token = 'UNKNOWN_TOKEN'
YKHO.sentence_start_token = 'SENTENCE_START'
YKHO.sentence_end_token = 'SENTENCE_END'
if C3ST is None:
YKHO.log.info... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, ORyb, gqIb=512, CLda=3, BRYw=256, hr1G=0.0, VjL3='gru', **B2fa):\n super(rEUo, YKHO).__init__()\n YKHO._layer_size = gqIb\n YKHO._embedding_layer_size = BRYw\n YKHO._num_layers = CLda\n YKHO._dropout = hr1G\n YKHO._controller_type = VjL3\n YKHO._embedding = ks6Q.Embedding(ORyb, ... | [
"0.7284881",
"0.64003086",
"0.6361222",
"0.63580465",
"0.6347471",
"0.6336283",
"0.62534225",
"0.6225993",
"0.6161096",
"0.61588115",
"0.6047174",
"0.6019962",
"0.6005152",
"0.59777117",
"0.5877666",
"0.5875248",
"0.58617556",
"0.5830877",
"0.58040506",
"0.57922393",
"0.57821... | 0.6514999 | 1 |
Compute my distance from the origin | def JpbV(YKHO):
return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + ... | [
"0.85663384",
"0.85663384",
"0.85663384",
"0.85663384",
"0.85663384",
"0.85663384",
"0.85663384",
"0.84973544",
"0.8323514",
"0.8296796",
"0.8215572",
"0.7732662",
"0.74226093",
"0.7381035",
"0.7292783",
"0.7264896",
"0.72594285",
"0.7255858",
"0.72473836",
"0.7230952",
"0.72... | 0.8565058 | 7 |
Return the halfway point between myself and the target | def Tf9J(YKHO, pan_):
RsfQ = (YKHO.x + pan_.x) / 2
suhQ = (YKHO.y + pan_.y) / 2
return PvyL(RsfQ, suhQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tf9J(YKHO, pan_):\n RsfQ = (YKHO.x + pan_.x) / 2\n suhQ = (YKHO.y + pan_.y) / 2\n return PvyL(RsfQ, suhQ)",
"def Tf9J(YKHO, pan_):\n RsfQ = (YKHO.x + pan_.x) / 2\n suhQ = (YKHO.y + pan_.y) / 2\n return PvyL(RsfQ, suhQ)",
"def xi3E(pan_, o3Uj):\n return hJJf(o3Uj, pan_)",
"def aZVB(YK... | [
"0.8789036",
"0.87399906",
"0.7259315",
"0.6758469",
"0.6579334",
"0.6313658",
"0.615805",
"0.60153526",
"0.59883934",
"0.58936673",
"0.58650094",
"0.58640325",
"0.585778",
"0.58406675",
"0.5820845",
"0.580087",
"0.5799157",
"0.5790215",
"0.5785922",
"0.5784319",
"0.5782862",... | 0.87813574 | 2 |
Return left child node (None if not set) | def gEGd(YKHO):
return bBBw.or_none(YKHO.left) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwcI(YKHO):\n if YKHO.left_child == None:\n return YKHO\n else:\n return YKHO.left_child.get_leftmost_child()",
"def L0tW(YKHO):\n return YKHO._leftchild",
"def LFlW(YKHO, Q6kx):\n if YKHO._col(Q6kx.count) > 0:\n return YKHO.nodes[Q6kx.count - 1]\n else:\n return ... | [
"0.83076704",
"0.8289362",
"0.79454666",
"0.79153305",
"0.7890329",
"0.781641",
"0.7721424",
"0.7591412",
"0.7512658",
"0.7491285",
"0.7491285",
"0.74899733",
"0.7486175",
"0.7470402",
"0.7450443",
"0.74252474",
"0.7337585",
"0.73302996",
"0.73200154",
"0.72774786",
"0.727631... | 0.79966176 | 2 |
Set left child to passed node if valid Updates child node with this as parent Would have decorated with or_none, but had complications with inherited decorators | def bFb7(YKHO, OqY6):
Q6kx = bBBw.or_none(OqY6)
YKHO.left = Q6kx
if Q6kx is not None:
Q6kx.parent = YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cnth(YKHO):\n LFlW = YKHO._leftchild\n if LFlW.full():\n if LFlW._rightchild._height > LFlW._leftchild._height:\n LFlW._rotate_rightchild()\n elif LFlW._rightchild and (not LFlW._leftchild):\n LFlW._rotate_rightchild()\n YKHO._rotate_leftchild()",
"def BK4L(YKHO, XP5J, tT... | [
"0.71900094",
"0.71475196",
"0.7126411",
"0.70740926",
"0.70345104",
"0.69659567",
"0.695427",
"0.6944425",
"0.69106203",
"0.667609",
"0.66436774",
"0.66181445",
"0.6604511",
"0.6597774",
"0.6597774",
"0.6592089",
"0.6538455",
"0.6516503",
"0.6516503",
"0.64947724",
"0.649071... | 0.7475854 | 0 |
Given two dicts, merge them into a new dict as a shallow copy. Any overlapping keys in `y` will override the values in `x`. | def yQxF(WKvO, LVAh):
epBp = WKvO.copy()
epBp.update(LVAh)
return epBp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yQxF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp",
"def yQxF(YKHO, WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp",
"def yQxF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp",
"def hOKH(WKvO, LVAh):\n epBp = WK... | [
"0.8548726",
"0.8490123",
"0.84873074",
"0.8484024",
"0.84027874",
"0.84027874",
"0.84027874",
"0.7845553",
"0.78121614",
"0.72869974",
"0.71975857",
"0.7183314",
"0.71212286",
"0.7071206",
"0.706308",
"0.6948756",
"0.6933829",
"0.68975633",
"0.6886659",
"0.6874611",
"0.68746... | 0.84721476 | 10 |
Return both scale/offset reward and raw reward. | def h3Xc(qKJx, NXpY: float=1.0, vgXP: float=0.0, CqPm: float=0.0, v4_8: bool=False):
def FYKK(*qIxc, **B2fa):
vOGg, _ins = qKJx(*qIxc, **B2fa)
if v4_8:
p1kx = oLG2.zeros_like(vOGg)
else:
p1kx = vOGg
vOGg = (vOGg + vgXP) * NXpY
p1kx *= oLG2.sign(NXpY)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zm1t(YKHO):\n if YKHO._target_type == 'position':\n pImw = oyIN.linalg.norm(YKHO._target_diff_, ord=2)\n if YKHO._reward_type == 'linear':\n jc34 = -pImw\n elif YKHO._reward_type == 'precision':\n jc34 = -pImw + oyIN.exp(-pImw ** 2 / 0.01)\n elif YKHO._rewar... | [
"0.7104173",
"0.692538",
"0.69069207",
"0.69031477",
"0.6853908",
"0.6829797",
"0.6804706",
"0.6792893",
"0.67796314",
"0.67312807",
"0.6716325",
"0.67004997",
"0.6661222",
"0.6650941",
"0.6618282",
"0.65731996",
"0.6534663",
"0.64825994",
"0.6438872",
"0.63996714",
"0.639861... | 0.0 | -1 |
Return all relation_ids that have anything to do with any of the specified rids. | def Z5ws(YKHO, nUvg):
if isinstance(nUvg, int):
nUvg = [nUvg]
EmMj = set()
for WKvO in nUvg:
EmMj.update(YKHO.find_relations(WKvO))
return EmMj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VgGk(YKHO, ZTUg: int, *nUvg):\n cntZ = set(YKHO.rid_to_relations.get(ZTUg, ()))\n if nUvg:\n return cntZ.intersection(*[YKHO.rid_to_relations.get(WKvO, set()) for WKvO in nUvg])\n return cntZ",
"def pQ_6(YKHO, A07C):\n hoe5 = set([YKHO.mapping.revision_id_foreign_to_bzr(MKlR) for MKlR in A... | [
"0.7068122",
"0.6178545",
"0.61126",
"0.5633207",
"0.5621144",
"0.55956775",
"0.5517054",
"0.544778",
"0.52668095",
"0.5230114",
"0.5160103",
"0.51375306",
"0.51349616",
"0.50796264",
"0.5079276",
"0.5060331",
"0.50485295",
"0.50467944",
"0.5046012",
"0.50338763",
"0.5004158"... | 0.82737875 | 0 |
Builds a help/welcome response. | def OnM0():
ACxF = 'Welcome'
OcIA = 'Please give a command for your painting lights.'
geh0 = Imym.build_response(Zz_i, Imym.build_speechlet_response(ACxF, OcIA, j3CY, P1Y2))
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OnM0():\n Zz_i = {}\n ACxF = '乱数のある生活'\n OcIA = 'あなたのほしい乱数を生成します。3つの選択肢から1つを選んでほしい時は,「3つのうちから一つ選んで」と話しかけてみてください。サイコロやルーレットを振りたい時は,「サイコロを1回振って」などと話しかけてみてください。「もう一度」と話しかけると一つ前と同じ条件で新しい乱数を生成します。'\n j3CY = ''\n P1Y2 = False\n return Xeta(Zz_i, waxf(ACxF, OcIA, j3CY, P1Y2))",
"def KdO_():\n Z... | [
"0.69531584",
"0.6669123",
"0.6659305",
"0.6659305",
"0.66561204",
"0.66448635",
"0.66277796",
"0.6601627",
"0.65798455",
"0.65738314",
"0.65607375",
"0.6545873",
"0.6535704",
"0.6518268",
"0.64986205",
"0.64876014",
"0.6482488",
"0.6476212",
"0.64612633",
"0.64595795",
"0.64... | 0.7396891 | 0 |
Builds a response with a blank message and no session data. If using session data this function would specifically have session_attributes = {} and should_end_session = True. | def R570():
OcIA = None
geh0 = Imym.build_response(Zz_i, Imym.build_speechlet_response(ACxF, OcIA, j3CY, P1Y2))
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F2GH(YKHO, Zz_i):\n return {'version': '1.0', 'sessionAttributes': Zz_i, 'response': YKHO._build_speechlet_response()}",
"def Xeta(Zz_i, U2fd):\n return {'version': '1.0', 'sessionAttributes': Zz_i, 'response': U2fd}",
"def Xeta(Zz_i, U2fd):\n return {'version': '1.0', 'sessionAttributes': Zz_i, '... | [
"0.6625485",
"0.64616925",
"0.63275236",
"0.63275236",
"0.60864764",
"0.5852829",
"0.5755682",
"0.569417",
"0.5621705",
"0.56033504",
"0.5539452",
"0.5508169",
"0.55004966",
"0.5447988",
"0.54411197",
"0.5432958",
"0.5430151",
"0.54139966",
"0.5399279",
"0.5381181",
"0.537054... | 0.64332974 | 2 |
Retrieves and parses the command line arguments created and defined using the argparse module. This function returns these arguments as an ArgumentParser object. | def agXF():
wvEv = j1Jz.ArgumentParser()
wvEv.add_argument('--json_path', type=str, default='cat_to_name.json', help='Json path of labels to categories')
wvEv.add_argument('--use_gpu', type=bool, default=False, help='Run with GPU')
wvEv.add_argument('--topk', type=int, default=5, help='Top N classes tha... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gGZX():\n qIxc = Xt1H()\n wvEv = j1Jz.ArgumentParser('Update river flow directions')\n wvEv.add_argument('python_config_filename', metavar='python-config-filename', help='Full path to python configuration file', type=str)\n wvEv.parse_args(namespace=qIxc)\n return qIxc",
"def KPGg():\n wvEv... | [
"0.8138782",
"0.79517275",
"0.78769577",
"0.78217745",
"0.779941",
"0.779941",
"0.7774491",
"0.77692086",
"0.7760826",
"0.773166",
"0.7715235",
"0.77124196",
"0.7626294",
"0.7610812",
"0.75815564",
"0.7573426",
"0.7565669",
"0.7555788",
"0.7530112",
"0.7528781",
"0.7527054",
... | 0.0 | -1 |
A call to /subtract/a/b yields a b, for a > b | def UVmx(YKHO):
jzdc = tuKI.randint(10000, 100000)
Fg_i = tuKI.randint(100, 1000)
pmON = '/subtract/{}/{}'.format(jzdc, Fg_i)
geh0 = YKHO.get_response(pmON)
YKHO.assertEqual(200, geh0.getcode())
YKHO.assertIn(str(jzdc - Fg_i).encode(), geh0.read()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wncN(jzdc, Fg_i):\n return jzdc - Fg_i",
"def wncN(jzdc, Fg_i):\n return jzdc - Fg_i",
"def ruoQ(jzdc, Fg_i):\n return jzdc - Fg_i",
"def VLpm(YKHO, jzdc, Fg_i):\n return jzdc - Fg_i",
"def wncN(jzdc, Fg_i):\n print('SUBTRACTING %d - %d' % (jzdc, Fg_i))\n return jzdc - Fg_i",
"def w... | [
"0.7999072",
"0.7999072",
"0.7927289",
"0.7712253",
"0.7707467",
"0.7671813",
"0.76046544",
"0.75884175",
"0.7552992",
"0.74034053",
"0.7398838",
"0.7336967",
"0.73361933",
"0.73342633",
"0.73342633",
"0.73342633",
"0.73329455",
"0.73226595",
"0.7249103",
"0.7249103",
"0.7249... | 0.704409 | 30 |
A call to /subtract/a/b yields a b, for a < b | def d9ET(YKHO):
jzdc = tuKI.randint(100, 1000)
Fg_i = tuKI.randint(10000, 100000)
pmON = '/subtract/{}/{}'.format(jzdc, Fg_i)
geh0 = YKHO.get_response(pmON)
YKHO.assertEqual(200, geh0.getcode())
YKHO.assertIn(str(jzdc - Fg_i).encode(), geh0.read()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wncN(jzdc, Fg_i):\n return jzdc - Fg_i",
"def wncN(jzdc, Fg_i):\n return jzdc - Fg_i",
"def ruoQ(jzdc, Fg_i):\n return jzdc - Fg_i",
"def VLpm(YKHO, jzdc, Fg_i):\n return jzdc - Fg_i",
"def wncN(cntZ, CsFy):\n return cntZ - CsFy",
"def finE(YKHO, jzdc, Fg_i):\n return jzdc - Fg_i",
... | [
"0.79402685",
"0.79402685",
"0.78126335",
"0.7720317",
"0.7627804",
"0.7620604",
"0.75992376",
"0.75113356",
"0.74423736",
"0.7404574",
"0.7381209",
"0.7375842",
"0.7375842",
"0.7375842",
"0.7321055",
"0.72378105",
"0.72308564",
"0.72291607",
"0.7209949",
"0.7177835",
"0.7177... | 0.68664914 | 37 |