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 |
|---|---|---|---|---|---|---|
Transform a sequence of strings into the desired spaCy output | def SZFh(YKHO, EcVT):
assert isinstance(YKHO.model, FoKK), 'Please provide a valid SpaCy model!'
Q5mJ = YKHO.model.pipe(EcVT, n_threads=YKHO.n_threads)
if YKHO.output_feature == _Ub4:
return list(Q5mJ)
elif YKHO.output_feature == hRdh:
return oyIN.vstack((A97Q.vector for A97Q in Q5mJ))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DAMv(l5Ny):\n return ' '.join([eOtH.text for eOtH in K9NE(l5Ny, disable=['tagger', 'ner', 'lemmatizer'])])",
"def JvKs(YKHO, KCHu: str) -> x1iM[str]:\n A97Q = YKHO.spacy_nlp(KCHu)\n s2mk = [a1PO.text for a1PO in A97Q]\n return s2mk",
"def KkHI(Q6uT, Zi4e=lambda WKvO: WKvO):\n Hx9V = ', '\n ... | [
"0.63592297",
"0.6125685",
"0.5883693",
"0.58700806",
"0.58648014",
"0.5805731",
"0.5799092",
"0.57795805",
"0.5778748",
"0.57604545",
"0.57378864",
"0.5693878",
"0.56896365",
"0.5676184",
"0.5664156",
"0.5664156",
"0.5663318",
"0.5657227",
"0.56219923",
"0.56202924",
"0.5613... | 0.0 | -1 |
Save the discriminator with its configuration file to a directory, so that it can be reloaded using the `from_pretrained(save_directory)` class method. | def n4EQ(YKHO, kR10):
assert Hy7s.path.isdir(kR10), 'Saving path should be a directory where the model and configuration can be saved'
fIjg = YKHO.module if hasattr(YKHO, 'module') else YKHO
vd92 = Hy7s.path.join(kR10, 'pytorch_discriminator.bin')
ht2j.save(fIjg.state_dict(), vd92) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RRbb(YKHO, Ux0P: str):\n ht2j.save(YKHO.generator.state_dict(), Ux0P + '.generator')\n ht2j.save(YKHO.discriminator.state_dict(), Ux0P + '.discriminator')",
"def n4EQ(YKHO, kR10):\n assert Hy7s.path.isdir(kR10), 'Saving path should be a directory where the model and configuration can be saved'\n ... | [
"0.6943885",
"0.6903598",
"0.67670155",
"0.6766569",
"0.67175436",
"0.6716075",
"0.6689621",
"0.6684012",
"0.6682899",
"0.6623865",
"0.66207385",
"0.64472264",
"0.6430119",
"0.64211357",
"0.64111286",
"0.6410282",
"0.63796496",
"0.6363211",
"0.63498896",
"0.63315856",
"0.6326... | 0.7962305 | 0 |
Test that scheduling succeeds if there are available Nodes/Disks with the requested Tags. | def FcIP(x0hE, dqdz):
XldB = pQIv()
aEV4 = [{'disk': [], 'expected': 3, 'node': []}, {'disk': ['ssd', 'nvme'], 'expected': 2, 'node': []}, {'disk': [], 'expected': 2, 'node': ['main', 'storage']}, {'disk': ['ssd', 'nvme'], 'expected': 1, 'node': ['storage', 'main']}]
for Mzww in aEV4:
FNha = uIKI()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d06r(x0hE, dqdz):\n bjnO = [{'disk': ['doesnotexist', 'ssd'], 'node': []}, {'disk': [], 'node': ['doesnotexist', 'main']}]\n for dJ1p in bjnO:\n FNha = uIKI()\n with trZe.raises(Exception) as tTpl:\n x0hE.create_volume(name=FNha, size=gg4D, numberOfReplicas=3, diskSelector=dJ1p['... | [
"0.673525",
"0.6360256",
"0.56313616",
"0.5615833",
"0.5615077",
"0.5606915",
"0.55365825",
"0.5520541",
"0.540294",
"0.5400903",
"0.53946775",
"0.5383169",
"0.53829974",
"0.53720534",
"0.537128",
"0.53467363",
"0.5343377",
"0.5342361",
"0.5338964",
"0.5331869",
"0.53260934",... | 0.6943617 | 0 |
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 |
r"""Initializes a qubit hilbert space. | def FIMM(YKHO, ywwl: int=1, pNZh: Optional[AbstractGraph]=None):
ywwl = bJXS(N=ywwl, graph=pNZh)
super().__init__([0, 1], ywwl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *goeJ: DiscreteHilbert):\n if not all((isinstance(ekgN, CAzi) for ekgN in goeJ)):\n raise TypeError(f'Arguments to TensorDiscreteHilbert must all be subtypes of DiscreteHilbert. However the types are:\\n\\n{list((type(ekgN) for ekgN in goeJ))}\\n')\n ROpF = oyIN.concatenate([ekgN.shape ... | [
"0.69118804",
"0.679263",
"0.67080355",
"0.6610985",
"0.6501525",
"0.6391987",
"0.6323487",
"0.6308756",
"0.6258861",
"0.6201642",
"0.6135274",
"0.6134951",
"0.6128348",
"0.6124082",
"0.6116278",
"0.6079863",
"0.60494715",
"0.60486877",
"0.60348725",
"0.600216",
"0.5975762",
... | 0.0 | -1 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye",
"def N93T(WKvO):\n j1LR = oyIN.exp(o... | [
"0.80118036",
"0.77634716",
"0.77634716",
"0.76874506",
"0.76723677",
"0.76621646",
"0.7658821",
"0.7658821",
"0.7658821",
"0.7658821",
"0.7658821",
"0.7658821",
"0.7658821",
"0.7641485",
"0.7629499",
"0.7553611",
"0.7534289",
"0.74586517",
"0.73266053",
"0.7319653",
"0.73034... | 0.0 | -1 |
Mostly rely on default declarative SQLAlchemy constructor. Additionally set the timestamps on object creation. | def FIMM(YKHO, aJ2e=qcWV.now(), zB0d=qcWV.now(), **B2fa):
super(fExc, YKHO).__init__(**B2fa)
YKHO.created_at = aJ2e
YKHO.updated_at = zB0d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.Base = XkTK()\n print('-' * 40 + '\\n')\n print('>>> Database object created')",
"def FIMM(YKHO):\n eHpk = WyYT()\n SnkI(eHpk)\n YKHO.Session = FJ3D(bind=eHpk)",
"def bQdk(Emd4):\n oiu9 = FYrf.DateTimeField(verbose_name=bGrB('added at'), auto_now_add=True, editable=F... | [
"0.6817206",
"0.67568153",
"0.6670068",
"0.6588197",
"0.6588197",
"0.6588197",
"0.6588197",
"0.6588197",
"0.6588197",
"0.6577237",
"0.6553831",
"0.65401006",
"0.6502093",
"0.64803046",
"0.6478001",
"0.646392",
"0.6455576",
"0.6452771",
"0.6449585",
"0.64463186",
"0.6424825",
... | 0.6057915 | 82 |
Tests retrieval of individual document. | def eIE0(YKHO, Q9yB):
lXgY = PrIz.objects.create(original_filename='test.txt', my_field='cats are lactose intolerant')
bD7m = gxEw('test-document-item', kwargs={'entity_document_pk': lXgY.pk})
geh0 = YKHO.api_client.get(bD7m)
assert geh0.status_code == jGRS.HTTP_200_OK
assert geh0.data == {'id': str... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tadg(YKHO):\n pass",
"def JgyY(YKHO):\n pass",
"def JgyY(uXjx):\n geh0 = uXjx().get_document('500682')\n assert isinstance(geh0, dict)\n assert 'title' in geh0\n assert geh0['title'] == 'The Highwaymen'",
"def eIE0(YKHO):\n ERrj.add_response(200, 'OK', qQXR.dumps(YKHO._document_at(YK... | [
"0.8123662",
"0.7923944",
"0.766749",
"0.748809",
"0.72839373",
"0.7274743",
"0.72587603",
"0.7011798",
"0.6861315",
"0.6790311",
"0.6752817",
"0.6733404",
"0.66361207",
"0.6610805",
"0.6567006",
"0.6536056",
"0.65165246",
"0.6476955",
"0.6464736",
"0.6462925",
"0.6456858",
... | 0.7637199 | 3 |
This test shows proves that we can detect invalid material modification names when they are specified on an assembly blueprint. We happen to know that ZR_wt_frac is a valid modification for the UZr material class, so we use that in the first call to prove that things initially work fine. | def To6X(YKHO):
jzdc = YKHO.loadUZrAssembly('\n material modifications:\n ZR_wt_frac: [1]\n by component:\n fuel2:\n ZR_wt_frac: [0]\n ')
YKHO.assertAlmostEqual(jzdc[0][0].getMassFrac('ZR'), 1)
YKHO.assertAlmostEqual(jzdc[0][1].getMassFra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i6YJ(YKHO):\n eWgR = YKHO.loadUZrAssembly('\\n material modifications:\\n ZR_wt_frac: [1]\\n class1_wt_frac: [1]\\n class1_custom_isotopics: [dummy]\\n class2_custom_isotopics: [dummy]\\n by component:\\n fuel2:\\n ... | [
"0.6403672",
"0.6193181",
"0.6140288",
"0.6136393",
"0.6069805",
"0.59780216",
"0.5962471",
"0.5896035",
"0.589125",
"0.58726096",
"0.58601046",
"0.58430666",
"0.58352435",
"0.57797337",
"0.57704735",
"0.57461214",
"0.5731114",
"0.5722443",
"0.57062924",
"0.5690167",
"0.56669... | 0.8020209 | 0 |
Creates an encoding of a CFG's terminal symbols as numbers. | def vGJO(YKHO, lTIZ):
E9dV = [Mkmy.rhs() for Mkmy in YKHO.grammar.productions()]
KTvT = set()
KTvT.update(*E9dV)
KTvT = set((WKvO for WKvO in KTvT if rrLg.is_terminal(WKvO)))
hDVj = {WKvO: YRbF for YRbF, WKvO in enumerate(KTvT)}
hDVj[lTIZ] = len(hDVj)
return hDVj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLcZ(YKHO, l5Ny):\n yvT9 = ''\n for o61b in l5Ny:\n Wxnj = ''\n Q6kx = YKHO.leaves[o61b]\n while Q6kx != None:\n if Q6kx.parent == None:\n break\n if Q6kx.parent.left == Q6kx:\n Wxnj = '1' + Wxnj\n else:\n ... | [
"0.63163036",
"0.58465075",
"0.58238244",
"0.5804153",
"0.5703875",
"0.5641943",
"0.5609355",
"0.560291",
"0.5594538",
"0.55312437",
"0.55051446",
"0.54802614",
"0.54452336",
"0.5392512",
"0.53882146",
"0.53856224",
"0.53533167",
"0.5341341",
"0.53260833",
"0.53240347",
"0.52... | 0.51245207 | 35 |
Return primary identifier for the Patient. | def irRZ(YKHO):
if 'PatientID' not in YKHO._ds:
raise NameError('{0}: Invalid dataset instance. PatientID attribute is missing.').format(YKHO.__class__)
return None
return YKHO._ds.PatientID | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C3kz(YKHO) -> str:\n vuCS = YKHO.osirix_service.DicomStudyPatientID(YKHO.osirixrpc_uid)\n YKHO._patient_id = YKHO.response_processor.process_patient_id(vuCS)\n return YKHO._patient_id",
"def xAfl(YKHO) -> str:\n return qe4Y.get(YKHO, 'primary_key')",
"def xAfl(YKHO) -> str:\n return qe4Y.get... | [
"0.72967625",
"0.7160288",
"0.7160288",
"0.7055435",
"0.70043254",
"0.69748116",
"0.69720167",
"0.6870709",
"0.68552035",
"0.682265",
"0.68152183",
"0.6810234",
"0.67845607",
"0.6685751",
"0.66750693",
"0.6655879",
"0.6646",
"0.664061",
"0.6618042",
"0.65975904",
"0.6574309",... | 0.77655894 | 0 |
Return the date the Study started. | def Qxdw(YKHO):
if 'StudyDate' in YKHO._ds:
if YKHO._ds.StudyDate:
return YKHO._ds.StudyDate
return 'N/A' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JdMF(YKHO):\n return YKHO._date_started",
"def kepv(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_date')",
"def kepv(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'start_date')",
"def nUNa(YKHO):\n return YKHO.start_date",
"def nUNa(YKHO):\n return YKHO.start_date",
"def nUNa(YKHO)... | [
"0.7614372",
"0.73900586",
"0.7371611",
"0.73398954",
"0.73398954",
"0.73398954",
"0.73398954",
"0.73044497",
"0.7285424",
"0.7285424",
"0.7285424",
"0.7285424",
"0.7285424",
"0.7285424",
"0.7285424",
"0.72776425",
"0.72769135",
"0.71666104",
"0.71403855",
"0.71335274",
"0.70... | 0.70530206 | 21 |
Return date the Series started. | def uERb(YKHO):
if 'SeriesDate' in YKHO._ds:
if YKHO._ds.SeriesDate:
return YKHO._ds.SeriesDate
return 'N/A' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kepv(YKHO) -> _c1T:\n return YKHO.__start_date",
"def yKcO(YKHO) -> _c1T:\n return YKHO._start",
"def kepv(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'start_date')",
"def nUNa(YKHO):\n return YKHO.start_date",
"def nUNa(YKHO):\n return YKHO.start_date",
"def nUNa(YKHO):\n re... | [
"0.7101438",
"0.7083678",
"0.7041799",
"0.7016936",
"0.7016936",
"0.7016936",
"0.7016936",
"0.70114267",
"0.7003994",
"0.6997995",
"0.6997995",
"0.6997995",
"0.6997995",
"0.6997995",
"0.6997995",
"0.6997995",
"0.6978993",
"0.69702023",
"0.6937734",
"0.6932748",
"0.69086385",
... | 0.64368236 | 45 |
Return relative position of the image plane expressed in mm. | def pvxB(YKHO):
if 'SliceLocation' in YKHO._ds:
if '' != YKHO._ds.SliceLocation:
return YKHO._ds.SliceLocation
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uAgb(YKHO):\n YKHO.xp = int((-YKHO.nav_map_info.origin.position.x + YKHO.x) / YKHO.nav_map_info.resolution)\n YKHO.yp = int((-YKHO.nav_map_info.origin.position.y + YKHO.y) / YKHO.nav_map_info.resolution)",
"def _5tu(YKHO):\n if not YKHO.initialized:\n return\n YKHO.xm = YKHO.x - YKHO.nav_m... | [
"0.66096485",
"0.6602824",
"0.6443857",
"0.6443857",
"0.63526917",
"0.63416106",
"0.63384306",
"0.6310223",
"0.62495506",
"0.62481874",
"0.62371325",
"0.621465",
"0.61878014",
"0.6180308",
"0.6180109",
"0.6169398",
"0.61562794",
"0.6137029",
"0.612726",
"0.6113852",
"0.610700... | 0.0 | -1 |
Extract data from a `tf.Example` protocol buffer. | def Gs92(PU1l):
yJc9 = {'image/filename': ZylS.io.FixedLenFeature([], ZylS.string), 'image/encoded': ZylS.io.FixedLenFeature([], ZylS.string), 'label/marks': ZylS.io.FixedLenFeature([136], ZylS.float32)}
MeyO = ZylS.io.parse_single_example(PU1l, yJc9)
LeC8 = ZylS.image.decode_image(MeyO['image/encoded'])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UU8X(xKOQ):\n return ZylS.io.parse_single_example(xKOQ, wFVV)",
"def AF4J(Ykaq):\n W5Xi = {'image/encoded': ZylS.io.FixedLenFeature([], dtype=ZylS.string, default_value=''), 'image/class/label': ZylS.io.FixedLenFeature([], dtype=ZylS.int64, default_value=-1), 'image/class/text': ZylS.io.FixedLenFeature... | [
"0.7331229",
"0.72496444",
"0.7212535",
"0.71882015",
"0.7187484",
"0.71488005",
"0.71434",
"0.71277493",
"0.7124491",
"0.7073136",
"0.6966501",
"0.6940968",
"0.6819301",
"0.67880005",
"0.67797154",
"0.66969",
"0.66963214",
"0.6674395",
"0.66481733",
"0.6645191",
"0.66406703"... | 0.6648538 | 18 |
The name of this experiment. | def t6ks(YKHO) -> str:
return YKHO.desc.hashname | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t6ks(YKHO):\n return YKHO._experiment_name",
"def t6ks(YKHO):\n return YKHO._experiment_name",
"def mWFP(YKHO):\n return '{}_{}'.format(YKHO.experiment, YKHO.serial)",
"def mWFP(YKHO) -> str:\n return qe4Y.get(YKHO, 'name')",
"def mWFP(YKHO) -> str:\n return qe4Y.get(YKHO, 'name')",
"d... | [
"0.87423056",
"0.87423056",
"0.8382515",
"0.80571073",
"0.80571073",
"0.80571073",
"0.80571073",
"0.80571073",
"0.80571073",
"0.80571073",
"0.80571073",
"0.80571073",
"0.80571073",
"0.80571073",
"0.80571073",
"0.80571073",
"0.80571073",
"0.80571073",
"0.80571073",
"0.80571073",... | 0.84402966 | 2 |
Get the size of the dataset. Returns int Number of valid ligandprotein pairs in the dataset. | def szAg(YKHO):
return len(YKHO.indices) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO) -> int:\n return len(YKHO._dataset)",
"def len(YKHO):\n return YKHO.ndata",
"def szAg(YKHO) -> int:\n return len(YKHO.dataset)",
"def zNig(YKHO) -> int:\n return YKHO.da.length()",
"def zNig(YKHO) -> int:\n return YKHO.da.length()",
"def zNig(YKHO) -> int:\n return YKHO.d... | [
"0.7269916",
"0.7267618",
"0.7218986",
"0.72005147",
"0.72005147",
"0.72005147",
"0.7196752",
"0.71722424",
"0.7108453",
"0.70955914",
"0.7090822",
"0.7090822",
"0.7086074",
"0.7080097",
"0.7061002",
"0.7061002",
"0.7061002",
"0.7061002",
"0.7061002",
"0.70380956",
"0.7024348... | 0.0 | -1 |
Get the datapoint associated with the index. | def OP2O(YKHO, ZfUD):
return (ZfUD, YKHO.protein_mols[ZfUD], YKHO.graphs[ZfUD], YKHO.labels[ZfUD]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a3o1(YWSi, sB1G, d6pt):\n return YWSi.vip.rpc.call(oB2m, 'get_point_by_index', sB1G, d6pt).get(timeout=10)",
"def Ryo5(YKHO, d6pt):\n return YKHO.points[d6pt]",
"def Ryo5(YKHO, d6pt):\n return YKHO.points[d6pt]",
"def yLtf(YKHO, d6pt=None):\n if YKHO.data is None:\n return None\n if... | [
"0.78356147",
"0.7603097",
"0.7603097",
"0.7580783",
"0.7461338",
"0.7324939",
"0.7245675",
"0.70864093",
"0.7011289",
"0.6945711",
"0.69153464",
"0.6909769",
"0.6892656",
"0.68517244",
"0.67614317",
"0.67499155",
"0.6741959",
"0.6741959",
"0.6741959",
"0.67332864",
"0.672335... | 0.0 | -1 |
get copy of self. | def livu(YKHO):
r8hN = nkvf()
r8hN.mQueryToken, r8hN.mSbjctToken, r8hN.mEvalue, r8hN.mQueryFrom, r8hN.mQueryTo, r8hN.mQueryAli, r8hN.mSbjctFrom, r8hN.mSbjctTo, r8hN.mSbjctAli, r8hN.mIsExpanded = (YKHO.mQueryToken, YKHO.mSbjctToken, YKHO.mEvalue, YKHO.mQueryFrom, YKHO.mQueryTo, YKHO.mQueryAli, YKHO.mSbjctFrom, Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def FzJk(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def F... | [
"0.86848944",
"0.86848944",
"0.86848944",
"0.86848944",
"0.8669022",
"0.8669022",
"0.8669022",
"0.8669022",
"0.8669022",
"0.86539286",
"0.86491793",
"0.8636196",
"0.8623358",
"0.8593103",
"0.8593103",
"0.8593103",
"0.8593103",
"0.8593103",
"0.8593103",
"0.8522884",
"0.8522884... | 0.0 | -1 |
Returns the value for a key in the configuration file. | def Zmkp(YKHO, H5ew):
try:
return YKHO.config[H5ew]
except KeyError as e:
print("Error, config key '%s' does not exist" % tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew):\n H5ew = H5ew.lower()\n if H5ew in YKHO.data:\n return YKHO.data[H5ew]\n else:\n raise ValueError(\"Key '{}' not in config file.\".format(H5ew))",
"def NMoC(YKHO, H5ew):\n return YKHO.config.get(H5ew)",
"def NMoC(H5ew):\n return viqz[H5ew]",
"def NMoC(YKHO, ... | [
"0.81071675",
"0.80765414",
"0.80570936",
"0.80344915",
"0.7950881",
"0.78651243",
"0.7793112",
"0.7768677",
"0.77635264",
"0.7759602",
"0.77143985",
"0.7705416",
"0.7697209",
"0.7697209",
"0.76882803",
"0.76581156",
"0.7621744",
"0.7577626",
"0.7573727",
"0.7558124",
"0.7531... | 0.8331643 | 0 |
Calculate autocorrelation function for the residuals of the current model. | def PX8V(YKHO, vVbW=0):
return rLdf.Series(index=vVbW, data=GyCZ(YKHO.residuals, vVbW)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BE4c(YKHO):\n LVAh = YKHO.signal_raw[:, 1]\n HJNt = wEsz.convolve(LVAh, LVAh[::-1])\n YKHO._r = HJNt[YKHO.n - 1:YKHO.n + YKHO.N]",
"def fSQ5(WKvO):\n fsgT = (WKvO - oyIN.mean(WKvO)) / oyIN.std(WKvO)\n Aofo = oyIN.correlate(fsgT, fsgT, mode='full')\n return Aofo[int(Aofo.size / 2):] / len(fs... | [
"0.7616111",
"0.71740127",
"0.7148742",
"0.7009965",
"0.691129",
"0.6802974",
"0.67871946",
"0.6677525",
"0.66737014",
"0.6609127",
"0.65810823",
"0.65639406",
"0.6560822",
"0.6484085",
"0.64412165",
"0.6428677",
"0.64278513",
"0.63344747",
"0.6262582",
"0.6251773",
"0.621862... | 0.7107928 | 3 |
Calculate the median/mean of squared errors of the current model | def hkHB(YKHO, BjRM=False):
if BjRM:
return oyIN.nanmedian((YKHO.residuals ** 2).values)
else:
return oyIN.nanmean((YKHO.residuals ** 2).values) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iAxY(W061, C3ST):\n from sklearn.metrics import mean_squared_error\n return oyIN.sqrt(mean_squared_error(W061, C3ST))",
"def iAxY(UAju):\n return JBMS([P1dF ** 2 for P1dF in UAju]) ** 0.5",
"def iAxY(Kg06, pLOH):\n return oyIN.sqrt(((Kg06 - pLOH) ** 2).mean())",
"def ys9E(W061, TBxD):\n re... | [
"0.70031136",
"0.6916312",
"0.6767674",
"0.64775604",
"0.63639724",
"0.6316485",
"0.6298733",
"0.6252812",
"0.6250608",
"0.62353635",
"0.6223037",
"0.6198333",
"0.6178681",
"0.6174982",
"0.61681455",
"0.6150323",
"0.6123433",
"0.61215454",
"0.6120988",
"0.61089116",
"0.610602... | 0.68976414 | 2 |
Log Errors caused by Updates. | def P1dF(QdZT, QpfX):
bo34.warning('Update "%s" caused error "%s"', QdZT, QpfX.error) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)",
"def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')",
"def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err... | [
"0.7895395",
"0.788395",
"0.78750193",
"0.7873498",
"0.78300834",
"0.7790406",
"0.7785151",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.7781314",
"0.77660847",
"0.77220625",
"0.77220625",
"0.7721968",
"0.77089256",
"0.76969343",
"0.76579255",
"0.7... | 0.7746185 | 20 |
Convert time string to epoch time | def QBVI(YCc8: str) -> int:
_c1T = hfK9(YCc8)
return int(_c1T.timestamp()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AkTL(KCHu):\n import time\n return time.mktime(time.strptime(KCHu, '%a, %d %b %Y %H:%M:%S'))",
"def k9x9(YKHO, jmHs: str) -> int:\n if jmHs:\n return int(hfK9(jmHs).timestamp()) * 1000000000\n else:\n return int(ITS7.time()) * 1000000000",
"def gWWB(YCc8, qtWj=qcWV.fromtimestamp(0... | [
"0.8186416",
"0.7920276",
"0.7917859",
"0.7583042",
"0.7528208",
"0.7521949",
"0.7440383",
"0.742603",
"0.73271346",
"0.7317897",
"0.72971606",
"0.71799374",
"0.71556723",
"0.7102623",
"0.70812446",
"0.70274764",
"0.7012275",
"0.6930624",
"0.68768495",
"0.6866396",
"0.6845024... | 0.6875809 | 19 |
Leaky Rectified Linear Activation Unit | def KzM8(WKvO, mVUw=0.01, mWFP='leaky_relu'):
with ZylS.name_scope(mWFP) as rrBf:
gsgt = ZylS.multiply(WKvO, mVUw, name='leak_rate')
YDYE = ZylS.maximum(WKvO, gsgt, name=rrBf)
return YDYE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KzM8(WKvO):\n return (WKvO > 0) * WKvO + (WKvO < 0) * WKvO * xZsq.alpha",
"def B5Jo(WKvO):\n return (WKvO > 0) * 1 + (WKvO < 0) * xZsq.alpha",
"def o390(mWFP):\n return _w_u(op_name='LeakyReLU', transforms={'alpha': 'slope'}, extras={'act_type': mWFP})",
"def uDhu(WKvO, Cwt5=0.1):\n WKvO = QZ... | [
"0.70164496",
"0.68879116",
"0.68018687",
"0.6771783",
"0.67261595",
"0.6656488",
"0.661433",
"0.661433",
"0.6593937",
"0.65512156",
"0.65512156",
"0.65512156",
"0.65512156",
"0.65512156",
"0.65512156",
"0.64676493",
"0.6456135",
"0.64475447",
"0.6405078",
"0.63982886",
"0.63... | 0.6338164 | 22 |
Given a tensor whose first dimension is the batch_size, and all other dimensions are elements of data, then it flattens the data so you get a [batch_size, num_elements] sized tensor | def PWgb(WKvO, mWFP='flatten'):
with ZylS.name_scope(mWFP) as rrBf:
LyhY = oyIN.product(WKvO.get_shape().as_list()[1:])
WKvO = ZylS.reshape(WKvO, [-1, LyhY], name=rrBf)
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPf0(a1PO: Tensor) -> llWB:\n return ZylS.reshape(a1PO, [ZylS.shape(a1PO)[0], -1])",
"def PWgb(k3l6):\n WNSx = k3l6.get_shape().as_list()\n return ZylS.reshape(k3l6, [-1, oyIN.prod(WNSx[1:])])",
"def nPf0(WKvO):\n ROpF = WKvO.get_shape().as_list()[1:]\n if None not in ROpF:\n return Z... | [
"0.7483674",
"0.7309027",
"0.72583634",
"0.72177166",
"0.7201464",
"0.71276486",
"0.71206605",
"0.7067383",
"0.705191",
"0.7023494",
"0.6956745",
"0.689496",
"0.6893825",
"0.688165",
"0.688165",
"0.688165",
"0.688165",
"0.68524027",
"0.6822747",
"0.67996675",
"0.67695993",
... | 0.6937786 | 11 |
Given some logits `x`, apply batch normalization to them. | def oqaw(WKvO, LT6S, dfHy, yIp6=False, vgXP=0.0, NXpY=1.0):
LVUL = ZylS.train.ExponentialMovingAverage(0.9999, dfHy)
Zpef = 1e-05
if yIp6:
JBMS, I8JS = ZylS.nn.moments(WKvO, [0, 1, 2])
else:
JBMS, I8JS = ZylS.nn.moments(WKvO, [0])
gCP_ = LVUL.apply([JBMS, I8JS])
ZylS.add_to_colle... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zYio(WKvO):\n JBMS, SRYB = ZylS.nn.moments(WKvO, axes=[0, 1, 2])\n n6Ai = WKvO.get_shape().as_list()[3]\n vgXP = ZylS.Variable(ZylS.zeros([n6Ai]))\n NXpY = ZylS.Variable(ZylS.ones([n6Ai]))\n idFg = ZylS.nn.batch_normalization(WKvO, JBMS, SRYB, vgXP, NXpY, 0.001)\n return idFg",
"def idFg(WK... | [
"0.76264006",
"0.7537511",
"0.71538913",
"0.7101998",
"0.7004729",
"0.6978585",
"0.6917004",
"0.68466574",
"0.68069",
"0.6800792",
"0.67933965",
"0.674721",
"0.67404217",
"0.6719644",
"0.67163265",
"0.6712113",
"0.6696893",
"0.6691322",
"0.6690054",
"0.6690054",
"0.6690054",
... | 0.63152486 | 60 |
Create and configure the WSGI application. | def LUif():
Ylbp = ZCgf()
P4t4 = Ylbp.app
moTT().create_task(Ylbp.db.set_bind(tgzD('db.bind')))
for VlDb in list(tgzD('web.userland.modules', [])):
sAYn = tF99(VlDb)
if hasattr(sAYn, 'api'):
RKD7.info(f'Loading userland web module: {VlDb}')
Dhkm: hU5W = getattr(sA... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mJn7() -> L2w0:\n P4t4 = LUif()\n return P4t4",
"def LUif() -> L2w0:\n GPtr = R4f_()\n HEBM = L2w0(__name__)\n if 'secret_key' in GPtr:\n HEBM.secret_key = GPtr['secret_key']\n else:\n print('Secret key missing in configuration file. Exiting.', file=HwRy.stderr)\n HwRy.... | [
"0.7839013",
"0.76159215",
"0.7534422",
"0.75240177",
"0.74595416",
"0.7442689",
"0.7396821",
"0.73819673",
"0.7369339",
"0.73658466",
"0.7364565",
"0.7316962",
"0.73114115",
"0.7296944",
"0.7288588",
"0.72803575",
"0.7275081",
"0.7272366",
"0.72688663",
"0.72680795",
"0.7263... | 0.0 | -1 |
Convert a number from any base to Decimal | def VhUU(Emd4, FGW3, P8oC):
assert 2 <= P8oC <= 36, 'Wrong base'
assert jcPM(FGW3, P8oC), 'Invalid number'
if not jcPM(FGW3, P8oC):
return None
ycBG = list(str(FGW3).upper())
u54L = len(ycBG)
Aofo = 0
ycBG.reverse()
if 2 <= P8oC <= 10:
ycBG = list(map(int, ycBG))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cke0(mLGw, osmN):\n Aofo = 0\n ewCu = 0\n while mLGw > 0:\n Aofo += mLGw % 10 * osmN ** ewCu\n ewCu += 1\n mLGw = int(mLGw / 10)\n return Aofo",
"def m9lt(mLGw, LDUZ):\n Aofo = 0\n ewCu = 0\n while mLGw > 0:\n Aofo = Aofo + mLGw % LDUZ * 10 ** ewCu\n ew... | [
"0.817785",
"0.7939549",
"0.78632885",
"0.7411418",
"0.73071945",
"0.7293894",
"0.7247713",
"0.7165347",
"0.7156238",
"0.71415436",
"0.7124539",
"0.70419145",
"0.6942189",
"0.69087696",
"0.6901773",
"0.682922",
"0.68089527",
"0.67872095",
"0.67811304",
"0.67282915",
"0.672502... | 0.71872467 | 7 |
Convert a number from decimal to any base | def esIv(Emd4, FGW3, P8oC):
assert 2 <= P8oC <= 36, 'Wrong base'
assert isinstance(FGW3, int) or FGW3.isnumeric(), 'Parameter 1 must be an int or a value of int'
dEzN = ''
gZgb = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ')
if FGW3 == 0:
return '0'
while FGW3 != 0:
K0A_ = FGW3 % P8oC
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _gLu(mLGw, P8oC):\n BHGE = '0123456789ABCDEF'\n if mLGw < P8oC:\n return BHGE[mLGw]\n else:\n return _gLu(mLGw // 2, P8oC) + BHGE[mLGw % P8oC]",
"def npVH(mLGw, P8oC):\n if mLGw <= 0:\n return '0'\n BHGE = []\n for YRbF in range(13, -1, -1):\n naF9 = P8oC ** YRbF... | [
"0.81978935",
"0.81443983",
"0.80919516",
"0.8027327",
"0.80053824",
"0.7987399",
"0.7962415",
"0.79576933",
"0.7878659",
"0.7862889",
"0.7837147",
"0.78153527",
"0.7779398",
"0.77667385",
"0.77468234",
"0.77411366",
"0.7713361",
"0.7684343",
"0.76642513",
"0.76478875",
"0.76... | 0.7227272 | 49 |
Convert a number from a base to another base | def BjZ2(Emd4, yuFp, aZxv, pcOE):
return Emd4.dec_to_any(Emd4.any_to_dec(yuFp, aZxv), pcOE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _gLu(mLGw, P8oC):\n BHGE = '0123456789ABCDEF'\n if mLGw < P8oC:\n return BHGE[mLGw]\n else:\n return _gLu(mLGw // 2, P8oC) + BHGE[mLGw % P8oC]",
"def uGJL(mLGw, LDUZ):\n bp7k = '0123456789ABCDEF'\n if mLGw % LDUZ == mLGw:\n return bp7k[mLGw]\n else:\n return uGJL... | [
"0.8440491",
"0.82842016",
"0.8238148",
"0.810779",
"0.8092644",
"0.80353",
"0.8013255",
"0.80012006",
"0.7948572",
"0.7901496",
"0.7844206",
"0.7841296",
"0.78292394",
"0.7800341",
"0.77647126",
"0.77463806",
"0.77151674",
"0.7704897",
"0.76895046",
"0.7676387",
"0.7670337",... | 0.0 | -1 |
Read image using its path. Default value is grayscale, and image is read by YCbCr format as the paper said. | def cE34(pmON, E4ec=True):
if E4ec:
return hiw8.imread(pmON, pilmode='RGB', as_gray=True).astype(oyIN.float)
else:
return hiw8.imread(pmON, pilmode='RGB').astype(oyIN.float) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cE34(pmON, E4ec=True):\n if E4ec:\n return Zxt2.misc.imread(pmON, flatten=True, mode='YCbCr').astype(oyIN.float)\n else:\n return Zxt2.misc.imread(pmON, mode='YCbCr').astype(oyIN.float)",
"def cE34(pmON, E4ec=True):\n if E4ec:\n return Zxt2.misc.imread(pmON, flatten=True, mode='... | [
"0.7784913",
"0.77687174",
"0.7768568",
"0.7764263",
"0.77573544",
"0.7730894",
"0.7532084",
"0.7340907",
"0.7340907",
"0.7330615",
"0.7280697",
"0.7225603",
"0.7204925",
"0.7124675",
"0.7084523",
"0.7017174",
"0.69266945",
"0.68974566",
"0.6896937",
"0.6882421",
"0.68813235"... | 0.6690366 | 42 |
Checks for screen edges (right, left, top) in order to invert the ball movement | def M0tI(YKHO):
if YKHO.x > YKHO.screen_rect.right or YKHO.x < YKHO.screen_rect.left:
YKHO.change_x *= -1
elif YKHO.y < YKHO.screen_rect.top:
YKHO.change_y *= -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def webq(YKHO):\n if YKHO.ball.x <= 0:\n YKHO.__dx = -YKHO.__dx\n if YKHO.ball.x >= YKHO.window.width - YKHO.ball.width:\n YKHO.__dx = -YKHO.__dx\n if YKHO.ball.y <= 0:\n YKHO.__dy = -YKHO.__dy",
"def aO5V(mawX, Vjhr, XSoh):\n if mawX.left <= 0 and XSoh[0] < 0:\n XSoh[0] =... | [
"0.7348288",
"0.7243177",
"0.7188163",
"0.69858",
"0.6955947",
"0.69491404",
"0.69457626",
"0.6936621",
"0.69267535",
"0.69267535",
"0.69251615",
"0.691094",
"0.69061273",
"0.6882182",
"0.6873465",
"0.68713355",
"0.68692535",
"0.68692535",
"0.68692535",
"0.68692535",
"0.67922... | 0.7940139 | 0 |
Updates the ball position | def QdZT(YKHO):
YKHO._check_screen_edges()
YKHO._bottom_hit()
YKHO.x += YKHO.settings.ball_speed * YKHO.change_x
YKHO.y += YKHO.settings.ball_speed * YKHO.change_y
YKHO.rect.center = (YKHO.x, YKHO.y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n YKHO.x += YKHO.settings.ball_speed\n YKHO.rect.x = YKHO.x",
"def thtg(YKHO):\n YKHO.x += YKHO._vx\n YKHO.y += YKHO._vy",
"def QdZT(YKHO):\n YKHO.position_y += YKHO.change_y\n YKHO.position_x += YKHO.change_x\n if YKHO.position_x < YKHO.radius:\n YKHO.change_x *= -1... | [
"0.83308375",
"0.81360054",
"0.80453134",
"0.7894215",
"0.7719114",
"0.75784427",
"0.7554903",
"0.74364877",
"0.7372111",
"0.73553973",
"0.7325978",
"0.73160315",
"0.73105645",
"0.72848374",
"0.7228933",
"0.72167385",
"0.72167385",
"0.72167385",
"0.717359",
"0.7143111",
"0.71... | 0.7877608 | 4 |
Other is an axis (1, 2, or 3). Returns true if this rotation is a flip through the other axes. | def L3gF(YKHO, Elif):
for YRbF, Csk6 in enumerate(YKHO.value):
YRbF = YRbF + 1
Csk6 = abs(Csk6)
if YRbF == Elif or Csk6 == Elif:
continue
return YRbF != Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BI0m(YKHO, Elif: 'AxisType') -> bool:\n ...",
"def hHld(YKHO, Elif):\n s0zx = Elif.mirror()\n return YKHO == Elif or YKHO == Elif.rotate() or YKHO == Elif.rotate(2) or (YKHO == Elif.rotate(3)) or (YKHO == s0zx) or (YKHO == s0zx.rotate()) or (YKHO == s0zx.rotate(2)) or (YKHO == s0zx.rotate(3))",
"d... | [
"0.6353904",
"0.63346356",
"0.6222347",
"0.60622835",
"0.60161257",
"0.59422845",
"0.58806074",
"0.5873889",
"0.58666503",
"0.57913077",
"0.57466274",
"0.57466274",
"0.57466274",
"0.57466274",
"0.57466274",
"0.57466274",
"0.57466274",
"0.57466274",
"0.57466274",
"0.57466274",
... | 0.0 | -1 |
Sorts a list using quicksort algorithm | def vdyO(yv6U, yKcO, TEz3):
if not type(yv6U) == list:
raise TypeError('lst must be a list')
if yKcO > len(yv6U) or TEz3 > len(yv6U):
raise IndexError('start or stopp out of bounce')
if TEz3 - yKcO < 1:
return
YRbF = yKcO
G1Hx = TEz3
csQL = yv6U[yKcO]
while G1Hx > YRb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lguw(UrXw):\n pass",
"def lguw(WHDa):\n if len(WHDa) in [0, 1]:\n return WHDa\n else:\n csQL = WHDa[0]\n _5Kr, g2pi = Qrt_(WHDa[1:], csQL)\n return lguw(g2pi) + [csQL] + lguw(_5Kr)",
"def vdyO(yv6U):\n if len(yv6U) <= 1:\n return yv6U[:]\n else:\n cs... | [
"0.8828411",
"0.842417",
"0.82805",
"0.8265463",
"0.8221924",
"0.82042754",
"0.8203483",
"0.8198819",
"0.81931",
"0.8147441",
"0.8075824",
"0.8037767",
"0.80110204",
"0.7995812",
"0.7987651",
"0.7965036",
"0.7920459",
"0.7916218",
"0.7881085",
"0.7854454",
"0.78494596",
"0.... | 0.74205774 | 60 |
Render a page displaying a form to create new entry. | def eLpg(QePW):
if QePW.method == 'POST':
L03z = H6V6.NewEntryForm(QePW.POST)
if L03z.is_valid():
leAC = L03z.cleaned_data['title']
TBsA = L03z.cleaned_data['body']
if not gnPz.is_entry(VECZ, leAC):
gnPz.save_entry(leAC, TBsA)
VECZ.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MSDF():\n return TvZl('insert.html')",
"def BdN0():\n return TvZl('new-page.html')",
"def NMoC(YKHO, QePW):\n L03z = Ldpy\n OaeV = {'form': L03z}\n return _1tc(QePW, 'new.html', OaeV)",
"def MvPD(QePW):\n return SGJU('show_new_entry.html', {}, context_instance=K1Ja(QePW))",
"def Kx2Q(... | [
"0.7916023",
"0.7422245",
"0.7319739",
"0.7314541",
"0.72804976",
"0.72516066",
"0.7251167",
"0.7240094",
"0.7213384",
"0.7205737",
"0.7184457",
"0.71656543",
"0.71095556",
"0.7086855",
"0.7068847",
"0.7060597",
"0.7058266",
"0.7057223",
"0.70139325",
"0.7009904",
"0.7005939"... | 0.6858259 | 37 |
Computes the accuracy of a model's predictions. | def OoPX(o4Jx, Crrw):
smhU = (ht2j.argmax(o4Jx, axis=1) == Crrw).sum().item()
vTdo = len(o4Jx)
return smhU / vTdo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjyh(Crrw: List[str], N6Z1: List[str]) -> float:\n gXXc = sum([1 if UXqs == o3Uj else 0 for UXqs, o3Uj in zip(Crrw, N6Z1)])\n return gXXc / len(Crrw)",
"def vjyh(yLaY, N6Z1):\n return oyIN.mean(yLaY == N6Z1)",
"def vjyh(N6Z1, yLaY):\n N6Z1 = oyIN.hstack(N6Z1)\n yLaY = oyIN.hstack(yLaY)\n ... | [
"0.822558",
"0.8193019",
"0.81929886",
"0.80226755",
"0.8017845",
"0.79755694",
"0.7950735",
"0.7919384",
"0.7909228",
"0.7905407",
"0.7905305",
"0.7903873",
"0.7894855",
"0.78830653",
"0.78731227",
"0.7864777",
"0.78485894",
"0.7843879",
"0.78401655",
"0.78354764",
"0.781861... | 0.0 | -1 |
This value can be returned by using the Ref function. Ref returns the Cloudformation generated ID of the resource in format ResourceId|ScalableDimension|ServiceNamespace | def id(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bf9h(YKHO):\n return YKHO.resource.ref",
"def id(YKHO):\n return YKHO._getValue('resource-id')",
"def PcW4(YKHO):\n raise NotImplementedError()",
"def PcW4(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 're... | [
"0.6998063",
"0.6503886",
"0.6498981",
"0.64838105",
"0.64838105",
"0.64838105",
"0.64838105",
"0.64838105",
"0.63325554",
"0.63325554",
"0.63325554",
"0.63233316",
"0.62893903",
"0.62893903",
"0.62893903",
"0.62893903",
"0.62893903",
"0.6271385",
"0.6231954",
"0.6213787",
"0... | 0.0 | -1 |
The maximum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand | def yjza(YKHO) -> h8nf[int]:
return qe4Y.get(YKHO, 'max_capacity') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zd71(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'scale_max_capacity')",
"def zd71(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'scale_max_capacity')",
"def bMih(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'max_capacity_per_scale')",
"def TVME(YKHO) -> h8nf[qe4Y.Input[float]]:\n return qe4Y.ge... | [
"0.7844559",
"0.7844559",
"0.7442242",
"0.7412852",
"0.73308396",
"0.7089878",
"0.70519596",
"0.70519596",
"0.7034122",
"0.69488657",
"0.69488657",
"0.69488657",
"0.6888642",
"0.6805221",
"0.67942333",
"0.67811656",
"0.67779386",
"0.67349046",
"0.6724937",
"0.6712899",
"0.666... | 0.6968589 | 9 |
If the named method is not present in the class, L{unpickleMethod} finds a method on the class of the instance and returns a bound method from there. | def BsMA(YKHO):
L70P = TUKh()
r8hN = SzT3('method', L70P, i2Ac)
YKHO.assertEqual(r8hN, L70P.method)
YKHO.assertIsNot(r8hN, L70P.method) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NS3q(RKN_, YEnM, Emd4):\n if YEnM and RKN_ in YEnM.__dict__:\n Emd4, YEnM = (YEnM, None)\n for Emd4 in Emd4.__mro__:\n try:\n JfyU = Emd4.__dict__[RKN_]\n except KeyError:\n pass\n else:\n break\n return JfyU.__get__(YEnM, Emd4)",
"def _Kn... | [
"0.73897237",
"0.71693057",
"0.70233405",
"0.70233405",
"0.7006385",
"0.6970601",
"0.6599825",
"0.6568422",
"0.65423435",
"0.64282703",
"0.6280742",
"0.62461823",
"0.6231692",
"0.6208193",
"0.62057537",
"0.61755115",
"0.6150884",
"0.6126963",
"0.61193436",
"0.6102939",
"0.607... | 0.61113733 | 19 |
creates heatmap based on 2D matrix By default it shown in window, but may be saved to file if out_path provided. | def qL_2(SppC, V6eb=''):
QrM1.clf()
QrM1.imshow(SppC, interpolation='none', cmap='Blues_r')
if len(V6eb) == 0:
QrM1.show()
else:
QrM1.savefig(V6eb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LTkE(YKHO):\n LZpg = QrM1.figure()\n aNZO = LZpg.add_subplot(111)\n Xn71 = aNZO.imshow(YKHO.map, cmap=YKHO.color_file)\n QrM1.colorbar(Xn71)\n if YKHO.heatmap_file is not None:\n QrM1.savefig(YKHO.heatmap_file, format=YKHO.heatmap_format)\n QrM1.close()",
"def ntd2(vb7U, MynD, n4... | [
"0.7662459",
"0.7078017",
"0.67392004",
"0.6616309",
"0.6540505",
"0.65206724",
"0.65064496",
"0.6432971",
"0.6420108",
"0.6409825",
"0.6398139",
"0.63900745",
"0.638169",
"0.63155055",
"0.6269803",
"0.62567765",
"0.6250859",
"0.6205024",
"0.61860377",
"0.61796963",
"0.614765... | 0.80241066 | 0 |
Encode to json and save to a file | def xkzz(YKHO, UXEK):
with open(UXEK, 'w') as eHNT:
eHNT.write(YKHO.as_json()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ncJT(object, nUeQ):\n with open(nUeQ, 'wb') as hlel:\n qQXR.dump(object, hlel)",
"def znGk(YKHO, nUeQ, nPrm):\n with open(nUeQ, 'w', encoding='utf-8') as eHNT:\n eHNT.write(qQXR.dumps(nPrm))",
"def uP8n(YKHO, Ux0P, YEnM):\n YKHO.upload_data(Ux0P, qQXR.dumps(YEnM).encode('utf-8'))",
... | [
"0.8188855",
"0.8136556",
"0.80992544",
"0.79489654",
"0.79486346",
"0.7885375",
"0.78836286",
"0.78310627",
"0.7804119",
"0.7794657",
"0.77776855",
"0.7777446",
"0.7771013",
"0.7764015",
"0.77587456",
"0.7751162",
"0.77442545",
"0.77425635",
"0.7741333",
"0.7733406",
"0.7732... | 0.0 | -1 |
Check if the TensorRT graph executor is present. Returns | def zHjg():
owTQ = fnfy.get_global_func('relay.op.is_tensorrt_runtime_enabled', True)
if owTQ:
return owTQ()
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gCEA(p4_k):\n return Kih9(p4_k, ['tensorflow', 'session'])",
"def fIn6():\n global plugin_is_loaded\n return grzF",
"def LRPE():\n return Hy7s.environ.get('BACKEND_TYPE', None) == 'TENSORFLOW'",
"def ChCn(cb_Q=None):\n if cb_Q is None:\n ZCRR = ZylS.group(ZylS.compat.v1.global_varia... | [
"0.62861544",
"0.6221535",
"0.62061733",
"0.6030356",
"0.6024831",
"0.6012049",
"0.5871823",
"0.58712083",
"0.5824256",
"0.57177883",
"0.56718403",
"0.5653218",
"0.5627884",
"0.5624345",
"0.5602414",
"0.5598955",
"0.5570039",
"0.5569537",
"0.55624545",
"0.55560124",
"0.554877... | 0.6555016 | 0 |
Check if nn.batch_norm is supported by TensorRT. | def _rsb(VN2L):
o8Kj, qIxc = (VN2L.attrs, VN2L.args)
if any([WKvO.checked_type.dtype != 'float32' for WKvO in qIxc]):
bo34.info('Only float32 inputs are supported for TensorRT.')
return False
if len(qIxc[0].checked_type.shape) == 5 and bJNf() < (6, 0, 1):
bo34.info('nn.batch_norm: Te... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DxXC(VN2L):\n if any([WKvO.checked_type.dtype != 'float32' for WKvO in VN2L.args]):\n bo34.info('Only float32 inputs are supported for TensorRT.')\n return False\n if wIHY() and int(VN2L.attrs.axis) == 0:\n bo34.info('nn.layer_norm: requires use_implict_batch=False.')\n return... | [
"0.7069347",
"0.6732133",
"0.6508682",
"0.6472718",
"0.6461378",
"0.6433865",
"0.6366934",
"0.634836",
"0.6341859",
"0.6262975",
"0.622661",
"0.6116905",
"0.6115394",
"0.6091238",
"0.6039021",
"0.6039021",
"0.59948874",
"0.59948874",
"0.5961663",
"0.59523743",
"0.59435284",
... | 0.70862514 | 0 |
Check if nn.conv1d is supported by TensorRT. | def iXkf(VN2L):
o8Kj, qIxc = (VN2L.attrs, VN2L.args)
if any([WKvO.checked_type.dtype != 'float32' for WKvO in qIxc]):
bo34.info('Only float32 inputs are supported for TensorRT.')
return False
if o8Kj.data_layout != 'NCW':
bo34.info('nn.conv1d: data_layout is %s but must be NCW.', o8K... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nSBy(YKHO):\n apZK = 16\n YDR7 = 3\n g4y1 = ht2j.randn(YKHO.n_data, YDR7, apZK, apZK)\n C3ST = bNic(apZK, YDR7, YKHO.n_classes, kernel_size=2)\n YKHO._test_empirical_natural_gradient(C3ST, g4y1)",
"def NdQj(YKHO):\n with QpfX.eager_mode():\n TVTK = 5\n DYuh = 2\n KUnM =... | [
"0.63274163",
"0.6266524",
"0.62277716",
"0.60970783",
"0.60533583",
"0.59800625",
"0.5867302",
"0.5828613",
"0.58085597",
"0.5705855",
"0.5632839",
"0.5613275",
"0.56039107",
"0.56039107",
"0.5577879",
"0.55730236",
"0.55697346",
"0.55526936",
"0.55345577",
"0.5532507",
"0.5... | 0.71890205 | 0 |
Check if nn.conv2d is supported by TensorRT. | def E483(VN2L):
o8Kj, qIxc = (VN2L.attrs, VN2L.args)
if any([WKvO.checked_type.dtype != 'float32' for WKvO in qIxc]):
bo34.info('Only float32 inputs are supported for TensorRT.')
return False
if o8Kj.data_layout != 'NCHW':
bo34.info('nn.conv2d: data_layout is %s but must be NCHW.', o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YCNf(YKHO):\n dixj = YKHO.watcher.analyze(layers=Rs4w.LAYER_TYPE.CONV2D)\n Csk6 = YKHO.watcher.get_details(results=dixj)\n YqPl = Csk6[Csk6['layer_type'] == 'CONV2D']\n w5mq = len(YqPl)\n YKHO.assertTrue(w5mq > 0, 'Non zero number of conv2D layers: {} found'.format(w5mq))\n YKHO.assertTrue((Y... | [
"0.63780737",
"0.63503057",
"0.6325344",
"0.62897944",
"0.6146086",
"0.6116197",
"0.6083441",
"0.58937913",
"0.5858657",
"0.57901907",
"0.57901907",
"0.5738486",
"0.57180136",
"0.5714601",
"0.57059526",
"0.57025987",
"0.5682813",
"0.56660956",
"0.5640451",
"0.5639062",
"0.562... | 0.6677096 | 0 |
Check if nn.avg_pool2d is supported by TensorRT. | def p8AS(VN2L):
o8Kj, qIxc = (VN2L.attrs, VN2L.args)
if any([WKvO.checked_type.dtype != 'float32' for WKvO in qIxc]):
bo34.info('Only float32 inputs are supported for TensorRT.')
return False
if o8Kj.layout != 'NCHW':
bo34.info('nn.avg_pool2d: layout is %d but must be NCHW.', o8Kj.la... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pgu9(VN2L):\n o8Kj, qIxc = (VN2L.attrs, VN2L.args)\n if any([WKvO.checked_type.dtype != 'float32' for WKvO in qIxc]):\n bo34.info('Only float32 inputs are supported for TensorRT.')\n return False\n if o8Kj.layout != 'NCHW':\n bo34.info('nn.global_avg_pool2d: layout is %s but must ... | [
"0.738844",
"0.71606904",
"0.66603214",
"0.6497247",
"0.6435428",
"0.6287772",
"0.6007567",
"0.57790476",
"0.5736565",
"0.56863433",
"0.55912375",
"0.54845786",
"0.5483462",
"0.5396235",
"0.53267646",
"0.530953",
"0.5306523",
"0.5277516",
"0.52627784",
"0.5222133",
"0.5167926... | 0.7010909 | 2 |
Check if nn.global_avg_pool2d is supported by TensorRT. | def Pgu9(VN2L):
o8Kj, qIxc = (VN2L.attrs, VN2L.args)
if any([WKvO.checked_type.dtype != 'float32' for WKvO in qIxc]):
bo34.info('Only float32 inputs are supported for TensorRT.')
return False
if o8Kj.layout != 'NCHW':
bo34.info('nn.global_avg_pool2d: layout is %s but must be NCHW.', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dBWg(VN2L):\n o8Kj, qIxc = (VN2L.attrs, VN2L.args)\n if any([WKvO.checked_type.dtype != 'float32' for WKvO in qIxc]):\n bo34.info('Only float32 inputs are supported for TensorRT.')\n return False\n if o8Kj.layout != 'NCHW':\n bo34.info('nn.global_max_pool2d: layout is %s but must ... | [
"0.66185784",
"0.66039664",
"0.64924306",
"0.61597526",
"0.59956425",
"0.586581",
"0.55014294",
"0.5483702",
"0.5448959",
"0.53804725",
"0.53792983",
"0.53714854",
"0.52739304",
"0.5259193",
"0.5232357",
"0.5205135",
"0.5155201",
"0.50706357",
"0.50451463",
"0.50330824",
"0.5... | 0.7433163 | 0 |
Check if expand_dims is supported by TensorRT. | def e7NQ(VN2L):
o8Kj, qIxc = (VN2L.attrs, VN2L.args)
if any([WKvO.checked_type.dtype != 'float32' for WKvO in qIxc]):
bo34.info('Only float32 inputs are supported for TensorRT.')
return False
if wIHY() and int(o8Kj.axis) == 0:
bo34.info("expand_dims: can't modify batch dimension.")
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xquo(pg0t, NFEz):\n return len(pg0t.shape) == len(NFEz.split())",
"def FPkC(vhpA):\n return isinstance(vhpA, IPme.EagerTensor) or vhpA.shape.is_fully_defined()",
"def uVog(IZxK, Htse):\n ROpF = tuple(IZxK.loc.shape)\n return ROpF == Htse",
"def oCCy(ROpF):\n if ROpF is None:\n retur... | [
"0.6281628",
"0.61939555",
"0.59900165",
"0.5987869",
"0.59522843",
"0.5940737",
"0.5933974",
"0.59198177",
"0.59027433",
"0.58383816",
"0.57914484",
"0.577721",
"0.57739717",
"0.5750733",
"0.5727666",
"0.56626725",
"0.5648305",
"0.5637319",
"0.563314",
"0.5610239",
"0.560430... | 0.7460876 | 0 |
Takes three inputs, two adding bits and one carry and performs a binary addition. | def j2Mn(YKHO, jzdc, Fg_i, Z9rn) -> tuple:
j93S, Ngpo = YKHO.__half_adder__(jzdc, Fg_i)
MCOv, dg7v = YKHO.__half_adder__(Z9rn, j93S)
return (MCOv, Ngpo | dg7v) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(F8ri, TVbz, asv_):\n w7O3 = ''\n fHh6 = False\n Gozt = False\n OoXh = False\n OnWS = 8\n if F8ri >> 7 == 1:\n fHh6 = True\n if TVbz >> 7 == 1:\n Gozt = True\n for YRbF in range(OnWS):\n jzdc = F8ri & 1\n Fg_i = TVbz & 1\n _SmF = jzdc ^ Fg_i\n ... | [
"0.7983549",
"0.72951365",
"0.7194184",
"0.71640587",
"0.71396595",
"0.70486325",
"0.69202274",
"0.6859351",
"0.6826555",
"0.68083876",
"0.67808616",
"0.67808616",
"0.67808616",
"0.67774403",
"0.6745586",
"0.6734834",
"0.6729426",
"0.66836965",
"0.66836965",
"0.66836965",
"0.... | 0.0 | -1 |
Given a PlaintextBallotContest returns true if the state is representative of the expected values. | def SGVO(YKHO, ItyX: str, xLTm: int, sDa_: int, vww2: Optional[int]=None) -> bool:
if YKHO.object_id != ItyX:
POZG(f'invalid object_id: expected({ItyX}) actual({YKHO.object_id})')
return False
if len(YKHO.ballot_selections) > xLTm:
POZG(f'invalid number_selections: expected({xLTm}) actua... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fa6j(YKHO, QTBn):\n for YRbF in range(YKHO.rows):\n for r845 in range(YKHO.cols):\n if 'S' in QTBn[YRbF][r845]:\n return False\n return True",
"def BhKJ(QOe9):\n return QOe9.truth()",
"def Fa6j(YKHO, QTBn):\n return QTBn == YKHO.goal",
"def lpH8(YKHO):\n re... | [
"0.6415929",
"0.61422926",
"0.61343396",
"0.6103706",
"0.6074971",
"0.6045326",
"0.60330224",
"0.5985479",
"0.59781134",
"0.5970843",
"0.5895565",
"0.58922386",
"0.58922386",
"0.58922386",
"0.58922386",
"0.58922386",
"0.5889835",
"0.58741987",
"0.5866081",
"0.58537626",
"0.58... | 0.0 | -1 |
Creates an ArgumentParser to read the options for this script from sys.argv | def RIXt():
wvEv = j1Jz.ArgumentParser()
wvEv.add_argument('db')
wvEv.add_argument('table')
wvEv.add_argument('plot_type')
wvEv.add_argument('-l', '--log', action='store_true')
wvEv.add_argument('-o', '--out', default=None)
return wvEv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uvp4(YKHO, E0cB):\n from optparse import OptionParser\n e2h5 = 'usage: %prog [options]'\n wvEv = OptionParser(e2h5)\n xAU6, qIxc = wvEv.parse_args(E0cB)",
"def hOsf(YKHO):\n wvEv = WDqQ()\n wvEv.add_argument('config', help='The name of the .yml file that contains the matching configuration.... | [
"0.77465737",
"0.7665759",
"0.7504096",
"0.746324",
"0.74403477",
"0.7422639",
"0.738267",
"0.73610616",
"0.73497343",
"0.7331854",
"0.7328794",
"0.7320112",
"0.73120654",
"0.7296128",
"0.7279609",
"0.7252114",
"0.72500986",
"0.72500986",
"0.72489685",
"0.72357655",
"0.720874... | 0.71090037 | 36 |
Represent this object with first name and last name. | def Ku9n(YKHO):
return '{} {}'.format(YKHO.first_name, YKHO.last_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '{0}, {1}'.format(YKHO.last_name, YKHO.first_name)",
"def zAg0(YKHO):\n return '{0}, {1}'.format(YKHO.last_name, YKHO.first_name)",
"def zAg0(YKHO):\n return '{0}, {1}'.format(YKHO.last_name, YKHO.first_name)",
"def zAg0(YKHO):\n return '{0}, {1}'.format(YKHO.last_name, Y... | [
"0.7929602",
"0.79208565",
"0.79208565",
"0.79208565",
"0.7811307",
"0.78101027",
"0.78010976",
"0.7765645",
"0.7761579",
"0.7761579",
"0.7759517",
"0.7759517",
"0.7759517",
"0.77489144",
"0.77297306",
"0.77297306",
"0.77297306",
"0.7726923",
"0.7724463",
"0.77169275",
"0.769... | 0.0 | -1 |
Collect subnets from VPC / region | def gyb2():
QYvk = []
dVwT = []
for YRbF in x0hE.describe_subnets()['Subnets']:
QYvk.append(YRbF['CidrBlock'])
for YRbF in QYvk:
WKvO, LVAh = YRbF.split('/')
NkwF = WKvO + ',' + LVAh + ',' + '1' + ',' + str(vHj7)
dVwT.append(NkwF)
return dVwT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npkd(zn0c, Dwtb, gezv, HPIM):\n x2oU = P8oC.get_availability_zones(zn0c)\n FVdW = P8oC.create_subnets(Dwtb, len(x2oU))\n y8AV = []\n for or8S, drZr in enumerate(FVdW):\n y8AV.append(wDYe('Subnet' + str(or8S + 1), CidrBlock=drZr, MapPublicIpOnLaunch=True, VpcId=FL8s(gezv), Tags=A_Eo(Name=HPIM... | [
"0.75250393",
"0.7259442",
"0.7253815",
"0.70884436",
"0.7078785",
"0.6964205",
"0.6949858",
"0.6949858",
"0.6917056",
"0.6847779",
"0.6847779",
"0.6847779",
"0.67845905",
"0.678366",
"0.6773151",
"0.67418605",
"0.6708199",
"0.6708199",
"0.6708199",
"0.667858",
"0.6673973",
... | 0.6641377 | 23 |
Get the input args for the command | def y7_v(YKHO):
if not hasattr(YKHO, '_command_args'):
YKHO._parse_command(YKHO.get_unique_command_id())
return YKHO._command_args | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cnr0(YKHO):\n return YKHO.cmd_args",
"def Cnr0(YKHO):\n return YKHO.cmd_args",
"def dfWf(YKHO):\n return YKHO._cmd_args",
"def QRiV() -> x1iM[str,]:\n qIxc = HwRy.argv[1:]\n G9jH.debug(f'SYS ARGS: {HwRy.argv[1:]}')\n for YRbF in range(len(qIxc)):\n qIxc[YRbF] = uwaB.INPUT_CHALL_D... | [
"0.7978957",
"0.7978957",
"0.78223497",
"0.7804065",
"0.77906233",
"0.77821076",
"0.77821076",
"0.77821076",
"0.7746664",
"0.7742026",
"0.7742026",
"0.7742026",
"0.7742026",
"0.7742026",
"0.7742026",
"0.7742026",
"0.7742026",
"0.7742026",
"0.7742026",
"0.76719666",
"0.7668461... | 0.7197073 | 56 |
Get the input args for the command | def VKID(YKHO):
if not hasattr(YKHO, '_command_info'):
YKHO._command_info = ''
return YKHO._command_info | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cnr0(YKHO):\n return YKHO.cmd_args",
"def Cnr0(YKHO):\n return YKHO.cmd_args",
"def dfWf(YKHO):\n return YKHO._cmd_args",
"def QRiV() -> x1iM[str,]:\n qIxc = HwRy.argv[1:]\n G9jH.debug(f'SYS ARGS: {HwRy.argv[1:]}')\n for YRbF in range(len(qIxc)):\n qIxc[YRbF] = uwaB.INPUT_CHALL_D... | [
"0.7977083",
"0.7977083",
"0.7820454",
"0.78052133",
"0.77900696",
"0.7782999",
"0.7782999",
"0.7782999",
"0.774451",
"0.77431685",
"0.77431685",
"0.77431685",
"0.77431685",
"0.77431685",
"0.77431685",
"0.77431685",
"0.77431685",
"0.77431685",
"0.77431685",
"0.76739454",
"0.7... | 0.0 | -1 |
Get the commands unique id. | def B_0W(YKHO):
return YKHO._command_str | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B_0W(YKHO) -> str:\n return YKHO._command_str",
"def _7aX(YKHO):\n return YKHO.command_id",
"def LxNe(YKHO):\n return YKHO._last_id",
"def unpH(YKHO):\n oUZx, id = YKHO._manual_send_receive(YKHO.p2m.set_type(0).set_command(129).set_data([]).encode(), YKHO.id_len + 6)\n return id[0]",
"de... | [
"0.8795001",
"0.81486046",
"0.7707197",
"0.7333477",
"0.7333477",
"0.726089",
"0.6879459",
"0.6879459",
"0.6879459",
"0.6875131",
"0.6875131",
"0.6827042",
"0.6768035",
"0.67561096",
"0.67561096",
"0.67326117",
"0.671906",
"0.6716087",
"0.67115754",
"0.6709713",
"0.6705983",
... | 0.8781217 | 1 |
Get the last used time in seconds from epoch | def S1ko(YKHO):
if not hasattr(YKHO, '_last_used'):
YKHO._last_used = 0
return YKHO._last_used | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xhp_():\n if BjwX():\n SWek = ITS7.clock()\n else:\n SWek = ITS7.time()\n return SWek",
"def _Vy8():\n return int(ITS7.time())",
"def Qe9l():\n return int(round(ITS7.time() * 1000))",
"def uyNM():\n import time\n E3oo = int(time.time())\n E3oo = str(E3oo) + '000'\n ... | [
"0.7903748",
"0.7892909",
"0.78872156",
"0.7724829",
"0.76745504",
"0.7646814",
"0.76233387",
"0.7608144",
"0.75601757",
"0.746984",
"0.7404295",
"0.7330168",
"0.72750545",
"0.72161096",
"0.7174976",
"0.714913",
"0.714913",
"0.7123943",
"0.71008974",
"0.70803875",
"0.70557123... | 0.7206887 | 14 |
decorator. Decorated method will be called only on first access to calculate a cached property value. After that, the cached value is returned. | def VepD(eHNT):
pifW = '_%s' % eHNT.__name__
HeCJ = eHNT.__doc__
def bwzo(YEnM):
try:
return getattr(YEnM, pifW)
except AttributeError:
BWXx = eHNT(YEnM)
setattr(YEnM, pifW, BWXx)
return BWXx
return property(bwzo, doc=HeCJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NDxO(NKcE):\n izsg = '_cached_' + NKcE.__name__\n\n @property\n @xBlr.wraps(NKcE)\n def op1w(YKHO):\n try:\n return getattr(YKHO, izsg)\n except AttributeError:\n BWXx = NKcE(YKHO)\n setattr(YKHO, izsg, BWXx)\n return BWXx\n return op1w",... | [
"0.77283376",
"0.760435",
"0.7481337",
"0.74728",
"0.7459976",
"0.7459976",
"0.7327921",
"0.73008734",
"0.7280202",
"0.72800267",
"0.72600365",
"0.7244014",
"0.72318405",
"0.71887815",
"0.7159379",
"0.71549",
"0.7145256",
"0.7143974",
"0.7126706",
"0.7105844",
"0.70901954",
... | 0.6523735 | 54 |
Return text as a unicode string. text can be a 7bit ASCII string, a UTF8 encoded 8bit string, or unicode. String values are converted to unicode assuming UTF8 encoding. Unicode values are returned unchanged. | def brQJ(l5Ny):
if not isinstance(l5Ny, exCv):
TCZ_ = 'expected UTF-8 encoded string or unicode, got %s value %s'
raise TypeError(TCZ_ % (type(l5Ny), l5Ny))
if isinstance(l5Ny, QMSQ):
return l5Ny
return QMSQ(l5Ny, 'utf-8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gQoK(YKHO, l5Ny):\n try:\n l5Ny = QMSQ(l5Ny, 'utf-8')\n return l5Ny\n except TypeError:\n return l5Ny",
"def brQJ(l5Ny):\n if isinstance(l5Ny, iHh1):\n return l5Ny\n assert isinstance(l5Ny, vWp3), 'Expected bytes, unicode, or None; got %r' % type(l5Ny)\n return l5Ny... | [
"0.8471941",
"0.8209178",
"0.8166202",
"0.81092787",
"0.81089395",
"0.81089395",
"0.81089395",
"0.81089395",
"0.81027853",
"0.81027853",
"0.8089474",
"0.8083316",
"0.8083316",
"0.8083316",
"0.8083316",
"0.8083316",
"0.80749315",
"0.80230135",
"0.79914755",
"0.79914755",
"0.79... | 0.8123756 | 3 |
Mean of CrossCovariance Maximum | def ATfi(Gaon, mVUw=1, SWno=1):
Dr5b = zNig(Gaon, 1)
ywwl = zNig(Gaon, 0)
ywwl = ywwl * mVUw
Gaon = VsGh(Gaon, int(ywwl))
L5Hq = VNqG([zNig(Gaon, 0), zNig(Gaon, 1)])
for Xn71 in range(Dr5b):
L5Hq[:, Xn71] = Gaon[:, Xn71] - JBMS(Gaon[:, Xn71])
lp89 = Dr5b * (Dr5b - 1) / 2
BQxz = V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lreZ(YKHO):\n return y_hd(YKHO.X_fieldpairs) + kkse(YKHO.X_fieldpairs)",
"def _IBo(WKvO, LVAh):\n exwG = len(WKvO)\n return BJ1H(UCnk(WKvO), UCnk(LVAh)) / (exwG - 1)",
"def hlGF(EcVT):\n JBMS = sum(EcVT) / float(len(EcVT))\n try:\n return Wown(EcVT) / JBMS\n except ZeroDivisionErro... | [
"0.6712861",
"0.66721356",
"0.6506183",
"0.64835095",
"0.6465012",
"0.64615095",
"0.63865435",
"0.6386477",
"0.6379841",
"0.6356788",
"0.6331278",
"0.6322235",
"0.63044393",
"0.62980753",
"0.62843853",
"0.6275103",
"0.62497413",
"0.62268543",
"0.6226319",
"0.62140673",
"0.620... | 0.0 | -1 |
Builds a thin uNet with only model_cfg['num_filters_thin'] feature channels per layer. Up convolutions are removed Also allows adjustment for number of blocks in donwsampling and upsampling paths | def gTaT(YKHO, rmWN=None, YIPF=None):
if YIPF is None:
YIPF = YKHO.model_cfg['num_blocks']
if rmWN is None:
rmWN = YKHO.model_cfg['separable']
gt4n = YKHO.model_cfg['num_filters_thin']
WKvO = YKHO.input_dropout
vMmI = []
for YRbF in range(YIPF):
WKvO, PFx8 = YKHO.block(WK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DszH(YKHO):\n MmQX = min(8, 2 ** YKHO.n_blocks)\n C3ST = hz3i(MmQX * YKHO.initial_filters, YKHO.dropout_value, MmQX * YKHO.initial_filters, innermost=True)\n for YRbF in range(YKHO.n_blocks - 1, 1, -1):\n tmGX = min(8, 2 ** int(YRbF - 2))\n RXRJ = 8 if tmGX == 8 else 2 * tmGX\n C3... | [
"0.70765924",
"0.6709759",
"0.6662671",
"0.64905924",
"0.6486988",
"0.6448576",
"0.63475424",
"0.6344685",
"0.62997216",
"0.6297353",
"0.62839305",
"0.6260853",
"0.6224163",
"0.6220335",
"0.62137336",
"0.6211172",
"0.62076557",
"0.6205123",
"0.61993575",
"0.6197621",
"0.61966... | 0.7593125 | 0 |
vectorized cross product for 3d vectors. Is ~4x faster than np.cross when arrays are smallish. Only slightly faster for large arrays. | def YZCe(jzdc: np.ndarray, Fg_i: np.ndarray) -> oyIN.ndarray:
with oyIN.errstate(invalid='ignore'):
Aofo = oyIN.array([jzdc[:, 1] * Fg_i[:, 2] - jzdc[:, 2] * Fg_i[:, 1], jzdc[:, 2] * Fg_i[:, 0] - jzdc[:, 0] * Fg_i[:, 2], jzdc[:, 0] * Fg_i[:, 1] - jzdc[:, 1] * Fg_i[:, 0]])
return Aofo.T | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ebzu(WKvO, LVAh):\n assert WKvO.ndim == 2\n assert LVAh.ndim == 2\n assert WKvO.shape[1] == 3\n assert LVAh.shape[1] == 3\n assert (WKvO.shape[0] == 1 or LVAh.shape[0] == 1) or WKvO.shape[0] == LVAh.shape[0]\n if max([WKvO.shape[0], LVAh.shape[0]]) >= 500:\n return oyIN.c_[WKvO[:, 1] *... | [
"0.7852279",
"0.75347185",
"0.7250696",
"0.72336394",
"0.717146",
"0.7118547",
"0.7089511",
"0.7071518",
"0.7059729",
"0.7058389",
"0.70485586",
"0.6971565",
"0.69653285",
"0.69418",
"0.69109565",
"0.6883174",
"0.6875294",
"0.6874373",
"0.6869747",
"0.68685424",
"0.6861119",
... | 0.7314379 | 2 |
Example view rendering a simple page. | def d6pt():
QpfX = ACzc(asset_depth=1)
QpfX['users'] = h984
return Yxsy(TvZl('admin/index.html', **QpfX)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s9lw(QePW):\n return uxvd(QePW, 'basic.html')",
"def B2Dn(QePW):\n QpfX = {}\n return _1tc(QePW, 'mitchellhadfield_design/page.html', QpfX)",
"def c9WI():\n return TvZl('index.html', **ACzc())",
"def k__4():\n return TvZl('hello.html')",
"def jR7Y():\n return TvZl('/hello.html')",
"... | [
"0.73796153",
"0.7351883",
"0.7340112",
"0.7328059",
"0.7321613",
"0.7317701",
"0.72890216",
"0.7223671",
"0.7207029",
"0.71412665",
"0.7139602",
"0.7128499",
"0.71140134",
"0.71127564",
"0.7110025",
"0.7109054",
"0.7097377",
"0.7097377",
"0.7097377",
"0.7097377",
"0.70829976... | 0.0 | -1 |
Return a string w only the numbers from the given string | def mQGg(vIwR):
return ZbWC.sub('\\D', '', vIwR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z8W7(NPoT):\n return ''.join([YRbF for YRbF in NPoT if not YRbF.isdigit()])",
"def HE8A(BWXx):\n if not BWXx:\n return ''\n return O_tH.sub('', BWXx)",
"def eEDM(l5Ny) -> str:\n return ''.join((WKvO for WKvO in l5Ny if WKvO.isdigit()))",
"def g9BZ(vIwR):\n try:\n U5bT = float... | [
"0.75093323",
"0.7381537",
"0.7281217",
"0.71991575",
"0.717032",
"0.7035211",
"0.70341295",
"0.70297486",
"0.70151633",
"0.69958323",
"0.698885",
"0.69541687",
"0.6943153",
"0.69049746",
"0.6882134",
"0.6867491",
"0.6866466",
"0.68436736",
"0.6828942",
"0.6823454",
"0.680507... | 0.814103 | 0 |
Check if the input string follows the guidelines of a valid filename | def YzRu(KCHu):
m3KK = ["'", '"', '~', '#', '%', '&', '*', '{', '}', '\\', ':', '<', '>', '?', '/', '|', '.', ',', ';']
if len(KCHu) == 0 or len(KCHu) > 50:
return False
if KCHu[0] == '_':
return False
for Z9rn in KCHu:
if Z9rn in m3KK:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KCEb(mWFP):\n wzH_ = 128\n assert len(mWFP) < wzH_, 'Filename too long'\n import string\n assert set(mWFP) < set(string.digits + string.letters + '._'), 'Only digits, letters, point and underscore allowed in filenames'",
"def hzGQ(gIsw: str) -> bool:\n n4Hf = ZbWC.match('^([\\\\.\\\\-_a-zA-Z0-... | [
"0.79966104",
"0.7953376",
"0.7732744",
"0.7714833",
"0.75916684",
"0.7586975",
"0.74617153",
"0.74489284",
"0.74471045",
"0.74379843",
"0.7376642",
"0.73498946",
"0.7276336",
"0.7267755",
"0.7264105",
"0.72218215",
"0.7197643",
"0.71626437",
"0.7161028",
"0.71531284",
"0.713... | 0.8222847 | 0 |
The set of arguments for constructing a Deployment resource. | def FIMM(Ro_8, *, HEqj: pulumi.Input[str], C3ST: pulumi.Input['DeploymentModelArgs'], NXpY: pulumi.Input['DeploymentScaleArgs'], mWFP: Optional[pulumi.Input[str]]=None, M9pC: Optional[pulumi.Input[str]]=None):
qe4Y.set(Ro_8, 'cognitive_account_id', HEqj)
qe4Y.set(Ro_8, 'model', C3ST)
qe4Y.set(Ro_8, 'scale',... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: DeploymentArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def NDTg(YKHO, JKCy, sEAN):\n raise NotImplementedError",
"def FIMM(Ro_8, kFeU: str, qIxc: FlinkApplicationDeploymentArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU... | [
"0.71014655",
"0.6481277",
"0.63965696",
"0.6384628",
"0.622907",
"0.6056465",
"0.600224",
"0.5961082",
"0.5954338",
"0.59121287",
"0.59068286",
"0.5888601",
"0.582225",
"0.5810102",
"0.58093226",
"0.58093226",
"0.5739768",
"0.5736132",
"0.57343036",
"0.5723549",
"0.5721919",... | 0.0 | -1 |
The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yFa8(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'deployment_name')",
"def E4d6(qFkF: AppsV1Api, _63S, TBsA) -> str:\n print('Create a deployment:')\n qFkF.create_namespaced_deployment(_63S, TBsA)\n print(f\"Deployment created with name '{TBsA['metadata']['name']}'\")\n return TBsA['metadata']... | [
"0.657103",
"0.6345761",
"0.63012147",
"0.63012147",
"0.61920136",
"0.618966",
"0.6152481",
"0.6114524",
"0.6049861",
"0.6049861",
"0.6028248",
"0.6003269",
"0.6003269",
"0.59800875",
"0.5842254",
"0.5842254",
"0.5842254",
"0.5842254",
"0.5815438",
"0.5811824",
"0.58029604",
... | 0.0 | -1 |
The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yFa8(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'deployment_name')",
"def E4d6(qFkF: AppsV1Api, _63S, TBsA) -> str:\n print('Create a deployment:')\n qFkF.create_namespaced_deployment(_63S, TBsA)\n print(f\"Deployment created with name '{TBsA['metadata']['name']}'\")\n return TBsA['metadata']... | [
"0.65724504",
"0.6347002",
"0.6301296",
"0.6301296",
"0.61915576",
"0.6189734",
"0.6152796",
"0.6114849",
"0.6050978",
"0.6050978",
"0.6028303",
"0.60031736",
"0.60031736",
"0.5979651",
"0.5841718",
"0.5841718",
"0.5841718",
"0.5841718",
"0.58140874",
"0.58133245",
"0.5804575... | 0.0 | -1 |
Get an existing Deployment 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, HEqj: Optional[pulumi.Input[str]]=None, C3ST: Optional[pulumi.Input[pulumi.InputType['DeploymentModelArgs']]]=None, mWFP: Optional[pulumi.Input[str]]=None, M9pC: Optional[pulumi.Input[str]]=None, NXpY: Optional[pulumi.Input[pulumi.I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, GikI: Optional[pulumi.Input[str]]=None, g9KT: Optional[pulumi.Input[str]]=None, XkTm: Optional[pulumi.Input[str]]=None, zOZf: Optional[pulumi.Input[str]]=None, CPRt: Optional[pulumi.Input[str]]=None) -> 'SharedflowDeployment':\... | [
"0.60475326",
"0.59036374",
"0.5900023",
"0.58869207",
"0.5833041",
"0.5823721",
"0.581934",
"0.58095086",
"0.58066636",
"0.5761736",
"0.57418483",
"0.5721538",
"0.56872743",
"0.5680198",
"0.5678573",
"0.56731725",
"0.5644814",
"0.56387013",
"0.5594346",
"0.5575834",
"0.55470... | 0.6540791 | 0 |
The name of the Cognitive Services Account Deployment. Changing this forces a new resource to be created. | def mWFP(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yFa8(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'deployment_name')",
"def E4d6(qFkF: AppsV1Api, _63S, TBsA) -> str:\n print('Create a deployment:')\n qFkF.create_namespaced_deployment(_63S, TBsA)\n print(f\"Deployment created with name '{TBsA['metadata']['name']}'\")\n return TBsA['metadata']... | [
"0.65724504",
"0.6347002",
"0.6301296",
"0.6301296",
"0.61915576",
"0.6189734",
"0.6152796",
"0.6114849",
"0.6050978",
"0.6050978",
"0.6028303",
"0.60031736",
"0.60031736",
"0.5979651",
"0.5841718",
"0.5841718",
"0.5841718",
"0.5841718",
"0.58140874",
"0.58133245",
"0.5804575... | 0.0 | -1 |
compute the confidence interval | def Q7bw(YKHO, ywwl, WTkW, mO4j):
vU9r = 2 * WTkW / ywwl
_gRY = oyIN.pi ** 2 * (mO4j * ywwl ** 2) / (3 * YKHO.delta)
return oyIN.sqrt(vU9r * oyIN.log(_gRY)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dKbu(nPrm):\n jzdc = 1.0 * oyIN.array(nPrm)\n r8hN = oyIN.mean(jzdc)\n M1Jx = oyIN.std(jzdc)\n TlDD = 1.96 * (M1Jx / oyIN.sqrt(len(jzdc)))\n return (oyIN.round(r8hN, 2), oyIN.round(TlDD, 2))",
"def mjJ1(WKvO, WTkW, CQwJ):\n CLNC = ppsq(WKvO, WTkW, CQwJ)\n d2DU = AbYn(WKvO, WTkW, CQwJ)\n ... | [
"0.7576428",
"0.7408869",
"0.73895884",
"0.7381442",
"0.73661923",
"0.72341275",
"0.7195572",
"0.7191464",
"0.7176586",
"0.7174947",
"0.717167",
"0.717167",
"0.717167",
"0.717167",
"0.71437335",
"0.7142589",
"0.7085136",
"0.7085136",
"0.7085136",
"0.7085136",
"0.70726883",
... | 0.0 | -1 |
Ensures a unique slug field by appending an integer counter to duplicate slugs. For instance, if you save an object titled Daily Roundup, and the slug dailyroundup is already taken, this function will try dailyroundup2, dailyroundup3, dailyroundup4, etc, until a unique value is found. | def aJ0f(K8rv, aSsS):
from django.template.defaultfilters import slugify
s5ru = slugify(K8rv)
if s5ru in aSsS:
import re
el9A = re.compile('-\\d+$')
ewCu = 2
s5ru = '%s-%i' % (s5ru, ewCu)
while s5ru in aSsS:
s5ru = re.sub(el9A, '-%i' % ewCu, s5ru)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def clH0(YKHO, s5ru):\n INFh = YKHO._slugs.keys()\n ewCu = 1\n Tr7p = s5ru\n while ewCu < 1000000:\n if Tr7p in INFh:\n Tr7p = '%s-%i' % (s5ru, ewCu)\n ewCu += 1\n else:\n return Tr7p\n raise nv0U(\"Exception when trying to make slug '%s' unique\" % s5r... | [
"0.7938572",
"0.7612523",
"0.7612523",
"0.7493159",
"0.74722457",
"0.7438553",
"0.73513585",
"0.7258415",
"0.71747",
"0.7079235",
"0.70684236",
"0.6891232",
"0.68734074",
"0.6868163",
"0.6862039",
"0.68082744",
"0.6750677",
"0.6675058",
"0.66596305",
"0.66593605",
"0.6642851"... | 0.6956233 | 11 |
Creates an embed to show information about the bot. | def aBvW(YKHO, UpNQ, DgAC, HwSA, xMux, wQcs, DpZH, EKFi):
Q1PJ = ZOrr.Embed(color=ZOrr.Color.dark_purple())
Q1PJ.title = '🤖 Official Knowledge Bot Server Invite'
Q1PJ.url = UpNQ
Q1PJ.description = 'Knowledge Bot is a bot that offers translation and dictionary utilities.'
yA1z = qcWV.utcnow()
ub... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def botinfo(YKHO, OaeV):\n Q1PJ = ZOrr.Embed(title='AmazingBot Info', color=11081003)\n Q1PJ.add_field(name='Uptime', value=str(qcWV.now() - YKHO.bot.uptimeStart)[:-7], inline=True)\n Q1PJ.add_field(name='Created On', value='2019-12-28', inline=True)\n Q1PJ.add_field(name='** **', value='** **', ... | [
"0.7543244",
"0.75161004",
"0.7509557",
"0.7498754",
"0.7427662",
"0.7379757",
"0.72347945",
"0.72263926",
"0.7218184",
"0.7143778",
"0.71102417",
"0.70913863",
"0.70815474",
"0.70671237",
"0.7063754",
"0.7034841",
"0.6991681",
"0.6900277",
"0.68862724",
"0.68635756",
"0.6816... | 0.67686784 | 21 |
Creates an embed that includes a bot invitation to a server. | def SqBE(YKHO, DpZH, BxLi, UpNQ):
Q1PJ = ZOrr.Embed(color=ZOrr.Color.dark_purple())
Q1PJ.title = '🤖 Add Knowledge Bot to your Discord Server!'
Q1PJ.description = "If you're interested in adding Knowledge Bot to your server, you'll find some links below to help you get started."
Q1PJ.add_field(name='Fam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def invite(YKHO, OaeV):\n r50I = tNAa(title=f'Invite {YKHO.bot.user.name} to your server!', color=3092790)\n r50I.add_field(name=f'Invite the bot', value=f'{FiFP('**Click Here**', f'{ZOrr.utils.oauth_url(812395879146717214)}')}', inline=False)\n r50I.add_field(name='Support server', value=f'{FiFP('*... | [
"0.7206275",
"0.70224845",
"0.6982307",
"0.69653946",
"0.6827675",
"0.67922974",
"0.677328",
"0.677109",
"0.674529",
"0.67021334",
"0.66805714",
"0.65359783",
"0.6524757",
"0.6513318",
"0.6498538",
"0.6481739",
"0.6401935",
"0.63961536",
"0.6377419",
"0.6373043",
"0.6351211",... | 0.7072019 | 1 |
Sets up the stats cog for the bot. | def eCGt(JyK9):
bo34.info('Loading Stats Cog')
JyK9.add_cog(XF8y(JyK9)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eCGt(JyK9: Bot) -> None:\n JyK9.add_cog(pUFT(JyK9))",
"async def cogstats(YKHO, OaeV: commands.Context) -> None:\n async with OaeV.typing():\n cHNS = await YKHO.config.all_channels()\n jLfT = await YKHO.pickems_config.all_guilds()\n sGTh: dict = {'guilds': [], 'goal_updates': {'tot... | [
"0.67706",
"0.66157174",
"0.65478885",
"0.6541388",
"0.65413034",
"0.65382457",
"0.65041554",
"0.64990604",
"0.64471966",
"0.64008605",
"0.6344624",
"0.63266826",
"0.6323602",
"0.631937",
"0.63123596",
"0.6311359",
"0.6285766",
"0.62665474",
"0.62455106",
"0.6223477",
"0.6222... | 0.8581369 | 0 |
Get the latest state of the sensor. | def QdZT(YKHO) -> None:
YKHO._attr_native_value = rCkj(YKHO.addresses) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZruU(YKHO):\n with YKHO.lock:\n QTBn = YKHO.sensor_state\n return QTBn",
"def QTBn(YKHO):\n return YKHO.get_lock()[YKHO._sensor]",
"def QTBn(YKHO):\n return YKHO._api.getSensorValue(YKHO._id)",
"def QTBn(YKHO):\n return YKHO._sensor.value",
"def QTBn(YKHO):\n return YKHO.collec... | [
"0.79969513",
"0.7963408",
"0.78610283",
"0.76866114",
"0.74917316",
"0.74481046",
"0.73880404",
"0.7233962",
"0.7177857",
"0.70842415",
"0.70663893",
"0.7055828",
"0.700439",
"0.6961523",
"0.69068635",
"0.6904393",
"0.68979603",
"0.68808556",
"0.6849821",
"0.6844764",
"0.676... | 0.0 | -1 |
Get current generation in MWh | def Pqup(YKHO):
return YKHO.generation | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H6tO(YKHO) -> str:\n return qe4Y.get(YKHO, 'generation')",
"def H6tO(YKHO) -> int:\n return qe4Y.get(YKHO, 'generation')",
"def JoD5(YKHO):\n return YKHO.generation",
"def H6tO(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'generation')",
"def H6tO(YKHO) -> h8nf[qe4Y.Input[float]]:\n retur... | [
"0.680844",
"0.6707195",
"0.66028583",
"0.6492762",
"0.6478011",
"0.64418936",
"0.6436359",
"0.6341989",
"0.6317797",
"0.62680656",
"0.6264849",
"0.6253042",
"0.6226793",
"0.6226793",
"0.6226793",
"0.6226793",
"0.62177235",
"0.62165254",
"0.6181464",
"0.6173582",
"0.61658436"... | 0.7025988 | 0 |
Normalizes the coordinates to the canonical representation for this manifold. See TorusW. | def NkkI(YKHO, jzdc):
return jzdc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO):\n Bcwd = YKHO.centerOfMass()\n jNOo = YKHO.coordinates()\n if not len(jNOo):\n return\n y5bX = jNOo - Bcwd\n Pwdg = oyIN.sum(y5bX * y5bX, axis=0)\n NXpY = 1 / oyIN.sqrt(oyIN.sum(Pwdg) / len(y5bX))\n a1PO = YU_E.vtkTransform()\n a1PO.Scale(NXpY, NXpY, NXpY)\n a1PO.T... | [
"0.7618391",
"0.7583501",
"0.7563135",
"0.7549743",
"0.74968034",
"0.74724644",
"0.7375677",
"0.73346525",
"0.7287945",
"0.7267545",
"0.724563",
"0.71993417",
"0.7193139",
"0.706092",
"0.7010602",
"0.6918712",
"0.68830067",
"0.6871937",
"0.6870114",
"0.6849321",
"0.6835717",
... | 0.0 | -1 |
Convert value to string. Additionally forces float values to NOT use scientific notation. | def YN4e(BWXx):
if isinstance(BWXx, float):
lOa8 = 1 if BWXx == 0.0 else abs(pBSp(PCK9(abs(BWXx))))
if BWXx > 1 or lOa8 < 4:
return str(BWXx)
return '{:{width}.{prec}f}'.format(BWXx, width=lOa8, prec=lOa8 + 4)
return str(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o7KR(BWXx: float) -> str:\n if BWXx == 0.0:\n return '0.0'\n return '{0:.5f}'.format(BWXx)",
"def S464(YKHO):\n YKHO.assertEqual(YQT8(2.346), '2.35')",
"def zAg0(YKHO):\n return str(float(YKHO))",
"def W4gw(mLGw):\n if abs(mLGw) < 1e-15:\n return '0.0'\n return '{:.6}'.for... | [
"0.75775915",
"0.7376096",
"0.7372574",
"0.73613304",
"0.73385584",
"0.71335906",
"0.7091489",
"0.7001912",
"0.6979072",
"0.6935449",
"0.69299984",
"0.6915318",
"0.6873112",
"0.68338287",
"0.6775628",
"0.6745862",
"0.67372066",
"0.67335933",
"0.6722273",
"0.6691584",
"0.66915... | 0.754881 | 1 |
Find user with `username` and `password`. If can't find matching user or password is wrong, returns False. If user is found and password is correct, returns user instance. | def NLCy(Emd4, NtEF, jTXt):
CBIr = Emd4.query.filter_by(username=NtEF).first()
if CBIr:
o7Qe = B8ni.check_password_hash(CBIr.password, jTXt)
if o7Qe:
return CBIr
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BlJI(jTXt):\n return mv1M.find_user_by_password(jTXt)",
"def NLCy(NtEF, jTXt):\n CBIr = Nc2H.find_by_username(NtEF)\n if CBIr and xLFy(CBIr.password, jTXt):\n return CBIr",
"def NLCy(NtEF, jTXt):\n CBIr = Nc2H.find_by_username(NtEF)\n if CBIr and xLFy(CBIr.password, jTXt):\n re... | [
"0.7898025",
"0.78973293",
"0.78973293",
"0.7883271",
"0.7877604",
"0.7877604",
"0.7801586",
"0.7801586",
"0.7797022",
"0.77961564",
"0.77535766",
"0.77433074",
"0.77433074",
"0.77160513",
"0.7706123",
"0.7697893",
"0.7657946",
"0.7649408",
"0.76444274",
"0.762958",
"0.761351... | 0.75681776 | 26 |
Get the latest messages received for each category | def aAqn(YKHO) -> oyIN.ndarray:
YKHO._frame_cache_lock.acquire()
YiC2 = _qLf(YKHO._child_frame_buffer)
YKHO._frame_cache_lock.release()
return YiC2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gjly(YKHO, CwLm, uJjO):\n yEHD = YKHO._session.query(uKQp).filter(nWJV(uKQp.category_id == CwLm, uKQp.receiver == uJjO)).order_by(uKQp.senddate.desc())\n return yEHD.all()",
"def Ns3L():\n fqUz, P1dF = WUre(tick=JRFe)\n if not fqUz:\n print('API request not valid:', P1dF)\n return e... | [
"0.6658755",
"0.6655581",
"0.6550651",
"0.65037674",
"0.6492202",
"0.64495194",
"0.641405",
"0.63939047",
"0.6322657",
"0.63160896",
"0.6285605",
"0.6276477",
"0.62667465",
"0.62490624",
"0.62490624",
"0.6239141",
"0.6195177",
"0.6189941",
"0.6189154",
"0.61762",
"0.6164229",... | 0.0 | -1 |
Just make all the folders up front so that don't have to worry about it | def shpD(qIxc):
for lC58 in qIxc.folders.keys():
cCCZ = '{0}/{1}'.format(qIxc.out_dir, qIxc.folders[lC58])
qIxc.folders[lC58] = cCCZ
Hy7s.system('mkdir -p {0}'.format(cCCZ))
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def odRt(YKHO):\n for Kwmb in ('forward', 'reverse'):\n eHKs = YKHO.root_path / Kwmb\n eHKs.mkdir(exist_ok=True)\n for kjp6 in vIwR.ascii_lowercase:\n Y1_7 = eHKs / kjp6\n Y1_7.mkdir(exist_ok=True)",
"def bCrc():\n tk5Y = PSrQ.work_folder\n for xtX7 in PSrQ.fol... | [
"0.7538123",
"0.74666286",
"0.7222955",
"0.72107816",
"0.7148948",
"0.710297",
"0.7079943",
"0.69968253",
"0.69473547",
"0.69139636",
"0.68864447",
"0.68513995",
"0.6824239",
"0.67786413",
"0.67659986",
"0.6762334",
"0.67221105",
"0.66985965",
"0.6696686",
"0.6696686",
"0.664... | 0.681408 | 13 |
Return the string stored in path or None if path doies not exist. | def M_9t(YKHO, pmON):
return YKHO._read(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SnfU(YKHO, pmON):\n return YKHO.get_value(pmON, '')",
"def FHki(YKHO, pmON):\n if str(pmON) in YKHO._data:\n return YKHO._data[str(pmON)][0]\n return ''",
"def nQYF(YKHO, pmON):\n mWFP = Hy7s.path.realpath(pmON)\n if mWFP.startswith('/dev/'):\n return mWFP\n else:\n r... | [
"0.7236148",
"0.691991",
"0.6820281",
"0.67746747",
"0.67181486",
"0.66256285",
"0.65779364",
"0.6561337",
"0.6561337",
"0.6561337",
"0.6561337",
"0.6561337",
"0.6561337",
"0.6545951",
"0.6519686",
"0.6480136",
"0.64647686",
"0.6365649",
"0.6365649",
"0.6365649",
"0.6365649",... | 0.0 | -1 |
Returns the state attributes. | def upgy(YKHO):
if YKHO.youtube_id is None:
return
q8_C = {cd4U: YKHO.youtube_id, G5UP: YKHO.media_title, f0v4: 100, wBpD: YKHO.volume, TCD_: mXnS.format(YKHO.youtube_id)}
if YKHO.is_playing:
q8_C[O4sb] = SXLf
else:
q8_C[O4sb] = pDXI
return q8_C | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._state_attrs",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT",
"def upgy(YKHO):\n nPrm = {}\n return nPrm",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat... | [
"0.9119719",
"0.87416553",
"0.8680505",
"0.853017",
"0.8426542",
"0.83957654",
"0.83957654",
"0.83957654",
"0.83957654",
"0.83957654",
"0.83832914",
"0.8383066",
"0.8383066",
"0.8383066",
"0.8357879",
"0.8357879",
"0.8357879",
"0.8341698",
"0.8341698",
"0.8312744",
"0.8312744... | 0.0 | -1 |
Plays a YouTube media. | def wOX5(YKHO, tQOT):
YKHO.youtube_id = tQOT
YKHO.media_title = 'Demo media title'
YKHO.is_playing = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def play_youtube(OaeV, *, bD7m):\n if OaeV.voice_client is None:\n Fil7 = OaeV.message.author.voice\n if Fil7 != None:\n taDc = OaeV.message.author\n YwkQ = taDc.voice.channel\n await YwkQ.connect()\n else:\n await OaeV.send('Go into a voice... | [
"0.7428497",
"0.71797174",
"0.7118717",
"0.6912503",
"0.68793637",
"0.6868055",
"0.6868055",
"0.67823696",
"0.67798316",
"0.6758225",
"0.6749224",
"0.6714216",
"0.6703837",
"0.66694045",
"0.6664049",
"0.66602814",
"0.6657761",
"0.6644132",
"0.6623059",
"0.6551035",
"0.6506076... | 0.8054408 | 0 |
Read the content of the file, replacing all new line characters and returns the content | def djWk(YKHO, qIxc):
try:
eHNT = open(qIxc, 'r')
return eHNT.read().replace('\n', '')
except Exception:
pass
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nwr9(qaEx):\n with open(qaEx, 'r') as eHNT:\n return eHNT.read().replace('\\n', '<eos>')",
"def Ueki(YKHO):\n kGys = YKHO._read_file(YKHO.filename)\n for kUBT, m1Oc in YKHO.replacements.iteritems():\n if m1Oc == None:\n m1Oc = ''\n kGys = kGys.replace(kUBT, m1Oc)\n ... | [
"0.7157601",
"0.69264406",
"0.6552581",
"0.6527365",
"0.6421455",
"0.62716854",
"0.6256451",
"0.6177661",
"0.6171858",
"0.61566156",
"0.61128986",
"0.60567623",
"0.6041613",
"0.6040296",
"0.5980777",
"0.597183",
"0.59544027",
"0.59284514",
"0.5921213",
"0.59140193",
"0.590669... | 0.0 | -1 |
Convert a positive number to its digit representation in a custom base. | def JCiw(exwG, P8oC):
Fg_i = len(P8oC)
BHGE = ''
while exwG > 0:
BHGE = P8oC[exwG % Fg_i] + BHGE
exwG = exwG // Fg_i
return BHGE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def npVH(mLGw, P8oC):\n if mLGw <= 0:\n return '0'\n BHGE = []\n for YRbF in range(13, -1, -1):\n naF9 = P8oC ** YRbF\n BHGE.append(str(mLGw / naF9))\n mLGw %= naF9\n return ''.join(BHGE)",
"def GTKc(mLGw, P8oC):\n BHGE = '0123456789abcdefghijklmnopqrstuvwxyz'\n if m... | [
"0.76739526",
"0.7666887",
"0.76640683",
"0.7661869",
"0.75561345",
"0.7517461",
"0.7508996",
"0.746733",
"0.74130344",
"0.7356262",
"0.7272834",
"0.72624767",
"0.7227103",
"0.7197325",
"0.7178441",
"0.7172489",
"0.714073",
"0.714073",
"0.714073",
"0.71006966",
"0.7089672",
... | 0.69968575 | 24 |
Convert the digits representation of a number from base1 to base2. | def jc4b(BHGE, s0Ej, Ntf7):
return JCiw(FpGd(BHGE, s0Ej), Ntf7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a8Pe(BHGE, s0Ej, Ntf7):\n assert 2 <= s0Ej <= 36, 'base1 is out of range: {}'.format(s0Ej)\n assert 2 <= Ntf7 <= 36, 'base2 is out of range: {}'.format(Ntf7)\n return kLcZ(int(x8I_(BHGE, s0Ej)), Ntf7)",
"def a8Pe(BHGE, s0Ej, Ntf7):\n assert 2 <= s0Ej <= 36, 'base1 is out of range: {}'.format(s0Ej... | [
"0.8151368",
"0.7999703",
"0.79240185",
"0.7914495",
"0.7830758",
"0.7739868",
"0.76473576",
"0.751522",
"0.75129074",
"0.7498499",
"0.7481562",
"0.7317718",
"0.71656114",
"0.7163562",
"0.7142703",
"0.71101016",
"0.7083319",
"0.70519376",
"0.70143914",
"0.6992603",
"0.6975015... | 0.69380313 | 24 |
Initialize a ZwaveAPIPlugin instance. | def FIMM(YKHO, *, mWFP: str, bIwZ: int, begE: str, BT4u: str='localhost', ECdu: int=8083, MKy7: str='admin', a2K8: str=None, Xhht: bool=False, QTBn: str='unknown') -> None:
YKHO.zwave_host = BT4u
YKHO.zwave_port = ECdu
YKHO.zwave_user = MKy7
YKHO.zwave_pass = a2K8
YKHO.zwave_device = begE
YKHO.f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OOlp(YKHO):\n pass",
"def FIMM(YKHO):\n YKHO.plugins = {}\n bo34.info('Starting plugin manager')",
"def OOlp(YKHO):\n if 'name' in YKHO.config:\n YKHO.software_name = YKHO.config['name']\n YKHO.xmpp.register_handler(xSpp('Software Version', t5yo('iq@type=get/software_version'), YKHO._... | [
"0.6620897",
"0.6315884",
"0.63143325",
"0.6301143",
"0.62932676",
"0.6210296",
"0.6196143",
"0.61954325",
"0.61451435",
"0.61341053",
"0.6035741",
"0.6032805",
"0.59937084",
"0.5915137",
"0.5894768",
"0.5848675",
"0.58043796",
"0.58029705",
"0.5792394",
"0.5749101",
"0.57358... | 0.5817622 | 16 |
Calculate the slope of the line joining two points. | def VMex(nJ9F, nxyw, o4D3, si3g):
if nJ9F == o4D3:
return 0
return 1.0 * (nxyw - si3g) / (nJ9F - o4D3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SY6o(YKHO, o4D3, si3g, ajwV, skBL):\n return (si3g - skBL) / (ajwV - o4D3)",
"def VMex(o4D3, si3g, ajwV, skBL):\n return (skBL - si3g) / (ajwV - o4D3)",
"def SY6o(YKHO):\n if abs(YKHO.x2 - YKHO.x1) == 0:\n return epAf.inf\n return (YKHO.y2 - YKHO.y1) / (YKHO.x2 - YKHO.x1)",
"def VMex(o... | [
"0.8563714",
"0.830449",
"0.82979023",
"0.8278517",
"0.8241496",
"0.8214713",
"0.81716615",
"0.81669456",
"0.8036517",
"0.798602",
"0.7981962",
"0.796894",
"0.78796506",
"0.7863665",
"0.78239733",
"0.7773172",
"0.77552044",
"0.7709808",
"0.77022874",
"0.7640968",
"0.76282746"... | 0.7901759 | 12 |
Initialize Home Assistant object. | def FIMM(YKHO, iyf9: CoreSys):
YKHO.coresys: _B97 = iyf9
YKHO._client: h8nf[espa] = None
YKHO._lock: V7ok.Lock = V7ok.Lock() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.hass = WRq0(0)",
"def FIMM(YKHO, P4t4):\n super(ll3L, YKHO).__init__()\n P4t4.start()\n cuiw = P4t4.session\n YKHO.memory = cuiw.service('ALMemory')\n YKHO.subscriber = YKHO.memory.subscriber('SkeletonDetector/jointsData')\n YKHO.subscriber.signal.connect(YKHO.on_human... | [
"0.67066",
"0.6632819",
"0.6623597",
"0.6623597",
"0.6623597",
"0.6623597",
"0.6610734",
"0.6458628",
"0.6447007",
"0.6423031",
"0.6374888",
"0.634342",
"0.6299792",
"0.62920105",
"0.62876076",
"0.62577665",
"0.62520105",
"0.61841446",
"0.6154366",
"0.61145705",
"0.6105742",
... | 0.0 | -1 |
Takes a directed graph digraph (represented as a dictionary) and computes the indegrees for the nodes in the graph. | def beMw(GvER):
pNZh = {Q6kx: 0 for Q6kx in GvER.keys()}
for n0tA in GvER.keys():
for THyE in GvER.get(n0tA):
pNZh[THyE] += 1
return pNZh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def beMw(GvER):\n TEPG = {}\n for Q6kx in GvER.keys():\n TEPG[Q6kx] = 0\n for Q6kx in GvER.keys():\n for QnLu in GvER[Q6kx]:\n TEPG[QnLu] = TEPG.setdefault(QnLu) + 1\n return TEPG",
"def beMw(GvER):\n TEPG = {}\n for Q6kx in GvER.keys():\n TEPG[Q6kx] = 0\n for... | [
"0.77354103",
"0.77354103",
"0.77324224",
"0.7714319",
"0.7668306",
"0.7654227",
"0.76252127",
"0.7592387",
"0.7524806",
"0.7507878",
"0.73722786",
"0.7345911",
"0.7330253",
"0.7328352",
"0.7248081",
"0.7229861",
"0.72288245",
"0.71725136",
"0.7168082",
"0.71520203",
"0.70929... | 0.7531277 | 8 |
Determine the pixel coordinate to place on image at so it is centred at the given grid location. gridLocation the grid coordinate. imSize the size of the image, defaults to the grid size. | def aJ9G(YKHO, KGtH, o0W0=None):
if o0W0 is None:
o0W0 = YKHO.gridSize
vgXP = ((YKHO.gridSize[0] - o0W0[0]) / 2, (YKHO.gridSize[1] - o0W0[1]) / 2)
return (YKHO.gridSize[0] * KGtH[0] + vgXP[0], YKHO.gridSize[1] * KGtH[1] + vgXP[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l2Tn(YKHO, rdlD, fvDH):\n zNig = YKHO.target.size\n pA0V = YKHO.board_centre.size\n dMYj = zNig.y / (1.375 * pA0V.y * YKHO.board_size)\n uf8B = pA0V.x * dMYj\n H9KT = (-YKHO.board_size * uf8B + uf8B) / 2\n M4zu = (-YKHO.board_size * uf8B + uf8B) / 2\n return (H9KT + fvDH * uf8B, M4zu + rdl... | [
"0.6536653",
"0.6427295",
"0.6221373",
"0.6202397",
"0.6101439",
"0.60646343",
"0.60349",
"0.60059106",
"0.5960707",
"0.5934588",
"0.5895641",
"0.5894492",
"0.5824967",
"0.5824967",
"0.5824967",
"0.582074",
"0.5815841",
"0.5811219",
"0.579087",
"0.5779288",
"0.5766766",
"0.... | 0.8602512 | 0 |
Getter for gridPosition property. | def lL3B(YKHO):
return YKHO._gridPosition | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aOz7(YKHO):\n return YKHO._grid_location",
"def Iuzb(YKHO):\n return [rApN.x_pos, rApN.y_pos]",
"def uHKh(YKHO):\n uHKh = YKHO._read_from_global_attr('grid_coords')\n return uHKh",
"def lL3B(YKHO, wEf2):\n YKHO._gridPosition = wEf2\n YKHO.calcNewPosition()",
"def c3EX(YKHO):\n retu... | [
"0.7909794",
"0.7584337",
"0.74873567",
"0.74592507",
"0.7280164",
"0.7087003",
"0.7087003",
"0.7087003",
"0.7087003",
"0.70444965",
"0.70091176",
"0.6997967",
"0.6997967",
"0.69688296",
"0.69688296",
"0.6929328",
"0.6929328",
"0.68967104",
"0.68903214",
"0.68903214",
"0.6890... | 0.8963261 | 0 |
Remove markup from html | def c2KV(KCHu):
return WAe0.sub('', KCHu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DVW7(l5Ny):\n RBfQ = ZbWC.compile('<.*?>')\n return RBfQ.sub('', l5Ny)",
"def jMK1(YKHO, _R2e):\n return _R2e",
"def jMK1(YKHO, _R2e):\n QryJ = ZbWC.compile('</?div[^>]*>', ZbWC.IGNORECASE)\n return QryJ.sub('', _R2e)",
"def wWmY(YKHO, _R2e, raOZ=('img', 'a')):\n if FdPd is not None:\n ... | [
"0.79775995",
"0.7974087",
"0.7858201",
"0.78480214",
"0.780209",
"0.7801497",
"0.77843916",
"0.77284944",
"0.77062917",
"0.7703165",
"0.76782817",
"0.75794184",
"0.7532278",
"0.7503409",
"0.7500551",
"0.7443049",
"0.73856896",
"0.736057",
"0.7325474",
"0.732359",
"0.7291645"... | 0.0 | -1 |
Create a postmarkup object that converts bbcode to XML snippets. Note that creating postmarkup objects is _not_ threadsafe, but rendering the html _is_ threadsafe. So typically you will need just one postmarkup instance to render the bbcode accross threads. include List or similar iterable containing the names of the t... | def eLpg(a4gM=None, DNHh=None, **B2fa):
E3sf = iePy()
Ayj4 = E3sf.tag_factory.add_tag
def McTr(ynhF, mWFP, *qIxc, **B2fa):
if a4gM is None or mWFP in a4gM:
if DNHh is not None and mWFP in DNHh:
return
Ayj4(ynhF, mWFP, *qIxc, **B2fa)
McTr(FgDa, 'b', 'stron... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(a4gM=None, DNHh=None, awbT=True, **B2fa):\n E3sf = iePy()\n Ayj4 = E3sf.tag_factory.add_tag\n\n def McTr(ynhF, mWFP, *qIxc, **B2fa):\n if a4gM is None or mWFP in a4gM:\n if DNHh is not None and mWFP in DNHh:\n return\n Ayj4(ynhF, mWFP, *qIxc, **B2fa)\n ... | [
"0.75043297",
"0.6647763",
"0.6544103",
"0.6207364",
"0.6202391",
"0.5474206",
"0.54581636",
"0.5347414",
"0.5327082",
"0.531838",
"0.5258305",
"0.51251537",
"0.5044223",
"0.50194407",
"0.49631652",
"0.489259",
"0.48861077",
"0.48595902",
"0.48400402",
"0.4826688",
"0.4822341... | 0.7530479 | 0 |
Cleans up html. Currently only removes blank tags, i.e. tags containing only whitespace. Only applies to tags without attributes. Tag removal is done recursively until there are no more blank tags. So would be completely removed. html A string containing (X)HTML | def rKep(Emd4, _R2e):
mz1x = ''
while mz1x != _R2e:
mz1x = _R2e
_R2e = Emd4._re_blank_tags.sub(u'', _R2e)
return _R2e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 jMK1(YKHO, _R2e):\n QryJ = ZbWC.compile('</?div[^>]*>', ZbWC.IGNORECASE)\n return QryJ.sub('', _R2e)",
"def jMK1(YKHO, _R2e):\n return _R2e",
... | [
"0.8495855",
"0.7809375",
"0.7705353",
"0.76825666",
"0.76825666",
"0.76825666",
"0.76762706",
"0.76664263",
"0.76595366",
"0.7608659",
"0.75994253",
"0.7560662",
"0.75511956",
"0.75233084",
"0.75094795",
"0.74425936",
"0.74215764",
"0.7391257",
"0.73481286",
"0.73154384",
"0... | 0.84777355 | 1 |