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 |
|---|---|---|---|---|---|---|
Sets the id of this Stop. | def id(YKHO, id):
if id is None:
raise ValueError('Invalid value for `id`, must not be `None`')
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def ekm0(YKHO, id):\n YKHO._id = id\n return YKHO.callRemote('setID', id)",
"def V_9M(YKHO, hbFX=None):\n if hbF... | [
"0.77822155",
"0.77449405",
"0.77366966",
"0.7332938",
"0.7287493",
"0.72759295",
"0.72361386",
"0.72265327",
"0.72265327",
"0.72265327",
"0.72265327",
"0.72265327",
"0.7200683",
"0.7200683",
"0.7200683",
"0.7200683",
"0.7200683",
"0.7200683",
"0.7200683",
"0.7200683",
"0.720... | 0.7312525 | 6 |
Gets the rt_dep_time of this Stop. | def i5Iu(YKHO):
return YKHO._rt_dep_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dmvv(YKHO):\n return YKHO._dep_time",
"def lQCx(YKHO):\n return YKHO._rt_dep_date",
"def i5Iu(YKHO, i5Iu):\n YKHO._rt_dep_time = i5Iu",
"def E4ks(YKHO):\n return YKHO._rt_arr_time",
"def JRYC(YKHO) -> float:\n return YKHO._dt",
"def ew3z(YKHO):\n if hasattr(YKHO, 'starttime'):\n ... | [
"0.7687774",
"0.6996497",
"0.6530535",
"0.6455306",
"0.6324123",
"0.6318792",
"0.63162935",
"0.6249587",
"0.6228131",
"0.62086356",
"0.6193525",
"0.61871",
"0.615714",
"0.6152181",
"0.6151181",
"0.61334264",
"0.61334264",
"0.6128495",
"0.61010206",
"0.6100852",
"0.6090513",
... | 0.8912979 | 0 |
Gets the rt_arr_time of this Stop. | def E4ks(YKHO):
return YKHO._rt_arr_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def boRJ(YKHO):\n return YKHO._arr_time",
"def ITS7(YKHO):\n return YKHO.time_array",
"def a5Vn(YKHO):\n return oyIN.array(YKHO.trtimes) - YKHO.soundstarttime",
"def i5Iu(YKHO):\n return YKHO._rt_dep_time",
"def E4ks(YKHO, E4ks):\n YKHO._rt_arr_time = E4ks",
"def WXkz(YKHO):\n if YKHO._... | [
"0.8017832",
"0.746074",
"0.7157835",
"0.677074",
"0.67252845",
"0.66943794",
"0.6660984",
"0.6593752",
"0.6570837",
"0.6544666",
"0.6460825",
"0.6440828",
"0.64387363",
"0.6393684",
"0.6337722",
"0.6313111",
"0.6310829",
"0.6244255",
"0.6242575",
"0.62391704",
"0.62271243",
... | 0.8984452 | 0 |
Gets the name of this Stop. Contains the name of the stop/station | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO.device.get_station_name(YKHO.station_number)",
"def W0tD(YKHO) -> str:\n return YKHO.name_",
"def W0tD(YKHO) -> str:\n return YKHO._name",
"def W0tD(YKHO) -> str:\n return YKHO._name",
"def mWFP(YKHO) -> str:\n VXJd = YKHO._get_station_name()\n return f'{VXJd... | [
"0.8053515",
"0.7189965",
"0.71258575",
"0.71258575",
"0.7095744",
"0.7083274",
"0.7083274",
"0.7083274",
"0.70703286",
"0.70423067",
"0.70423067",
"0.7030836",
"0.7030639",
"0.70195436",
"0.70195436",
"0.70195436",
"0.70195436",
"0.70195436",
"0.70195436",
"0.70195436",
"0.7... | 0.0 | -1 |
Sets the name of this Stop. Contains the name of the stop/station | def mWFP(YKHO, mWFP):
if mWFP is None:
raise ValueError('Invalid value for `name`, must not be `None`')
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zPdd(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):... | [
"0.73414344",
"0.72423595",
"0.72423595",
"0.72423595",
"0.72423595",
"0.72423595",
"0.7180623",
"0.7180623",
"0.71770436",
"0.7116638",
"0.7114985",
"0.7103173",
"0.7103173",
"0.7100634",
"0.70982856",
"0.7095412",
"0.7095412",
"0.7083179",
"0.7043341",
"0.7041491",
"0.70336... | 0.0 | -1 |
Gets the arr_time of this Stop. | def boRJ(YKHO):
return YKHO._arr_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E4ks(YKHO):\n return YKHO._rt_arr_time",
"def ITS7(YKHO):\n return YKHO.time_array",
"def m7L9(YKHO):\n return XTiz.linspace(YKHO.header.time_gate_start, YKHO.header.time_gate_stop, YKHO.num_time_bins())",
"def m7L9(YKHO):\n return YKHO._ticks",
"def CCCh(YKHO):\n return YKHO.t",
"def ... | [
"0.83302146",
"0.8180744",
"0.70893806",
"0.7075647",
"0.6956804",
"0.69371176",
"0.6903963",
"0.6798404",
"0.67489356",
"0.6744157",
"0.67013144",
"0.67013144",
"0.6687147",
"0.66778773",
"0.66766655",
"0.66760975",
"0.6674431",
"0.66558224",
"0.66033995",
"0.6602461",
"0.65... | 0.87676215 | 0 |
Sets the arr_time of this Stop. | def boRJ(YKHO, boRJ):
YKHO._arr_time = boRJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E4ks(YKHO, E4ks):\n YKHO._rt_arr_time = E4ks",
"def JxUl(YKHO, ITS7):\n YKHO.itime = ITS7",
"def jUWg(YKHO, ITS7):\n YKHO._time = ITS7",
"def ITS7(YKHO, ITS7):\n YKHO._time = ITS7",
"def ITS7(YKHO, ITS7):\n YKHO._time = ITS7",
"def ITS7(YKHO, ITS7):\n YKHO._time = ITS7",
"def ITS7... | [
"0.79546803",
"0.678734",
"0.6780257",
"0.6684396",
"0.6684396",
"0.6684396",
"0.6684396",
"0.6684396",
"0.6667317",
"0.66168123",
"0.6599118",
"0.65046334",
"0.6385064",
"0.63193184",
"0.6204772",
"0.6189676",
"0.6189676",
"0.6155533",
"0.61068195",
"0.606069",
"0.60595495",... | 0.8499057 | 0 |
Sets the rt_dep_date of this Stop. Realtime departure date in format YYYYMMDD, if available | def lQCx(YKHO, lQCx):
YKHO._rt_dep_date = lQCx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i5Iu(YKHO, i5Iu):\n YKHO._rt_dep_time = i5Iu",
"def lQCx(YKHO):\n return YKHO._rt_dep_date",
"def AS9e(YKHO, AS9e):\n YKHO._dep_date = AS9e",
"def Ecil(YKHO, zSdg):\n YKHO.__rdate = zSdg",
"def fU0w(YKHO, fU0w):\n YKHO._rt_arr_date = fU0w",
"def EmhK(YKHO, _c1T):\n pass",
"def AS9... | [
"0.7451476",
"0.715419",
"0.6850008",
"0.6428117",
"0.634053",
"0.55860007",
"0.5501941",
"0.5489291",
"0.54415125",
"0.542317",
"0.54166496",
"0.53196955",
"0.527472",
"0.52321666",
"0.5226858",
"0.52175283",
"0.52150464",
"0.51844734",
"0.5161841",
"0.5150237",
"0.5140929",... | 0.87562996 | 0 |
Sets the rt_arr_date of this Stop. Realtime arrival date in format YYYYMMDD, if available | def fU0w(YKHO, fU0w):
YKHO._rt_arr_date = fU0w | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lQCx(YKHO, lQCx):\n YKHO._rt_dep_date = lQCx",
"def E4ks(YKHO, E4ks):\n YKHO._rt_arr_time = E4ks",
"def O1oJ(YKHO, O1oJ):\n YKHO._arr_date = O1oJ",
"def fU0w(YKHO):\n return YKHO._rt_arr_date",
"def Ecil(YKHO, zSdg):\n YKHO.__rdate = zSdg",
"def i5Iu(YKHO, i5Iu):\n YKHO._rt_dep_time... | [
"0.71861106",
"0.70687103",
"0.6814935",
"0.67884266",
"0.6282097",
"0.62083244",
"0.5715029",
"0.54646194",
"0.5452729",
"0.534824",
"0.53146935",
"0.5242237",
"0.5218246",
"0.5197196",
"0.5193395",
"0.51716703",
"0.5146091",
"0.5146091",
"0.5133277",
"0.50986135",
"0.509339... | 0.8290899 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, pm1c):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
A decorator that redirects to index if the user is logged in. | def Sf1m(eHNT):
@zaGL(eHNT)
def SzLu(*qIxc, **B2fa):
if 'idToken' in cuiw:
return vKnz(nKyW('index'))
else:
return eHNT(*qIxc, **B2fa)
return SzLu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uKii(eHNT):\n\n @zaGL(eHNT)\n def SzLu(*qIxc, **B2fa):\n if cuiw.get('user_id') is None:\n return vKnz(nKyW('index'))\n return eHNT(*qIxc, **B2fa)\n return SzLu",
"def QR9d():\n\n def DCgT(eHNT, *qIxc, **B2fa):\n if qIxc[0].current_user is not None:\n re... | [
"0.77896225",
"0.7728219",
"0.74859095",
"0.73631585",
"0.73534447",
"0.73190653",
"0.73190653",
"0.7316723",
"0.724827",
"0.72439337",
"0.7230037",
"0.71956",
"0.7178547",
"0.7170036",
"0.711816",
"0.7113426",
"0.710824",
"0.7082113",
"0.7061863",
"0.7052488",
"0.704026",
... | 0.7381329 | 3 |
Parse a LookML file into a dictionary with keys for each of its primary properties and a list of values. | def EBKp(YKHO, DeWQ: str) -> dict:
bo34.info('Parsing data from local LookML file {}'.format(YKHO.lookml_file_name_and_path))
with open(BfDw.assemble_path(DeWQ, YKHO.lookml_file_name_and_path), 'r') as A1aU:
return N5BY.load(A1aU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PIlt(qSzW: str) -> dict:\n bo34.info('Parsing data from LookML file {}'.format(qSzW))\n with open(qSzW, 'r') as B9GY:\n NcyD = N5BY.load(B9GY)\n return NcyD",
"def CJel(Ux0P):\n kqsK = {}\n with open(Ux0P) as nVrR:\n for AIu6 in oJcR.parse(nVrR):\n if 'AB' in AIu6.keys... | [
"0.7154593",
"0.5802885",
"0.5632429",
"0.5624744",
"0.5611319",
"0.55730563",
"0.55182415",
"0.55140483",
"0.5488397",
"0.54710776",
"0.5430578",
"0.54044247",
"0.53895724",
"0.53690803",
"0.5354642",
"0.5333724",
"0.53087693",
"0.52718097",
"0.52662635",
"0.52570117",
"0.52... | 0.6288773 | 1 |
Parse a LookML file into a dictionary with keys for each of its primary properties and a list of values. | def PIlt(qSzW: str) -> dict:
bo34.info('Parsing data from LookML file {}'.format(qSzW))
with open(qSzW, 'r') as B9GY:
NcyD = N5BY.load(B9GY)
return NcyD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EBKp(YKHO, DeWQ: str) -> dict:\n bo34.info('Parsing data from local LookML file {}'.format(YKHO.lookml_file_name_and_path))\n with open(BfDw.assemble_path(DeWQ, YKHO.lookml_file_name_and_path), 'r') as A1aU:\n return N5BY.load(A1aU)",
"def CJel(Ux0P):\n kqsK = {}\n with open(Ux0P) as nVrR:... | [
"0.6288773",
"0.5802885",
"0.5632429",
"0.5624744",
"0.5611319",
"0.55730563",
"0.55182415",
"0.55140483",
"0.5488397",
"0.54710776",
"0.5430578",
"0.54044247",
"0.53895724",
"0.53690803",
"0.5354642",
"0.5333724",
"0.53087693",
"0.52718097",
"0.52662635",
"0.52570117",
"0.52... | 0.7154593 | 0 |
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 given 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(using=YKHO._db)\n return CBIr",
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n ... | [
"0.85445017",
"0.8511888",
"0.850827",
"0.85025996",
"0.8502548",
"0.84896004",
"0.84896004",
"0.84888655",
"0.84888655",
"0.84888655",
"0.8486028",
"0.84772795",
"0.84767693",
"0.84570897",
"0.84570897",
"0.84570897",
"0.84544164",
"0.84484667",
"0.8445246",
"0.84436035",
"0... | 0.8475504 | 19 |
Displays ``Person`` object list. This is a short wrapper around the generic ``list_detail.object_list`` view. So, all context variables populated by that view will be available here. Additionally, any keyword arguments which are valid for this generic view will be accepted and passed to it. | def azSe(QePW, SR0I=None, **B2fa):
if SR0I is None:
SR0I = nj3W.objects.all()
if 'queryset' in B2fa:
del B2fa['queryset']
if 'template_name' not in B2fa:
B2fa['template_name'] = 'flickrsets/person/list.html'
if 'template_object_name' not in B2fa:
B2fa['template_object_nam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list(YKHO, QePW, **B2fa):\n SR0I = YKHO.get_queryset()\n aZmj = YKHO.filter_queryset(SR0I)\n aZmj = uqSw(QePW, aZmj)\n B2Dn = YKHO.paginate_queryset(aZmj)\n if B2Dn is not None:\n ZMzz = wjSt(B2Dn, many=True)\n return YKHO.get_paginated_response(ZMzz.data)\n ZMzz = wjSt(aZmj, ma... | [
"0.65357625",
"0.64453477",
"0.6269414",
"0.6173619",
"0.61658984",
"0.6079124",
"0.60379803",
"0.59815264",
"0.5940873",
"0.5840392",
"0.5830503",
"0.5678174",
"0.5648108",
"0.5604328",
"0.5592674",
"0.55575436",
"0.5530109",
"0.55266225",
"0.5495391",
"0.5485941",
"0.548113... | 0.7846234 | 0 |
Docstring is inherited from the lightgbm.LGBMClassifier.__init__. | def FIMM(YKHO, hvyA: str='gbdt', AfXs: int=31, qi10: int=-1, b0Ix: float=0.1, N5XC: int=100, vz_i: int=200000, rV9r: Optional[Union[Callable, str]]=None, FJiT: Optional[Union[dict, str]]=None, qjZR: float=0.0, nRz1: float=0.001, dgWs: int=20, U1hP: float=1.0, a_gJ: int=0, kYqq: float=1.0, W8ka: float=0.0, oCQI: float=0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a48V(Lcqa, PLcF):\n C3ST = dXFm.LGBMClassifier(objective='multiclass', num_class='6', random_state=42)\n C3ST.fit(Lcqa, PLcF)\n return C3ST",
"def FIMM(YKHO, EcVT, LVAh, rbjf):\n YKHO.name = 'Gaussian Naive Bayes'\n YKHO.clf = YKHO.train(EcVT, LVAh, rbjf)",
"def FIMM(YKHO, bySB, Crrw, WSzb='... | [
"0.6429635",
"0.63709646",
"0.627782",
"0.62148213",
"0.60824156",
"0.60418713",
"0.60373324",
"0.6033039",
"0.6029882",
"0.6000455",
"0.598949",
"0.5944557",
"0.593533",
"0.59306335",
"0.5886373",
"0.58777094",
"0.5866529",
"0.5851644",
"0.58496803",
"0.5840083",
"0.5824482"... | 0.57389 | 26 |
Docstring is inherited from the lightgbm.LGBMClassifier.predict_proba. | def KR85(YKHO, EcVT: _DaskMatrixLike, **B2fa: Any) -> TA_n:
return LEI_(model=YKHO.to_local(), data=EcVT, pred_proba=True, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KR85(YKHO):\n ...",
"def KR85(YKHO, EcVT):\n raise NotImplementedError()",
"def KR85(YKHO, EcVT, **B2fa):\n raise NotImplementedError",
"def KR85(YKHO, Zwka):\n return YKHO.gs.predict_proba(Zwka)",
"def KR85(YKHO, EcVT):\n raise NotImplemented('predict_proba function is currently disable... | [
"0.74986655",
"0.7012414",
"0.69736665",
"0.6866382",
"0.66793036",
"0.66719663",
"0.66416246",
"0.66085607",
"0.6599807",
"0.6539933",
"0.65254825",
"0.64905876",
"0.64903504",
"0.64206034",
"0.6416573",
"0.6414869",
"0.6391795",
"0.635894",
"0.63503444",
"0.6341957",
"0.634... | 0.0 | -1 |
This method tests that the correct customers are displayed for the product_id | def e8rH(YKHO):
p9bx.import_data('csvs', 'product_data.csv', 'customer_data.csv', 'rentals_data.csv')
IiQ8 = p9bx.show_rentals('prd002')
cF3E = {'cst001': {'name': 'Charlie', 'address': '123 Fleet Street', 'phone_number': '1231234123'}, 'cst002': {'name': 'Andrey', 'address': '123 Jordan Street', 'phone_num... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zJ95(YKHO):\n m5mT()\n YKHO.assertEqual([], _K5h())\n W95g(**sLQ1)\n W95g(**z1dU)\n W95g(**WPN9)\n YKHO.assertEqual(['Post Malone', 'Howard Moon', 'Vince Noir'], _K5h())\n OfVt()",
"def n8Dz(x0hE, KeVq, wfZ7, Yp0J):\n Ldyl = msfn.objects.all()\n for Lx3t in Ldyl:\n ocFo = gx... | [
"0.68576336",
"0.6846851",
"0.6747285",
"0.6618832",
"0.65362805",
"0.6521763",
"0.6520921",
"0.64983934",
"0.64967227",
"0.6480861",
"0.64760214",
"0.64717597",
"0.6457182",
"0.64373064",
"0.6432685",
"0.63893515",
"0.636952",
"0.63634014",
"0.63507",
"0.63500786",
"0.633699... | 0.601694 | 39 |
Initialise an instance using an existing variable The Variable instance needs to be part of a Group instance in order to gain access to other related variables and dimensions that are required for the coordinates mapping | def FIMM(YKHO, Es0b):
YKHO.variable = Es0b
YKHO.group = Es0b.group
YKHO.coordinates_variables = []
YKHO.coordinates_mapping = {}
YKHO._features = None
YKHO._realtimes = None
YKHO.build_coordinates_map()
YKHO._subset = YKHO.default_subset() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mWFP, Es0b, Y5FS):\n YKHO._name = mWFP\n YKHO.var_id = Es0b\n YKHO.var_period = Y5FS[0]\n YKHO.var_type = Y5FS[1]\n YKHO.var_detail = Y5FS[2]\n YKHO.var_units = Y5FS[3]\n YKHO.var_icon = Y5FS[4]\n YKHO.var_state = None",
"def FIMM(YKHO, kc1W, Htse):\n YKHO._variables = k... | [
"0.6788297",
"0.6594964",
"0.6577682",
"0.6431829",
"0.6404017",
"0.63923275",
"0.63878894",
"0.6116802",
"0.60677695",
"0.60594225",
"0.60086495",
"0.59977156",
"0.59968954",
"0.5996611",
"0.5992913",
"0.5992913",
"0.59919804",
"0.5987395",
"0.598687",
"0.5980395",
"0.597933... | 0.74736243 | 0 |
Returns a 2D numpy array of latitudes. If the latitude coordinate variable is 1D then it is extended to 2D. | def T8P7(YKHO):
if YKHO.featuretype in ['Grid', 'GridSeries']:
RPjH = YKHO.latitude_variable
mBir = YKHO.longitude_variable
y3Gl = YKHO.coordinates_mapping['latitude']['map']
fTts = YKHO.coordinates_mapping['longitude']['map']
ca5_ = []
for tpio in y3Gl:
c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kWVP(qoFU, LPZh):\n Ee5n = oyIN.array([])\n GbdB = oyIN.array([])\n for QnmL in qoFU:\n Ee5n = oyIN.append(Ee5n, QnmL * (180 / oyIN.pi))\n for FDPT in LPZh:\n GbdB = oyIN.append(GbdB, FDPT * (180 / oyIN.pi))\n return (Ee5n, GbdB)",
"def aRjH(YKHO) -> SsVK.array.GeometryArray:\n ... | [
"0.6345822",
"0.6261727",
"0.6231209",
"0.61587626",
"0.6150579",
"0.6115615",
"0.6115161",
"0.6115161",
"0.61025774",
"0.59802324",
"0.5973856",
"0.59561515",
"0.5955485",
"0.59342444",
"0.58650833",
"0.5845648",
"0.58366835",
"0.582888",
"0.5814165",
"0.5769238",
"0.5748771... | 0.6128685 | 5 |
Return the training labels in a window for a scene. | def yv1Y(YKHO, KnxT: Box, F6jf: Scene) -> Oqgi:
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yv1Y(YKHO, KnxT, F6jf):\n pass",
"def yv1Y(YKHO, KnxT: Box, F6jf: Scene) -> oyIN.ndarray:\n XQLD = F6jf.ground_truth_label_source\n return XQLD.get_labels(KnxT)",
"def gw5h(YKHO, F6jf):\n pass",
"def gw5h(YKHO, F6jf: Scene) -> x1iM[rh6a]:\n raise NotImplementedError()",
"def P05y(YKHO, K... | [
"0.8267031",
"0.7965654",
"0.7267892",
"0.66961306",
"0.6506633",
"0.62388337",
"0.5990519",
"0.5841788",
"0.5770139",
"0.5764061",
"0.57084584",
"0.57053065",
"0.56334287",
"0.55925506",
"0.55788904",
"0.557281",
"0.55300945",
"0.54728734",
"0.54728734",
"0.54529315",
"0.545... | 0.7797557 | 2 |
Return the vector of partial derivatives \partial C_x / \partial a for the output activations. | def KX7l(YKHO, XH02, LVAh):
return XH02 - LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tNbl(YKHO, g4y1, WlSc):\n vnM8 = g4y1['SOC']\n ovGo = g4y1['temperature']\n Jxbn = g4y1['P_bat']\n o5UJ = uBEc * YKHO.exponential\n _fy8 = -uBEc * YKHO.voc * oyIN.exp(Cwt5 * (ovGo[4, :] - wGZt) / wGZt) * Cwt5 / wGZt\n fw4i = oyIN.exp(vnM8[0, :]) / (oyIN.e - 1)\n YKHO.dI_dP = 1.0 / YKHO.V\n... | [
"0.6179747",
"0.6113179",
"0.6110102",
"0.6063869",
"0.6060675",
"0.5840477",
"0.58356196",
"0.57909757",
"0.5785478",
"0.576321",
"0.56212157",
"0.5613195",
"0.56029624",
"0.56029624",
"0.56029624",
"0.56029624",
"0.5575484",
"0.5562849",
"0.5559713",
"0.5545122",
"0.5525026... | 0.56648666 | 10 |
Derivative of the sigmoid function. | def hj5n(epBp):
return m1Hg(epBp) * (1 - m1Hg(epBp)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NZml(WKvO):\n return WKvO * (1 - WKvO)",
"def NZml(WKvO):\n return WKvO * (1.0 - WKvO)",
"def NZml(WKvO):\n return m1Hg(WKvO) * (1 - m1Hg(WKvO))",
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def NZml(WKvO):\n KCHu = m1Hg(WKvO)\n ox... | [
"0.84754366",
"0.8450928",
"0.8396931",
"0.83485264",
"0.83485264",
"0.8298343",
"0.80539966",
"0.7753385",
"0.77070266",
"0.7498153",
"0.7464916",
"0.7454039",
"0.7401582",
"0.7385017",
"0.73829913",
"0.7346935",
"0.7321687",
"0.73094004",
"0.7192053",
"0.7113881",
"0.709236... | 0.0 | -1 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))
return uw5A / uw5A.sum(axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T",
"def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)",
"def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)",
"de... | [
"0.7800231",
"0.776332",
"0.7762483",
"0.77600384",
"0.76607925",
"0.76607925",
"0.76607925",
"0.76607925",
"0.7585753",
"0.7432371",
"0.7409777",
"0.73932534",
"0.7360278",
"0.731833",
"0.72708684",
"0.7263948",
"0.7262435",
"0.7257905",
"0.7231808",
"0.72159433",
"0.7203519... | 0.70370984 | 70 |
Derivative of the sigmoid function. | def CqbS(a1PO, LVAh):
return a1PO * oyIN.log(LVAh) * -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NZml(WKvO):\n return WKvO * (1 - WKvO)",
"def NZml(WKvO):\n return WKvO * (1.0 - WKvO)",
"def NZml(WKvO):\n return m1Hg(WKvO) * (1 - m1Hg(WKvO))",
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def NZml(WKvO):\n KCHu = m1Hg(WKvO)\n ox... | [
"0.84754366",
"0.8450928",
"0.8396931",
"0.83485264",
"0.83485264",
"0.8298343",
"0.80539966",
"0.7753385",
"0.77070266",
"0.7498153",
"0.7464916",
"0.7454039",
"0.7401582",
"0.7385017",
"0.73829913",
"0.7346935",
"0.7321687",
"0.73094004",
"0.7192053",
"0.7113881",
"0.709236... | 0.0 | -1 |
Yield successive nsized chunks from l. | def eHxA(vC9B, exwG):
for YRbF in Ni9Y(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.8038751",
"0.7924752",
"0.7923082",
"0.78850657",
"0.78771824",
"0.7815519",
"0.77652335",
"0.775546",
"0.77440816",
"0.77313656",
"0.77284646",
"0.77244157",
"0.770246",
"0.76888484",
"0.76888484",
"0.766384",
"0.7655605",
"0.7655605",
"0.76455575",
"0.76455575",
"0.76455... | 0.7656689 | 16 |
Handle not found error. | def m7kB(QePW, AJ5d):
return _1tc(QePW, 'misc/404.html', status=404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3cf(P1dF):\n pass",
"def EEM3(YKHO):\n RKD7.err('HTTP Error 404')",
"def Ouod(PNq_):\n return (404, [], zGZ6('Not Found', PNq_['PATH_INFO']))",
"def o3cf():\n return c1Bu(404)",
"def BQf5(P1dF):\n return TvZl('error.404.html')",
"def kfnF(P1dF):\n return ('No page here, dood. 404!'... | [
"0.8375228",
"0.77903163",
"0.7699582",
"0.7643736",
"0.75725836",
"0.75503904",
"0.75191194",
"0.7458749",
"0.7291103",
"0.7281352",
"0.7279621",
"0.7276413",
"0.7272537",
"0.72636575",
"0.72505176",
"0.72053206",
"0.7197839",
"0.71945566",
"0.71881104",
"0.71881104",
"0.718... | 0.6681971 | 83 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
jQ3Z['month'] = rLdf.to_datetime(jQ3Z['Start Time']).dt.month
gCf1 = jQ3Z['month'].mode()[0]
print('The most common month: ', gCf1)
jQ3Z['hour'] = rLdf.to_datetime(jQ3Z['Start Time']).dt.hour
nAH... | {
"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.748398 | 34 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
nH3O = jQ3Z['Start Station'].mode()[0]
print('The most commonly used start station: ', nH3O)
QwG8 = jQ3Z['End Station'].mode()[0]
print('The most commonly used end station: ', QwG8)
JBpt = jQ3Z.... | {
"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.68482536 | 92 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
Yejh = jQ3Z['Trip Duration'].sum()
print('Total travel time: ', Yejh)
RfpC = jQ3Z['Trip Duration'].mean()
print('Average travel time', RfpC)
print('\nThis took %s seconds.' % (ITS7.time() - SWox))
print('-' * 40... | {
"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.8145283",
"0.80273277",
"0.800625",
"0.79516613",
"0.79394716",
"0.7933188",
"0.79289365",
"0.7917429",
"0.79167455",
"0.79100615",
"0.79077137",
"0.7902854",
"0.7893696",
"0.7891645",
"0.7888904",
"0.7887135",
"0.78862405",
"0.7884963",
"0.78764445",
"0.7870734",
"0.78687... | 0.77970666 | 49 |
Plot a bar graph showing the stationary distribution | def hZcZ(BH3N, HjKt, nsGY):
exwG = len(HjKt)
WKvO = [YRbF for YRbF in range(exwG)]
LZpg = QrM1.figure()
QrM1.title(BH3N)
aNZO = LZpg.add_subplot(111)
aNZO.set_ylabel('stationary distribution')
QrM1.xticks(WKvO, HjKt)
for YRbF in range(exwG):
QrM1.bar(WKvO[YRbF], nsGY[YRbF])
a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kyGq(e7Is, aYBs):\n d6pt = oyIN.arange(len(e7Is))\n QrM1.title('Frekuensi Kemunculan Kata')\n QrM1.barh(d6pt, aYBs)\n QrM1.xlabel('Frekuensi')\n QrM1.yticks(d6pt, e7Is, fontsize=6)\n QrM1.show()",
"def kj9G(YKHO):\n WKvO = oyIN.arange(5)\n QrM1.bar(WKvO - 0.35 / 2, YKHO.data, 0.35, la... | [
"0.6849079",
"0.6740979",
"0.6694774",
"0.6570178",
"0.6556347",
"0.64954996",
"0.6417373",
"0.641051",
"0.6393068",
"0.6371199",
"0.630935",
"0.6294484",
"0.62397254",
"0.62231493",
"0.618022",
"0.61578",
"0.61442417",
"0.6070031",
"0.60445136",
"0.5997942",
"0.5992789",
"... | 0.6950608 | 0 |
Verify that Project object is successfully created for every example PEP | def B61e(YKHO, aTOg):
g75m = gbPf.mkdtemp()
FYKK = Hy7s.path.join(g75m, 'serialized_sample.yaml')
XP5J = oPx1(cfg=aTOg)
mvm2 = XP5J.samples[0]
mvm2.set = set(['set'])
mvm2.dict = dict({'dict': 'dict'})
mvm2.list = list(['list'])
mvm2.to_yaml(FYKK)
with open(FYKK, 'r') as eHNT:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dokK(YKHO):\n pass",
"def dokK(YKHO):\n pass",
"def dokK(YKHO):\n pass",
"def sAj0(YKHO):\n pass",
"def afx2(YKHO):\n pass",
"def I8Ai(YKHO):\n leAC = 'Project title'\n Wxnj = 'SCW-12345'\n bNKA = YKHO.create_project(title=leAC, code=Wxnj, institution=YKHO.institution, tech_le... | [
"0.81139183",
"0.81139183",
"0.81139183",
"0.7593771",
"0.7542107",
"0.7512528",
"0.71821094",
"0.70566976",
"0.70373243",
"0.7002261",
"0.7002261",
"0.69527936",
"0.6909405",
"0.6902564",
"0.6881158",
"0.6878708",
"0.6862279",
"0.6858888",
"0.68428713",
"0.68428713",
"0.6818... | 0.0 | -1 |
Return a blob of all zeros of the given shape with the correct float or int data type. | def VNqG(ROpF, LY4g=False):
return oyIN.zeros(ROpF, dtype=oyIN.int32 if LY4g else oyIN.float32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VNqG(ROpF, yDqo=None):\n return vBWh(ROpF, 0, yDqo)",
"def VNqG(ROpF, yDqo=None):\n if not isinstance(ROpF, (list, tuple, DKnh)):\n ROpF = [ROpF]\n if yDqo is None:\n yDqo = GPtr.floatX\n return a2Be(XTiz.array(0, dtype=yDqo), *ROpF)",
"def VNqG(ROpF, yDqo=None):\n raise NotImp... | [
"0.72282934",
"0.68636596",
"0.6807702",
"0.6704859",
"0.6667875",
"0.66378874",
"0.63715976",
"0.63620853",
"0.6317387",
"0.6314163",
"0.6308092",
"0.62969506",
"0.62817484",
"0.62364775",
"0.6224989",
"0.61669636",
"0.61573875",
"0.61561126",
"0.61561126",
"0.6142382",
"0.6... | 0.7122343 | 2 |
Return a blob of all ones of the given shape with the correct float or int data type. | def pSfY(ROpF, LY4g=False):
return oyIN.ones(ROpF, dtype=oyIN.int32 if LY4g else oyIN.float32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pSfY(ROpF, yDqo=None):\n return vBWh(ROpF, 1, yDqo)",
"def pSfY(ROpF, yDqo=None):\n raise NotImplementedError",
"def pSfY(ROpF, yDqo=None):\n if not isinstance(ROpF, (list, tuple, DKnh)):\n ROpF = [ROpF]\n if yDqo is None:\n yDqo = GPtr.floatX\n return a2Be(XTiz.array(1, dtype=... | [
"0.7285916",
"0.72152764",
"0.7031946",
"0.6864718",
"0.6554843",
"0.6412359",
"0.63802326",
"0.63202214",
"0.6320077",
"0.62536645",
"0.6206465",
"0.62026036",
"0.61742896",
"0.6135492",
"0.6126547",
"0.60673076",
"0.60272217",
"0.5983625",
"0.5934744",
"0.58622354",
"0.5798... | 0.7137641 | 3 |
Copy a numpy ndarray given as blob_in into the Caffe2 CPUTensor blob given as blob_out. Supports float32 and int32 blob data types. This function is intended for copying numpy data into a Caffe2 blob in PythonOps. | def v7h9(YBVH, jYdF):
kEcJ = False
try:
bGrB = vxw0.data.dtype
except Exception:
kEcJ = YBVH.dtype == oyIN.int32
if kEcJ:
jYdF.init(list(YBVH.shape), cvxQ.TensorProto.INT32)
else:
jYdF.reshape(YBVH.shape)
jYdF.data[...] = YBVH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HJI4(YKHO, vxw0):\n import io\n import array, numpy\n yvT9 = io.BytesIO(vxw0)\n yvT9.seek(0)\n return numpy.load(yvT9)",
"def HJI4(vxw0):\n yvT9 = xDSY.BytesIO(vxw0)\n yvT9.seek(0)\n return oyIN.load(yvT9)",
"def CqN3(gyIm, CiHI):\n assert CiHI.size == gyIm.size\n assert CiHI.... | [
"0.53912574",
"0.536932",
"0.48840538",
"0.48426747",
"0.4785386",
"0.47464415",
"0.4723978",
"0.47081098",
"0.4664089",
"0.46630275",
"0.46351993",
"0.45872542",
"0.4559445",
"0.45364606",
"0.45209974",
"0.45194095",
"0.45023206",
"0.44658765",
"0.4454143",
"0.44527698",
"0.... | 0.78645194 | 1 |
Return object's repr when not JSON serializable. | def WmM4(YKHO, z1Rg):
try:
return repr(z1Rg)
except Exception:
return super(p85J, YKHO).default(z1Rg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAm3(Iup5):\n return repr(Iup5)",
"def YxCo(YEnM):\n return repr(str(YEnM))",
"def wHJl(YKHO):\n return repr(YKHO.__dict__['_obj'])",
"def wHJl(YKHO):\n Aofo = qQXR.dumps(YKHO.__dict__, ensure_ascii=False)\n bo34.debug('%s: %s', YKHO.__class__.__name__, Aofo)\n return Aofo",
"def wHJl... | [
"0.80349576",
"0.7406908",
"0.73244435",
"0.7263724",
"0.7263724",
"0.7115097",
"0.70030326",
"0.6989556",
"0.69858974",
"0.6908359",
"0.68933475",
"0.68650883",
"0.6811189",
"0.6801968",
"0.6788987",
"0.6783819",
"0.6764391",
"0.67630416",
"0.67630416",
"0.67630416",
"0.6741... | 0.694877 | 9 |
Override it to convert fields of `json_record` to needed types. Default implementation converts `datetime` to string in ISO8601 format. | def iFZY(YKHO, XGHz):
for hGI9 in XGHz:
hkS8 = XGHz[hGI9]
if isinstance(hkS8, qcWV):
XGHz[hGI9] = hkS8.isoformat()
return XGHz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hZ7E(YEnM):\n if isinstance(YEnM, qcWV.datetime):\n return YEnM.__str__()\n return YEnM",
"def MKKr(WKvO):\n if isinstance(WKvO, qcWV.datetime):\n return WKvO.isoformat()\n raise TypeError('Unknown type')",
"def kWb0(YKHO, YEnM):\n if isinstance(YEnM, (qcWV.datetime, qcWV.date)... | [
"0.7333845",
"0.71693796",
"0.6951043",
"0.69337344",
"0.6900057",
"0.68766034",
"0.6843432",
"0.6779006",
"0.67584693",
"0.6723259",
"0.66961086",
"0.66923267",
"0.66548216",
"0.6640674",
"0.6540086",
"0.65330344",
"0.6523918",
"0.6512258",
"0.651127",
"0.6500101",
"0.648042... | 0.7563179 | 0 |
Finds the next available js device name. | def EFcg():
for YRbF in range(100):
M4N3 = '/dev/input/js{0}'.format(YRbF)
if not Hy7s.path.exists(M4N3):
return M4N3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def egnq(YKHO):\n if YKHO._num_gpus == 0:\n return ''\n M4N3 = '/gpu:%d' % YKHO._cur_gpu\n if YKHO._num_gpus > 1:\n YKHO._cur_gpu = (YKHO._cur_gpu + 1) % (YKHO._num_gpus - 1)\n return M4N3",
"def HofT(YKHO):\n YKHO.iio_device_dir()\n YKHO.console.runcmd(f'cat name', expected='\\r\... | [
"0.67444885",
"0.61093616",
"0.6106118",
"0.6046665",
"0.6046665",
"0.6029043",
"0.59409964",
"0.59409964",
"0.58589995",
"0.5786157",
"0.5755604",
"0.5746992",
"0.5738526",
"0.5604021",
"0.5579018",
"0.55573934",
"0.554831",
"0.55335045",
"0.5528146",
"0.5525199",
"0.551216"... | 0.7388181 | 0 |
Adds a depthwise convolution block. A depthwise convolution block consists of a depthwise conv, batch normalization, relu6, pointwise convolution, batch normalization and relu6 activation. | def rnNj(g4y1, hoHl, Cwt5, ey7p=1, FEri=(1, 1), yetk=1, fiu3=1):
UJgg = 1 if nMvt.image_data_format() == 'channels_first' else -1
hoHl = int(hoHl * Cwt5)
WKvO = P3IJ((3, 3), padding='same', depth_multiplier=ey7p, strides=FEri, use_bias=False, name='conv_dw_%d' % yetk, dilation_rate=fiu3)(g4y1)
WKvO = GV... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rnNj(g4y1, hoHl, Cwt5, ey7p=1, FEri=(1, 1), yetk=1):\n UJgg = 1 if nMvt.image_data_format() == 'channels_first' else -1\n hoHl = int(hoHl * Cwt5)\n if FEri == (1, 1):\n WKvO = g4y1\n else:\n WKvO = PlVk.ZeroPadding2D(((0, 1), (0, 1)), name='conv_pad_%d' % yetk)(g4y1)\n WKvO = PlVk.... | [
"0.69558424",
"0.6695712",
"0.6448115",
"0.6446077",
"0.6383144",
"0.6340293",
"0.62563384",
"0.6205448",
"0.6204916",
"0.61858875",
"0.6173951",
"0.61019963",
"0.60959464",
"0.6016381",
"0.6016267",
"0.60086316",
"0.59901017",
"0.59851676",
"0.59697664",
"0.59540266",
"0.593... | 0.6983883 | 0 |
The kind of field it is e.g boolean_field. Useful for better semantic markup of field display based on type | def vF49(YKHO):
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO):\n return YKHO._field.type",
"def wvEP(YKHO):\n if YKHO.is_bool():\n return 'boolean'\n elif YKHO.is_int():\n return 'integer'\n elif YKHO.is_model():\n return 'related field'\n else:\n return 'string'",
"def liQP(YKHO):\n dOJK = qn2Z(YKHO.connection... | [
"0.7274476",
"0.7087004",
"0.6621983",
"0.6603038",
"0.6449844",
"0.6385825",
"0.6223658",
"0.61415523",
"0.61385006",
"0.6135059",
"0.6109853",
"0.61059016",
"0.6098142",
"0.60919863",
"0.60746455",
"0.6066741",
"0.60645247",
"0.6043078",
"0.6000959",
"0.5991569",
"0.5991569... | 0.7158313 | 1 |
Constructor for the GenerateConnectEmailResponseMultipleBorrowers class | def FIMM(YKHO, wPdp=None, pKsU=None, N_X7={}):
YKHO.links = wPdp
YKHO.email_config = pKsU
YKHO.additional_properties = N_X7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, bVmF, B2Dn, qoqK, Zr1u=None):\n YKHO.limit = int(qoqK)\n YKHO.coinid = bVmF\n try:\n YKHO.page = int(B2Dn)\n except:\n YKHO.page = None\n YKHO.last_blocks = {}\n if not Zr1u:\n x0hE = onHc(gCuF.bridges[bVmF])\n try:\n iIih = x0hE.request(metho... | [
"0.52811897",
"0.5253467",
"0.51010275",
"0.50697225",
"0.4960693",
"0.49059728",
"0.48745036",
"0.4856478",
"0.48550487",
"0.48540875",
"0.48486677",
"0.4847886",
"0.48195577",
"0.4814461",
"0.48090544",
"0.4807091",
"0.48022527",
"0.48022527",
"0.47892064",
"0.47884735",
"0... | 0.0 | -1 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
wPdp = cmPJ.get('links')
pKsU = cmPJ.get('emailConfig')
for H5ew in Emd4._names.values():
if H5ew in cmPJ:
del cmPJ[H5ew]
return Emd4(wPdp, pKsU, cmPJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)",
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def eLpg(Emd4, cmPJ):\n return Em... | [
"0.83181584",
"0.8168118",
"0.8168118",
"0.8118749",
"0.8089047",
"0.79787344",
"0.7949278",
"0.79231393",
"0.7898951",
"0.78923255",
"0.788838",
"0.7882321",
"0.7876749",
"0.78585315",
"0.7836853",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",... | 0.7882212 | 12 |
Compare two strings in constant time. | def jZTx(qoGC, VyPo):
if qoGC is None or VyPo is None:
return False
return qoGC == VyPo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qk7K(YKHO, vAz7, YPR6):\n return 0",
"def BxtT(YKHO, UXsi, c163):\n if UXsi.lower().strip().replace('_', ' ') == c163.lower().strip().replace('_', ' '):\n return 1\n return 0",
"def rxTc(qoGC, VyPo):\n return qoGC == VyPo",
"def xING(wxdF, O48g):\n if wxdF == O48g:\n return 1... | [
"0.76496494",
"0.7493996",
"0.7366436",
"0.7336212",
"0.7275708",
"0.7234278",
"0.7219642",
"0.71888804",
"0.7127351",
"0.71208024",
"0.7094906",
"0.7069277",
"0.70536083",
"0.6823035",
"0.6810568",
"0.67826366",
"0.6769625",
"0.6757837",
"0.67489207",
"0.6746674",
"0.6727927... | 0.7155424 | 8 |
Return True if the priority queue is empty. | def FBfn(YKHO):
return len(YKHO) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.priority_queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.the_queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return len(YKHO... | [
"0.9179846",
"0.8469489",
"0.8437107",
"0.8437107",
"0.8436066",
"0.838734",
"0.836409",
"0.8344005",
"0.83305556",
"0.83305556",
"0.83042455",
"0.83034027",
"0.82889843",
"0.82803255",
"0.8267934",
"0.8259419",
"0.82293385",
"0.8219118",
"0.82072806",
"0.8198649",
"0.8182699... | 0.0 | -1 |
Return the number of items in the priority queue. | def szAg(YKHO):
raise NotImplementedError('must be implemented by subclass') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n return len(YKHO._queue_items)",
"def yAGA(YKHO):\n with YKHO.mutex:\n return len(YKHO.queues)",
"def OGwl(YKHO):\n return YKHO.num_items",
"def zNig(YKHO):\n if YKHO.is_empty():\n return 0\n else:\n return YKHO.num_items",
"def zNig(YKHO):\n return l... | [
"0.7310777",
"0.7216109",
"0.7139692",
"0.71304846",
"0.7052705",
"0.7052705",
"0.7052705",
"0.7052705",
"0.70523244",
"0.70523244",
"0.7030757",
"0.7030757",
"0.7015526",
"0.69846207",
"0.698117",
"0.69712186",
"0.6953884",
"0.69398487",
"0.6903685",
"0.6813927",
"0.678333",... | 0.0 | -1 |
Create a new empty Priority Queue. | def FIMM(YKHO):
YKHO._data = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hWEK():\n return g5js(0, None, None)",
"def Rdbh():\n from src.priorityq import PriorityQueue\n Rdbh = PriorityQueue()\n return Rdbh",
"def WPv_():\n from src.priorityq import PriorityQueue\n Rdbh = PriorityQueue()\n Rdbh.insert(15, 5)\n Rdbh.insert(12, 3)\n Rdbh.insert(11, 1)\n ... | [
"0.7893713",
"0.74452215",
"0.71636957",
"0.7081834",
"0.7081834",
"0.6581613",
"0.6313973",
"0.63086706",
"0.6265996",
"0.6179255",
"0.61486804",
"0.6126521",
"0.60874456",
"0.6058897",
"0.60504574",
"0.6046229",
"0.60360074",
"0.6026002",
"0.5990476",
"0.5980345",
"0.597111... | 0.0 | -1 |
Return the number of items in the priority queue. | def szAg(YKHO):
return len(YKHO._data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n return len(YKHO._queue_items)",
"def yAGA(YKHO):\n with YKHO.mutex:\n return len(YKHO.queues)",
"def OGwl(YKHO):\n return YKHO.num_items",
"def zNig(YKHO):\n if YKHO.is_empty():\n return 0\n else:\n return YKHO.num_items",
"def zNig(YKHO):\n return l... | [
"0.73094535",
"0.7214424",
"0.71406925",
"0.7130484",
"0.7051237",
"0.7051237",
"0.7051237",
"0.7051237",
"0.7050724",
"0.7050724",
"0.70315284",
"0.70315284",
"0.70139974",
"0.6985575",
"0.6979711",
"0.69724464",
"0.6955107",
"0.6938039",
"0.6901929",
"0.681586",
"0.6785586"... | 0.0 | -1 |
The absolute path of the unchecked homeworks. This path is valid on the storer machine. | def My9N():
return WQbV('unchecked') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lbk2(YKHO):\n return YKHO.home",
"def KlRK(YKHO) -> GkAb:\n return YKHO.path_supervisor / bt5O",
"def c9sv():\n if TDyh():\n Pg9i = Kxjs.GetShortPathName(Hy7s.path.expanduser('~'))\n return Hy7s.path.join(Pg9i, 'AppData', 'Roaming', 'GRASS7', 'r.li')\n else:\n return Hy7s.p... | [
"0.66988224",
"0.6570122",
"0.6493384",
"0.6490956",
"0.648976",
"0.63885",
"0.63796705",
"0.63651496",
"0.62819487",
"0.62489486",
"0.62104005",
"0.61903757",
"0.6175779",
"0.6174846",
"0.61661184",
"0.6142955",
"0.611489",
"0.6084906",
"0.6060247",
"0.598081",
"0.59448147",... | 0.5931455 | 22 |
The absolute path of the checked homeworks. This path is valid on the storer machine. | def x3l2():
return WQbV('checked') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lbk2(YKHO):\n return YKHO.home",
"def KlRK(YKHO) -> GkAb:\n return YKHO.path_supervisor / bt5O",
"def aREU(YKHO):\n return pmON.join(sEAN.user_home, YKHO._user_home_path)",
"def pf8b(YKHO):\n return YKHO.__homeDirectory",
"def x9DY(YKHO):\n return gTEQ('PrlVmCfg_GetHomePath', YKHO.handle... | [
"0.6920389",
"0.6662194",
"0.66560477",
"0.662489",
"0.65946144",
"0.6589683",
"0.6584511",
"0.6566853",
"0.65193725",
"0.64687705",
"0.6452608",
"0.64161146",
"0.6363495",
"0.6302905",
"0.62959796",
"0.6282288",
"0.6279519",
"0.62782437",
"0.62535274",
"0.6233634",
"0.622671... | 0.5723275 | 62 |
The absolute path of the test archives. This path is valid on the storer machine. | def YGEc():
return WQbV('tests') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Osdz(YKHO, DpZH):\n P8oC = YKHO.version_path(DpZH)\n return BKva.normpath(BKva.join(P8oC, Hy7s.pardir, Hy7s.pardir, 'share', 'aster', 'tests'))",
"def q9qR(YKHO):\n return Hy7s.path.join(YKHO.destination_directory, YKHO.__archive_name__)",
"def l_jd():\n return Hy7s.path.abspath(Hy7s.path.dirna... | [
"0.68083435",
"0.6537597",
"0.65307593",
"0.6530499",
"0.63732994",
"0.63524437",
"0.6350328",
"0.63353866",
"0.630417",
"0.62661296",
"0.6255848",
"0.6248677",
"0.6221482",
"0.60972846",
"0.60685045",
"0.6056538",
"0.60508853",
"0.6048434",
"0.6017318",
"0.5979651",
"0.59587... | 0.63899916 | 4 |
The absolute path of the task queue directory. This path is valid on the tester machine. | def GOvG():
return WQbV('queue') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SbkS(YKHO):\n return Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'tasks')",
"def W30i(YKHO):\n return Hy7s.path.join(wk5E.config['SNER_VAR'], 'scheduler', 'queue-%s' % YKHO.id) if YKHO.id else None",
"def NClM(YKHO, bNKA, Rci7, gGq6):\n return 'projects/{project}/locations/{location... | [
"0.72652483",
"0.72442883",
"0.68227845",
"0.6804063",
"0.6589113",
"0.64009976",
"0.63958615",
"0.6394727",
"0.63029563",
"0.6257836",
"0.62347347",
"0.61374766",
"0.6128083",
"0.6108508",
"0.60933024",
"0.6091193",
"0.6085624",
"0.6076332",
"0.6058051",
"0.6055608",
"0.6054... | 0.7642742 | 0 |
The absolute path of the directory where submission archives are unzipped. This path is valid on the tester machine. | def ygjE():
return WQbV('tmpunzip') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q9qR(YKHO):\n return Hy7s.path.join(YKHO.destination_directory, YKHO.__archive_name__)",
"def ZTYM(YKHO):\n if YKHO._mode == 'zip':\n return YKHO._rootExportPath + '.zip'\n return ''",
"def CTEG(YKHO):\n ND_u = YKHO.xbrl_download_dir + '\\\\Informes.zip'\n return ND_u",
"def W6DJ(YK... | [
"0.71736896",
"0.68773615",
"0.66714275",
"0.6599147",
"0.6507734",
"0.63751286",
"0.6359807",
"0.6333544",
"0.6248654",
"0.618832",
"0.6177074",
"0.61734146",
"0.61342746",
"0.60808975",
"0.60400134",
"0.6037259",
"0.60357",
"0.6011947",
"0.60108423",
"0.600013",
"0.5993723"... | 0.7390163 | 0 |
The absolute path of the directory where backups of tasks are kept. This path is valid on the storer machine. | def TwQl():
return WQbV('back') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J8K2(Emd4):\n from anima import defaults\n return Hy7s.path.normpath(Hy7s.path.expanduser('%s/projects_backup' % defaults.local_cache_folder)).replace('\\\\', '/')",
"def B_XR(Emd4):\n return Hy7s.path.join(Emd4.get_installation_path(), 'html', 'backups')",
"def pKv0(YKHO) -> GkAb:\n return YKH... | [
"0.8276446",
"0.76228535",
"0.71501034",
"0.6910099",
"0.68249506",
"0.67407656",
"0.6716975",
"0.67084104",
"0.66766644",
"0.663463",
"0.6588792",
"0.65707934",
"0.6548158",
"0.6530528",
"0.64923614",
"0.6485893",
"0.6476997",
"0.6456925",
"0.6443835",
"0.6443298",
"0.644173... | 0.71951413 | 2 |
The absolute path of the database file | def QKV0():
return WQbV('vmchecker.db') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uri0():\n return SEGf.db_abs_path",
"def QRCt(nUeQ):\n Sd0C = pmON.join('databases', '{0}'.format(nUeQ))\n tFj2 = pmON.join(eVGq, Sd0C)\n return tFj2",
"def tFj2(YKHO, KcEq: str) -> str:\n Hvmc = Hy7s.path.abspath(Hy7s.getcwd())\n xtX7 = 'data'\n pmON = Hy7s.path.join(Hvmc, xtX7)\n ... | [
"0.83485335",
"0.7953599",
"0.78380835",
"0.77816886",
"0.7719128",
"0.7672414",
"0.7634273",
"0.7333221",
"0.7247714",
"0.7247216",
"0.71186674",
"0.7116691",
"0.70566916",
"0.70564115",
"0.6876917",
"0.6801224",
"0.66611964",
"0.66507506",
"0.66365117",
"0.66365117",
"0.662... | 0.8118952 | 1 |
Returns absolute path for the bin/ directory | def XBdQ():
return WQbV('bin') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LLgG():\n return Hy7s.path.abspath(Hy7s.path.join(Rip8(), 'bin/'))",
"def Yeg3(YKHO):\n return YKHO._query_config()['binpath']",
"def c4Um(YKHO) -> GkAb:\n return YKHO._root_path / 'stefan-on-software-api-client' / 'bin'",
"def _kJw(YKHO):\n return Hy7s.path.join(YKHO.build_dir, YKHO.build, '... | [
"0.8858912",
"0.7781162",
"0.7780243",
"0.7450376",
"0.7437664",
"0.7295461",
"0.72801596",
"0.7243885",
"0.7237812",
"0.7211385",
"0.71752536",
"0.71548456",
"0.71193075",
"0.7113011",
"0.7103491",
"0.7088226",
"0.70845693",
"0.7011689",
"0.6985813",
"0.6976564",
"0.6943617"... | 0.8493657 | 1 |
Returns path to last user's assignment submission | def Mj6J(TMbP, CBIr):
return Hy7s.path.join(F3jJ, TMbP, CBIr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zoRc(YKHO):\n return Hy7s.path.join(YKHO.course.get_course_path(), str(YKHO.id))",
"def HrYb(YKHO):\n yhVT = BKva.join(YKHO.root, 'submissions')\n _c1T = '-'.join([f'{getattr(qcWV.now(), WKvO)}' for WKvO in ['year', 'month', 'day']])\n ITS7 = '-'.join([f'{getattr(qcWV.now(), WKvO)}' for WKvO in [... | [
"0.6637351",
"0.6330934",
"0.6078422",
"0.5949925",
"0.59488875",
"0.5706049",
"0.56629825",
"0.56528974",
"0.55487585",
"0.55384135",
"0.5484379",
"0.5477362",
"0.5462515",
"0.54575926",
"0.5443694",
"0.5442454",
"0.5440377",
"0.5436514",
"0.542231",
"0.5413842",
"0.5405689"... | 0.5404461 | 21 |
distance takes two points as tuples, and returns the distance between them | def Ayfi(EBgd, HpuQ):
return epAf.sqrt(epAf.pow(HpuQ[0] - EBgd[0], 2) + epAf.pow(HpuQ[1] - EBgd[1], 2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WWYU(X3qZ: tuple, ZYCo: tuple) -> float:\n return ((ZYCo[1] - X3qZ[1]) ** 2 + (ZYCo[0] - X3qZ[0]) ** 2) ** 0.5",
"def Ayfi(n2Q1, SpII):\n if len(n2Q1) != len(SpII):\n raise ValueError('distance: tuples must be the same length')\n Mkmy = [0] * len(n2Q1)\n for YRbF in range(0, len(n2Q1)):\n ... | [
"0.7915921",
"0.7758231",
"0.7734983",
"0.77311844",
"0.7720422",
"0.7689004",
"0.76859725",
"0.76803917",
"0.7588798",
"0.75871706",
"0.7529972",
"0.7529972",
"0.75218534",
"0.75107044",
"0.7499297",
"0.74834406",
"0.74371284",
"0.7429197",
"0.7424233",
"0.73798585",
"0.7374... | 0.740267 | 19 |
Converts a list of edges to a boolean vector which is True if the corresponding edge is contained in the edge list. | def HlkA(YKHO, mC4V: Iterable[Tuple[V, V]]) -> oyIN.ndarray:
WrwW = frozenset(mC4V)
return oyIN.array([D70y in WrwW for D70y in YKHO.edges]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sjXf(YKHO, D70y):\n return D70y in YKHO.edges",
"def FYXB(YKHO, D70y):\n return D70y in YKHO._edges",
"def UJ3L(YKHO, tTpl):\n return any((tTpl.nvt in [YKHO.vertices[YRbF - 2], YKHO.vertices[YRbF]] and YKHO.vertices[YRbF - 1] == tTpl.pvt for YRbF in range(len(YKHO.vertices))))",
"def deEi(Ziit, ... | [
"0.64609194",
"0.63961524",
"0.6382485",
"0.62299246",
"0.62087166",
"0.61070836",
"0.5957832",
"0.59238774",
"0.5913829",
"0.57748556",
"0.57677335",
"0.5724181",
"0.57089937",
"0.56130576",
"0.5527084",
"0.55059975",
"0.54805017",
"0.54664195",
"0.54341364",
"0.54321164",
"... | 0.67306185 | 0 |
The billing account to create the exclusion for. | def GLga(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'billing_account') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GLga(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'billing_account')",
"def GLga(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'billing_account')",
"def GLga(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'billing_account')",
"def GLga(YKHO) -> h8nf[qe4Y.Input[str]]:\n return q... | [
"0.7224126",
"0.7224126",
"0.7224126",
"0.7119428",
"0.7119428",
"0.6581293",
"0.64127433",
"0.6322773",
"0.6322773",
"0.62994885",
"0.62994885",
"0.6282713",
"0.61905766",
"0.61555666",
"0.6056948",
"0.5983784",
"0.59658813",
"0.59561336",
"0.59462136",
"0.59235317",
"0.5888... | 0.7244844 | 0 |
The name of the logging exclusion. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E70h(YKHO):\n return YKHO.__class__.__name__",
"def b9xm(YKHO) -> h8nf[str]:\n return YKHO._log_name",
"def yUkU(YKHO) -> bdIy['outputs.LogExclusionResponse']:\n return qe4Y.get(YKHO, 'exclusions')",
"def mWFP(Emd4):\n return 'access_denied_message_filter'",
"def DWvF(YKHO) -> str:\n ...... | [
"0.65373445",
"0.6201244",
"0.61872715",
"0.61523986",
"0.5980034",
"0.59338164",
"0.59338164",
"0.5917488",
"0.5813847",
"0.5804771",
"0.57529867",
"0.57340735",
"0.566134",
"0.5619294",
"0.55689615",
"0.5562249",
"0.55475444",
"0.5496449",
"0.5475577",
"0.5467786",
"0.54627... | 0.0 | -1 |
The billing account to create the exclusion for. | def GLga(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'billing_account') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GLga(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'billing_account')",
"def GLga(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'billing_account')",
"def GLga(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'billing_account')",
"def GLga(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get... | [
"0.7249342",
"0.7249342",
"0.7228089",
"0.7228089",
"0.7228089",
"0.6584192",
"0.6413102",
"0.63229406",
"0.63229406",
"0.63000166",
"0.63000166",
"0.6280482",
"0.6188287",
"0.6156983",
"0.6058568",
"0.5982106",
"0.596628",
"0.5958414",
"0.5947225",
"0.5924273",
"0.589141",
... | 0.71228987 | 5 |
The name of the logging exclusion. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E70h(YKHO):\n return YKHO.__class__.__name__",
"def b9xm(YKHO) -> h8nf[str]:\n return YKHO._log_name",
"def yUkU(YKHO) -> bdIy['outputs.LogExclusionResponse']:\n return qe4Y.get(YKHO, 'exclusions')",
"def mWFP(Emd4):\n return 'access_denied_message_filter'",
"def DWvF(YKHO) -> str:\n ...... | [
"0.6533208",
"0.61972487",
"0.61911637",
"0.6152301",
"0.5975815",
"0.5929995",
"0.5929995",
"0.5913879",
"0.58109283",
"0.5803052",
"0.57499206",
"0.57296",
"0.56571686",
"0.5622947",
"0.5565144",
"0.55605483",
"0.5543431",
"0.55013585",
"0.5475552",
"0.5464225",
"0.54607254... | 0.0 | -1 |
Get an existing BillingAccountExclusion resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, GLga: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, lbi2: Optional[pulumi.Input[bool]]=None, filter: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None) -> 'BillingAccountExclusion':... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: BillingAccountExclusionArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def AmjW(YKHO, Z31E, **B2fa):\n if 'mask' not in B2fa:\n B2fa['mask'] = 'status'\n return YKHO.account.getObject(id=Z31E, **B2fa)",
"def o3J0(Emd4, Z31E: str):\n return K8tw.qu... | [
"0.5755047",
"0.5322901",
"0.5040129",
"0.4937458",
"0.48856664",
"0.47680885",
"0.47045177",
"0.4689548",
"0.45776927",
"0.44811374",
"0.44753614",
"0.4470048",
"0.4426179",
"0.44260782",
"0.44087026",
"0.44066954",
"0.43906662",
"0.43871456",
"0.43617857",
"0.43447426",
"0.... | 0.79832166 | 0 |
The billing account to create the exclusion for. | def GLga(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'billing_account') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GLga(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'billing_account')",
"def GLga(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'billing_account')",
"def GLga(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'billing_account')",
"def GLga(YKHO) -> h8nf[qe4Y.Input[str]]:\n retur... | [
"0.7244844",
"0.7244844",
"0.7119428",
"0.7119428",
"0.6581293",
"0.64127433",
"0.6322773",
"0.6322773",
"0.62994885",
"0.62994885",
"0.6282713",
"0.61905766",
"0.61555666",
"0.6056948",
"0.5983784",
"0.59658813",
"0.59561336",
"0.59462136",
"0.59235317",
"0.5888037",
"0.5887... | 0.7224126 | 3 |
The name of the logging exclusion. | def mWFP(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E70h(YKHO):\n return YKHO.__class__.__name__",
"def b9xm(YKHO) -> h8nf[str]:\n return YKHO._log_name",
"def yUkU(YKHO) -> bdIy['outputs.LogExclusionResponse']:\n return qe4Y.get(YKHO, 'exclusions')",
"def mWFP(Emd4):\n return 'access_denied_message_filter'",
"def DWvF(YKHO) -> str:\n ...... | [
"0.65373445",
"0.6201244",
"0.61872715",
"0.61523986",
"0.5980034",
"0.59338164",
"0.59338164",
"0.5917488",
"0.5813847",
"0.5804771",
"0.57529867",
"0.57340735",
"0.566134",
"0.5619294",
"0.55689615",
"0.5562249",
"0.55475444",
"0.5496449",
"0.5475577",
"0.5467786",
"0.54627... | 0.0 | -1 |
Name to use for storing application data. | def A06D(YKHO) -> str:
return YKHO._appdata_token | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kvcN(YKHO, BWXx):\n YKHO._app_name = BWXx",
"def mWFP(YKHO):\n return YKHO.config['name']",
"def WZrJ(YKHO, VpPs):\n YKHO._name = VpPs",
"def kvcN(YKHO) -> str:\n return YKHO._app_name",
"def kvcN(YKHO):\n return YKHO._app_name",
"def mWFP(YKHO) -> str:\n return YKHO.data['name']",
... | [
"0.65095806",
"0.6496195",
"0.64166266",
"0.638236",
"0.6369184",
"0.63573027",
"0.6344077",
"0.6344077",
"0.634241",
"0.6271505",
"0.62646794",
"0.6263877",
"0.6257906",
"0.62515676",
"0.62515676",
"0.62515676",
"0.62515676",
"0.6244877",
"0.6203015",
"0.61885977",
"0.615373... | 0.0 | -1 |
Calculate the great circle distance between two points on the earth (specified in decimal degrees) | def GeVo(GgQG, igSk, tk0B, TGuP):
GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP])
H91H = tk0B - GgQG
n_9K = TGuP - igSk
jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2
Z9rn = 2 * P099(PZyS(jzdc))
Mkmy = 3956
return Z9rn * Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6",
"def T97B(GgQG, ... | [
"0.81450045",
"0.7863265",
"0.76322985",
"0.76064754",
"0.75978696",
"0.75965863",
"0.75944835",
"0.75720793",
"0.75630087",
"0.7555095",
"0.7528691",
"0.7517629",
"0.7492963",
"0.7467739",
"0.7452678",
"0.7434477",
"0.73914117",
"0.7357736",
"0.73484355",
"0.73318124",
"0.73... | 0.0 | -1 |
This function takes a json file as an input and parses it. It collects info about the pet and creates and saves the pet in their corresponding database table. | def jhkd(pGK8):
for hxjC in pGK8['petfinder']['pets']['pet']:
io6K = hxjC['animal']['$t']
mWFP = hxjC['name']['$t']
DMnG = hxjC['id']['$t']
QoB4 = hxjC['description']['$t']
ZJe_ = hxjC['age']['$t']
jpbv = hxjC['breeds']['breed']
EkNH = ''
try:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, jds5=[]):\n with open('main_pets.json', 'w') as _RR0:\n qQXR.dump(jds5, _RR0)\n with open('main_pets.json', 'r') as apum:\n YKHO.pet_file = qQXR.load(apum)\n YKHO.pet_file_name = 'main_pets.json'",
"def PSj2(YKHO, dOj8):\n with open(dOj8, 'r') as apum:\n YKHO.p... | [
"0.6849575",
"0.6280231",
"0.6230346",
"0.61603683",
"0.606348",
"0.5808072",
"0.5787718",
"0.5780093",
"0.57480884",
"0.5716032",
"0.571324",
"0.56681573",
"0.56673944",
"0.5662366",
"0.56550163",
"0.5635198",
"0.55841386",
"0.558341",
"0.5567185",
"0.556637",
"0.5556236",
... | 0.727826 | 0 |
Get padding arg for 'same' type padding | def qM30(Ot1W, ivFb=1):
if isinstance(Ot1W, int) and isinstance(ivFb, int):
return _cNm(Ot1W, ivFb)
else:
if isinstance(Ot1W, int):
assert isinstance(ivFb, (list, tuple))
Ot1W = (Ot1W,) * len(ivFb)
if isinstance(ivFb, int):
assert isinstance(Ot1W, (lis... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qM30(WKvO, fRI8=0, yDqo=ZylS.float32):\n with ZylS.name_scope('padding'):\n return ZylS.cast(ZylS.equal(WKvO, fRI8), dtype=yDqo)",
"def dvgN(YKHO):\n return YKHO.paddings_shape_param('W')",
"def tHuz(YKHO):\n ...",
"def eFZt(Catu, GPtr):\n U5bT = None\n if 'padding' not in GPtr:\n ... | [
"0.67689097",
"0.65448356",
"0.64720064",
"0.641168",
"0.63869214",
"0.63238126",
"0.63081867",
"0.6299274",
"0.6272706",
"0.6272706",
"0.6253616",
"0.61998004",
"0.6186017",
"0.61827564",
"0.6176897",
"0.6165069",
"0.61080676",
"0.6077968",
"0.60378814",
"0.60189337",
"0.601... | 0.62336934 | 11 |
Verify that balloon stats update correctly. | def HzZ4(tYLn):
zk0x = tYLn
zk0x.spawn()
zk0x.basic_config()
zk0x.add_net_iface()
zk0x.api.balloon.put(amount_mib=0, deflate_on_oom=True, stats_polling_interval_s=jHUo)
zk0x.start()
vfad = zk0x.jailer_clone_pid
kAtU(zk0x.ssh, amount_mib=30)
bGrB = Tj3u(vfad)
u5AG = zk0x.api.ballo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b88T(YKHO):\n YKHO.assertTrue(TPfQ(0.0))",
"def jZ6M():\n nPrm = iXp8(x0hE, m2LX)\n YKHO.assertTrue(isinstance(nPrm, dict))",
"def eeVW(YKHO):\n pass",
"def Ifzd(YKHO):\n for W061, kLQb in zip(BRRS(YKHO.test), YKHO.result):\n YKHO.assertFloatEqualAbs(W061, kLQb, 1e-11)",
"def zs_o... | [
"0.6160228",
"0.61007583",
"0.60407215",
"0.59873116",
"0.59398526",
"0.5925484",
"0.58750194",
"0.57825035",
"0.57751906",
"0.5755458",
"0.57160926",
"0.5709652",
"0.5676239",
"0.5647563",
"0.5645893",
"0.56430566",
"0.5626532",
"0.56240726",
"0.5605441",
"0.5569337",
"0.555... | 0.6209393 | 0 |
Boolean indicating whether the system controlled by the thermostat is capable of heating. For simulation purposes this is always true. | def IsFz(YKHO) -> bool:
YKHO._logger.debug(IWQE('get', f'{YKHO}', 'can_heat'))
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def awy8(YKHO) -> bool:\n YKHO._logger.debug(IWQE('get', f'{YKHO}', 'is_heating'))\n return YKHO._ambient_temperature < YKHO._target_temperature and YKHO.can_heat and (YKHO._hvac_mode == 'heat' or YKHO._hvac_mode == 'heat-cool')",
"def cHCG(YKHO):\n return YKHO._device.mode == YKHO._device.MODE_HEAT_EME... | [
"0.7765403",
"0.7042639",
"0.70410836",
"0.692985",
"0.6884055",
"0.6779205",
"0.67493725",
"0.6671283",
"0.6635776",
"0.6604271",
"0.653154",
"0.6385226",
"0.6360093",
"0.6353062",
"0.63318706",
"0.6316022",
"0.6291913",
"0.62673074",
"0.6260079",
"0.62568456",
"0.6251746",
... | 0.7269104 | 1 |
Boolean indicating whether the system controlled by the thermostat is capable of cooling. For simulation purposes this is always true. | def v3JK(YKHO) -> bool:
YKHO._logger.debug(IWQE('get', f'{YKHO}', 'can_cool'))
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hr5q(YKHO) -> bool:\n YKHO._logger.debug(IWQE('get', f'{YKHO}', 'is_cooling'))\n return YKHO._ambient_temperature > YKHO._target_temperature and YKHO.can_cool and (YKHO._hvac_mode == 'cool' or YKHO._hvac_mode == 'heat-cool')",
"def gRiX(YKHO):\n raise NotImplementedError",
"def oh5j():\n return... | [
"0.7955684",
"0.7071816",
"0.70455354",
"0.6896844",
"0.6801211",
"0.6715336",
"0.66723305",
"0.6599151",
"0.6580837",
"0.6577723",
"0.65202886",
"0.64494234",
"0.64172846",
"0.63832116",
"0.63610584",
"0.6274685",
"0.6249829",
"0.6238794",
"0.62279296",
"0.62052214",
"0.6191... | 0.64091283 | 13 |
Getter for fan timer duration. | def R5yn(YKHO) -> int:
YKHO._logger.debug(IWQE('get', f'{YKHO}', 'fan_timer_duration'))
return YKHO._fan_timer_duration.seconds / 60 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EdTY(YKHO):\n return YKHO.duration",
"def EdTY(YKHO):\n return YKHO._duration",
"def WbTE(YKHO):\n return YKHO._get('duration')",
"def WbTE(YKHO) -> qcWV.timedelta:\n return YKHO._duration",
"def WbTE(YKHO):\n return YKHO._get('duration')",
"def tHA7(YKHO):\n return YKHO.durationMs"... | [
"0.74502724",
"0.7370194",
"0.7237263",
"0.72089785",
"0.72029513",
"0.7187921",
"0.7149618",
"0.7149618",
"0.7149618",
"0.7149618",
"0.7149618",
"0.7149618",
"0.7149618",
"0.7149618",
"0.7135839",
"0.7091431",
"0.704485",
"0.6976184",
"0.696261",
"0.6958498",
"0.6940953",
... | 0.8616632 | 0 |
Boolean indicating whether the system controlled by the thermostat has a fan. For simulation purposes this is always true. | def QxMX(YKHO) -> bool:
YKHO._logger.debug(IWQE('get', f'{YKHO}', 'has_fan'))
return YKHO._has_fan | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Debg(YKHO) -> bool:\n return YKHO._device.fan_on",
"def TKB7(YKHO):\n return YKHO._fan_mode",
"def TKB7(YKHO):\n return YKHO._fan_mode",
"def TKB7(YKHO):\n if YKHO._client.fan == YKHO._client.FAN_ON:\n return LxNs\n return OioH",
"def ZDXo(YKHO, Tuqy=None):\n if Tuqy == dS1l.ON... | [
"0.7873943",
"0.7229795",
"0.7229795",
"0.7119907",
"0.7105398",
"0.70751476",
"0.7000183",
"0.6923606",
"0.691392",
"0.6866653",
"0.6821224",
"0.6816013",
"0.6816013",
"0.6703088",
"0.66636264",
"0.66214126",
"0.6583036",
"0.6519912",
"0.6462145",
"0.64337933",
"0.6425149",
... | 0.76953566 | 1 |
Boolean indicating whether the device is set to energysaving temperature. | def blk0(YKHO) -> bool:
YKHO._logger.debug(IWQE('get', f'{YKHO}', 'has_leaf'))
return YKHO._hvac_mode == 'eco' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cHCG(YKHO):\n return YKHO._device.mode == YKHO._device.MODE_HEAT_EMERGENCY",
"def awy8(YKHO) -> bool:\n YKHO._logger.debug(IWQE('get', f'{YKHO}', 'is_heating'))\n return YKHO._ambient_temperature < YKHO._target_temperature and YKHO.can_heat and (YKHO._hvac_mode == 'heat' or YKHO._hvac_mode == 'heat-... | [
"0.6833779",
"0.66497856",
"0.65476835",
"0.65136737",
"0.65136737",
"0.64471745",
"0.64208215",
"0.6419306",
"0.6416124",
"0.6409716",
"0.6309562",
"0.6296766",
"0.6264087",
"0.62559056",
"0.61916363",
"0.61894625",
"0.616364",
"0.6147188",
"0.6147188",
"0.6147188",
"0.61390... | 0.0 | -1 |
Getter for the current HVAC mode. | def IT4j(YKHO) -> str:
YKHO._logger.debug(IWQE('get', f'{YKHO}', 'hvac_mode'))
return YKHO._hvac_mode | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IT4j(YKHO):\n if YKHO.ac.status is None:\n vzeF.debug(f'hvac_mode: status is None, returning None')\n return None\n if YKHO.ac.status.is_on:\n mdoF = YKHO.ac.status.ac_mode\n BWXx = YKHO.HVAC_MODE_MAPPING[mdoF]\n vzeF.debug(f'hvac_mode: returning {BWXx} (derived from {m... | [
"0.814168",
"0.7908314",
"0.787006",
"0.78465",
"0.7787053",
"0.774381",
"0.773493",
"0.77252966",
"0.7630908",
"0.7625113",
"0.75310606",
"0.7526288",
"0.74734706",
"0.73986197",
"0.7392751",
"0.7368481",
"0.73421395",
"0.7258092",
"0.719067",
"0.719067",
"0.7158838",
"0.7... | 0.8095314 | 1 |
Getter method for usersettable device label. | def UXqs(YKHO) -> str:
YKHO._logger.debug(IWQE('get', f'{YKHO}', 'label'))
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nscJ(YKHO):\n if YKHO._label is not None:\n return YKHO._label\n return wbi7(YKHO.name)",
"def DeTJ(Emd4, YEnM, xDcj):\n if hasattr(YEnM, 'config'):\n for ZfUD in YEnM.config.hardware.device:\n if xDcj == ZfUD.key:\n UXqs = ZfUD.deviceInfo.label\n return UX... | [
"0.7339035",
"0.7323636",
"0.7203392",
"0.71052605",
"0.71052605",
"0.71052605",
"0.71052605",
"0.70299846",
"0.69537103",
"0.69447845",
"0.6929857",
"0.6910628",
"0.68978006",
"0.68933654",
"0.6882453",
"0.6882453",
"0.6877425",
"0.6871672",
"0.684545",
"0.684545",
"0.680522... | 0.6364706 | 89 |
Getter for locked max temperature, in Celsius. | def d62B(YKHO) -> float:
YKHO._logger.debug(IWQE('get', f'{YKHO}', 'locked_temp_max_c'))
return ijWW(YKHO._locked_temp_max) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mvd7(YKHO) -> int:\n if YKHO.temperature_scale == 'C':\n return YKHO.locked_temp_max_c\n elif YKHO.temperature_scale == 'F':\n return YKHO.locked_temp_max_f\n else:\n return YKHO._locked_temp_max\n YKHO._logger.debug(IWQE('get', f'{YKHO}', 'locked_temp_max'))",
"def dvpF(YKHO... | [
"0.8609536",
"0.838268",
"0.81076866",
"0.7986864",
"0.796274",
"0.79604316",
"0.79190487",
"0.7874076",
"0.7780435",
"0.76836115",
"0.7418269",
"0.7376021",
"0.7260256",
"0.7237769",
"0.7196424",
"0.71299005",
"0.7003533",
"0.700215",
"0.6965545",
"0.69594616",
"0.6920984",
... | 0.8433013 | 1 |
Getter for locked temp min. | def yL7b(YKHO) -> int:
if YKHO.temperature_scale == 'C':
return YKHO.locked_temp_min_c
elif YKHO.temperature_scale == 'F':
return YKHO.locked_temp_min_f
else:
return YKHO._locked_temp_min
YKHO._logger.debug(IWQE('get', f'{YKHO}', 'locked_temp_min')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eCok(YKHO):\n return YKHO._min_temp",
"def eCok(YKHO):\n return AU9g",
"def eCok(YKHO):\n if YKHO._min_temp:\n return YKHO._min_temp\n return super().min_temp",
"def Fono(YKHO) -> float:\n YKHO._logger.debug(IWQE('get', f'{YKHO}', 'locked_temp_min_f'))\n return zO46(YKHO.locked_t... | [
"0.8013028",
"0.78157496",
"0.7807576",
"0.7727228",
"0.76362914",
"0.7530829",
"0.74552155",
"0.74479985",
"0.7350036",
"0.71267873",
"0.70640147",
"0.70640147",
"0.7048904",
"0.7044186",
"0.7009268",
"0.7009268",
"0.6961405",
"0.6925865",
"0.69128406",
"0.683721",
"0.681802... | 0.8619261 | 0 |
Getter for previous HVAC mode. | def Z0L7(YKHO) -> str:
YKHO._logger.debug(IWQE('get', f'{YKHO}', 'previous_hvac_mode'))
return YKHO._previous_hvac_mode | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wc11(YKHO):\n if YKHO._hvac_mode == QM09:\n return h7b9\n elif YKHO._hvac_mode == gDI4:\n return U1ye\n elif YKHO._hvac_mode == OHWN:\n return T6_q\n elif YKHO._hvac_mode == ecjY:\n return V0Lv\n elif YKHO._hvac_mode == YTJd:\n return SdV4",
"def IT4j(YKHO) -... | [
"0.64595586",
"0.6255589",
"0.6248009",
"0.6226671",
"0.62167543",
"0.61902475",
"0.6172519",
"0.6157725",
"0.61087984",
"0.6072431",
"0.60711336",
"0.60510683",
"0.6039828",
"0.5978897",
"0.59699434",
"0.5957788",
"0.5950678",
"0.593104",
"0.59293693",
"0.59273183",
"0.59150... | 0.8527564 | 0 |
Setter for previous hvac mode. | def NVaV(YKHO, BWXx: str):
if BWXx in YKHO._hvac_modes:
YKHO._logger.info(IWQE('set', f'{YKHO}', 'locked_temp_max_f', BWXx))
YKHO._previous_hvac_mode = BWXx
else:
YKHO._logger.warning('abort set -- {value} not in {self._hvac_modes}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LI1W(YKHO, IT4j: str) -> None:\n if IT4j == HEOQ.AUTO:\n YKHO.svc_reset_zone_mode()\n elif IT4j == HEOQ.HEAT:\n YKHO.svc_set_zone_mode(mode=somb.PERMANENT, setpoint=25)\n else:\n YKHO.svc_set_zone_mode(YKHO._device.set_frost_mode)",
"def LI1W(YKHO, IT4j: str) -> None:\n if IT... | [
"0.7210505",
"0.6970962",
"0.6891688",
"0.68127984",
"0.6733038",
"0.6730062",
"0.6724209",
"0.6707468",
"0.6691243",
"0.66692257",
"0.66662174",
"0.66270375",
"0.65692955",
"0.6531191",
"0.65210605",
"0.6515667",
"0.65048915",
"0.64969385",
"0.647615",
"0.64647686",
"0.63877... | 0.72051454 | 1 |
Setter for high temperature value. Assumes set units are the same as the current system units. | def wecx(YKHO, BWXx: int=0):
if YKHO._temperature_scale == 'F':
YKHO._target_temperature_high = RV7L(J5ql(BWXx))
elif YKHO._temperature_scale == 'C':
YKHO._target_temperature_high = RV7L(BWXx)
else:
YKHO._target_temperature_high = BWXx
YKHO._logger.info(IWQE('set', f'{YKHO}', 'ta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vcve(YKHO, BWXx: int=0):\n if YKHO._temperature_scale == 'F':\n YKHO._eco_temperature_high = RV7L(J5ql(BWXx))\n elif YKHO._temperature_scale == 'C':\n YKHO._eco_temperature_high = RV7L(BWXx)\n else:\n YKHO._eco_temperature_high = BWXx\n YKHO._logger.info(IWQE('set', f'{YKHO}', ... | [
"0.80431557",
"0.7527424",
"0.73513764",
"0.73258656",
"0.7266517",
"0.7261214",
"0.7244778",
"0.72125614",
"0.71789587",
"0.71271175",
"0.71157455",
"0.7046698",
"0.7037592",
"0.70349413",
"0.6909908",
"0.69091845",
"0.6900373",
"0.68957293",
"0.68608415",
"0.6803499",
"0.67... | 0.8068546 | 0 |
Setter for low target temperature value. Assumes set units are the same as the current system units. | def acF5(YKHO, BWXx: int=0):
if YKHO._temperature_scale == 'F':
YKHO._target_temperature_low = RV7L(J5ql(BWXx))
elif YKHO._temperature_scale == 'C':
YKHO._target_temperature_low = RV7L(BWXx)
else:
YKHO._target_temperature_low = BWXx
YKHO._logger.info(IWQE('set', f'{YKHO}', 'targe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MXqP(YKHO) -> float | None:\n return YKHO._target_temperature_low",
"def MXqP(YKHO):\n return YKHO._target_temperature_low",
"def DaZ4(YKHO, BWXx: int=0):\n if YKHO._temperature_scale == 'F':\n YKHO._eco_temperature_low = RV7L(J5ql(BWXx))\n elif YKHO._temperature_scale == 'C':\n Y... | [
"0.7952553",
"0.7922734",
"0.78117687",
"0.78107804",
"0.7735026",
"0.7696726",
"0.76829076",
"0.7669028",
"0.7405848",
"0.7368785",
"0.72714424",
"0.7261236",
"0.7148526",
"0.7124998",
"0.70868874",
"0.6946748",
"0.69294804",
"0.6900801",
"0.6876887",
"0.6857196",
"0.6808950... | 0.8797775 | 0 |
Getter for the timetotemperature training mode. | def DZpU(YKHO) -> str:
YKHO._logger.debug(IWQE('get', f'{YKHO}', 'time_to_target_training'))
return YKHO._training_modes[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dxup(YKHO):\n return YKHO._time_step",
"def xhWF(YKHO):\n return YKHO._train_op_ft",
"def LN3f(YKHO):\n return YKHO._target_temperature_step",
"def kH1T(YKHO):\n return YKHO._avg_training_time",
"def LN3f(YKHO):\n return YKHO._temp_step",
"def FU2G(YKHO) -> int:\n return YKHO._use_t... | [
"0.6346389",
"0.62929255",
"0.6197536",
"0.6175581",
"0.61631703",
"0.61529076",
"0.6152647",
"0.61284536",
"0.6119044",
"0.6119044",
"0.6119044",
"0.610887",
"0.6058542",
"0.6051269",
"0.6039329",
"0.6033116",
"0.60155916",
"0.59933376",
"0.59933376",
"0.5979747",
"0.5973493... | 0.7179265 | 0 |
Redis lua func to get timestamp from redis server, use this func to prevent time inconsistent across servers. | def MK1i(YKHO):
return YKHO.r.eval(YKHO.LUA_TIME, 1, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ItX3():\n return int(ITS7.time())",
"def E3oo():\n return ITS7.time()",
"def X2x9():\n return str(int(ITS7.time()))",
"def E3oo():\n return int(ITS7.time())",
"def E3oo():\n return round(qcWV.datetime.utcnow().timestamp())",
"def ItX3():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S')",... | [
"0.6834203",
"0.67761517",
"0.6668308",
"0.6666679",
"0.6584357",
"0.64719635",
"0.64695",
"0.64652014",
"0.64567995",
"0.6436153",
"0.6407598",
"0.6374339",
"0.6357725",
"0.63406926",
"0.6329561",
"0.62301373",
"0.6215181",
"0.6208718",
"0.6205009",
"0.6203495",
"0.61961627"... | 0.0 | -1 |
Given an iterable of digits, return the portion of x and y that contain those digits. | def tUKq(BHGE, WKvO, LVAh):
ZHfW = oyIN.zeros_like(LVAh, dtype=bool)
for Ko6S in BHGE:
ZHfW += LVAh == Ko6S
WKvO = WKvO[ZHfW]
LVAh = LVAh[ZHfW]
return (WKvO, LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RKSo(YKHO, WKvO, LVAh):\n fUYa = set(range(WKvO[0], WKvO[1]))\n bEXe = set(range(LVAh[0], LVAh[1]))\n return fUYa.intersection(bEXe)",
"def X1pp(YKHO, WKvO: str, LVAh: str) -> bool:\n return len(set(WKvO + LVAh)) == len(LVAh)",
"def liKn(EcVT, fuBA):\n jHsn, pvd3 = (len(EcVT), len(fuBA))\n ... | [
"0.5705708",
"0.56688017",
"0.5640348",
"0.5625155",
"0.5597041",
"0.5497722",
"0.5489992",
"0.5463491",
"0.5451395",
"0.53960806",
"0.539283",
"0.5373492",
"0.5359683",
"0.5359357",
"0.5329965",
"0.53261477",
"0.5305657",
"0.5302476",
"0.53019404",
"0.52886564",
"0.52630496"... | 0.7365741 | 0 |
Sets a ceiling on the number of neurons of a given type that can be placed on a single core. This information is stored in dictionary in the dao and is referenced during the partition stage of the mapper. Note that each neuron type has a default value for this parameter that will be used if no override is given. | def uihi(WGYx, tHN3):
if not tq_1.isclass(WGYx):
WGYx = globals()[WGYx]
if WGYx is None:
raise Exception('Unknown Vertex Type {}'.format(WGYx))
if hasattr(WGYx, 'custom_max_atoms_per_core'):
WGYx.custom_max_atoms_per_core = tHN3
else:
raise Exception('{} is not a ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EKkU(YKHO, GltZ: str=None) -> int:\n if GltZ:\n return YKHO.num_nodes_dict[GltZ]\n else:\n return YKHO.total_number_of_nodes",
"def OtzW(YKHO, GltZ: str=None) -> int:\n return YKHO.num_nodes(GltZ)",
"def WzoN(YKHO, ywwl=[]):\n YKHO.set_gids(ywwl)\n YKHO.create_cells()",
"def ... | [
"0.59034413",
"0.58283395",
"0.5465672",
"0.5432328",
"0.5232073",
"0.5229335",
"0.521293",
"0.51982903",
"0.5130504",
"0.50784206",
"0.50641626",
"0.5039602",
"0.50306505",
"0.5022691",
"0.498251",
"0.49522948",
"0.4947117",
"0.4944262",
"0.49342987",
"0.49248686",
"0.490970... | 0.70409745 | 0 |
Get parameters of the dynamic synapses for all connections in this Projection. | def mXfj(YKHO, SK6d, format='list', v6ln=True):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGPK(YKHO):\n return YKHO.pars",
"def SGPK(YKHO):\n return [YRbF.parameter for YRbF in YKHO.joints.values()]",
"def W6RH(YKHO):\n return {'nspecies': YKHO.nspecies, 'lmax': YKHO.lmax, 'nmax': YKHO.nmax, 'rcut': YKHO.rcut, 'sigma': YKHO.sigma, 'trans_width': YKHO.trans_width}",
"def IEMw(Emd4, Gr... | [
"0.59664494",
"0.5961479",
"0.58707875",
"0.57593197",
"0.5719124",
"0.5716366",
"0.5694844",
"0.56888735",
"0.5619881",
"0.5619112",
"0.5550207",
"0.55424255",
"0.5515973",
"0.55143887",
"0.5507055",
"0.54469246",
"0.5441625",
"0.54304343",
"0.5418958",
"0.54148144",
"0.5414... | 0.0 | -1 |
Set weights to random values taken from rand_distr. | def qVll(YKHO, f7dA):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rJrZ(YKHO):\n YKHO.weights = oyIN.random.rand(*YKHO.weights.shape) - 0.5",
"def vfX0(YKHO, JBMS=0, z2bo=1):\n YKHO.slp_weights = oyIN.random.normal(JBMS, z2bo, size=(YKHO.n_rbfs, YKHO.n_targets))",
"def vB93(YKHO):\n YKHO.w = oyIN.random.randn(YKHO.D) / oyIN.sqrt(YKHO.D)",
"def dIoi(YKHO):\n ... | [
"0.79889596",
"0.7319766",
"0.7257235",
"0.7144398",
"0.7136157",
"0.703121",
"0.6993822",
"0.69731367",
"0.69498444",
"0.6937413",
"0.6928632",
"0.6906302",
"0.68867594",
"0.67853034",
"0.67574394",
"0.6713749",
"0.6660219",
"0.66586196",
"0.6648114",
"0.66296285",
"0.660558... | 0.8538428 | 0 |
Return the total number of connections. only local connections, if gather is False, all connections, if gather is True (default) | def zNig(YKHO, v6ln=True):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iT_a(YKHO):\n return YKHO.proxy.getconnectioncount()",
"def oXGM(rSDZ):\n return C3ST.totalConnections(rSDZ)",
"def tyeH(YKHO):\n wjRY = sum(YKHO.connections.values())\n return wjRY",
"def dVDm(YKHO):\n return len(YKHO._available_connections) + len(YKHO._in_use_connections)",
"def BFf7()... | [
"0.73948556",
"0.73215467",
"0.70049953",
"0.68512636",
"0.6692326",
"0.6690283",
"0.6675384",
"0.6611485",
"0.6590529",
"0.653348",
"0.6463506",
"0.6441028",
"0.6425167",
"0.6407873",
"0.63523036",
"0.6262859",
"0.6260174",
"0.6258522",
"0.62402767",
"0.6218621",
"0.617374",... | 0.0 | -1 |
Returns the mean number of spikes per neuron. | def EHeM(YKHO, v6ln=True):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DH4Z(YKHO):\n return YKHO.serie.mean()",
"def JBMS(YKHO):\n return sum(YKHO.sample) / len(YKHO.sample)",
"def pR3k(YKHO) -> float:\n if YKHO.__total_pulls == 0:\n raise Exception('Number of pulls is 0. No empirical mean.')\n return YKHO.__total_rewards / YKHO.__total_pulls",
"def azkM(... | [
"0.66117",
"0.6604204",
"0.6572368",
"0.65653586",
"0.6540787",
"0.6539733",
"0.6516644",
"0.64821166",
"0.64348525",
"0.637338",
"0.6364558",
"0.6364558",
"0.6355922",
"0.63250583",
"0.6302423",
"0.6295382",
"0.62873733",
"0.62818104",
"0.62657887",
"0.6240685",
"0.62234163"... | 0.6923684 | 0 |
Convert to [0, 255], then subtracting means, convert to BGR. | def KMMd(EcVT, vjEc):
if vjEc == 1:
EcVT = EcVT * 255
elif vjEc == 2:
EcVT = (EcVT + 0.5) * 255
elif vjEc == 3:
EcVT = (EcVT / 2 + 0.5) * 255
Z5Q9, jlxe, pPPK = ZylS.split(EcVT, 3, 3)
gTDv = ZylS.concat([pPPK - iORl[0], jlxe - iORl[1], Z5Q9 - iORl[2]], 3)
return gTDv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rvmn(VXjJ):\n VXjJ = 255 - VXjJ\n return VXjJ",
"def cMpu(YKHO, VXjJ: np.ndarray) -> oyIN.ndarray:\n fVVZ = VXjJ.astype(float) - YKHO.bg\n fVVZ /= fVVZ.max()\n return fVVZ",
"def tbib(VXjJ):\n for e3Fk in VXjJ:\n WKvO, LVAh, fvDH = e3Fk\n Mkmy, Oa1e, Fg_i = fvDH\n gsW... | [
"0.6585403",
"0.64665306",
"0.6423008",
"0.6386938",
"0.6362258",
"0.6339417",
"0.63090575",
"0.6257862",
"0.62251794",
"0.62142634",
"0.61538",
"0.60639465",
"0.6052781",
"0.6050312",
"0.6022905",
"0.601044",
"0.600279",
"0.5991956",
"0.5988704",
"0.59882575",
"0.59872586",
... | 0.0 | -1 |
Returns the absolute path of a file in my directory | def tjZL(YKHO, uRP3):
pmON = Hy7s.path.abspath(Hy7s.path.join(YKHO.myDir, uRP3))
YKHO.checkPath(pmON)
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hgmy(Ux0P):\n TLI7 = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n return Hy7s.path.join(TLI7, Ux0P)",
"def Yb80(gIsw: str, AGPF: str) -> str:\n return Hy7s.path.join(AGPF, gIsw)",
"def Wbb_(FYKK):\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), FYKK)",
"def Zg0d(Ux0P):\n import os.path\n ... | [
"0.8068349",
"0.78838205",
"0.78415823",
"0.77674586",
"0.7746771",
"0.76659197",
"0.76642513",
"0.7625433",
"0.7538685",
"0.7534018",
"0.75298464",
"0.75240636",
"0.7500152",
"0.7470992",
"0.7447185",
"0.7421873",
"0.74158984",
"0.7403873",
"0.7388205",
"0.73875314",
"0.7347... | 0.71759206 | 35 |
Return a random letter | def fFlT(KoG3):
return tuKI.choice(KoG3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wAgY(KoG3: str) -> str:\n return KoG3[tuKI.randint(0, len(KoG3) - 1)]",
"def ORaO():\n return GLL2(char_choice=vIwR.ascii_letters)",
"def F1rj(YKHO):\n return YKHO.letterbag[tuKI.randint(0, 25)]",
"def R71E(ASFv):\n hcXw = ASFv[icr8.randrange(len(ASFv))]\n return hcXw",
"def wAgY():\n ... | [
"0.8447302",
"0.8407622",
"0.8271333",
"0.82520944",
"0.82395846",
"0.8036778",
"0.79629654",
"0.7950662",
"0.79457724",
"0.7892218",
"0.7874733",
"0.78254205",
"0.7721272",
"0.76063466",
"0.7600034",
"0.75525564",
"0.7517482",
"0.74856037",
"0.7474241",
"0.7430441",
"0.73456... | 0.8633792 | 0 |
Make random image name. | def hld_():
wCnE = ''
for YRbF in range(10):
aVZE = tuKI.randint(1, 2)
if aVZE is 1:
wCnE += fFlT(KoG3)
if aVZE is 2:
wCnE += str(tuKI.randint(0, 9))
if wCnE not in HA6d:
HA6d.append(wCnE)
return wCnE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hdmV():\n\n def qRoT():\n u54L = tuKI.randint(10, 15)\n gLiZ = vIwR.ascii_letters + vIwR.digits + '-_'\n return f'{''.join((tuKI.choice(gLiZ) for bGrB in range(u54L)))}.jpg'\n return qRoT",
"def r1Ht(YKHO, LNo8):\n return LNo8.replace('shub://', '').replace('/', '-') + '.simg'",... | [
"0.8019541",
"0.77211183",
"0.75423545",
"0.74852884",
"0.73764557",
"0.71925426",
"0.7163062",
"0.7141114",
"0.70809734",
"0.7049782",
"0.7025988",
"0.70132583",
"0.69309336",
"0.69157976",
"0.6895713",
"0.689558",
"0.6862306",
"0.6836197",
"0.68258405",
"0.6817451",
"0.6813... | 0.6564727 | 35 |
Blur to gray image | def OXBD(_uhB):
return XC5k.blur(_uhB, (5, 5)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IyHH(LNo8):\n ITiw = XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2GRAY)\n return XC5k.GaussianBlur(ITiw, (7, 7), 0)",
"def UWj5(LNo8):\n return XC5k.GaussianBlur(LNo8, (7, 7), 0)",
"def jUwU(LNo8, Ot1W=(7, 7)):\n LNo8 = XC5k.blur(LNo8, Ot1W)\n return LNo8",
"def jUwU(LNo8, Ot1W=(7, 7)):\n LNo8 = ... | [
"0.81618327",
"0.77798975",
"0.76883066",
"0.76883066",
"0.76545846",
"0.76199484",
"0.7503624",
"0.74835473",
"0.74039507",
"0.7392931",
"0.7369776",
"0.7288036",
"0.724869",
"0.72249043",
"0.71705604",
"0.7141001",
"0.7136869",
"0.70943594",
"0.7012889",
"0.70057046",
"0.69... | 0.79251695 | 1 |
Plot the RGB histogram of an image. | def OZJn(VXjJ):
MW6R = Sgoh(VXjJ)
QrM1.figure()
for qfpW, QzFq in MW6R.items():
QrM1.plot(QzFq, color=qfpW)
QrM1.xlim([0, 256]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fwkn(VXjJ, yFwD, leAC):\n QrM1.subplot(yFwD)\n QrM1.imshow(VXjJ, cmap='gray')\n QrM1.title(leAC)\n QrM1.subplot(yFwD + 4)\n QrM1.hist(qjPU(VXjJ).ravel(), bins=256)\n QrM1.xlim(0, 1)",
"def hpLG(Xn71):\n if Xn71.ndim == 2:\n QrM1.hist(Xn71.flatten(), 256, range=(0, 250), fc='k')\n ... | [
"0.74204946",
"0.71305",
"0.70681804",
"0.70681804",
"0.70681804",
"0.70507854",
"0.6971325",
"0.6876233",
"0.68432623",
"0.67817456",
"0.6778346",
"0.65889895",
"0.65261537",
"0.6512229",
"0.6512229",
"0.6466249",
"0.638479",
"0.63804466",
"0.635739",
"0.63462305",
"0.634240... | 0.8582159 | 0 |
Calculates the porcentile variation of doge in 24hs | def FEyP():
Sl8X = 1
Tk8U = 1
Sl8X = trd0.traer_masviejo_precio_doge()
Tk8U = trd0.traer_ultimo_precio_doge()
Sl8X = float(Sl8X)
Tk8U = float(Tk8U)
ozTy = 100 * (Tk8U - Sl8X) / Sl8X
ozTy = round(ozTy, 2)
return ozTy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GqW9(urR6, Oa1e, Ah8s):\n return float((urR6 + epAf.sqrt(epAf.pow(-urR6, 2) - 4 * (0.5 * Oa1e) * -Ah8s)) / Oa1e)",
"def GVXT():\n BbUj = trd0.traer_ultimos_precios_doge()\n THkp = float(BbUj[0])\n wzkt = float(BbUj[1])\n ozTy = 0\n ozTy = tX6T(THkp, wzkt)\n ozTy = round(ozTy, 2)\n if ... | [
"0.6093303",
"0.591835",
"0.58395076",
"0.58203995",
"0.5816518",
"0.5800969",
"0.5757864",
"0.57465905",
"0.57260793",
"0.564868",
"0.5648256",
"0.56480724",
"0.56353694",
"0.55467236",
"0.55357987",
"0.55087644",
"0.5508609",
"0.55024034",
"0.5499268",
"0.54805577",
"0.5463... | 0.62463707 | 0 |
Softmax Function used to convert Score outputs from Linear Function (list of numbers) into Probabilities, and returns list of values given by the Softmax function. It takes Exponential of all Scores to ensure they are positive numbers to solve problems with 3+ classes (Multiclass Classification), whereas 2 class proble... | def N93T(aPd6):
qW2L = oyIN.exp(aPd6)
X6EI = sum(qW2L)
Aofo = []
for YRbF in qW2L:
Aofo.append(YRbF * 1.0 / X6EI)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M49J(cCrA):\n if not cCrA:\n return []\n jB5X = None\n for p1kx in cCrA:\n if jB5X is None or p1kx > jB5X:\n jB5X = p1kx\n KPVz = []\n mq4h = 0.0\n for p1kx in cCrA:\n WKvO = oyIN.exp(p1kx - jB5X)\n KPVz.append(WKvO)\n mq4h += WKvO\n BFeB = []\... | [
"0.80448925",
"0.79826593",
"0.79826593",
"0.79826593",
"0.79826593",
"0.78369415",
"0.78041816",
"0.7410945",
"0.73087615",
"0.7200696",
"0.71898997",
"0.71138996",
"0.7073865",
"0.701149",
"0.69976586",
"0.69727325",
"0.6867229",
"0.67977446",
"0.6783592",
"0.6777038",
"0.6... | 0.705361 | 13 |