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 |
|---|---|---|---|---|---|---|
GetOutputRegion(itkFastMarchingImageFilterBaseIF3IF3 self) > itkImageRegion3 | def ymZy(YKHO) -> 'itkImageRegion3 const &':
return zrAt.itkFastMarchingImageFilterBaseIF3IF3_GetOutputRegion(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _SnI(YKHO, THRx: 'itkImageRegion3') -> 'void':\n return zrAt.itkFastMarchingImageFilterBaseIF3IF3_SetOutputRegion(YKHO, THRx)",
"def ymZy(YKHO) -> 'itkImageRegion2 const &':\n return zrAt.itkFastMarchingImageFilterBaseIF2IF2_GetOutputRegion(YKHO)",
"def B29l(YKHO) -> 'itkFastMarchingImageFilterBaseIF... | [
"0.80692416",
"0.7565564",
"0.6914407",
"0.6685015",
"0.6669367",
"0.64715105",
"0.6370457",
"0.634947",
"0.6291176",
"0.6235135",
"0.6230143",
"0.6200375",
"0.6089165",
"0.60823256",
"0.60807955",
"0.6078066",
"0.60583645",
"0.60211176",
"0.5998428",
"0.5991979",
"0.59870243... | 0.8771118 | 0 |
SetOutputSpacing(itkFastMarchingImageFilterBaseIF3IF3 self, itkVectorD3 _arg) | def rTLR(YKHO, THRx: 'itkVectorD3') -> 'void':
return zrAt.itkFastMarchingImageFilterBaseIF3IF3_SetOutputSpacing(YKHO, THRx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rTLR(YKHO, THRx: 'itkVectorD3') -> 'void':\n return Z8Pz.itkChangeInformationImageFilterIF3_SetOutputSpacing(YKHO, THRx)",
"def rTLR(YKHO, THRx: 'itkVectorD3') -> 'void':\n return Z8Pz.itkChangeInformationImageFilterISS3_SetOutputSpacing(YKHO, THRx)",
"def rTLR(YKHO, THRx: 'itkVectorD3') -> 'void':\n... | [
"0.81507945",
"0.8111399",
"0.8021153",
"0.7992434",
"0.79091126",
"0.7333672",
"0.71608394",
"0.7125157",
"0.693339",
"0.68517226",
"0.678983",
"0.6782146",
"0.66153145",
"0.658784",
"0.6537202",
"0.65150553",
"0.64874715",
"0.6483939",
"0.6456421",
"0.64563745",
"0.6431138"... | 0.9119157 | 0 |
SetOutputOrigin(itkFastMarchingImageFilterBaseIF3IF3 self, itkPointD3 _arg) | def Xvdg(YKHO, THRx: 'itkPointD3') -> 'void':
return zrAt.itkFastMarchingImageFilterBaseIF3IF3_SetOutputOrigin(YKHO, THRx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xvdg(YKHO, THRx: 'itkPointD3') -> 'void':\n return Z8Pz.itkChangeInformationImageFilterIF3_SetOutputOrigin(YKHO, THRx)",
"def Xvdg(YKHO, THRx: 'itkPointD3') -> 'void':\n return Z8Pz.itkChangeInformationImageFilterISS3_SetOutputOrigin(YKHO, THRx)",
"def Xvdg(YKHO, THRx: 'itkPointD2') -> 'void':\n r... | [
"0.81559706",
"0.8105223",
"0.8070464",
"0.80361104",
"0.8010792",
"0.7667198",
"0.7412717",
"0.7106333",
"0.695519",
"0.6737369",
"0.6668983",
"0.66313934",
"0.66215974",
"0.64670783",
"0.64400643",
"0.64257485",
"0.6415859",
"0.64124185",
"0.63981396",
"0.63875735",
"0.6376... | 0.9255419 | 0 |
SetOverrideOutputInformation(itkFastMarchingImageFilterBaseIF3IF3 self, bool const _arg) | def IZyo(YKHO, THRx: 'bool const') -> 'void':
return zrAt.itkFastMarchingImageFilterBaseIF3IF3_SetOverrideOutputInformation(YKHO, THRx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IZyo(YKHO, THRx: 'bool const') -> 'void':\n return zrAt.itkFastMarchingImageFilterBaseIF2IF2_SetOverrideOutputInformation(YKHO, THRx)",
"def ShKJ(YKHO) -> 'bool const &':\n return zrAt.itkFastMarchingImageFilterBaseIF3IF3_GetOverrideOutputInformation(YKHO)",
"def _SnI(YKHO, THRx: 'itkImageRegion3') -... | [
"0.8500271",
"0.7813891",
"0.74573267",
"0.71367306",
"0.68697083",
"0.6628824",
"0.6495595",
"0.64687437",
"0.64670914",
"0.6453538",
"0.6430995",
"0.63616854",
"0.63554984",
"0.63418436",
"0.6298862",
"0.62456834",
"0.6220974",
"0.6214999",
"0.6193815",
"0.61790746",
"0.616... | 0.93267787 | 0 |
GetOverrideOutputInformation(itkFastMarchingImageFilterBaseIF3IF3 self) > bool const & | def ShKJ(YKHO) -> 'bool const &':
return zrAt.itkFastMarchingImageFilterBaseIF3IF3_GetOverrideOutputInformation(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShKJ(YKHO) -> 'bool const &':\n return zrAt.itkFastMarchingImageFilterBaseIF2IF2_GetOverrideOutputInformation(YKHO)",
"def IZyo(YKHO, THRx: 'bool const') -> 'void':\n return zrAt.itkFastMarchingImageFilterBaseIF3IF3_SetOverrideOutputInformation(YKHO, THRx)",
"def IZyo(YKHO, THRx: 'bool const') -> 'vo... | [
"0.87994677",
"0.80410546",
"0.7526723",
"0.64461595",
"0.6259794",
"0.61232466",
"0.5943569",
"0.59152436",
"0.5892105",
"0.5872008",
"0.5867703",
"0.5855322",
"0.5828637",
"0.580077",
"0.5788345",
"0.57861024",
"0.577038",
"0.5741338",
"0.57411784",
"0.5736187",
"0.5731147"... | 0.92435473 | 0 |
cast(itkLightObject obj) > itkFastMarchingImageFilterBaseIF3IF3 | def YWvJ(YEnM: 'itkLightObject') -> 'itkFastMarchingImageFilterBaseIF3IF3 *':
return zrAt.itkFastMarchingImageFilterBaseIF3IF3_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ouuJ(YEnM: 'itkLightObject') -> 'itkFastMarchingImageFilterBaseIF3IF3 *':\n return zrAt.itkFastMarchingImageFilterBaseIF3IF3_cast(YEnM)",
"def uI0H(YEnM: 'itkLightObject') -> 'itkFastMarchingStoppingCriterionBaseIF3IF3 *':\n return XEdo.itkFastMarchingStoppingCriterionBaseIF3IF3_cast(YEnM)",
"def YWv... | [
"0.87264127",
"0.81512594",
"0.8112923",
"0.80780196",
"0.80618066",
"0.80434185",
"0.80364054",
"0.79736006",
"0.7961848",
"0.79497343",
"0.79458296",
"0.7905478",
"0.78782135",
"0.7874497",
"0.78663576",
"0.7842917",
"0.7839482",
"0.78352165",
"0.7828959",
"0.7785531",
"0.7... | 0.8709859 | 1 |
New() > itkFastMarchingImageFilterBaseIF3IF3 Create a new object of the class itkFastMarchingImageFilterBaseIF3IF3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named pa... | def oW_4(*qIxc, **PECO):
YEnM = cErW.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = ycZp.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = ktR3.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7957616",
"0.7661014",
"0.73940015",
"0.7352948",
"0.72963774",
"0.7294882",
"0.7284166",
"0.72827464",
"0.72703505",
"0.72702146",
"0.7257562",
"0.7250796",
"0.7238027",
"0.7237693",
"0.72303426",
"0.72281146",
"0.7227482",
"0.7222466",
"0.7222188",
"0.7219298",
"0.720856... | 0.84128094 | 0 |
itkFastMarchingImageFilterBaseIF3IF3_cast(itkLightObject obj) > itkFastMarchingImageFilterBaseIF3IF3 | def ouuJ(YEnM: 'itkLightObject') -> 'itkFastMarchingImageFilterBaseIF3IF3 *':
return zrAt.itkFastMarchingImageFilterBaseIF3IF3_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkFastMarchingImageFilterBaseIF3IF3 *':\n return zrAt.itkFastMarchingImageFilterBaseIF3IF3_cast(YEnM)",
"def uI0H(YEnM: 'itkLightObject') -> 'itkFastMarchingStoppingCriterionBaseIF3IF3 *':\n return XEdo.itkFastMarchingStoppingCriterionBaseIF3IF3_cast(YEnM)",
"def YWv... | [
"0.9082772",
"0.8585069",
"0.8393103",
"0.82327956",
"0.82012516",
"0.81375945",
"0.81069666",
"0.8095681",
"0.80932486",
"0.8071164",
"0.8062603",
"0.8049819",
"0.80495524",
"0.80485094",
"0.802838",
"0.8004807",
"0.79903305",
"0.798907",
"0.798417",
"0.7962249",
"0.7951512"... | 0.926758 | 0 |
Given the path to an experiment directory, returns the path to the last saved checkpoint's subdirectory. | def FW_I(Emd4, SItH):
fcOk = Hy7s.path.join(SItH, Emd4.CHECKPOINT_DIR)
if not Hy7s.path.exists(fcOk):
Hy7s.makedirs(fcOk)
bfB5 = sorted(Hy7s.listdir(fcOk), reverse=True)
if bfB5:
return Hy7s.path.join(fcOk, bfB5[0])
else:
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hPQa(YKHO) -> GkAb:\n return GkAb(YKHO.config.canonical_copy().experiment_working_directory) / YKHO.id / 'checkpoint'",
"def D5n3(pmON):\n if Hy7s.path.isfile(pmON):\n DR43 = pmON.split('/')[-2]\n elif Hy7s.path.isdir(pmON):\n if pmON[-1] == '/':\n DR43 = pmON.split('/')[-2]... | [
"0.7592655",
"0.7115343",
"0.7030564",
"0.69691765",
"0.69329387",
"0.68802905",
"0.6800489",
"0.673043",
"0.67286044",
"0.6654353",
"0.664136",
"0.6614976",
"0.66080785",
"0.660045",
"0.6526329",
"0.65133756",
"0.64384127",
"0.6387403",
"0.63551474",
"0.6341686",
"0.6320557"... | 0.75302935 | 1 |
This is the main page served in this app | def d6pt(QePW):
return igJ6('HI!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ev1b():\n bo34.info('At main app page.')\n return TvZl('index.html')",
"def Ozko():\n return TvZl('index.html')",
"def Ev1b():\n return TvZl('main.html')",
"def Ev1b():\n return TvZl('mainpage.html')",
"def NMoC(YKHO):\n YKHO.RenderStaticHtml('main.html')",
"def b8V_():\n return ... | [
"0.8637359",
"0.8296004",
"0.82470196",
"0.8102531",
"0.80321884",
"0.8008497",
"0.7971378",
"0.7963923",
"0.7953707",
"0.7890411",
"0.78448534",
"0.7842228",
"0.782738",
"0.78212255",
"0.78211755",
"0.77966046",
"0.7734904",
"0.77118874",
"0.7697798",
"0.7624722",
"0.762183"... | 0.0 | -1 |
Manually remove tags from HTML strings to avoid importing yetanotherlibrary. | def KM_9(YKHO, WEtT):
return ZbWC.sub('<p>|</p>', '', WEtT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return ZbWC.sub(x0SS, '', l5Ny)",
"def rKep(Emd4, _R2e):\n mz1x = ''\n while mz1x != _R2e:\n mz1x = _R2e\n _R2e = Emd4._re_blank_tags.sub(u'', _R2e)\n return _R2e",
"def rKep(Emd4, _R2e):\n mz1x = ''\n while mz1x != _R2e:\n ... | [
"0.79285264",
"0.78971004",
"0.7881219",
"0.78720075",
"0.77768224",
"0.7745945",
"0.77453506",
"0.7733248",
"0.7730816",
"0.7715608",
"0.77137935",
"0.77137935",
"0.77033323",
"0.7699007",
"0.76640403",
"0.76370585",
"0.76329654",
"0.76329654",
"0.76329654",
"0.76329654",
"0... | 0.0 | -1 |
A view that streams a large CSV file. | def lv60(UrXw):
return UrXw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J6Ih(QePW):\n SR0I = owDy.objects.all()\n ZMzz = g8pK()\n return D7I_(SR0I, ZMzz)",
"def G1rZ(QePW):\n SR0I = oPx1.objects.all()\n ZMzz = M1cz()\n return D7I_(SR0I, ZMzz)",
"def z36O(pmON):\n with open(pmON, newline='') as eHNT:\n return GB8g(eHNT)",
"def bnFJ(QePW):\n Napc... | [
"0.6662013",
"0.6587355",
"0.64403766",
"0.63362163",
"0.60432744",
"0.59155834",
"0.5895472",
"0.5866759",
"0.5823763",
"0.5713033",
"0.56752133",
"0.5639227",
"0.561475",
"0.56117547",
"0.5606154",
"0.55895776",
"0.55800045",
"0.5575271",
"0.55703276",
"0.5561878",
"0.55525... | 0.0 | -1 |
Set the message_id property to a new UUID. | def Rid9(YKHO):
YKHO.properties['message_id'] = str(qxeD.uuid4()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KREW(YKHO, KREW):\n YKHO._message_id = KREW",
"def CcGF(Ol8d: 'helics_message_object', JWX_: 'int32_t') -> 'void':\n return RznI.helicsMessageSetMessageID(Ol8d, JWX_)",
"def ymnU(YKHO, KREW):\n assert KREW.strip(), 'Message_id not valid'\n YKHO.email_message_id = KREW.strip()",
"def V_9M(YKHO... | [
"0.7042441",
"0.6884202",
"0.68476725",
"0.6559395",
"0.64512277",
"0.6349366",
"0.63160694",
"0.6308566",
"0.63007236",
"0.62783134",
"0.62543726",
"0.62240636",
"0.6219388",
"0.6202424",
"0.6191891",
"0.6176203",
"0.61322254",
"0.61218655",
"0.611518",
"0.6096268",
"0.60735... | 0.7554262 | 0 |
Removes all tkinter components from the window, then reloads the UI along with any added data. | def uUrB(YKHO):
qnba = YKHO.window.winfo_children()
for ZfUD in qnba:
if ZfUD.winfo_children():
qnba.extend(ZfUD.winfo_children())
JXtK = qnba
for ZfUD in JXtK:
ZfUD.grid_forget()
with open('groupBackup.txt', 'wb') as eHNT:
t2lc.dump(YKHO.active_groups, eHNT)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uUrB(YKHO):\n bo34.info('Refreshing {}'.format(YKHO))\n for TEdI in YKHO.label_frame.winfo_children():\n TEdI.destroy()\n YKHO._setup_name_input_field(0)\n YKHO._setup_input_directory_field(1)\n YKHO._setup_metadata_schema_selection(3)",
"def fhHB(YKHO):\n for aUGN in YKHO.innerFrame... | [
"0.7110949",
"0.71012795",
"0.7077481",
"0.6838469",
"0.67872465",
"0.6762169",
"0.6739446",
"0.67086995",
"0.6665761",
"0.6621794",
"0.66121536",
"0.66119224",
"0.6593074",
"0.6567827",
"0.6557237",
"0.6552378",
"0.65501016",
"0.65489006",
"0.6541418",
"0.6529315",
"0.652355... | 0.70714164 | 3 |
Create and save a User with the given email and password. | def xWi2(YKHO, D3lj, jTXt, **wdCM):
if not D3lj:
raise ValueError('The given email must be set')
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, **wdCM)
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n D3lj = YKHO.normalize_email(D3lj)\n ... | [
"0.8765867",
"0.85452795",
"0.85368717",
"0.8527806",
"0.85269475",
"0.85257876",
"0.85186416",
"0.8508724",
"0.8504736",
"0.8504567",
"0.8504567",
"0.8504567",
"0.8494046",
"0.8494046",
"0.84938884",
"0.8492852",
"0.849132",
"0.8490454",
"0.8488974",
"0.8488869",
"0.84884715... | 0.8475258 | 30 |
Create and save a regular User with the given email and password. | def lYUQ(YKHO, D3lj, jTXt=None, **wdCM):
wdCM.setdefault('is_staff', False)
wdCM.setdefault('is_superuser', False)
return YKHO._create_user(D3lj, jTXt, **wdCM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n CBIr = YKHO.model(email=D3lj, **wdCM... | [
"0.87434536",
"0.86426324",
"0.86060226",
"0.86042154",
"0.860411",
"0.86026454",
"0.85989094",
"0.85989094",
"0.85989094",
"0.8593626",
"0.8584165",
"0.85535115",
"0.85437036",
"0.85310555",
"0.852144",
"0.852067",
"0.8517979",
"0.85157007",
"0.85140324",
"0.85063654",
"0.84... | 0.0 | -1 |
Create and save a SuperUser with the given email and password. | def Zp54(YKHO, D3lj, jTXt, **wdCM):
wdCM.setdefault('is_staff', True)
wdCM.setdefault('is_superuser', True)
if wdCM.get('is_staff') is not True:
raise ValueError('Superuser must have is_staff=True.')
if wdCM.get('is_superuser') is not True:
raise ValueError('Superuser must have is_superu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, D3lj, jTXt=None, **dDGN):\n YKHO._create_user(D3lj, True, jTXt, **dDGN)",
"def Zp54(YKHO, D3lj: str, jTXt: str, **wdCM: Dict[str, bool]):\n wdCM.setdefault('is_staff', True)\n wdCM.setdefault('is_superuser', True)\n wdCM.setdefault('is_active', True)\n if wdCM.get('is_staff') is not... | [
"0.81715554",
"0.80949867",
"0.8072965",
"0.80660135",
"0.80614394",
"0.80550295",
"0.80352277",
"0.79790324",
"0.79607594",
"0.7955878",
"0.7946088",
"0.7942262",
"0.7942262",
"0.7942262",
"0.7942262",
"0.7942262",
"0.7942262",
"0.7942262",
"0.7942262",
"0.7939117",
"0.79350... | 0.7789182 | 56 |
Format a version tuple into a dotted version string. | def VGJm(wkGJ):
return '.'.join((str(WKvO) for WKvO in wkGJ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NlRH(DpZH):\n return '.'.join(map(str, DpZH))",
"def VGJm(Ty9i):\n DpZH = f'{Ty9i[0]}.{Ty9i[1]}.{Ty9i[2]}'\n return DpZH",
"def kg79(mqdF):\n assert len(mqdF) == 4\n assert mqdF[0] != 'trunk'\n return '.'.join(map(str, mqdF))",
"def pgDv(DpZH):\n return '.'.join((str(XP5J) for XP5J i... | [
"0.73953986",
"0.71132344",
"0.69995236",
"0.6986401",
"0.6778964",
"0.67624706",
"0.6743911",
"0.6607934",
"0.6592534",
"0.6455493",
"0.6451363",
"0.64491326",
"0.6410105",
"0.63540536",
"0.63495046",
"0.62584525",
"0.62470675",
"0.62413955",
"0.6225912",
"0.61377555",
"0.61... | 0.6844906 | 4 |
Parse a version string like "3.7" into a tuple. | def kelO(IexU):
return tuple(map(int, IexU.split('.'))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BvuR(IexU: str) -> AzJI[str, str, str]:\n Tl0b, IJ4N, cbKy = IexU.split('.', 2)\n return (Tl0b, IJ4N, cbKy)",
"def czvs(IexU):\n try:\n return tuple([int(YRbF) for YRbF in IexU.split('.')])\n except ValueError as e:\n raise ValueError('Could not parse version string %s: %s' % (IexU,... | [
"0.8586401",
"0.85419756",
"0.84300953",
"0.8236189",
"0.8124609",
"0.81173676",
"0.8109175",
"0.80857646",
"0.802392",
"0.798192",
"0.79529756",
"0.7925177",
"0.7876853",
"0.78269386",
"0.781034",
"0.7809349",
"0.780221",
"0.78021276",
"0.77625674",
"0.77579546",
"0.7701183"... | 0.8491805 | 2 |
Truncate long strings (and append '...'), but leave short strings alone. | def tzwu(KCHu, u54L=30):
KCHu = str(KCHu)
if len(KCHu) > u54L - 3:
return KCHu[0:u54L - 3] + '...'
else:
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G34s(KCHu, u54L=1, B6O7='...'):\n if len(KCHu) < u54L:\n return KCHu\n else:\n return KCHu[:u54L] + B6O7",
"def T63M(vIwR: str, u54L: Optional[int]=65, kpeu: Optional[bool]=True) -> str:\n Vg4u = ''\n if kpeu and len(vIwR) > u54L:\n Vg4u = '...'\n u54L -= len(Vg4u)\n ... | [
"0.7615282",
"0.75229067",
"0.75075686",
"0.7456073",
"0.7385132",
"0.7377447",
"0.7369195",
"0.735595",
"0.7343823",
"0.7310303",
"0.729848",
"0.72408295",
"0.7234313",
"0.72318745",
"0.7225867",
"0.7204074",
"0.718134",
"0.71186113",
"0.7113679",
"0.7105222",
"0.70685875",
... | 0.7319222 | 9 |
Convert a bytes object to the native str type. | def k5QJ(KCHu: Union[str, bytes], UAju: str='strict') -> str:
if isinstance(KCHu, str):
return KCHu
else:
return KCHu.decode('utf-8', UAju) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xrD7(Fg_i):\n return Fg_i",
"def xrD7(Fg_i):\n if not isinstance(Fg_i, (bytes, bytearray)):\n raise TypeError()\n return Fg_i.decode('ascii')",
"def xrD7(Fg_i):\n return Fg_i.decode('utf8')",
"def D6ho(TIvS: bytes) -> str:\n try:\n return TIvS.decode('utf-8')\n except Unic... | [
"0.82658",
"0.81501496",
"0.80330515",
"0.801002",
"0.7982106",
"0.79782325",
"0.7898512",
"0.78408843",
"0.7801293",
"0.77990204",
"0.7790803",
"0.77174824",
"0.76905483",
"0.7679165",
"0.7676352",
"0.7675825",
"0.7658718",
"0.7566075",
"0.753256",
"0.7522712",
"0.7521675",
... | 0.74703413 | 25 |
Invert a dictionary. Converts a dictionary (mapping strings to lists of strings) to a dictionary that maps into the other direction. | def ZdUT(Csk6):
tsq2 = g760.defaultdict(list)
for H5ew, v9CE in Csk6.items():
for wEf2 in v9CE:
tsq2[wEf2].append(H5ew)
return tsq2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZba(fGC9):\n SjF2 = dict(map(reversed, fGC9.item()))\n return SjF2",
"def ZdUT(cmPJ):\n return {Ty9i: G1Hx for G1Hx, Ty9i in cmPJ.items()}",
"def ZdUT(Csk6):\n return {Ty9i: G1Hx for G1Hx, Ty9i in Csk6.items()}",
"def T1r2(Csk6):\n return {Ty9i: G1Hx for G1Hx, Ty9i in Csk6.items()}",
"d... | [
"0.8034151",
"0.7926988",
"0.7919926",
"0.79154915",
"0.79003423",
"0.78730285",
"0.7831207",
"0.7805199",
"0.77938145",
"0.77274257",
"0.76228654",
"0.7596699",
"0.7512673",
"0.75069624",
"0.7480924",
"0.74168575",
"0.7408057",
"0.73818815",
"0.7323849",
"0.72939765",
"0.727... | 0.7487739 | 14 |
Return a unique list from an iterable, preserving order. | def vaOw(fUYa):
PwWw = set()
yvT9 = []
for WKvO in fUYa:
if WKvO not in PwWw:
PwWw.add(WKvO)
yvT9.append(WKvO)
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYMC(OxJJ):\n return list(UfHm(OxJJ))",
"def IcVv(OxJJ):\n PwWw = set()\n Aofo = []\n for ZfUD in OxJJ:\n if ZfUD not in PwWw:\n PwWw.add(ZfUD)\n Aofo.append(ZfUD)\n return Aofo",
"def I_Nq(OxJJ):\n kcwm = []\n for bTKY in OxJJ:\n if bTKY not in kcwm... | [
"0.826507",
"0.8008472",
"0.791212",
"0.7664617",
"0.76604056",
"0.7617146",
"0.7531955",
"0.74998266",
"0.7435478",
"0.7353659",
"0.7344621",
"0.733683",
"0.7227872",
"0.7189733",
"0.7163573",
"0.712673",
"0.712673",
"0.7117892",
"0.70913804",
"0.7056506",
"0.7044072",
"0.... | 0.67440444 | 42 |
Calculates absolute magnitude of target. | def lk89(MHyv, Ayfi=3.0):
R5ls = MHyv - 5 * oyIN.log10(100 * Ayfi)
return R5ls | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n return epAf.sqrt(YKHO.dot(YKHO))",
"def YXbZ(YKHO):\n return (YKHO.u ** 2 + YKHO.v ** 2) ** 0.5",
"def YXbZ(YKHO):\n return 2.0 / 3.0 * (oyIN.log10(YKHO.moment()) - 9.1)",
"def FOSW(YKHO) -> float:\n return YKHO.__abs__()",
"def FOSW(YKHO) -> float:\n return YKHO.__abs__()"... | [
"0.705139",
"0.7032132",
"0.69144154",
"0.68455833",
"0.68455833",
"0.67903054",
"0.6739187",
"0.66563267",
"0.6652318",
"0.661727",
"0.6615375",
"0.6605979",
"0.6579452",
"0.6574771",
"0.65600693",
"0.6558294",
"0.6546375",
"0.6530385",
"0.648418",
"0.64815366",
"0.64813095"... | 0.59107655 | 78 |
Write the message to all listeners. May remove closed connections. | def iJtT(YKHO, GTA_, pB3N):
if GTA_ not in YKHO.listeners:
return
_4KJ = set()
for DN9V in YKHO.listeners[GTA_]:
try:
DN9V.write_message(pB3N)
except my7k.websocket.WebSocketClosedError:
_4KJ.add(DN9V)
for vv2K in _4KJ:
YKHO.listeners.remove(vv2K) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iJtT(YKHO, tO9_):\n for iG42 in YKHO.sockets:\n try:\n iG42.write_message(tO9_)\n except:\n pass",
"def VCXy(YKHO, tO9_):\n for id in YKHO.observers.keys():\n YKHO.observers[id].transport.write(tO9_)",
"def WdaX(YKHO, Ol8d):\n for DCgT in YKHO.users:\n ... | [
"0.643078",
"0.64087343",
"0.6311459",
"0.624582",
"0.6212176",
"0.61349255",
"0.6071814",
"0.6071673",
"0.607039",
"0.59940785",
"0.59841144",
"0.5979858",
"0.59689194",
"0.59339154",
"0.593148",
"0.5929685",
"0.5920086",
"0.591977",
"0.5914061",
"0.58980674",
"0.5882816",
... | 0.64175105 | 1 |
Create np.array of nans | def iomA(ROpF, yDqo=float):
jzdc = oyIN.full(ROpF, oyIN.nan, yDqo)
return jzdc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iomA(ROpF, yDqo=float):\n jzdc = oyIN.empty(oyIN.asarray(ROpF, dtype=int), yDqo)\n jzdc.fill(oyIN.nan)\n return jzdc",
"def iomA(Emd4, ROpF=(), **B2fa):\n return XTiz.nan * aLMY.ones(ROpF, **B2fa)",
"def zs3A(YKHO):\n ruSK = oyIN.isfinite(YKHO.y)\n return YKHO.__class__(YKHO.x[ruSK], YKHO... | [
"0.7785761",
"0.7516255",
"0.68657357",
"0.6800658",
"0.67470837",
"0.67313534",
"0.67235726",
"0.66280866",
"0.653141",
"0.65000534",
"0.64416575",
"0.64188623",
"0.6406322",
"0.6406266",
"0.64059275",
"0.6385125",
"0.6352094",
"0.6346428",
"0.630479",
"0.6276889",
"0.627345... | 0.8093432 | 0 |
Does time_window overlap with the time windows in times_window_array. Used for bad time segments. | def eLjj(fymP, yHv1):
def yHH9(yiiI, yYNb):
return not (yiiI[1] < yYNb[0]) | (yiiI[0] > yYNb[1])
return [yHH9(fymP, s8cP) for s8cP in yHv1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nbm1(GOn9):\n p9c1 = GOn9[0][0]\n ksBp = GOn9[0][1]\n IeYg = GOn9[1][0]\n sbXL = GOn9[1][1]\n if (p9c1 < sbXL) & (p9c1 >= IeYg) or (ksBp <= sbXL) & (ksBp > IeYg) or (ksBp > sbXL) & (p9c1 < IeYg):\n return True\n else:\n return False",
"def uKfp(YKHO, zP9W, FJ0m):\n EUg7 = o... | [
"0.6466128",
"0.64634854",
"0.6376972",
"0.6285216",
"0.619225",
"0.6121838",
"0.61108446",
"0.5937159",
"0.5913123",
"0.58771354",
"0.58303076",
"0.5811846",
"0.5777921",
"0.57777256",
"0.576439",
"0.5736117",
"0.57170725",
"0.5715191",
"0.5712458",
"0.56841147",
"0.56748784... | 0.82371897 | 0 |
convert float32 > uint8 | def zrot(Yw_3, RCgM=[-1, 1]):
if isinstance(Yw_3, U78l.Variable):
Yw_3 = Yw_3.d
if isinstance(Yw_3, U78l.NdArray):
Yw_3 = Yw_3.data
NXpY = 255 / (RCgM[1] - RCgM[0])
Yw_3 = Yw_3 * NXpY + (0.5 - RCgM[0] * NXpY)
return oyIN.uint8(oyIN.clip(Yw_3, 0, 255)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lugW(LNo8):\n zr3f = LNo8.copy()\n zr3f *= 255\n zr3f = zr3f.astype('uint8')\n return zr3f",
"def Yi0j(vMFt):\n return vMFt.astype(oyIN.float64) / 255",
"def t5ZD(w6yL):\n return tuple(map(lambda WKvO: int(255.0 * WKvO), w6yL))",
"def mW42(LNo8):\n LNo8 = LNo8 * 128.0 + 128.0\n re... | [
"0.7685535",
"0.7601243",
"0.7598216",
"0.74654746",
"0.7428195",
"0.7380123",
"0.73539054",
"0.7301346",
"0.7192394",
"0.7168248",
"0.71362203",
"0.71244746",
"0.71244746",
"0.70474994",
"0.69372785",
"0.6902176",
"0.688981",
"0.68379724",
"0.6833647",
"0.6832956",
"0.682469... | 0.0 | -1 |
Returns the first_name plus the last_name, with a space in between. | def xpqj(YKHO):
eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)
return eHMM.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM",
"def xpqj(YKHO):\n return (YKHO.first_name + ' ' + YKHO.last_name).strip()",
"def zFMy(YKHO):\n return (YKHO.first_name or '') + (YKHO.first_name and ' ' or '') + (YKHO.last_name or '')",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua.titl... | [
"0.82872856",
"0.8179012",
"0.81130326",
"0.80760396",
"0.8034134",
"0.8032392",
"0.8030516",
"0.80072623",
"0.8006718",
"0.8005418",
"0.8000916",
"0.7995176",
"0.79901665",
"0.79793483",
"0.79790914",
"0.79603624",
"0.7952844",
"0.7944558",
"0.7944558",
"0.79419315",
"0.7941... | 0.77470917 | 61 |
Test case for update | def IsIF(YKHO):
ETu_ = _UKz(10, 3, 4, 1)
ETu_.update(89)
YKHO.assertEqual(ETu_.__str__(), '[Square] (89) 3/4 - 10') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO, qIxc):\n pass",
"def TfB7(YKHO):\n pass",
"def fJiH(YKHO):\n return",
"def U9G5(YKHO):\n return",
"def IsIF(YKHO):\n _yOu = YKHO.model.update(1, {'key': 'updated value'})\n YKHO.assertIsNotNone(_yOu)\n YKHO.as... | [
"0.918682",
"0.918682",
"0.88713175",
"0.86573577",
"0.8512354",
"0.8380729",
"0.82656026",
"0.8154971",
"0.8016052",
"0.79763883",
"0.7967615",
"0.79659104",
"0.7918814",
"0.78203046",
"0.7806768",
"0.7805705",
"0.7799921",
"0.7789587",
"0.7763172",
"0.7746043",
"0.77308625"... | 0.0 | -1 |
Test case for kwargs that do not match attributes. | def aoS3(YKHO):
Mkmy = _UKz(1, 2, 3, 4)
Mkmy.update(weight=25)
YKHO.assertEqual(hasattr(Mkmy, 'weight'), False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aoS3(YKHO):\n Mkmy = x7Ls(1, 2, 3, 4, 5)\n Mkmy.update(weight=25)\n YKHO.assertEqual(hasattr(Mkmy, 'weight'), False)",
"def ZEnC(YKHO):\n pass",
"def P5Q1(YKHO):\n RKD7 = s7Op(lambda: None, lambda: None).bind(a=10, b=2)\n YKHO.assertEqual(YKHO.bound.match(RKD7).describe(), 'Expected kwarg... | [
"0.77530104",
"0.71918535",
"0.7157034",
"0.6976208",
"0.68530214",
"0.6712432",
"0.66918874",
"0.6691803",
"0.66837746",
"0.6649434",
"0.66308385",
"0.66276765",
"0.65905666",
"0.65703833",
"0.6546233",
"0.6520394",
"0.6515676",
"0.6515235",
"0.65007293",
"0.65003276",
"0.64... | 0.75652826 | 1 |
Permission check decorator for classbased/functional generic view This decorator works as class, method or function decorator without any modification. DO NOT use ``method_decorator`` or whatever while this decorator will use ``self`` argument for method of classbased generic view. | def Vhqh(IuXB, cgWb=None, XKMW=None, EBap=False):
if cgWb and issubclass(cgWb, wOed):
cgWb = cgWb._default_manager.all()
def h3Xc(tfDG):
if tq_1.isclass(tfDG):
from permission.decorators.classbase import Vhqh as mrMx
else:
from permission.decorators.methodbase im... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JL1u(eHNT):\n if hasattr(eHNT, '_permission_name'):\n faWm = eHNT._permission_name\n else:\n faWm = eHNT.__name__\n\n def zaGL(YKHO, *qIxc, **B2fa):\n faWm = '{}{}'.format(O6aQ, eHNT._permission_name)\n if YKHO.method_permission_name:\n z5Sm = YKHO.method_permiss... | [
"0.7162688",
"0.71398073",
"0.71374315",
"0.69988346",
"0.6888739",
"0.68706834",
"0.6868834",
"0.67849016",
"0.6765394",
"0.67505467",
"0.6737938",
"0.6729599",
"0.6703067",
"0.66837335",
"0.6668846",
"0.6662884",
"0.6643833",
"0.6584336",
"0.65649015",
"0.65649015",
"0.6564... | 0.65619475 | 23 |
Returns `model_fn` closure for TPUEstimator. | def VPYM(AgTV, svPB, phrK, b0Ix, H0j9, USzt, ND3i, as3x):
def JnVv(bySB, Crrw, Tuqy, NArs):
"""The `model_fn` for TPUEstimator."""
ZylS.logging.info('*** Features ***')
for mWFP in sorted(bySB.keys()):
ZylS.logging.info(' name = %s, shape = %s' % (mWFP, bySB[mWFP].shape))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNzv(QjBU):\n\n def Csmj(bySB, Crrw, Tuqy, NArs):\n \"\"\"Model function.\"\"\"\n del Crrw, NArs\n qqWV = C3ST.BaseModel(QjBU, mode=Tuqy, features=bySB)\n if Tuqy == QUnY.ModeKeys.INFER:\n xnXT = qqWV.predicted_ids\n xnXT = ZylS.transpose(xnXT, [2, 1, 0])\n ... | [
"0.67857176",
"0.6721413",
"0.67074126",
"0.67074126",
"0.6702952",
"0.6641253",
"0.6618024",
"0.6606056",
"0.6496603",
"0.64844817",
"0.648306",
"0.6466245",
"0.6446265",
"0.63841945",
"0.6344206",
"0.6340485",
"0.632018",
"0.62871397",
"0.6257949",
"0.6226816",
"0.6222834",... | 0.5496798 | 82 |
The `model_fn` for TPUEstimator. | def JnVv(bySB, Crrw, Tuqy, NArs):
ZylS.logging.info('*** Features ***')
for mWFP in sorted(bySB.keys()):
ZylS.logging.info(' name = %s, shape = %s' % (mWFP, bySB[mWFP].shape))
Pha6 = bySB['input_ids']
qV0r = bySB['input_mask']
Uszf = bySB['segment_ids']
VNiV = bySB['label_ids']
m68O... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZPn8(YKHO, bySB, Crrw, ND3i):\n oYbx = gnPz.fn_args(YKHO._model_fn)\n B2fa = {}\n GPtr = jth9.deepcopy(YKHO._config)\n NArs = jth9.deepcopy(YKHO._params)\n if 'labels' in oYbx:\n B2fa['labels'] = Crrw\n elif Crrw is not None:\n raise ValueError('model_fn does not take labels, bu... | [
"0.72362834",
"0.7198053",
"0.71058893",
"0.70971304",
"0.7038464",
"0.7038464",
"0.697475",
"0.69312525",
"0.6887504",
"0.67796916",
"0.66569746",
"0.6626366",
"0.66256857",
"0.6591902",
"0.65852433",
"0.65476555",
"0.6534668",
"0.6486356",
"0.6484161",
"0.64805233",
"0.6425... | 0.5748721 | 87 |
Returns the intersection I and union U (to compute the jaccard I/U) and the accuracy. | def SJEu(aMgO, Y8eF, TFPw, Vlsb):
Y8eF = Kt_s.flatten(Y8eF)
aMgO = Kt_s.argmax(aMgO, axis=1)
for YRbF in range(len(Vlsb)):
if YRbF == 0:
uers = Kt_s.neq(Y8eF, Vlsb[YRbF])
else:
uers = uers * Kt_s.neq(Y8eF, Vlsb[YRbF])
pdhd = Kt_s.zeros(TFPw)
KkY2 = Kt_s.zeros(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RjuK(iQin, zuuu, RWhE):\n b65I = zuuu + RWhE - iQin\n RjuK = iQin / b65I\n aoyr = iQin / RWhE\n pFa5 = iQin / zuuu\n return (RjuK, aoyr, pFa5)",
"def plrc(eJqz, A3Z8):\n HIlM = dict(zip(['x1', 'x2', 'y1', 'y2'], eJqz))\n c8bw = dict(zip(['x1', 'x2', 'y1', 'y2'], A3Z8))\n assert HIlM['... | [
"0.6554068",
"0.65466154",
"0.6531797",
"0.6518661",
"0.64457625",
"0.64157516",
"0.64104164",
"0.6397922",
"0.6395299",
"0.6357699",
"0.6339525",
"0.633245",
"0.6330838",
"0.632823",
"0.6316008",
"0.63011956",
"0.62989044",
"0.62939703",
"0.6292421",
"0.6280197",
"0.6274777"... | 0.0 | -1 |
Get the version that our cluster is running. | def E5SI(YKHO):
if YKHO._image_version is None:
YKHO._store_cluster_info()
return YKHO._image_version | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O0y1(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_version')",
"def O0y1(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'cluster_version')",
"def kaPv(YKHO):\n return YKHO._env.get_version()",
"def kaPv(YKHO):\n DpZH = YKHO.http_get(fqrR.VERSION_URL)\n return DpZH.get('version')",
"async d... | [
"0.83959323",
"0.8241779",
"0.7730159",
"0.76676625",
"0.7581169",
"0.7462738",
"0.74432915",
"0.7442043",
"0.7440025",
"0.7440025",
"0.7438431",
"0.74369437",
"0.7408984",
"0.73926693",
"0.73880684",
"0.73836946",
"0.7352185",
"0.7349406",
"0.73222",
"0.7319314",
"0.7303481"... | 0.0 | -1 |
Returns the difference of the cpu statistics returned by getTimeList that occurred in the given time delta | def AzK3(VOlW):
xtyO = f2w_()
ITS7.sleep(VOlW)
O0mX = f2w_()
return [SpII - n2Q1 for n2Q1, SpII in zip(xtyO, O0mX)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B435(YKHO, FT7X):\n with open('/proc/stat') as Dyub:\n with open('/proc/stat') as EmyI:\n cnXz = Dyub.readline()\n ITS7.sleep(FT7X)\n Ijzj = EmyI.readline()\n a1kB = [int(Fg_i) - int(jzdc) for jzdc, Fg_i in zip(cnXz.split()[1:], Ijzj.split()[1:])]\n return a1kB"... | [
"0.70906645",
"0.6762953",
"0.6326991",
"0.6213663",
"0.61254436",
"0.60767984",
"0.60724545",
"0.6010145",
"0.59918916",
"0.5975407",
"0.59372765",
"0.5916769",
"0.5911624",
"0.59013516",
"0.58985794",
"0.5882914",
"0.588164",
"0.5874017",
"0.5864896",
"0.58452064",
"0.58337... | 0.66348547 | 2 |
GetOpenConnectorIndicatorPlanColor() > Color Gets the color of the open connector indicator in plan view. | def lh1A():
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _r6X():\n pass",
"def sgIG():\n pass",
"def ZOEp(YKHO):\n return YKHO._ribbon_color",
"def RSjY(YKHO) -> str:\n return qe4Y.get(YKHO, 'connector_status')",
"def RSjY(YKHO) -> str:\n return qe4Y.get(YKHO, 'connector_status')",
"def qfpW(YKHO):\n return YKHO.__led_color",
"def Y3dS(... | [
"0.71481407",
"0.6679477",
"0.5575116",
"0.55447197",
"0.55447197",
"0.5368669",
"0.5346245",
"0.5304238",
"0.5268461",
"0.5258826",
"0.52444136",
"0.52444136",
"0.52444136",
"0.52444136",
"0.5244392",
"0.5244392",
"0.5233002",
"0.5230973",
"0.5226616",
"0.5226616",
"0.521543... | 0.8505349 | 0 |
GetOpenConnectorIndicatorTowardsColor() > Color Gets the color of the open connector indicator in towards direction. | def _r6X():
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sgIG():\n pass",
"def lh1A():\n pass",
"def TV7Z(YKHO):\n if YKHO._distance_based_color is not None:\n YKHO.determine_color_based_on_distance_from_an_open()\n return YKHO._distance_based_color",
"def qfpW(YKHO):\n return YKHO.__led_color",
"def kTyG(YKHO):\n if YKHO._distance_b... | [
"0.77795094",
"0.6919555",
"0.6465584",
"0.60674584",
"0.5922436",
"0.5810856",
"0.57935154",
"0.56384456",
"0.5583743",
"0.5579991",
"0.55730176",
"0.55619496",
"0.55619496",
"0.5557949",
"0.5557949",
"0.5557949",
"0.5557949",
"0.5532657",
"0.5520798",
"0.5498507",
"0.549678... | 0.83206654 | 0 |
Verify that SLA expiry dates are recalculated correctly when priority and status are changed. | def pOw4(YKHO):
iBIi = YKHO.connectwise_boards[0]
YXSb = QgSC.objects.create(summary='test', status=iBIi.board_statuses.get(name='New'), sla=Uhhe.objects.first(), priority=YKHO.ticket_priorities[1], board=iBIi, company=YKHO.companies[0], entered_date_utc=rIAI.now())
YKHO.assertEqual(str(YXSb.sla_expire_date... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j_nq(YKHO):\n iBIi = YKHO.connectwise_boards[0]\n YXSb = QgSC.objects.create(summary='test', status=iBIi.board_statuses.get(name='New'), sla=Uhhe.objects.first(), priority=YKHO.ticket_priorities[2], board=iBIi, company=YKHO.companies[0], entered_date_utc=rIAI.now())\n YKHO.assertEqual(str(YXSb.sla_exp... | [
"0.65660447",
"0.642274",
"0.62492484",
"0.6247458",
"0.6054348",
"0.60489273",
"0.60347044",
"0.5975131",
"0.5910582",
"0.5905581",
"0.5879207",
"0.58420503",
"0.5824019",
"0.57766455",
"0.57558626",
"0.57451683",
"0.5739878",
"0.57221794",
"0.5717689",
"0.57117677",
"0.5711... | 0.6683444 | 0 |
Return number of elements stored in the array. | def szAg(YKHO):
return YKHO._n | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n return len(YKHO.arr)",
"def Cn47(YKHO):\n if not YKHO.array:\n return 0\n try:\n exwG = int(YKHO.array)\n if exwG < 0:\n exwG = 0\n return exwG\n except:\n return 0",
"def szAg(YKHO) -> int:\n return len(YKHO.array)",
"def t892(YK... | [
"0.8059848",
"0.79209673",
"0.7857178",
"0.7842938",
"0.7831658",
"0.78137743",
"0.77293235",
"0.7722151",
"0.7693859",
"0.76888245",
"0.7664073",
"0.76436514",
"0.7599669",
"0.7576734",
"0.7571183",
"0.75528276",
"0.75364745",
"0.753291",
"0.74930936",
"0.748764",
"0.7472395... | 0.0 | -1 |
Return element at index k. | def OP2O(YKHO, G1Hx):
if not 0 <= G1Hx < YKHO._n:
raise IndexError('invalid index')
return YKHO._A[G1Hx] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ukG7(YKHO, G1Hx):\n kMLo = YKHO.head\n YRbF = 0\n while YRbF <= G1Hx - 1:\n kMLo = kMLo.next_node\n YRbF += 1\n ZWky = kMLo.data\n return ZWky",
"def OP2O(YKHO, G1Hx):\n if G1Hx + 1 > YKHO._size:\n raise 'Index out of range!'\n TK2h = YKHO._head\n for YRbF in rang... | [
"0.8307778",
"0.82387704",
"0.8053519",
"0.8025114",
"0.80070084",
"0.7922442",
"0.7878937",
"0.7698701",
"0.76960737",
"0.76468986",
"0.76016456",
"0.7584722",
"0.74747413",
"0.73781776",
"0.73616594",
"0.73602057",
"0.7313571",
"0.7258098",
"0.72191054",
"0.71738255",
"0.71... | 0.77549624 | 7 |
Insert value at index k, shifting subsequent values rightward. | def JPHp(YKHO, G1Hx, BWXx):
if YKHO._n == YKHO._capacity:
YKHO._resize(2 * YKHO._capacity)
for r845 in range(YKHO._n, G1Hx, -1):
YKHO._A[r845] = YKHO._A[r845 - 1]
YKHO._A[G1Hx] = BWXx
YKHO._n += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, G1Hx, BWXx):\n if G1Hx >= YKHO._capacity:\n YKHO.append(BWXx)\n return\n if YKHO._n == YKHO._capacity:\n YKHO._resize(2 * YKHO._capacity, shift=True, k=G1Hx)\n else:\n for r845 in range(YKHO._n, G1Hx, -1):\n YKHO._A[r845] = YKHO._A[r845 - 1]\n YKHO.... | [
"0.82680327",
"0.82633036",
"0.8110798",
"0.8088",
"0.77464324",
"0.68314546",
"0.67834467",
"0.6739313",
"0.6652777",
"0.66320014",
"0.66187525",
"0.65300786",
"0.6506788",
"0.65008503",
"0.6490086",
"0.64847946",
"0.64688104",
"0.64484483",
"0.6443855",
"0.6433569",
"0.6424... | 0.8285805 | 0 |
String representation of DVMeModel | def zAg0(YKHO):
if YKHO.Ke == None:
return '\n< Extrapolating Growth Model g = %s\n \n< Cost of equity Ke = %s \n \n< Market value of the share Po = %s' % (YKHO.g_extrapolatingModel, YKHO.costOfEquity + '%', '$' + str(YKHO.share_price))
else:
return '\n< Extrap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '-----------------------------------------------------------------------------------\\n'\n for AniK ... | [
"0.7378463",
"0.72786427",
"0.720002",
"0.71360755",
"0.703897",
"0.7034356",
"0.7019686",
"0.7002937",
"0.69623",
"0.6880781",
"0.6880059",
"0.6880059",
"0.6873248",
"0.68163043",
"0.68003666",
"0.6761114",
"0.67353034",
"0.6732037",
"0.672643",
"0.67184854",
"0.6711824",
... | 0.0 | -1 |
'''The opposite of `make_val_safe`. This removes the extra quotes around | def XUIT(wEf2):
return str(wEf2).replace('""', '"') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zI9o(wEf2):\n return str(wEf2).replace('\"', '\"\"')",
"def ruM_(wEf2):\n if wEf2.lower() == 'null':\n return 'NULL'\n return str(wEf2)",
"def NCC9(YKHO, wEf2):\n return \"'%s'\" % wEf2",
"def bwjM(wEf2):\n if wEf2 is None:\n return '\"\"'\n return DQwz(wEf2).replace('\"',... | [
"0.9037368",
"0.7269143",
"0.7262151",
"0.71395457",
"0.71281147",
"0.7123239",
"0.6972789",
"0.6867964",
"0.68232876",
"0.6782968",
"0.67394304",
"0.67189425",
"0.6706162",
"0.6703189",
"0.66624904",
"0.66404873",
"0.663603",
"0.66272014",
"0.6614595",
"0.65974504",
"0.65962... | 0.8399416 | 1 |
Generates a random cipher string Returns a string, containing all the letters of the alphabet, in a randomly permuated order | def VqX4():
gBNx = list(vIwR.lowercase)
tuKI.shuffle(gBNx)
return ''.join(gBNx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H5XX():\n KoG3 = list(vIwR.ascii_lowercase)\n zNig = tuKI.randint(7, 10)\n tuKI.shuffle(KoG3)\n return ''.join(KoG3[:zNig])",
"def c46T():\n gLiZ = []\n for YRbF in range(8):\n gLiZ.append(tuKI.choice('0123456789BCDFGHJKLMNPQRSTVWXZ'))\n return ''.join(gLiZ)",
"def FbI1():\n ... | [
"0.783286",
"0.7804028",
"0.77650595",
"0.76239944",
"0.7591765",
"0.7582291",
"0.75619316",
"0.7487048",
"0.74860454",
"0.74753964",
"0.74610156",
"0.74272275",
"0.74096787",
"0.74035037",
"0.73825926",
"0.73763394",
"0.7367672",
"0.7363316",
"0.7361525",
"0.7360002",
"0.733... | 0.8506728 | 0 |
Return a string representation of the Product. | def zAg0(YKHO):
return f'{YKHO.title}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n KCHu = ''\n KCHu += 'Product number : ' + str(YKHO.get_number()) + '\\n'\n KCHu += 'Product name : ' + str(YKHO.get_name()) + '\\n'\n KCHu += 'Product calories : ' + str(YKHO.get_ccal()) + '\\n'\n KCHu += 'Product proteins : ' + str(YKHO.get_protein()) + '\\n'\n KCHu += 'Product... | [
"0.80949384",
"0.79759073",
"0.7919626",
"0.78934926",
"0.772629",
"0.7642706",
"0.76353097",
"0.762842",
"0.7600766",
"0.75956815",
"0.75955087",
"0.7562765",
"0.75394326",
"0.7472915",
"0.74687296",
"0.7395142",
"0.73490524",
"0.73456424",
"0.7306188",
"0.72926176",
"0.7271... | 0.0 | -1 |
Return a string representation of the Review. | def zAg0(YKHO):
return f'{YKHO.headline}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return f'<Review={YKHO.review_id} \\n date={YKHO.review_date} \\n rating_truc={YKHO.review_text_body[:10]}>'",
"def zAg0(YKHO):\n return YKHO.review",
"def wHJl(YKHO):\n return f'{YKHO.question}, {YKHO.answer}, {YKHO.review}'",
"def uHPD(YKHO):... | [
"0.78873587",
"0.781745",
"0.7272422",
"0.67998844",
"0.6667823",
"0.66503954",
"0.66075724",
"0.65869313",
"0.6559379",
"0.653062",
"0.64801043",
"0.63916224",
"0.6383176",
"0.6378296",
"0.63597673",
"0.6327594",
"0.63065547",
"0.62789893",
"0.6262409",
"0.6261668",
"0.62541... | 0.0 | -1 |
Returns a fullyqualified path for a product related to review. | def hlzF(YKHO):
n_2s = {'slug': YKHO.product.slug} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rkzc(QePW, oOW1):\n try:\n Slbv = E1cg.objects.get(id=oOW1)\n except:\n return _1tc(QePW, 'error.html', {'errorcode': 404, 'message': 'Oops! This review could not be found!', 'message2': 'Sorry but the page you are looking for does not exist or has been removed.'}, status=404)\n if QePW.... | [
"0.57029897",
"0.55903834",
"0.55554044",
"0.55554044",
"0.55249244",
"0.54856515",
"0.54578364",
"0.54578364",
"0.54231876",
"0.5422022",
"0.5417245",
"0.5413462",
"0.5383364",
"0.53394157",
"0.53023225",
"0.5296024",
"0.52708256",
"0.52329314",
"0.52329314",
"0.5218371",
"0... | 0.51975524 | 20 |
Returns the about page, which contains the text required about the service and some other text. Because there are no posts, the posts field is left empty, which will then not display anything on the page | def cD8n():
NCls = MaBY()
vsuQ = {'login': m7Ka(), 'searchVal': '', 'usernamed': DW23.session_user(NCls), 'title': 'About', 'content': "Psst is a new, exciting, messaging service like nothing you've seen before!\n Have you ever used twitter? Because this isnt twitter. you cant sue us because we said that... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cD8n(QePW):\n return {}",
"def T72s(QePW):\n QpfX = {}\n try:\n cwxH = I0sS.objects.get(name='igwcoeffs_about')\n except I0sS.DoesNotExist:\n pass\n else:\n QpfX['about_text'] = cwxH\n return _1tc(QePW, 'igwcoeffs/about.html', QpfX)",
"def vsuQ(QePW):\n if QePW.met... | [
"0.6700291",
"0.66920567",
"0.6588989",
"0.65225184",
"0.6510748",
"0.63889754",
"0.6385619",
"0.635875",
"0.63501674",
"0.63501674",
"0.63501674",
"0.63501674",
"0.63501674",
"0.6335567",
"0.63298506",
"0.6296288",
"0.6295139",
"0.627175",
"0.6257449",
"0.6241307",
"0.623262... | 0.71060336 | 0 |
Returns the user about page, with a larger user avatar and username along with the posts made by the user | def nn0F(mWFP):
NCls = MaBY()
inpR = wohN.post_list(NCls, mWFP, 50)
EKeu = DW23.find_user(NCls, mWFP)
CBIr = {'login': m7Ka(), 'usernamed': DW23.session_user(NCls), 'title': mWFP, 'avatar': EKeu[0][2], 'username': mWFP, 'posts': inpR, 'follows': DW23.does_follow(NCls, DW23.session_user(NCls), mWFP), 'fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n uJjO = cuiw.get('user_id', None)\n CBIr = mv1M.query.get(uJjO)\n return TvZl('about.html', user=CBIr)",
"def vsuQ():\n NCls = Inkw()\n U34r = {'title': '¡Welcome to SimpleSocial!', 'posts': wohN.post_list(NCls), 'name': 'User Login'}\n if DW23.session_user(NCls) == None:\n ... | [
"0.7388154",
"0.72741747",
"0.72223073",
"0.7199826",
"0.71847343",
"0.70831776",
"0.7063948",
"0.7024231",
"0.6937053",
"0.69307756",
"0.69047374",
"0.68502074",
"0.6823312",
"0.6788713",
"0.6754769",
"0.67535275",
"0.6645536",
"0.6614879",
"0.65782416",
"0.65400445",
"0.653... | 0.7250468 | 2 |
Close the lz4 file | def DDI8(YKHO):
YKHO._f.close()
YKHO._f = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n if YKHO.closed:\n return\n YKHO.closed = True\n try:\n if YKHO.mode in ('a', 'w', 'x'):\n YKHO.fileobj.write(NSzx * (yZIe * 2))\n YKHO.offset += yZIe * 2\n rmyT, K0A_ = divmod(YKHO.offset, skV4)\n if K0A_ > 0:\n YKH... | [
"0.693597",
"0.6903703",
"0.6605606",
"0.6566574",
"0.6534044",
"0.65091246",
"0.6470173",
"0.6456309",
"0.64471877",
"0.638988",
"0.6370271",
"0.63684106",
"0.6363851",
"0.63637716",
"0.63249665",
"0.6319588",
"0.63191557",
"0.62714535",
"0.62679124",
"0.62415683",
"0.623045... | 0.5944242 | 63 |
Sanitize a name for Graphite/MQTT use. | def aSeI(l5Ny):
return l5Ny.replace(' ', '_').replace('/', '_').replace('.', '_').replace('&', '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SREd(mWFP):\n pass",
"def DhAv(mWFP: str) -> str:\n return OsWG.REGEX_ALPHA_NUM.sub('', mWFP.lower())",
"def DhAv(mWFP):\n mWFP = mWFP.replace('!', '_')\n mWFP = mWFP.replace('@', '_')\n return mWFP",
"def _c58(YKHO, mWFP):\n mWFP = vIwR.strip(mWFP)\n return mWFP",
"def aSeI(mWFP):... | [
"0.8055765",
"0.8048721",
"0.8046876",
"0.79949474",
"0.79561955",
"0.7953561",
"0.7914709",
"0.7895343",
"0.7870202",
"0.7790471",
"0.77730316",
"0.7764249",
"0.77516",
"0.76839834",
"0.7683096",
"0.767169",
"0.7631964",
"0.76100945",
"0.7601704",
"0.75774765",
"0.75705445",... | 0.0 | -1 |
Test HISAT2 index files for equality. See | def hDnz(RSeK, y0cW, d6pt):
gIsw = SNib.HT2_FORMAT.format(y0cW, d6pt)
fjwo.compare_files(Hy7s.path.join(RSeK, QOe9.VIGNETTE_INDEX_DIR_NAME, gIsw), Hy7s.path.join(QOe9.VIGNETTE_INDEX_DIR, gIsw)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hDnz(YKHO):\n print(YKHO.argsdict['index'])\n NNOf.subcmd_index(YKHO.argsdict['index'])\n for IznC in ('labels.txt', 'classes.txt'):\n with (YKHO.outdir / IznC).open() as Bc5s:\n with (YKHO.tgtdir / IznC).open() as WzVj:\n print(Bc5s.name, WzVj.name)\n Y... | [
"0.728406",
"0.6721726",
"0.66622925",
"0.6650989",
"0.65560925",
"0.65111446",
"0.64170754",
"0.63726217",
"0.63392633",
"0.63194704",
"0.62809885",
"0.6259793",
"0.61711776",
"0.61611366",
"0.61328757",
"0.6130957",
"0.6093406",
"0.60603833",
"0.6046596",
"0.60423017",
"0.6... | 0.75928307 | 0 |
an admin client that is logged in as admin_user | def VyuW(P4t4, y26g, NfaX):
NfaX.login(y26g.email, y26g.password)
assert NfaX.user_id == y26g.id
return NfaX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dp9S(YKHO):\n return YKHO._admin",
"def dp9S(YKHO):\n return YKHO._admin",
"def X5Zj():\n return egNl().objects.get(username='admin0')",
"def Uro7(YKHO):\n return mv1M.query_by_id(YKHO.admin)",
"def y26g(YKHO) -> qe4Y.Input['CredentialsArgs']:\n return qe4Y.get(YKHO, 'admin_user')",
"d... | [
"0.71673375",
"0.71285015",
"0.7017257",
"0.69155544",
"0.69066304",
"0.69044566",
"0.68952185",
"0.6892439",
"0.68890405",
"0.6876783",
"0.6813935",
"0.6781536",
"0.6772979",
"0.67647153",
"0.673998",
"0.6736984",
"0.67137545",
"0.66950244",
"0.66945887",
"0.6693184",
"0.668... | 0.7940375 | 0 |
Returns a logger factory for the subagent with the given id. | def oHlJ(ILdH):
def ESLr(UXqs, eGAu=None, KAOR=None):
return m2cY(f'{UXqs}{ILdH}', eGAu, KAOR)
return ESLr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fZx2(YKHO, pV5O, Olai):\n raise NotImplementedError('get_logger must be implemented by subclass')",
"def ypdq(Olai):\n global loggers\n if Ry7x.get(Olai):\n return Ry7x.get(Olai)\n else:\n bo34 = G9jH.getLogger(Olai)\n bo34.setLevel(G9jH.DEBUG)\n uaPq = G9jH.Formatter(... | [
"0.6621555",
"0.6388332",
"0.5749687",
"0.5665904",
"0.56573033",
"0.5620008",
"0.55634284",
"0.5528399",
"0.5527765",
"0.5471413",
"0.5471413",
"0.54707575",
"0.54580677",
"0.54551053",
"0.54441446",
"0.542294",
"0.5411302",
"0.5389208",
"0.53823435",
"0.5366233",
"0.5338426... | 0.7023064 | 0 |
Compute L1 penalty with decaying coefficient applied to columns. For | def qmFk(C3ST, FMtf):
if FMtf == 0:
return ht2j.tensor(0, device=begE).float()
GkFb = 0
for xqoZ in C3ST.pcca.parameters_('y2'):
for YRbF, fvDH in enumerate(xqoZ.t()):
lXFy = ht2j.tensor(-YRbF, device=begE).float()
_ebM = FMtf * ht2j.exp(lXFy)
GkFb += _ebM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xQhi(YKHO, _mSQ):\n KvTy = ZylS.zeros([], name='l1_loss')\n for YRbF in range(YKHO.hidden_layer_sizes.size):\n KvTy += ZylS.reduce_sum(ZylS.abs(_mSQ[YRbF]))\n return YKHO.l1_reg * KvTy",
"def f2ox(YKHO):\n return YKHO.L1 * Xie5",
"def jtyf(WKvO, woqx):\n return CkYf(WKvO, woqx, 1)",
... | [
"0.629939",
"0.6265239",
"0.61887294",
"0.6143685",
"0.6124594",
"0.608379",
"0.6081531",
"0.6042369",
"0.6040754",
"0.60248095",
"0.60173506",
"0.60122186",
"0.59548974",
"0.59345204",
"0.5894048",
"0.5871094",
"0.58682495",
"0.58632886",
"0.5853569",
"0.584561",
"0.5823356"... | 0.79133105 | 0 |
Check if full harmonic image is within the main image | def yLBB(lv1I, TJ82, DQnn, CV6z, DTpx, FC1B):
gXB1 = False
if (lv1I + 0.5) * DTpx > DQnn / 2:
ZQds.print_red('ATTENTION: Harmonic Peak ' + '{:d}{:d}'.format(lv1I, TJ82) + ' is out of image vertical range.')
gXB1 = True
if (TJ82 + 0.5) * FC1B > CV6z / 2:
ZQds.print_red('ATTENTION: Har... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGs8(YKHO, LNo8):\n BAMb = YKHO.start[0]\n uznx = YKHO.start[1]\n olAL = YKHO.goal[0]\n FNvw = YKHO.goal[1]\n if oyIN.array_equiv(LNo8[299 - olAL, FNvw, :], oyIN.array([0, 0, 0])) or oyIN.array_equiv(LNo8[299 - BAMb, uznx, :], oyIN.array([0, 0, 0])):\n return False\n else:\n ret... | [
"0.6228707",
"0.6129115",
"0.6054167",
"0.59565336",
"0.58936137",
"0.58765656",
"0.58314216",
"0.58123374",
"0.580915",
"0.5765196",
"0.5760466",
"0.5758798",
"0.574723",
"0.5744519",
"0.5734418",
"0.57245266",
"0.5711434",
"0.570765",
"0.56999075",
"0.56994456",
"0.56994456... | 0.65027183 | 0 |
import a distance matrix from CSV and show it trough matPlotLib. | def J8uH(Jmpp, QUyH):
G9jH.info('show_distance_matrix_from_file_mpl')
YBcr = 'png'
UXEK = Hy7s.path.join(QUyH, Hy7s.path.basename(Jmpp)[:-4] + '_heatmap_mpl.' + YBcr)
if Hy7s.path.exists(UXEK):
return
Csk6 = CwDs.read_csv(Jmpp)
G9jH.info('loaded numpy matrix from csv')
x5MY.matshow(C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8V_(OBA6):\n with open(OBA6, 'rb') as o36Q:\n TaUL = list(Twxo.load(o36Q))\n QrM1.matshow(TaUL, cmap='Blues_r')\n QrM1.show()",
"def Da5M(YKHO, Ux0P):\n YKHO.values = Q1Kq()\n nUeQ = open(Ux0P, newline='')\n N5Pj = m6_J.reader(nUeQ, delimiter=',')\n Mi_s = -1\n for rdlD in N5P... | [
"0.6513478",
"0.63517016",
"0.6228762",
"0.6160403",
"0.6134474",
"0.6128663",
"0.61072695",
"0.60658205",
"0.6063024",
"0.6063024",
"0.6056392",
"0.59617287",
"0.59212416",
"0.59044355",
"0.578636",
"0.5760191",
"0.57492155",
"0.5713907",
"0.56885844",
"0.5678227",
"0.567399... | 0.71700764 | 0 |
A course with no course run should not be indexed. | def L7F0(YKHO):
GQfX = W10k(should_publish=True)
YKHO.assertEqual(list(u_AR.get_data_for_es(index='some_index', action='some_action')), [])
O_pW(page_parent=GQfX.extended_object, should_publish=True)
YKHO.assertNotEqual(list(u_AR.get_data_for_es(index='some_index', action='some_action')), []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ycd(YKHO):\n GQfX = W10k(should_publish=True)\n YKHO.assertFalse(GQfX.get_course_runs().exists())\n YKHO.assertFalse(GQfX.get_course_runs_for_language().exists())\n YKHO.assertFalse(GQfX.public_extension.get_course_runs().exists())\n YKHO.assertFalse(GQfX.public_extension.get_course_runs_for_la... | [
"0.7062275",
"0.6703561",
"0.63907933",
"0.6365269",
"0.62887895",
"0.61762553",
"0.6150986",
"0.6132855",
"0.6100173",
"0.6060662",
"0.60265905",
"0.5992425",
"0.59457266",
"0.5929525",
"0.5921481",
"0.5909349",
"0.58865094",
"0.58716214",
"0.5823254",
"0.58066607",
"0.57451... | 0.68059784 | 1 |
Checks if a TreeNode is a leaf. | def A_Yz(YKHO):
if len(YKHO.children) > 0:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CXWj(Q6kx):\n return isinstance(Q6kx, nkkd)",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae(YKHO, tk5Y... | [
"0.8510134",
"0.8446257",
"0.8446257",
"0.84241986",
"0.84241986",
"0.84241986",
"0.83488435",
"0.8313373",
"0.81860155",
"0.81854117",
"0.818047",
"0.81631374",
"0.8106324",
"0.8074209",
"0.80740786",
"0.8065197",
"0.8065197",
"0.80525076",
"0.80473316",
"0.8032882",
"0.8026... | 0.78929305 | 36 |
Wrap each item of an Iterable. | def all(YKHO, H5ew: str):
DumB = YKHO[H5ew]
Emd4 = YKHO.__class__
return (Emd4(tbx9, YKHO.sep) for tbx9 in DumB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yzQ0(OxJJ: ContextManager[Iterable[T]]) -> bDy6[Kt_s]:\n with OxJJ as WhY1:\n yield from WhY1",
"def FJj_(YKHO, OxJJ):\n super().extend(map(YKHO.cast_item, OxJJ))",
"def mAB6(YKHO):\n return ACTM(iter(YKHO._list))",
"def Vs4Q(YKHO):\n for vGaq in YKHO._container:\n yield vGaq",
... | [
"0.6757724",
"0.6629975",
"0.66166085",
"0.65286005",
"0.65011346",
"0.6473912",
"0.64648104",
"0.6440484",
"0.64192384",
"0.6341329",
"0.6281595",
"0.6231877",
"0.61505616",
"0.61454207",
"0.61452276",
"0.6125004",
"0.61237764",
"0.6116004",
"0.61042714",
"0.610336",
"0.6102... | 0.0 | -1 |
Checks if there's a route between 2 nodes. | def mZhn(YKHO, i4Va, rUTj):
XIgt = [i4Va]
PwWw = set()
while XIgt:
ZbOB = XIgt.pop()
PwWw.add(ZbOB)
if ZbOB == rUTj:
return True
else:
for jzdc in ZbOB.adjacent - PwWw:
XIgt.append(jzdc)
PwWw.add(jzdc)
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZjPt(YKHO, V3IK: int, vyDA: int) -> bool:\n return YKHO.has_path(V3IK, vyDA) or YKHO.has_path(vyDA, V3IK)",
"def tQlN(YKHO, HVPP):\n global all_routes, route_id\n gtqQ, GFxT = (HVPP[0], HVPP[1])\n if gtqQ in [YKHO.start, YKHO.end] and GFxT in [YKHO.start, YKHO.end]:\n return False\n eli... | [
"0.7241646",
"0.71817976",
"0.7083159",
"0.70585454",
"0.69763273",
"0.6957107",
"0.69351196",
"0.69095045",
"0.6809248",
"0.67478335",
"0.67071056",
"0.6681301",
"0.66782796",
"0.6675261",
"0.66616255",
"0.6658855",
"0.6634893",
"0.66328794",
"0.66284966",
"0.66284966",
"0.6... | 0.0 | -1 |
Fetch the associated user from given user_id. | def lyxB(uJjO):
return mv1M.query.get(int(uJjO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bt8D(YKHO, uJjO: int):\n with M9P9() as YAg3:\n return YAg3.find_by_id(uJjO)",
"def KVwN(uJjO):\n return mv1M.query.filter_by(id=uJjO).first()",
"def VeUv(uJjO):\n CBIr = mv1M.objects.get(id=uJjO)\n return CBIr",
"def TKWP(YKHO, uJjO):\n try:\n return YKHO.user_model.objects.... | [
"0.7817202",
"0.77896136",
"0.7757207",
"0.7744661",
"0.77183664",
"0.76881236",
"0.76814604",
"0.76810735",
"0.7670562",
"0.7662964",
"0.7657891",
"0.7651383",
"0.7644027",
"0.7637884",
"0.7628913",
"0.7628913",
"0.7628913",
"0.7620078",
"0.7620078",
"0.7620078",
"0.76083803... | 0.730677 | 54 |
returns __dir__ which is a list of an object's modules | def ccBJ(YEnM):
return dir(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dir(YEnM):\n try:\n YEnM.__load_lib()\n except:\n pass\n return MFy5(YEnM)",
"def CHxy(YKHO):\n return object.__dir__(YKHO) + list(YKHO._obj.registered.keys())",
"def CHxy(YKHO):\n return []",
"def dir(YKHO):\n return dir(YKHO)",
"def u007(YEnM=None):\n oaKl = dir(YEn... | [
"0.8090058",
"0.7966322",
"0.7598495",
"0.7581882",
"0.74671763",
"0.74604625",
"0.7365097",
"0.73623574",
"0.7340532",
"0.730477",
"0.730477",
"0.730477",
"0.730477",
"0.730477",
"0.72063935",
"0.72063935",
"0.7187015",
"0.7176196",
"0.7142897",
"0.7107103",
"0.70872474",
... | 0.6649361 | 31 |
Method to return coulomb matrix. | def AhPp(YKHO):
if YKHO.two_body_integrals is None:
raise KH6z('Missing integral calculation in {}, run before loading integrals.'.format(YKHO.filename))
return MTjr(YKHO.two_body_integrals) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R2jN(YKHO, yM17):\n return oyIN.array(I4Qa.CalcCoulombMat(yM17))",
"def Bexq(YKHO, Ripp=False, cIs9=False, IG9e=1.0):\n wCft = len(YKHO.zs)\n vb7U = oyIN.zeros((wCft, wCft))\n oxOY = GC2M.squareform(GC2M.pdist(YKHO.coords))\n oyIN.fill_diagonal(oxOY, 1.0)\n if cIs9:\n EcVT, fuBA = oy... | [
"0.8483846",
"0.7035172",
"0.68795717",
"0.66526467",
"0.6622993",
"0.6584834",
"0.65294975",
"0.65081483",
"0.64116603",
"0.63689226",
"0.6299501",
"0.6277104",
"0.62701905",
"0.6231169",
"0.6227902",
"0.6177422",
"0.6173258",
"0.61631143",
"0.6154959",
"0.6118766",
"0.61155... | 0.0 | -1 |
Get value for the given MAX node, also the move sequence | def yn0P(Q6kx, Cwt5, UqYS, tk5Y):
if Q6kx.is_leaf:
oLdq = RLMX(Q6kx)
return (tk5Y.evaluate(oLdq), oLdq)
Ty9i = float('-inf')
NCPJ = []
for U08W in Q6kx.successor:
SKjz, s0pd = Wscw(U08W, Cwt5, UqYS, tk5Y)
if SKjz >= Ty9i:
Ty9i = SKjz
NCPJ = s0pd
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def thmt(Q6kx, Cwt5, UqYS, tk5Y):\n if Q6kx.rule == 'max':\n return yn0P(Q6kx, Cwt5, UqYS, tk5Y)\n else:\n return Wscw(Q6kx, Cwt5, UqYS, tk5Y)",
"def jqD_(YKHO):\n if YKHO.root:\n JCoA = YKHO.root.val\n VUF1 = [YKHO.root]\n while len(VUF1) > 0:\n DpUl = VUF1... | [
"0.7439011",
"0.6760882",
"0.66591203",
"0.6627365",
"0.6569275",
"0.6551968",
"0.6544978",
"0.65151167",
"0.6509771",
"0.6490936",
"0.6473079",
"0.6447268",
"0.6444106",
"0.6420181",
"0.64074373",
"0.6396628",
"0.63812405",
"0.63762766",
"0.6367251",
"0.63391316",
"0.6317568... | 0.6877422 | 1 |
Construct a tree using given information and return the root node. | def iuYD(iBIi, exwG):
tk5Y = yELo(board=iBIi)
dgvN(tk5Y, exwG)
return tk5Y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def igy8(YKHO, J_Es, _AKB=None):\n return J_Es.create_node(str(YKHO), parent=_AKB, data=YKHO)",
"def Jsyu(YKHO, gEmA, nPrm=None):\n aXO9 = None\n if nPrm is not None and 'nodes' in nPrm:\n aXO9 = nPrm['nodes']\n del nPrm['nodes']\n if nPrm is None:\n nPrm = {'id': gEmA + '-node-'... | [
"0.7065383",
"0.7027377",
"0.69240826",
"0.68842053",
"0.68642944",
"0.6798078",
"0.67449516",
"0.67143667",
"0.6712432",
"0.67108864",
"0.6653794",
"0.6645416",
"0.6621493",
"0.6618909",
"0.65892994",
"0.65886796",
"0.6570018",
"0.6568041",
"0.6559531",
"0.6544173",
"0.65284... | 0.6364171 | 41 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, T1Gq):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Recursively goes through the dictionary obj and replaces keys with the convert function. | def K2W_(ht5v):
if isinstance(ht5v, (str, int, float)):
return ht5v
if isinstance(ht5v, dict):
BdN0 = ht5v.__class__()
for G1Hx, Ty9i in ht5v.items():
BdN0[hiRi(G1Hx)] = K2W_(Ty9i)
elif isinstance(ht5v, (list, set, tuple)):
BdN0 = ht5v.__class__((K2W_(Ty9i) for Ty... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gyie(Csk6, wIag):\n BdN0 = {}\n for G1Hx, Ty9i in Csk6.items():\n _6_j = Ty9i\n if isinstance(Ty9i, dict):\n _6_j = gyie(Ty9i, wIag)\n elif isinstance(Ty9i, list):\n _6_j = list()\n for WKvO in Ty9i:\n _6_j.append(gyie(WKvO, wIag))\n ... | [
"0.6615068",
"0.6473637",
"0.62652725",
"0.62096816",
"0.61007035",
"0.6037494",
"0.6034517",
"0.60126364",
"0.59557664",
"0.5831547",
"0.58306485",
"0.58095175",
"0.5792675",
"0.5744951",
"0.5725775",
"0.5698074",
"0.5685782",
"0.5684443",
"0.5662674",
"0.5650739",
"0.563474... | 0.0 | -1 |
Applies softmax to the input matrix along the specified axis. | def anMS(YKHO, WKvO: np.ndarray, jDK_=None) -> oyIN.ndarray:
return oyIN.exp(WKvO - vqBa(WKvO, axis=jDK_, keepdims=True)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, input, jDK_=1):\n zi3C = input.size()\n JOH3 = input.transpose(jDK_, len(zi3C) - 1)\n yDJ7 = JOH3.size()\n AT86 = JOH3.contiguous().view(-1, yDJ7[-1])\n J5je = vuvg.softmax(AT86)\n h65i = J5je.view(*yDJ7)\n return h65i.transpose(jDK_, len(zi3C) - 1)",
"def N93T(input, jDK_=1):... | [
"0.843828",
"0.8224074",
"0.8102452",
"0.80871123",
"0.79984707",
"0.79934007",
"0.7904483",
"0.79015297",
"0.7887841",
"0.78626513",
"0.7858404",
"0.7842602",
"0.7701619",
"0.75624335",
"0.7535639",
"0.7521315",
"0.748735",
"0.74863315",
"0.74313164",
"0.74264216",
"0.741318... | 0.75403035 | 14 |
Assert the equality of nested dicts, removing all private fields. | def Ifco(lGE9, n2Q1):
if isinstance(lGE9, list):
assert isinstance(n2Q1, list)
return all((Ifco(Ngpo, dg7v) for Ngpo, dg7v in zip(lGE9, n2Q1)))
elif isinstance(lGE9, (jUrF, int)):
assert isinstance(n2Q1, (jUrF, int))
return lGE9 == n2Q1
assert isinstance(lGE9, dict)
asser... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lskD(YKHO, JgCp, XcQH):\n return YKHO.assertEqual(YKHO._list2set(xYmV.parse(dict(JgCp))), YKHO._list2set(xYmV.parse(dict(XcQH))))",
"def M0aS(YKHO):\n AcTK = HWln = {'first-key': 'one', 'second-key': {'sublevel-1': {'sublevel-2': {'sublevel-3-first': 'leaf-value', 'sublevel-3-second': [1, 3, 4, {'simpl... | [
"0.76227117",
"0.7282835",
"0.7232469",
"0.72190046",
"0.71627796",
"0.68183523",
"0.67949504",
"0.67344826",
"0.67313284",
"0.6638385",
"0.66175133",
"0.6576617",
"0.6554347",
"0.65500563",
"0.65078557",
"0.64684",
"0.6468259",
"0.6461864",
"0.64594275",
"0.64548457",
"0.645... | 0.64809734 | 15 |
This method will construct an ordered dict with all the fields present on the serializer classes. | def TnMw(Emd4, gitN, o8Kj, o9Dx):
V_D6 = [(vXX7, o8Kj.pop(vXX7)) for vXX7, sjci in list(o8Kj.items()) if isinstance(sjci, o9Dx)]
for yIhv in gitN[::-1]:
if hasattr(yIhv, '_fields'):
V_D6 = list(yIhv._fields.items()) + V_D6
V_D6.sort(key=lambda WhY1: WhY1[1].count)
return U8Lr(V_D6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OL85(YKHO):\n return U8Lr(((eHNT, getattr(YKHO, eHNT)) for eHNT in YKHO._fields))",
"def MNRr(YKHO):\n Csk6 = U8Lr()\n for Jyyj in YKHO.__class__.__fields__.values():\n with Wiqu(Jyyj):\n Csk6 = Jyyj._serialize_with(YKHO, Csk6)\n for TZ9E in reversed(YKHO.__class__.__tags__):\n ... | [
"0.73450077",
"0.73189515",
"0.7231319",
"0.7179795",
"0.71504474",
"0.69182473",
"0.67890584",
"0.66670454",
"0.6666771",
"0.66652197",
"0.66529775",
"0.66383773",
"0.65960705",
"0.65529376",
"0.6547329",
"0.65167433",
"0.65087026",
"0.6490205",
"0.64754045",
"0.64695376",
"... | 0.6972659 | 5 |
Returns starting state of the board. | def W9gz():
return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO._start_state",
"def Ee93():\n exwG = ahzX(mF_7, 5)\n r... | [
"0.8809215",
"0.8809215",
"0.8809215",
"0.8809215",
"0.8809215",
"0.74344724",
"0.742334",
"0.7328245",
"0.72898334",
"0.72821885",
"0.72821885",
"0.7278382",
"0.7248571",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
... | 0.0 | -1 |
Returns set of all possible actions (i, j) available on the board. | def xASv(iBIi):
Ylbp = set()
for YRbF in range(3):
for r845 in range(3):
if iBIi[YRbF][r845] == KAvf:
Ylbp.add((YRbF, r845))
return Ylbp
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xASv(iBIi):\n Ylbp = set()\n for YRbF in range(len(iBIi)):\n for r845 in range(len(iBIi[0])):\n if iBIi[YRbF][r845] == KAvf:\n Ylbp.add((YRbF, r845))\n return Ylbp",
"def xASv(YKHO):\n hksT = YKHO.locs[YKHO.player()]\n if hksT is None:\n return YKHO.libe... | [
"0.8078164",
"0.7935423",
"0.7917879",
"0.7912585",
"0.78729856",
"0.7766741",
"0.77509874",
"0.77447766",
"0.7738995",
"0.7731153",
"0.7730132",
"0.7709082",
"0.77006704",
"0.76862395",
"0.7676969",
"0.76713663",
"0.7654127",
"0.7642262",
"0.7634384",
"0.7632887",
"0.7630382... | 0.7665846 | 16 |
Returns the winner of the game, if there is one. | def bHVe(iBIi):
for YRbF in range(3):
if iBIi[YRbF][0] == iBIi[YRbF][1] == iBIi[YRbF][2]:
return iBIi[YRbF][0]
for r845 in range(3):
if iBIi[0][r845] == iBIi[1][r845] == iBIi[2][r845]:
return iBIi[0][r845]
if iBIi[2][0] == iBIi[1][1] == iBIi[0][2]:
return iBIi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHVe(YKHO):\n if YKHO.done():\n return YKHO._winner\n else:\n return None",
"def ND5o(YKHO):\n return YKHO.win_conditions()[0]",
"def bHVe(YKHO):\n return YKHO.board.winner()",
"def bHVe(YKHO):\n J2w6 = Bu_I.compute_winner_index(YKHO.result, YKHO.game)\n if J2w6 is False:\... | [
"0.84205395",
"0.83575505",
"0.82868236",
"0.81987756",
"0.81987756",
"0.8168628",
"0.81224376",
"0.805871",
"0.7971006",
"0.79522294",
"0.7909224",
"0.789483",
"0.78946227",
"0.78887254",
"0.78633344",
"0.7850654",
"0.7850211",
"0.78320843",
"0.7811322",
"0.7769718",
"0.7765... | 0.0 | -1 |
Returns 1 if X has won the game, 1 if O has won, 0 otherwise. | def f7Dd(iBIi):
Ylbp = bHVe(iBIi)
if Ylbp is not None:
return 1 if Ylbp == EcVT else -1
return 0
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hHs1(YKHO):\n return YKHO.winner() == YKHO.X_VAL",
"def oyg0(iBIi):\n bHVe(iBIi)\n c8fa = 0\n Jszs = 0\n for YRbF in range(3):\n for r845 in range(3):\n if iBIi[YRbF][r845] == LTX_:\n Jszs += 1\n elif iBIi[YRbF][r845] == EcVT:\n c8fa +... | [
"0.77431494",
"0.7665777",
"0.7627669",
"0.76235044",
"0.74548364",
"0.744333",
"0.7343317",
"0.73383707",
"0.73096186",
"0.7305894",
"0.7282681",
"0.7275687",
"0.7244229",
"0.72328174",
"0.7207191",
"0.7182036",
"0.71798617",
"0.71759605",
"0.7175524",
"0.7167598",
"0.715218... | 0.67858636 | 95 |
Testing a class BaseModel | def LMvJ(YKHO):
KAOR = KcDH()
YKHO.assertIsInstance(KAOR, KcDH)
YKHO.assertTrue(issubclass(type(KAOR), KcDH))
YKHO.assertIs(type(KAOR), KcDH)
KAOR.name = 'Holberton'
KAOR.my_number = 89
YKHO.assertEqual(KAOR.name, 'Holberton')
YKHO.assertEqual(KAOR.my_number, 89) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Llo0(YKHO):\n YKHO.assertTrue(isinstance(YKHO.base, KcDH))",
"def Llo0(YKHO):\n YKHO.assertTrue(isinstance(YKHO.base, KcDH))",
"def Llo0(YKHO):\n YKHO.assertTrue(isinstance(YKHO.base, KcDH))",
"def KW_N(YKHO):\n YKHO.assertTrue(hasattr(KcDH, '__init__'))\n YKHO.assertTrue(hasattr(KcDH, 'sa... | [
"0.8655671",
"0.8655671",
"0.8655671",
"0.8553017",
"0.8553017",
"0.8461039",
"0.8115112",
"0.80811644",
"0.8053837",
"0.8026592",
"0.80242527",
"0.80189687",
"0.7923623",
"0.7886434",
"0.7885365",
"0.7882438",
"0.78193957",
"0.7793627",
"0.77752084",
"0.77742165",
"0.7764457... | 0.82056123 | 6 |
Return a string representation of the object. | def zAg0(YKHO):
return f'AddConstant({YKHO.a})' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return YKHO.object_repr",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO):\n return str(YKHO.obj)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return ... | [
"0.84559155",
"0.8414828",
"0.822777",
"0.82250136",
"0.8217563",
"0.813535",
"0.813535",
"0.8127276",
"0.81255686",
"0.8119905",
"0.81179637",
"0.8101933",
"0.8101933",
"0.80709076",
"0.80709076",
"0.80391836",
"0.80391836",
"0.80391836",
"0.8036725",
"0.8034329",
"0.8034329... | 0.0 | -1 |
Return a string representation of the object. | def zAg0(YKHO):
return f'AddConstantModN({YKHO.a}, {YKHO.N})' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return YKHO.object_repr",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO):\n return str(YKHO.obj)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return ... | [
"0.84559155",
"0.8414828",
"0.822777",
"0.82250136",
"0.8217563",
"0.813535",
"0.813535",
"0.8127276",
"0.81255686",
"0.8119905",
"0.81179637",
"0.8101933",
"0.8101933",
"0.80709076",
"0.80709076",
"0.80391836",
"0.80391836",
"0.80391836",
"0.8036725",
"0.8034329",
"0.8034329... | 0.0 | -1 |
Subtract a constant from a quantum number represented by a quantum register modulo N. The number is stored from low to highbit, i.e., qunum[0] is the LSB. | def Tkp6(jzdc, ywwl):
return zRpx(ywwl - jzdc, ywwl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hvy4(YKHO, exwG, r0DR=True):\n return YKHO.map(lambda geyT: geyT - exwG, r0DR)",
"def TRpo(YKHO, mLGw=1):\n with YKHO._lock:\n YKHO.value -= mLGw\n return YKHO.value",
"def vG_d(exwG):\n return exwG - 1",
"def VK_s(jzdc, Fg_i, ywwl=12):\n WKvO = (jzdc - Fg_i) % ywwl\n return ... | [
"0.58307326",
"0.5508978",
"0.55036193",
"0.54502493",
"0.5423371",
"0.5410438",
"0.5301769",
"0.5290432",
"0.52439594",
"0.52380973",
"0.5210745",
"0.5207182",
"0.5165513",
"0.516173",
"0.51577467",
"0.51577467",
"0.513282",
"0.51179063",
"0.5111677",
"0.5082848",
"0.5061839... | 0.6182125 | 0 |
Return a string representation of the object. | def zAg0(YKHO):
return f'MultiplyByConstantModN({YKHO.a}, {YKHO.N})' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return YKHO.object_repr",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO):\n return str(YKHO.obj)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return ... | [
"0.84559155",
"0.8414828",
"0.822777",
"0.82250136",
"0.8217563",
"0.813535",
"0.813535",
"0.8127276",
"0.81255686",
"0.8119905",
"0.81179637",
"0.8101933",
"0.8101933",
"0.80709076",
"0.80709076",
"0.80391836",
"0.80391836",
"0.80391836",
"0.8036725",
"0.8034329",
"0.8034329... | 0.0 | -1 |
Return a string representation of the object. | def zAg0(YKHO):
return 'AddQuantum' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return YKHO.object_repr",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO):\n return str(YKHO.obj)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return ... | [
"0.84559155",
"0.8414828",
"0.822777",
"0.82250136",
"0.8217563",
"0.813535",
"0.813535",
"0.8127276",
"0.81255686",
"0.8119905",
"0.81179637",
"0.8101933",
"0.8101933",
"0.80709076",
"0.80709076",
"0.80391836",
"0.80391836",
"0.80391836",
"0.8036725",
"0.8034329",
"0.8034329... | 0.0 | -1 |
Return a string representation of the object. | def zAg0(YKHO):
return '_InverseAddQuantum' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return YKHO.object_repr",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO):\n return str(YKHO.obj)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return ... | [
"0.84559155",
"0.8414828",
"0.822777",
"0.82250136",
"0.8217563",
"0.813535",
"0.813535",
"0.8127276",
"0.81255686",
"0.8119905",
"0.81179637",
"0.8101933",
"0.8101933",
"0.80709076",
"0.80709076",
"0.80391836",
"0.80391836",
"0.80391836",
"0.8036725",
"0.8034329",
"0.8034329... | 0.0 | -1 |
Return a string representation of the object. | def zAg0(YKHO):
return 'SubtractQuantum' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return YKHO.object_repr",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO):\n return str(YKHO.obj)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return ... | [
"0.84559155",
"0.8414828",
"0.822777",
"0.82250136",
"0.8217563",
"0.813535",
"0.813535",
"0.8127276",
"0.81255686",
"0.8119905",
"0.81179637",
"0.8101933",
"0.8101933",
"0.80709076",
"0.80709076",
"0.80391836",
"0.80391836",
"0.80391836",
"0.8036725",
"0.8034329",
"0.8034329... | 0.0 | -1 |
Initialize a ComparatorQuantumGate object. Initialize the gate and its base class, BasicMathGate, with the corresponding function, so it can be emulated efficiently. | def FIMM(YKHO):
def qk7K(jzdc, Fg_i, Z9rn):
if Fg_i < jzdc:
if Z9rn == 0:
Z9rn = 1
else:
Z9rn = 0
return (jzdc, Fg_i, Z9rn)
super().__init__(qk7K) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, uJer, UWG2, m91v={}, _Y0l={}, zGKQ=None, _ZCc=('clifford', 'target'), qPxK={'paulieq': ('1Qcliffords', 'allcnots'), 'absolute': ('paulis', '1Qcliffords')}, wp5n=0):\n assert type(uJer) is int, 'The number of qubits, n, should be an integer!'\n YKHO.number_of_qubits = uJer\n YKHO.root_gate_n... | [
"0.6419446",
"0.6332056",
"0.6103121",
"0.60176265",
"0.59930766",
"0.5947252",
"0.59424794",
"0.5902885",
"0.5853051",
"0.5831669",
"0.58193016",
"0.58142525",
"0.57982737",
"0.5768948",
"0.57238585",
"0.5681006",
"0.56755316",
"0.5647214",
"0.5645512",
"0.5634181",
"0.56160... | 0.0 | -1 |
Return a string representation of the object. | def zAg0(YKHO):
return 'Comparator' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return YKHO.object_repr",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO):\n return str(YKHO.obj)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return ... | [
"0.84559155",
"0.8414828",
"0.822777",
"0.82250136",
"0.8217563",
"0.813535",
"0.813535",
"0.8127276",
"0.81255686",
"0.8119905",
"0.81179637",
"0.8101933",
"0.8101933",
"0.80709076",
"0.80709076",
"0.80391836",
"0.80391836",
"0.80391836",
"0.8036725",
"0.8034329",
"0.8034329... | 0.0 | -1 |
Initialize a DivideQuantumGate object. Initialize the gate and its base class, BasicMathGate, with the corresponding function, so it can be emulated efficiently. | def FIMM(YKHO):
def rAjW(pAX6, K0A_, di96):
if di96 == 0 or di96 > pAX6:
return (K0A_, pAX6, di96)
VLzE = K0A_ + pAX6 // di96
return (pAX6 - VLzE * di96, VLzE, di96)
super().__init__(rAjW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n super().__init__('cx', 2, [], num_ctrl_qubits=1)\n YKHO.base_gate = fU2R()",
"def FIMM(YKHO):\n super().__init__('ccx', 3, [], num_ctrl_qubits=2)\n YKHO.base_gate = fU2R()",
"def KP4Y(Emd4, O6Qp, NXZD=1, uLGY=2, sogq=2):\n if sogq < 2:\n tO9_ = 'control gates must operat... | [
"0.63997066",
"0.59202665",
"0.58027047",
"0.577129",
"0.57546824",
"0.5645013",
"0.56331116",
"0.5563685",
"0.55092365",
"0.5491659",
"0.54554296",
"0.5449365",
"0.54046977",
"0.540208",
"0.53924716",
"0.5380748",
"0.5379897",
"0.5324739",
"0.53124326",
"0.53068835",
"0.5301... | 0.0 | -1 |
Return a string representation of the object. | def zAg0(YKHO):
return 'DivideQuantum' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return YKHO.object_repr",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO):\n return str(YKHO.obj)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return ... | [
"0.84559155",
"0.8414828",
"0.822777",
"0.82250136",
"0.8217563",
"0.813535",
"0.813535",
"0.8127276",
"0.81255686",
"0.8119905",
"0.81179637",
"0.8101933",
"0.8101933",
"0.80709076",
"0.80709076",
"0.80391836",
"0.80391836",
"0.80391836",
"0.8036725",
"0.8034329",
"0.8034329... | 0.0 | -1 |
Initialize an _InverseDivideQuantumGate object. | def FIMM(YKHO):
def hA6l(K0A_, VLzE, di96):
if di96 == 0:
return (VLzE, K0A_, di96)
pAX6 = K0A_ + VLzE * di96
K0A_ = 0
return (pAX6, K0A_, di96)
super().__init__(hA6l) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def px0l(YKHO):\n return sXrX()",
"def px0l(YKHO):\n return Z0jC()",
"def px0l(YKHO):\n return TquM()",
"def GOZd(YKHO):\n pdn3 = kLP0(name=YKHO.name + '_dg', num_qubits=YKHO.num_qubits, params=[])\n q_DO = Rv0t(*YKHO.definition.qregs)\n for p4_k in reversed(YKHO._definition):\n q_DO... | [
"0.71091",
"0.64851075",
"0.63047355",
"0.627233",
"0.58115137",
"0.56946576",
"0.5582579",
"0.5576778",
"0.55669224",
"0.5542059",
"0.54382306",
"0.5414765",
"0.5400013",
"0.53905874",
"0.5347452",
"0.5328358",
"0.5328186",
"0.53211206",
"0.5304856",
"0.52880234",
"0.5272275... | 0.57323617 | 5 |
Return a string representation of the object. | def zAg0(YKHO):
return '_InverseDivideQuantum' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return YKHO.object_repr",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO):\n return str(YKHO.obj)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return ... | [
"0.84559155",
"0.8414828",
"0.822777",
"0.82250136",
"0.8217563",
"0.813535",
"0.813535",
"0.8127276",
"0.81255686",
"0.8119905",
"0.81179637",
"0.8101933",
"0.8101933",
"0.80709076",
"0.80709076",
"0.80391836",
"0.80391836",
"0.80391836",
"0.8036725",
"0.8034329",
"0.8034329... | 0.0 | -1 |
Return a string representation of the object. | def zAg0(YKHO):
return 'MultiplyQuantum' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return YKHO.object_repr",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO):\n return str(YKHO.obj)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return ... | [
"0.84559155",
"0.8414828",
"0.822777",
"0.82250136",
"0.8217563",
"0.813535",
"0.813535",
"0.8127276",
"0.81255686",
"0.8119905",
"0.81179637",
"0.8101933",
"0.8101933",
"0.80709076",
"0.80709076",
"0.80391836",
"0.80391836",
"0.80391836",
"0.8036725",
"0.8034329",
"0.8034329... | 0.0 | -1 |
Return a string representation of the object. | def zAg0(YKHO):
return '_InverseMultiplyQuantum' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return YKHO.object_repr",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO):\n return str(YKHO.obj)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return ... | [
"0.84559155",
"0.8414828",
"0.822777",
"0.82250136",
"0.8217563",
"0.813535",
"0.813535",
"0.8127276",
"0.81255686",
"0.8119905",
"0.81179637",
"0.8101933",
"0.8101933",
"0.80709076",
"0.80709076",
"0.80391836",
"0.80391836",
"0.80391836",
"0.8036725",
"0.8034329",
"0.8034329... | 0.0 | -1 |
Transforms an input tensor into a batch with the correct size for our model. | def lO5P(g4y1, Ep8u=128):
Wc9F = oyIN.repeat(g4y1[oyIN.newaxis, :, :], Ep8u, axis=0)
return Wc9F | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t8iV(g4y1, nQ5H):\n g4y1 = ZylS.concat(g4y1, axis=1)\n return ZylS.reshape(g4y1, (GicI, -1, nQ5H))",
"def AE3A(g4y1, zNig, Ep8u):\n D0B5 = []\n for toat in range(zNig):\n D0B5.append(oyIN.array([g4y1[S0S4][toat] for S0S4 in range(Ep8u)], dtype=oyIN.int32))\n return D0B5",
"def knuZ(Cp... | [
"0.706079",
"0.70365846",
"0.6858032",
"0.6858032",
"0.6809622",
"0.66584724",
"0.66368645",
"0.66254574",
"0.6615896",
"0.6585806",
"0.6583662",
"0.6572387",
"0.65406615",
"0.6530003",
"0.6530003",
"0.6525077",
"0.65031284",
"0.6493865",
"0.64812887",
"0.64397645",
"0.642225... | 0.69941396 | 2 |
Reads batches of SequenceExamples from TFRecords and pads them. Can deal with variable length SequenceExamples by padding each batch to the length of the longest sequence with zeros. | def f0Ea(MVVZ, Ep8u, zi3C, Zbwy, QDx0=1):
BGi1 = ZylS.train.string_input_producer(MVVZ, num_epochs=Zbwy)
N5Pj = ZylS.TFRecordReader()
bGrB, lGjS = N5Pj.read(BGi1)
wmlr = {'inputs': ZylS.FixedLenSequenceFeature(shape=[zi3C], dtype=ZylS.float32), 'labels': ZylS.FixedLenSequenceFeature(shape=[], dtype=ZylS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gc7n(Wc9F):\n Xtuq = [ht2j.squeeze(WKvO[0]) for WKvO in Wc9F]\n Fbjb = [len(KCHu) for KCHu in Xtuq]\n Rsne = U78l.utils.rnn.pad_sequence(Xtuq, batch_first=True, padding_value=0)\n Crrw = [Fg_i[1] for Fg_i in Wc9F]\n wzH_ = Rsne.size(1)\n All1 = ht2j.cat([ogYM.repeat(1, wzH_, 1) for ogYM in Cr... | [
"0.6927829",
"0.68940365",
"0.65459704",
"0.6528387",
"0.65268713",
"0.6519011",
"0.6503355",
"0.6495028",
"0.6459636",
"0.6443011",
"0.6408426",
"0.63664347",
"0.6355487",
"0.63551736",
"0.6342072",
"0.6335204",
"0.6329456",
"0.6320337",
"0.6316964",
"0.6304996",
"0.6292376"... | 0.6555642 | 2 |
When the sprite is not into a batch it will be drawn with this method. If in a batch, this method is not called, and the draw is done by the batch. | def JmFt(YKHO):
YKHO._group.set_state()
if YKHO._vertex_list is not None:
YKHO._vertex_list.draw(Fd7m.GL_QUADS)
YKHO._group.unset_state() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO):\n YKHO.sprite.draw()",
"def JmFt(YKHO):\n YKHO.image = YKHO.sprite.render()\n YKHO.rect = rbZs(YKHO.sprite.pos, YKHO.image.get_size())",
"def PbOH(rGpw: int) -> None:\n pass",
"def NgQf():\n lDPr.draw()",
"def JmFt(YKHO) -> None:\n YKHO.__main_batch.draw()",
"def JmFt(YK... | [
"0.7914371",
"0.72007424",
"0.71663076",
"0.7121324",
"0.71031946",
"0.70983505",
"0.70663315",
"0.70247626",
"0.6956067",
"0.6954709",
"0.69159675",
"0.69111156",
"0.68945426",
"0.6848008",
"0.67665553",
"0.67624754",
"0.67615366",
"0.6735333",
"0.6727475",
"0.6702242",
"0.6... | 0.0 | -1 |
Test the volume service. | async def test_volume_services(RUgX):
assert await C3TX(RUgX, g2zq.DOMAIN, {'media_player': {'platform': 'demo'}})
await RUgX.async_block_till_done()
QTBn = RUgX.states.get(Jntc)
assert QTBn.attributes.get(g2zq.ATTR_MEDIA_VOLUME_LEVEL) == 1.0
with trZe.raises(qjHC.Invalid):
await RUgX.servic... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ojQ0(YKHO):\n YKHO.driver.create_volume(YKHO.volume)",
"def v8iV(YKHO):\n pass",
"def Yg3Z(YKHO):\n Of2x = YKHO.api.get_volumes()\n for akib in Of2x:\n na1r.debug('volume: %s' % akib)",
"def ojQ0(YKHO):\n YKHO.driver.do_setup(None)\n YKHO.driver.create_volume(w4eR)\n xSy1 = YK... | [
"0.7329257",
"0.72753227",
"0.717577",
"0.71474314",
"0.71450096",
"0.70099056",
"0.6875105",
"0.68518156",
"0.6845698",
"0.6834107",
"0.6794914",
"0.677869",
"0.6765009",
"0.67543924",
"0.6733836",
"0.6713044",
"0.66764694",
"0.665256",
"0.6623123",
"0.6606974",
"0.6602952",... | 0.6915522 | 6 |