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 |
|---|---|---|---|---|---|---|
Initialize an auction. Requires a list of bidders that are attending the auction and can bid. | def FIMM(YKHO, X37y):
YKHO._bidders = X37y
YKHO._auctioneer = YSEN()
for nZ4H in X37y:
YKHO._auctioneer.register_bidder(nZ4H) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, X37y, ZfUD, RobD):\n YKHO._bidders = X37y\n YKHO._item = ZfUD\n YKHO._starting_price = RobD\n YKHO._auctioneer = YSEN(YKHO._bidders, YKHO._starting_price)",
"def FIMM(YKHO, X37y, RobD):\n YKHO._bidders = X37y\n YKHO._highest_current_bid = RobD\n YKHO._highest_current_bidder = ... | [
"0.74261135",
"0.6339849",
"0.55897886",
"0.55775404",
"0.5539653",
"0.55226266",
"0.5426949",
"0.5302378",
"0.5291593",
"0.528372",
"0.5259324",
"0.52153945",
"0.52027977",
"0.51631993",
"0.5124005",
"0.51217663",
"0.5076946",
"0.50655806",
"0.5064461",
"0.5046678",
"0.50405... | 0.79346365 | 0 |
Build learning rate. Builds learning rate from config. Learning rate schedule is built according to the learning rate config. If there is no learning rate config, optimizer learning rate is returned. | def vO51(YKHO):
if not YKHO._lr_config:
tspZ = YKHO._optimizer_config.learning_rate
else:
tspZ = _o4E[YKHO._lr_type](**YKHO._lr_config.as_dict())
if YKHO._warmup_config:
tspZ = _Gb1[YKHO._warmup_type](tspZ, **YKHO._warmup_config.as_dict())
return tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t8Q7(ONRr, K0do, lz7s=-1):\n hc6Z = None\n oHll = ONRr.name\n if oHll == 'constant_learning_rate':\n hc6Z = Seb7.Constant(K0do, last_step=lz7s)\n if oHll == 'exponential_decay_learning_rate':\n GPtr = ONRr\n hc6Z = Seb7.ExponentialDecay(K0do, GPtr.decay_steps, GPtr.decay_factor... | [
"0.740471",
"0.7255426",
"0.7142119",
"0.6983899",
"0.695154",
"0.68485224",
"0.6821002",
"0.6809516",
"0.6779392",
"0.6775517",
"0.6679199",
"0.6653828",
"0.66508543",
"0.6650463",
"0.65793234",
"0.6559902",
"0.65572834",
"0.65396976",
"0.65324676",
"0.65182894",
"0.6497175"... | 0.81681573 | 0 |
load image, returns cuda tensor | def fbMT(C7_O):
LNo8 = hnIv.open(C7_O)
LNo8 = DWkG(LNo8).float()
LNo8 = iQnE(LNo8, requires_grad=True)
LNo8 = LNo8.unsqueeze(0)
return LNo8.cuda() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DZ0a(Ux0P):\n LNo8 = hnIv.open(Ux0P).convert('RGB')\n aEZk = DWkG(LNo8).float()\n JNdT = iQnE(aEZk).unsqueeze(0)\n return JNdT.cuda()",
"def O1MR(YKHO, hbFX: str) -> llWB:\n Ux0P = Hy7s.path.join(YKHO.root, 'output', hbFX + '.jpg')\n with hnIv.open(Ux0P) as VXjJ:\n qw7D = oyIN.array(... | [
"0.83418316",
"0.74591607",
"0.72595316",
"0.7179026",
"0.713886",
"0.6898087",
"0.6725782",
"0.6711598",
"0.67114305",
"0.6683614",
"0.66531",
"0.6559475",
"0.6547596",
"0.6538703",
"0.65268356",
"0.6516286",
"0.6506275",
"0.64808065",
"0.6410097",
"0.6328036",
"0.630357",
... | 0.745242 | 2 |
Create and return a dictionary of test variables. | def jbKh(Gxl7, q_zF, EWNj):
kc1W = {'interface1': Gxl7, 'interface2': q_zF, 'interface3': EWNj, 'settings_receive': {'state': 'receive', 'iface-ref': q_zF}, 'settings_transmit': {'state': 'transmit', 'iface-ref': q_zF}, 'settings_both': {'state': 'both', 'iface-ref': q_zF}, 'settings_if2': {'state': 'both', 'iface-... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def czoV(YKHO):\n return dict()",
"def BfCH(b7m5):\n return dict([(mZ1z, BWXx) for mZ1z, BWXx in b7m5])",
"def jz9n():\n if __name__ == '__main__':\n return RYSa\n else:\n return y5Kl().get_variables()",
"def lfdS(YKHO):\n return {'variable_boolean': YKHO.variable_boolean}",
"d... | [
"0.713402",
"0.7014831",
"0.6845508",
"0.679355",
"0.6768671",
"0.65956855",
"0.655639",
"0.6466788",
"0.634339",
"0.634321",
"0.63002807",
"0.6287933",
"0.62049806",
"0.61984396",
"0.6158076",
"0.61425424",
"0.61151665",
"0.61117166",
"0.60897326",
"0.60648376",
"0.60618204"... | 0.53664434 | 79 |
Extract the date of the last update of the feed | def slWZ(LNZm, QAqp=3):
zFiD = LNZm[QAqp]
_c1T = ZbWC.findall('\\d+-\\d+-\\d+', zFiD)
return _c1T | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mn17(YKHO):\n try:\n y6Fc = hfK9(YKHO._data.get('last_updated'))\n except (ValueError, TypeError):\n y6Fc = None\n return y6Fc",
"def cV9T(YKHO):\n _c1T, ITS7 = (YKHO.data.get('update_date'), YKHO.data.get('update_time'))\n if _c1T is not None and ITS7 is not None:\n retur... | [
"0.75879025",
"0.74704224",
"0.74629664",
"0.74489754",
"0.74489754",
"0.7434016",
"0.7338316",
"0.73223543",
"0.72534186",
"0.71304536",
"0.7125095",
"0.7099713",
"0.70917124",
"0.708785",
"0.708785",
"0.70833826",
"0.69223493",
"0.6879326",
"0.6874087",
"0.68003005",
"0.679... | 0.0 | -1 |
Creates a dataframe for analysis | def bhfD(LNZm, xCD2=15):
LNZm = LNZm[xCD2:]
LNZm.remove('')
jQ3Z = rLdf.DataFrame({'col': LNZm})
jQ3Z = rLdf.DataFrame(jQ3Z.col.str.split(',', -1).tolist(), columns=['domain', 'domain_ip', 'domain_registrar', 'domain_registrar_ip', 'malware', 'url_feed'])
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fIqG():\n jQ3Z = rLdf.read_csv('data/data.csv', header=0)\n return jQ3Z",
"def LAVE(YKHO):\n return rLdf.DataFrame()",
"def fIqG(YKHO):\n jQ3Z = rLdf.DataFrame({'date': [], 'RUN': [], 'CLONE': [], 'GEN': rLdf.Series(0, index=[], dtype='int'), 'frame': rLdf.Series([], index=[], dtype='int'), 'ti... | [
"0.777685",
"0.75023323",
"0.72517425",
"0.72086865",
"0.71960413",
"0.7186794",
"0.7121306",
"0.70257306",
"0.7022812",
"0.6957896",
"0.69468117",
"0.69043684",
"0.6890469",
"0.68823653",
"0.6869039",
"0.6837101",
"0.6802049",
"0.6794379",
"0.6782717",
"0.67690843",
"0.67462... | 0.0 | -1 |
Creates a classification model. | def LQs7(n8E8, vqPN, Pha6, qV0r, Uszf, Crrw, svPB):
hQYN = Kb4M.Module(n8E8, trainable=True)
Vjqk = dict(input_ids=Pha6, input_mask=qV0r, segment_ids=Uszf)
jeOW = hQYN(inputs=Vjqk, signature='tokens', as_dict=True)
RLZ8 = jeOW['pooled_output']
wjbX = RLZ8.shape[-1].value
hfzA = ZylS.get_variable... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQs7(YKHO):\n YKHO.classifier = HmMl(max_depth=1)",
"def LQs7(YKHO, Nq1b: float=1):\n YKHO.classifier = v9Rb(max_depth=5)",
"def LQs7():\n C3ST = ileL()\n C3ST.add(l6ZH(units=128, activation='relu', input_shape=(784,)))\n C3ST.add(l6ZH(units=128, activation='relu'))\n C3ST.add(l6ZH(units=... | [
"0.7451048",
"0.716728",
"0.70753753",
"0.69427526",
"0.69337225",
"0.69306064",
"0.6929345",
"0.68631464",
"0.68004555",
"0.6769279",
"0.6737084",
"0.66838384",
"0.66709864",
"0.660953",
"0.65912193",
"0.6564333",
"0.6534873",
"0.6526978",
"0.6525293",
"0.6521778",
"0.651739... | 0.0 | -1 |
Initializes the `ParallelAtariEnv` class. Frameskip should be either a tuple (indicating a random range to choose from, with the top value exclude), or an int. | def FIMM(YKHO, BH3N, cdJN, PB_g=None, yokr=None, xF90='rgb_image', a53_=False, i2I_=None, FdGg=100000, rVT4=None, Sh0F=None):
Ch7g.__init__(YKHO, game=BH3N, num_players=cdJN, mode_num=PB_g, seed=yokr, obs_type=xF90, full_action_space=a53_, env_name=i2I_, max_cycles=FdGg, render_mode=rVT4, auto_rom_install_path=Sh0F... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, sEAN, yJ2g=4, cc1Y=30, B_yZ=84):\n super().__init__(sEAN)\n if yJ2g <= 0:\n raise ValueError('Frame skip should be strictly positive, got {}'.format(yJ2g))\n if B_yZ <= 0:\n raise ValueError('Target screen size should be strictly positive, got {}'.format(B_yZ))\n YKHO.frame... | [
"0.60820407",
"0.605091",
"0.5917827",
"0.5615865",
"0.54434",
"0.54434",
"0.542578",
"0.54251206",
"0.5412155",
"0.53935957",
"0.5377698",
"0.53718895",
"0.52744395",
"0.5064099",
"0.5039481",
"0.5036589",
"0.50060934",
"0.5005099",
"0.49867693",
"0.4950876",
"0.4918994",
... | 0.0 | -1 |
Get the DC/OS aggregated configuration object. | def dF2W(YKHO):
QkLU = YKHO.cluster_conf.get('distribution-storage', {}).get('rooturl', '')
sHl4 = YKHO.cluster_conf.get('distribution-storage', {}).get('dcosclusterpkginfopath', '')
RyXi = 'dcos-config-win'
tKaF = 'dcos-config-windows.yaml'
UyBq = 'expanded.config.full.json'
if YKHO.cluster_con... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UIm1(YKHO):\n return YKHO._read_config()",
"def GPtr(YKHO, QePW):\n GPtr = vbsH(YKHO.store, YKHO.tenant_id, YKHO.group_id, YKHO.dispatcher)\n return GPtr.app.resource()",
"def tgzD(YKHO):\n return YKHO.config",
"def ePNl(YKHO) -> 'datacube_ows.ows_configuration.OWSConfig':\n return YWvJ('d... | [
"0.63046175",
"0.62944984",
"0.6238388",
"0.6237402",
"0.618862",
"0.6149334",
"0.6149334",
"0.6149334",
"0.61477345",
"0.61470026",
"0.6144339",
"0.6144339",
"0.6126788",
"0.61242527",
"0.61002314",
"0.6081558",
"0.6052986",
"0.603883",
"0.603883",
"0.603883",
"0.603883",
... | 0.0 | -1 |
Sets the name of this Attribute. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO, mWFP: 'str'):\n if mWFP is None:\n raise ValueError('Invalid value for `name`, must not be `None`')\n YKHO._attrs['name'] = mWFP",
"def mWFP(YKHO, mWFP: 'str'):\n if mWFP is None:\n raise ValueError('Invalid value for `name`, must not be `None`')\n YKHO._attrs['name'] = m... | [
"0.83754855",
"0.83754855",
"0.83754855",
"0.83745116",
"0.8327766",
"0.8327766",
"0.83165723",
"0.83028525",
"0.83028525",
"0.83028525",
"0.83028525",
"0.83028525",
"0.82981396",
"0.827665",
"0.82648706",
"0.8261753",
"0.82248336",
"0.8199869",
"0.81744486",
"0.8150544",
"0.... | 0.0 | -1 |
Sets the attr_type of this Attribute. | def u2uV(YKHO, u2uV):
YKHO._attr_type = u2uV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TG_K(YKHO, BWXx):\n YKHO._set_one_attribute(YKHO.AttributeNames.TYPE, BWXx)\n return YKHO",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def TG_K(YKHO, type):\n YKHO._type = type",
"def Q7_x(YKHO, YsUp):\n YKHO._type = YsUp",
"def type(YKH... | [
"0.7213982",
"0.7204721",
"0.7204721",
"0.7151654",
"0.6861258",
"0.68505895",
"0.67771536",
"0.6763633",
"0.6763633",
"0.67026186",
"0.67026186",
"0.67026186",
"0.67026186",
"0.67026186",
"0.67026186",
"0.67026186",
"0.67026186",
"0.67026186",
"0.67026186",
"0.67026186",
"0.... | 0.9112552 | 0 |
Sets the old of this Attribute. | def gv2B(YKHO, gv2B):
YKHO._old = gv2B | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i4Hg(YKHO, BWXx):\n YKHO._oldvalue = BWXx",
"def QspQ(YKHO, Xm7w):\n YKHO.original = Xm7w",
"def PkCB(YKHO, ZfUD):\n YKHO._itemOld = ZfUD",
"def dqI7(YKHO, hkS8):\n if YKHO._ownsAttr:\n del YKHO._attr\n YKHO._attr = hkS8\n YKHO._ownsAttr = False",
"def eJh7(YKHO, eJh7):\n YK... | [
"0.68982327",
"0.6665491",
"0.6577958",
"0.638154",
"0.62921625",
"0.6229316",
"0.6191402",
"0.611278",
"0.6080312",
"0.6004132",
"0.5951978",
"0.5933243",
"0.58889735",
"0.5888092",
"0.5787422",
"0.5766565",
"0.57571614",
"0.5754026",
"0.57534814",
"0.5746295",
"0.56894207",... | 0.8157808 | 0 |
Sets the sensitive of this Attribute. | def fmCD(YKHO, fmCD):
YKHO._sensitive = fmCD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DOuv(YKHO, I1mm):\n YKHO._edit.set_sensitive(I1mm)",
"def SkRx(YKHO, Ty9i):\n YKHO._case_sensitive = bool(Ty9i)",
"def fmCD(YKHO, BWXx: object) -> uLKX[fmCD, object]:\n return YSxv(BWXx)",
"def t6c9(YKHO, V6BW: int, H5ew: str, BWXx: Any) -> None:\n raise NotImplementedError",
"def fQmh(YKHO... | [
"0.63211143",
"0.6299066",
"0.59507227",
"0.59470856",
"0.59218365",
"0.5794001",
"0.5791762",
"0.56184274",
"0.5614679",
"0.5613915",
"0.5533756",
"0.5533756",
"0.55251807",
"0.55160207",
"0.55123484",
"0.547593",
"0.54336107",
"0.54336107",
"0.5410096",
"0.5379793",
"0.5371... | 0.77847195 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, URbA):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Yield all prefixes of s. >>> list(prefixes('both')) ['b', 'bo', 'bot', 'both'] | def tX49(KCHu):
if KCHu:
yield from tX49(KCHu[:-1])
yield KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tX49(KCHu):\n if KCHu:\n yield from tX49(KCHu[:-1])\n yield KCHu",
"def tX49(o4sw):\n Aofo = set()\n for KCHu in o4sw:\n for YRbF in range(len(KCHu) + 1):\n Aofo.add(KCHu[:YRbF])\n return Aofo",
"def Tmdx(KCHu):\n if KCHu:\n yield from tX49(KCHu)\n ... | [
"0.7734722",
"0.6848494",
"0.67797023",
"0.64430505",
"0.63705957",
"0.6309781",
"0.62311447",
"0.6197266",
"0.6069928",
"0.5989622",
"0.59707475",
"0.5957035",
"0.5918728",
"0.5898806",
"0.58668107",
"0.58284616",
"0.57844543",
"0.5753975",
"0.5731725",
"0.5729402",
"0.57277... | 0.7561167 | 1 |
Returns all viewer controllers with the matching data_type. If none is specified all viewers are returned. | def dAJM(YKHO, sB1G: str=None) -> x1iM[Wdxq]:
if sB1G:
return [Ty9i for Ty9i in YKHO._model.getViewerCtrls().values() if Ty9i.data_type == sB1G]
return YKHO._model.getViewerCtrls().value() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UweH(YKHO, nPrm, U34r):\n Ey19 = YKHO.getCachedDataPriority(nPrm, U34r)\n if Ey19 == Icam.UNSUPPORTED:\n return []\n return [YKHO]",
"def UweH(YKHO, nPrm, U34r):\n if not YKHO.isSupportedData(nPrm, U34r):\n return []\n RCd1 = [Ty9i for Ty9i in YKHO.__views if Ty9i.getCachedDataPr... | [
"0.5442749",
"0.52813345",
"0.52406836",
"0.5139217",
"0.5138126",
"0.5070898",
"0.50426686",
"0.4992711",
"0.4975748",
"0.49484757",
"0.4938218",
"0.49378407",
"0.48736084",
"0.48676506",
"0.48650333",
"0.48596722",
"0.48541626",
"0.48378032",
"0.4827658",
"0.47887492",
"0.4... | 0.85228384 | 0 |
Returns the viewer controller with id=v_id. When no id is provided the active viewer controller is returned. | def hxl8(YKHO, Gwav=-1) -> Wdxq:
if Gwav == -1:
Gwav = YKHO.getCurrentId()
if Gwav == -1:
return None
RV2C = YKHO._model.getViewerCtrl(Gwav)
return RV2C | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xAQR(YKHO, Gwav=-1) -> vjgB:\n RV2C = YKHO.getViewerController(Gwav)\n if RV2C is None:\n return None\n return RV2C.view",
"def Dx7p(YKHO, TN1U):\n return YKHO._viewer_store.get(TN1U)",
"def N4ce(YKHO, Gwav):\n try:\n return YKHO.viewers[Gwav]\n except KeyError:\n pas... | [
"0.77898765",
"0.7000509",
"0.61816996",
"0.5584369",
"0.55620545",
"0.55558157",
"0.54195505",
"0.5347084",
"0.53087354",
"0.52126384",
"0.51951814",
"0.5139931",
"0.5132921",
"0.51321894",
"0.5107216",
"0.50781167",
"0.5052237",
"0.5037417",
"0.5021909",
"0.5020708",
"0.500... | 0.8317077 | 0 |
Set the data model of viewer with id=v_id. If id is 1 the currently viewed data will be changed. | def Dvua(YKHO, hugp: DataModel, Gwav=-1):
if Gwav == -1:
Gwav = YKHO.getCurrentId()
assert Gwav is not -1, 'Invalid set data command encountered.'
YKHO._model.getViewerCtrl(Gwav).updateModel(hugp)
YKHO._onDataChanged(Gwav) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gk3u(YKHO, Gwav=-1) -> lmOc:\n RV2C = YKHO.getViewerController(Gwav)\n if RV2C is None:\n return None\n return RV2C.model",
"def RXAo(YKHO, tsEk):\n assert isinstance(tsEk, int)\n for XUbj in YKHO.iter_alt_loc():\n XUbj.model_id = tsEk",
"def RXAo(YKHO, tsEk):\n assert isins... | [
"0.6131403",
"0.60756",
"0.59847116",
"0.5817927",
"0.57927376",
"0.5770314",
"0.57593644",
"0.57317984",
"0.56194115",
"0.560448",
"0.5580007",
"0.5569211",
"0.5569211",
"0.5569211",
"0.5569211",
"0.55426216",
"0.55426216",
"0.55269116",
"0.55227065",
"0.5503186",
"0.5477512... | 0.8150031 | 0 |
Call api with PUT method | def wo_E(bD7m, NArs=None, MOPg=None):
if NArs is None:
NArs = {}
geh0 = G4JS.put(bD7m, data=NArs, headers=MOPg)
if geh0.status_code == 401:
raise aoNC(gxEw('b2b_control:logout'))
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dfAT(YKHO):\n YKHO.http_method = 'PUT'\n pass",
"def NpNj(YKHO, *qIxc, **B2fa):\n YKHO.request('put', *qIxc, **B2fa)",
"def _ycG(YKHO, *qIxc, **B2fa):\n return YKHO._request('put', *qIxc, **B2fa)",
"def NpNj(YKHO, QePW, _sei=None):\n return oGir({'method': 'PUT'})",
"def NpNj(YKHO, QePW,... | [
"0.82589996",
"0.807299",
"0.79846513",
"0.7951082",
"0.78796244",
"0.7865456",
"0.7836686",
"0.7836686",
"0.7836686",
"0.7812054",
"0.77787644",
"0.7673365",
"0.7645013",
"0.763679",
"0.761422",
"0.7606806",
"0.7590911",
"0.7561538",
"0.75547904",
"0.75339526",
"0.7508328",
... | 0.6726155 | 87 |
Returns a JSON representation of this model. This may not be the best way to do this, and could potentially have security issues with passwords and stuff, so use with care. | def oD7C(YKHO, DNHh=None, a4gM=None, gj1Y=False):
NSNj = a4gM or YKHO._meta.get_all_field_names()
if DNHh:
NSNj = set(NSNj).difference(DNHh)
U5bT = {}
for vXX7 in NSNj:
wEf2 = getattr(YKHO, vXX7, None)
if gj1Y and 'ManyRelatedManager' in str(wEf2.__class__):
vC9B = []... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oD7C(YKHO) -> str:\n return qQXR.dumps(FZ5p(YKHO))",
"def qQXR(YKHO):\n return {'id': YKHO.id, 'name': YKHO.name}",
"def qQXR(YKHO):\n return {'id': YKHO.id, 'name': YKHO.name, 'description': YKHO.description}",
"def qQXR(YKHO):\n return {'id': YKHO.id, 'email': YKHO.email, 'username': YKHO.u... | [
"0.82321376",
"0.8188359",
"0.81811965",
"0.81076187",
"0.79839474",
"0.79013044",
"0.788613",
"0.7855928",
"0.7830969",
"0.78147477",
"0.78061277",
"0.77896816",
"0.77780133",
"0.77763",
"0.77763",
"0.77763",
"0.77763",
"0.77763",
"0.77763",
"0.77763",
"0.77763",
"0.77763"... | 0.0 | -1 |
Get user last name from saml userdata. | def qyso():
if not rts1() or 'samlUserdata' not in cuiw:
return None
jBHA = cuiw.get('samlUserdata', {}).get(tVQC.get('last_name', None), False)
return jBHA[0] if jBHA else o3cf('lastname')
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TEmR(YKHO, CBIr):\n Aofo = super(a2Gz, YKHO)._search_not_empty(CBIr)\n if Aofo is not None:\n jBHA = Aofo.get('last-name')[0]\n return jBHA\n return None",
"def zp3f(YKHO, KAOR):\n return KAOR.user.last_name",
"def zp3f(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'l... | [
"0.795066",
"0.7900529",
"0.7359204",
"0.7359204",
"0.731926",
"0.730663",
"0.7302523",
"0.7291636",
"0.7235728",
"0.7235728",
"0.7235728",
"0.7235728",
"0.71868217",
"0.7185165",
"0.7150566",
"0.71079594",
"0.7105495",
"0.7095983",
"0.7091444",
"0.7088177",
"0.70700663",
"... | 0.851126 | 0 |
Get user first name from saml userdata. | def nFov():
if not rts1() or 'samlUserdata' not in cuiw:
return None
c9ua = cuiw.get('samlUserdata', {}).get(tVQC.get('first_name', None), False)
return c9ua[0] if c9ua else o3cf('first_name')
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C79U(YKHO, CBIr):\n Aofo = super(a2Gz, YKHO)._search_not_empty(CBIr)\n if Aofo is not None:\n fcCO = Aofo.get('first-name')[0]\n return fcCO\n return None",
"def c9ua(YKHO, KAOR):\n return KAOR.user.first_name",
"def IQH1(CBIr: User) -> str:\n BaHi = CBIr.get('display_name')\n ... | [
"0.8098772",
"0.77060914",
"0.75251395",
"0.7492652",
"0.7481979",
"0.73709047",
"0.73709047",
"0.7341582",
"0.72513014",
"0.72513014",
"0.72513014",
"0.72427446",
"0.7209429",
"0.71988547",
"0.7197536",
"0.7197069",
"0.7191573",
"0.7191573",
"0.71600175",
"0.7111262",
"0.710... | 0.8692029 | 0 |
Get the HAKA organization name from the saml userdata | def _q81():
if not rts1() or 'samlUserdata' not in cuiw:
return None
qM6A = cuiw.get('samlUserdata', {}).get(tVQC.get('haka_org_name', None), False)
return qM6A[0] if qM6A else o3cf('home_organization_id')
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wnRk():\n if not rts1() or 'samlUserdata' not in cuiw:\n return None\n WnjI = cuiw.get('samlUserdata', {}).get(tVQC.get('haka_org_id', None), False)\n return WnjI[0] if WnjI else o3cf('home_organization')\n return None",
"def ejLf(YKHO):\n if YKHO.organization is not None:\n retu... | [
"0.68965375",
"0.63896024",
"0.63870764",
"0.6334648",
"0.6203369",
"0.61989516",
"0.6117481",
"0.6117481",
"0.6113731",
"0.6010214",
"0.5993357",
"0.59910196",
"0.5927182",
"0.59177977",
"0.58758307",
"0.58699155",
"0.58699155",
"0.58664364",
"0.5865138",
"0.5862659",
"0.582... | 0.77034974 | 0 |
initialize first and last name attributes | def FIMM(YKHO, c9ua, zp3f):
YKHO.first_name = c9ua
YKHO.last_name = zp3f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, c9ua, zp3f):\n YKHO.first_name = c9ua\n YKHO.last_name = zp3f",
"def FIMM(YKHO, c9ua: str, zp3f: str):\n YKHO.first_name = c9ua\n YKHO.last_name = zp3f",
"def FIMM(YKHO, fcCO, jBHA):\n YKHO.firstname = fcCO\n YKHO.lastname = jBHA",
"def WZrJ(YKHO):\n if YKHO.first_name and... | [
"0.7934533",
"0.78472304",
"0.755421",
"0.7449546",
"0.7408892",
"0.71676874",
"0.70508283",
"0.7031853",
"0.7030095",
"0.7030095",
"0.7030095",
"0.6984093",
"0.6976189",
"0.69449425",
"0.69449425",
"0.69449425",
"0.69449425",
"0.69449425",
"0.69449425",
"0.69449425",
"0.6944... | 0.7870517 | 1 |
Return a generator of the next 7 days from now on in datetime objects. | def yT4j(YKHO) -> qcWV.datetime:
wzkt = qcWV.datetime.now()
for YRbF in range(7):
yield (wzkt + qcWV.timedelta(YRbF)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r7pI(kepv):\n nTMm = []\n for YRbF in Ni9Y(7):\n jPGM = qcWV.timedelta(days=YRbF)\n nTMm.append([kepv + jPGM, 0])\n return nTMm",
"def bBTS() -> C8R4:\n while True:\n rGnA = (qcWV.now() - yKcO) % VOlW\n yield (qcWV.now() + (VOlW - rGnA))",
"def TQSj(YKHO):\n yo7_ ... | [
"0.7109937",
"0.68108976",
"0.67577344",
"0.6630712",
"0.66193426",
"0.6526025",
"0.6522371",
"0.64983505",
"0.64251584",
"0.63124466",
"0.62854475",
"0.62854475",
"0.60837054",
"0.6073607",
"0.6057206",
"0.6034821",
"0.6016849",
"0.60111105",
"0.59638196",
"0.5937342",
"0.59... | 0.7966248 | 0 |
Creates stacked Lasagne layers ConvLayer > BN > (ReLu) | def TqkB(YKHO, rN6T, ZWCE, gt4n, QJWG, _0fC, hVLt, e5sz=False, iV4n=xlaR):
Zxma = []
Zxma.append((ZWCE[0], NQE4(rN6T, gt4n, QJWG, hVLt, _0fC, flip_filters=False, nonlinearity=None) if e5sz else NQE4(rN6T, gt4n, QJWG, _0fC, hVLt, b=None, flip_filters=False, nonlinearity=None)))
Zxma.append((ZWCE[1], QLNH(Zxm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J2K6(YKHO):\n YKHO.relu = U78l.ReLU(inplace=True)\n YKHO.rpn_convs = U78l.ModuleList()\n for YRbF in range(YKHO.stacked_convs):\n Fpx_ = YKHO.in_channels if YRbF == 0 else YKHO.feat_channels\n YKHO.rpn_convs.append(R48A(Fpx_, YKHO.feat_channels, 3, stride=1, padding=1, conv_cfg=YKHO.conv... | [
"0.6989949",
"0.68998003",
"0.6885206",
"0.6829654",
"0.6765221",
"0.67376006",
"0.6705406",
"0.6701936",
"0.6692681",
"0.6608649",
"0.65809983",
"0.65574276",
"0.65439224",
"0.6541693",
"0.6533841",
"0.65119636",
"0.6456603",
"0.64468086",
"0.6408967",
"0.6391306",
"0.638709... | 0.0 | -1 |
Center images from [0, 1) to [1, 1). | def Vc_Y(Yw_3):
JBMS = 0.5
tbdD = (Yw_3 - JBMS) / JBMS
return tbdD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qm02(LNo8):\n LNo8.anchor_x = LNo8.width / 2\n LNo8.anchor_y = LNo8.height / 2",
"def qm02(LNo8):\n LNo8.anchor_x = LNo8.width / 2\n LNo8.anchor_y = LNo8.height / 2",
"def qm02(LNo8):\n LNo8.anchor_x = LNo8.width / 2\n LNo8.anchor_y = LNo8.height / 2",
"def DZIb(Nqqb):\n uB2Q = SC2F(... | [
"0.78312856",
"0.78312856",
"0.7783776",
"0.71920174",
"0.71734345",
"0.7153954",
"0.7004542",
"0.68104917",
"0.6634365",
"0.6552315",
"0.64641035",
"0.62587154",
"0.6219706",
"0.621891",
"0.6191288",
"0.61653024",
"0.6163039",
"0.6161792",
"0.6131814",
"0.61275965",
"0.60952... | 0.0 | -1 |
Match the subscriptions given the request. This is an API handler, which requires that we have an authenticated user making the request. We'll require that the user be a service account (from the main dashboard service). | def eQuI():
try:
TIRy = tBOI.Parse(QePW.get_data(), v7zd.MatchRequest())
except tBOI.ParseError as error:
return (pz3A({'messages': [{'severity': 'ERROR', 'text': '%s' % P1dF}]}), 400)
_HAr = v7zd.MatchResponse()
b32v = list(pzBS.FindMatchingConfigs(IsWc, TIRy))
b32v = nnqd.FilterSub... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D73S(YKHO, TBsA):\n return super().new_api_call_builder.request(bSFI().server('default').path('/v2/subscriptions/search').http_method(gJZr.POST).header_param(XDS4().key('Content-Type').value('application/json')).body_param(XDS4().value(TBsA)).header_param(XDS4().key('accept').value('application/json')).body... | [
"0.62784165",
"0.6232305",
"0.61924195",
"0.6183497",
"0.61393994",
"0.6048086",
"0.59341776",
"0.587738",
"0.5866468",
"0.58238655",
"0.5800167",
"0.5795715",
"0.5754786",
"0.57461286",
"0.5742718",
"0.57341784",
"0.57127285",
"0.56699026",
"0.5664698",
"0.56499666",
"0.5610... | 0.6553017 | 0 |
List all visible subscriptions based on identity. This is an API handler, which requires that we have an authenticated user making the request. We'll require that the user be a service account (from the main dashboard service). | def cZSR():
try:
WLGF = tBOI.Parse(QePW.get_data(), v7zd.ListRequest())
except tBOI.ParseError as error:
return (pz3A({'messages': [{'severity': 'ERROR', 'text': '%s' % P1dF}]}), 400)
Oj1k = v7zd.ListResponse()
b32v = list(pzBS.ListAllConfigs(IsWc))
b32v = nnqd.FilterSubscriptionsByI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XU4s(YKHO):\n return YKHO.request('getAllSubscriptions')",
"def rDYv(YKHO):\n return YKHO.__GetJson('/subscriptions', True)",
"def VOru(YKHO):\n bD7m = '{}/v2/subscriptions'.format(YKHO.url)\n Mkmy = G4JS.get(bD7m, headers=YKHO.headers_v2)\n return Mkmy.json()",
"def F1ax(UzPC, ekCf, V_D6=... | [
"0.7103038",
"0.67235404",
"0.6632215",
"0.66239876",
"0.64972353",
"0.64662254",
"0.64352137",
"0.6392601",
"0.6379294",
"0.6359858",
"0.6345347",
"0.63422376",
"0.6339138",
"0.6315095",
"0.6285763",
"0.62799305",
"0.6248933",
"0.6189641",
"0.6056249",
"0.60199046",
"0.60098... | 0.58851963 | 24 |
Return the sheet as pandas DataFrame Columns will includes row id, row number and all columns from the sheet | def Hbal(YKHO) -> 'pd.DataFrame':
import pandas as rLdf
jQ3Z = rLdf.DataFrame([rdlD.as_series() for rdlD in YKHO.rows])
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gDdR(NT__, jYoI):\n k8g3 = 'https://api.smartsheet.com/2.0/sheets/'\n bD7m = k8g3 + str(jYoI)\n WBPg = {'Authorization': 'Bearer ' + NT__, 'Content-Type': 'application/json', 'cache-control': 'no-cache'}\n Mkmy = G4JS.get(bD7m, headers=WBPg)\n Ac0Q = Mkmy.json()\n A8fR = []\n for Z9rn in A... | [
"0.7038521",
"0.6917211",
"0.6855162",
"0.6831457",
"0.6542627",
"0.6356196",
"0.62816405",
"0.6241588",
"0.62404215",
"0.62350345",
"0.62024033",
"0.61700606",
"0.6075437",
"0.6029672",
"0.60162187",
"0.59754944",
"0.5943895",
"0.5928181",
"0.5923189",
"0.59130466",
"0.58707... | 0.5955672 | 16 |
Find the lowest date in a set. | def xrpk(YKHO):
OLXh = lambda WKvO: qcWV.datetime.strptime(WKvO, '%Y-%m-%dT%H:%M:%S')
xNwH = [OLXh(tvqc['start']['dateTime'][:-2]) for tvqc in YKHO.formatted_events]
YKHO.min_date = min(xNwH).isoformat() + 'Z' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XcNI(list):\n return Qpvm(list, -1)",
"def mFQo(YKHO, usx6: List[Row], iVRZ: DateColumn) -> Qrp8:\n mQEc = [rdlD.values[iVRZ.name] for rdlD in usx6 if rdlD.values[iVRZ.name] is not None]\n if not mQEc:\n return Qrp8(-1, -1, -1)\n if not all([isinstance(BWXx, Qrp8) for BWXx in mQEc]):\n ... | [
"0.67946327",
"0.6565658",
"0.6515534",
"0.64016587",
"0.6381117",
"0.6290279",
"0.626181",
"0.626181",
"0.6243974",
"0.62126845",
"0.6111987",
"0.6085383",
"0.60632193",
"0.6060245",
"0.6060245",
"0.60158",
"0.6012896",
"0.60089004",
"0.5930456",
"0.59292114",
"0.59041256",
... | 0.72074187 | 0 |
r"""Retrieves the policies of the specified kind that are attached to a resource. The response lists only policy metadata. In particular, policy rules are omitted. | def Gr3M(YKHO, QePW, jMd6=None):
GPtr = YKHO.GetMethodConfig('ListPolicies')
return YKHO._RunMethod(GPtr, QePW, global_params=jMd6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BxXS(YKHO, **B2fa):\n YKHO.logger.debug(f'Get storage policies data')\n pB6H = 'storage/policies'\n TBsA = YKHO._make_body(B2fa)\n return YKHO._common_get(request_path=pB6H, parameters=TBsA)",
"def c3du(YKHO):\n Qabx = {}\n if qQXR is None:\n G9jH.error('No JSON module, cannot parse ... | [
"0.6249802",
"0.6172588",
"0.6171342",
"0.6105031",
"0.60641307",
"0.59876627",
"0.59138805",
"0.58983475",
"0.5791678",
"0.57553416",
"0.5743621",
"0.5697774",
"0.5693408",
"0.5625572",
"0.5622421",
"0.5579065",
"0.5552905",
"0.55381083",
"0.55351686",
"0.5480103",
"0.547283... | 0.5423988 | 24 |
Convert results class to a data frame. | def eL2g(Aofo, X9y0, JHDS, GaEE, N77f, yokr):
UXqs = '{}, {}, {}'.format(JHDS, GaEE, N77f)
usx6 = list(zip(Hs6x.repeat(X9y0), Hs6x.repeat(JHDS), Hs6x.repeat(GaEE), Hs6x.repeat(N77f), Hs6x.repeat(yokr), Aofo.iterations, [-N77f for N77f in Aofo.testing_losses], Aofo.classification_accuracies, Hs6x.repeat(UXqs)))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zaB4(YKHO):\n return rLdf.DataFrame(YKHO.results)",
"def qqPT(CQwJ):\n o8Kj = vars(CQwJ)\n CQwJ = {ZfUD[0]: ZfUD[1] for ZfUD in o8Kj.items()}\n return rLdf.Series(CQwJ)",
"def im9b(YKHO):\n na1r.debug('Creating Results Dataframes.')\n rAr2 = MWYe.TfsDataFrame(index=YKHO.twiss_df.index)\n ... | [
"0.75698775",
"0.69792444",
"0.69636357",
"0.69611144",
"0.6893116",
"0.6893116",
"0.6893116",
"0.6893116",
"0.6893116",
"0.6653173",
"0.66197115",
"0.661443",
"0.661443",
"0.6591083",
"0.6578844",
"0.653863",
"0.65054274",
"0.6498945",
"0.639657",
"0.63858455",
"0.63716954",... | 0.5695909 | 94 |
Load the items from a json file into a dict | def UlWi(VqRE=None):
if VqRE is None:
VqRE = VIJK
with open(VqRE) as nUeQ:
return qQXR.load(nUeQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V9dS(YKHO) -> dict:\n with open(YKHO.path, encoding='utf8') as wM3v:\n return qQXR.load(wM3v)",
"def lc9H(qaEx):\n with open(qaEx, 'r') as wM3v:\n cmPJ = qQXR.loads(wM3v.read())\n return cmPJ",
"def lc9H(YKHO, Ux0P):\n with open(Ux0P, 'r', encoding='utf-8') as eHNT:\n Mjw9 ... | [
"0.77533406",
"0.75500005",
"0.75115085",
"0.73858887",
"0.72544014",
"0.7246707",
"0.72351706",
"0.7215805",
"0.719867",
"0.71761054",
"0.71552604",
"0.71486694",
"0.71106184",
"0.7106499",
"0.70875293",
"0.70744884",
"0.70615727",
"0.7050797",
"0.70405436",
"0.70163465",
"0... | 0.0 | -1 |
Return a dict with counts for each item in a list. | def gbOT(p9NO):
yvT9 = {}
for geyT in p9NO:
yvT9[geyT] = 1 + yvT9.get(geyT, 0)
yvT9 = {G1Hx: Ty9i for G1Hx, Ty9i in yvT9.items()}
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bOA_(vC9B):\n return dict(((vC9B.count(WhY1), WhY1) for WhY1 in vC9B))",
"def zJXJ(vC9B):\n QTg7 = {}\n for DumB in vC9B:\n QTg7[DumB] = vC9B.count(DumB)\n return QTg7",
"def UHFx(list: list[str]) -> dict[str, int]:\n Aofo: dict[str, int] = {}\n for sjXb in list:\n if sjXb n... | [
"0.8698695",
"0.8256635",
"0.8130277",
"0.8052556",
"0.7952563",
"0.7896086",
"0.7860957",
"0.77838254",
"0.74510837",
"0.7175678",
"0.7175678",
"0.70304096",
"0.6926661",
"0.6865944",
"0.6838096",
"0.68280405",
"0.68044394",
"0.67807376",
"0.6714352",
"0.6691596",
"0.6688641... | 0.70295054 | 12 |
A function to visualize bbox in an image. | def FRsS(p4m8: str, cviu: List) -> None:
VXjJ = XC5k.imread(p4m8)
for Ty9i in cviu:
WKvO, LVAh, yzQ0, MKlR = Ty9i[2]
XC5k.rectangle(VXjJ, (int(WKvO), int(LVAh)), (int(WKvO) + int(yzQ0), int(LVAh) + int(MKlR)), (255, 0, 0), 2)
JI1i(num=None, figsize=(20, 15))
QrM1.imshow(VXjJ)
QrM1.sh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AhWl(LNo8: Image, cviu, qfpW=dJ8c, IHC3=1) -> hnIv:\n LNo8 = LNo8.astype(oyIN.uint8)\n cviu = list(map(int, cviu))\n nJ9F, nxyw, o4D3, si3g = cviu\n XC5k.rectangle(LNo8, (nJ9F, nxyw), (o4D3, si3g), qfpW, thickness=IHC3)\n return LNo8",
"def AhWl(Xn71, cviu):\n Xn71 = Xn71[:, :, (2, 1, 0)]\n... | [
"0.7996454",
"0.7857208",
"0.7833008",
"0.78213423",
"0.7734536",
"0.7685177",
"0.7674215",
"0.7434697",
"0.735096",
"0.7340203",
"0.72214866",
"0.720748",
"0.71280617",
"0.7118544",
"0.71168375",
"0.71133965",
"0.7106013",
"0.7088942",
"0.70852655",
"0.701709",
"0.70166224",... | 0.67552 | 41 |
A function to get the coordinates of the bbox. | def s_Sm(nalj: List) -> x1iM:
WKvO = [Ty9i for Ty9i in nalj[0].split(' ') if Ty9i][0]
LVAh = [Ty9i for Ty9i in nalj[1].split(' ') if Ty9i][0]
yzQ0 = [Ty9i for Ty9i in nalj[2].split(' ') if Ty9i][0]
MKlR = nalj[3].replace(')', '').strip(' ')
return [WKvO, LVAh, yzQ0, MKlR] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cviu(YKHO):\n return oyIN.array([[YKHO.position[0], YKHO.position[1]], [YKHO.position[0], YKHO.position[1]]])",
"def C1GJ(YKHO):\n JQRm = YKHO.ij_to_latlon(-1, -1)\n jjWr = YKHO.ij_to_latlon(-1, YKHO.domain_size[1] + 1)\n DtyP = YKHO.ij_to_latlon(YKHO.domain_size[0] + 1, YKHO.domain_size[1] + 1)\... | [
"0.77426827",
"0.7706961",
"0.77060497",
"0.76767373",
"0.7640586",
"0.76337373",
"0.7581156",
"0.75764585",
"0.7547281",
"0.7503402",
"0.7493702",
"0.748634",
"0.74824613",
"0.7430286",
"0.7399646",
"0.73975027",
"0.7390597",
"0.72833455",
"0.7278463",
"0.72362757",
"0.71798... | 0.0 | -1 |
A function to visualize predicted bbox in the original images. | def V0Mf(rTBW: str, DZIN: str, Nko1: str, GQXQ: str, la9G: Optional[float]=None, UXqs: Optional[str]=None) -> None:
Qfn2 = R0KQ(DZIN, Nko1)
q9VA = Qfn2[rTBW]
Aofo = B2es(q9VA)
p4m8 = GQXQ + rTBW
if la9G:
Aofo = [Ty9i for Ty9i in Aofo if Ty9i[1] > la9G]
if UXqs:
Aofo = [Ty9i for T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LOW6(VXjJ, KndY, cCrA, c8oy, wytA=(17.78, 10), ZSG5=1.5):\n LZpg = QrM1.figure(figsize=wytA, frameon=False)\n aNZO = LZpg.add_axes([0, 0, 1, 1])\n aNZO.axis('off')\n QrM1.imshow(VXjJ)\n H2v2 = VXjJ.shape[0]\n TVTK = VXjJ.shape[1]\n print('original height width', H2v2, TVTK)\n if KndY.sh... | [
"0.65823865",
"0.65720314",
"0.6529731",
"0.6527492",
"0.6513658",
"0.64943665",
"0.6445158",
"0.64396197",
"0.64396197",
"0.6414906",
"0.64066917",
"0.6338756",
"0.63340837",
"0.6320738",
"0.63176996",
"0.6312172",
"0.6292579",
"0.62914795",
"0.62855816",
"0.6285467",
"0.628... | 0.0 | -1 |
Get current locale. If locale is not defined then this method will always return ``en``, because ``en`` is default locale for all providers, excluding builtins. | def eezK(YKHO) -> str:
return YKHO.locale | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rDcu(YKHO):\n return YKHO.locale",
"def NCqB(YKHO):\n return YKHO.__locale",
"def D9im() -> str:\n IbeW = WsL5.current_app.config['LANGUAGES'].keys()\n NCqB = WsL5.request.accept_languages.best_match(IbeW)\n if NCqB is None:\n NCqB = WsL5.current_app.config['BABEL_DEFAULT_LOCALE']\n ... | [
"0.7657775",
"0.7612234",
"0.74376976",
"0.7420339",
"0.73882586",
"0.7316411",
"0.72683346",
"0.72683346",
"0.70390916",
"0.7035115",
"0.6873762",
"0.68353593",
"0.6828502",
"0.6803815",
"0.6785073",
"0.6703421",
"0.66803664",
"0.66306865",
"0.65066737",
"0.6503319",
"0.6500... | 0.8186853 | 0 |
Go to the HTML template | def kZiy():
return TvZl('angle.html', message=Is1b) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zrgm():\n return TvZl('moby.html')",
"def NMoC(YKHO):\n rPXJ = Byma.JINJA_ENVIRONMENT.get_template('homepage.html')\n YKHO.response.headers['Content-Type'] = 'text/html'\n YKHO.response.write(rPXJ.render())",
"def NMoC(YKHO):\n YKHO.response.out.write(rPXJ.render('templates/home.html', None)... | [
"0.7351337",
"0.6879176",
"0.68318635",
"0.680202",
"0.67694414",
"0.6753975",
"0.6734582",
"0.6731141",
"0.67227304",
"0.6683803",
"0.6629597",
"0.66123724",
"0.661091",
"0.6599451",
"0.6599451",
"0.6570846",
"0.6570846",
"0.6569539",
"0.6569539",
"0.6569539",
"0.6569539",
... | 0.0 | -1 |
Create and return a SQLAlchemy engine object | def PWOV(YKHO, YtR6):
if YtR6 not in WhVQ:
WhVQ[YtR6] = y2U9(YKHO.get_connection_string())
return WhVQ[YtR6] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y2U9(YKHO):\n YtR6 = f'postgresql://{YKHO.user}:{YKHO.password}@{YKHO.host}/{YKHO.database_name}'\n return y2U9(YtR6)",
"def PWOV(zk0k: Dict[str, str]) -> RyuO.engine:\n cmRX = zFcP(zk0k)\n return RyuO.create_engine(cmRX)",
"def i4ns():\n TLmj = eHDE()\n eHpk = y2U9(TLmj)\n return eHpk... | [
"0.81597525",
"0.8153145",
"0.8097202",
"0.8075674",
"0.78947854",
"0.7888983",
"0.7801927",
"0.76942235",
"0.7634041",
"0.76199454",
"0.7558489",
"0.75274974",
"0.7523355",
"0.7514134",
"0.7512558",
"0.7408449",
"0.73286974",
"0.7303014",
"0.72916454",
"0.7290844",
"0.729084... | 0.0 | -1 |
>>> has_sum(1, 3, 5) False >>> has_sum(5, 3, 5) 0 3 + 1 5 = 5 True can we make 8 or 6 (11 3 or 11 5) with the other ? if possible, then return True >>> has_sum(11, 3, 5) 2 3 + 1 5 = 11 True | def _Lkl(wjRY, exwG, r8hN):
if wjRY == 0:
return True
elif wjRY < 0:
return False
return _Lkl(wjRY - exwG, exwG, r8hN) or _Lkl(wjRY - r8hN, r8hN, exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Lkl(wjRY, exwG, r8hN):\n if wjRY == 0 or wjRY == r8hN or wjRY == exwG:\n return True\n elif wjRY < min(r8hN, exwG):\n return False\n return _Lkl(wjRY - exwG, exwG, r8hN) or _Lkl(wjRY - r8hN, exwG, r8hN)",
"def yYmD(Dhj_, FGW3):\n for YRbF, _1qI in enumerate(Dhj_):\n for zDMu... | [
"0.79041874",
"0.72908515",
"0.7200591",
"0.7156713",
"0.69549984",
"0.6735194",
"0.6734536",
"0.6603255",
"0.6595435",
"0.6555979",
"0.6525307",
"0.6522716",
"0.6447796",
"0.6399369",
"0.6366814",
"0.6366303",
"0.62765574",
"0.6274354",
"0.62656707",
"0.6246942",
"0.62359077... | 0.7303938 | 1 |
mid_point(image, list[float]) This method takes the coordinates of a box, finds the midpoint of the bottom line and draws a circle on that point. It returns the midpoint coordinate. | def HmiB(VXjJ, FlUN):
o4D3, si3g, yzQ0, MKlR = (FlUN[0], FlUN[1], FlUN[2], FlUN[3])
ajwV, skBL = (o4D3 + yzQ0, si3g + MKlR)
GlPF = int((o4D3 + ajwV) / 2)
FLhJ = int(skBL)
x1fj = (GlPF, FLhJ)
bGrB = XC5k.circle(VXjJ, x1fj, 5, (255, 0, 0), -1)
return x1fj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lKXT(cviu):\n return (0.5 * (cviu[0][0] + cviu[1][0]), 0.5 * (cviu[0][1] + cviu[1][1]))",
"def lKXT(YKHO, YRbF, eHNT):\n VXAf = YKHO.points[eHNT, :] + YKHO.points[YRbF, :]\n JE5g = VXAf / 2\n GlPF = JE5g[0]\n FLhJ = JE5g[1]\n return (GlPF, FLhJ)",
"def lKXT(lCHq, ANJu):\n WKvO, LVAh = ... | [
"0.68781984",
"0.665993",
"0.64032614",
"0.62388694",
"0.61157143",
"0.6078623",
"0.6072216",
"0.6008875",
"0.59856856",
"0.5971563",
"0.5931516",
"0.5899475",
"0.5872379",
"0.5865374",
"0.5861113",
"0.58578175",
"0.5764207",
"0.57360595",
"0.5689345",
"0.5664506",
"0.5649268... | 0.7960017 | 0 |
draw_boxes(list[list[int]], image, list[list[float]]) This method takes the indices of normalised boxes, the list of boxes themselves and draws a blue rectangle over the normalised ones. Returns the midpoints and a list of (x, y, w, h) values of normalised boxes. | def edPp(bS0K, f4IJ, DjQG):
cviu = []
tgL5 = []
for YRbF in bS0K:
WKvO = YRbF[0]
FlUN = DjQG[WKvO]
cviu.append(FlUN)
tgL5.append(HmiB(f4IJ, FlUN))
o4D3, si3g, yzQ0, MKlR = (FlUN[0], FlUN[1], FlUN[2], FlUN[3])
ajwV, skBL = (o4D3 + yzQ0, si3g + MKlR)
XC5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iNOC(LNo8, oUSw, qfpW=[], dGrG=5):\n oqQP = oUSw.shape\n if not oqQP:\n return\n if len(oqQP) != 2 or oqQP[1] != 4:\n raise ValueError('Input must be of size [N, 4]')\n for YRbF in range(oqQP[0]):\n GLmQ(LNo8, oUSw[YRbF, 1], oUSw[YRbF, 0], oUSw[YRbF, 3], oUSw[YRbF, 2], qfpW[YRb... | [
"0.742721",
"0.7203921",
"0.7097265",
"0.70578",
"0.70345044",
"0.6978408",
"0.69661856",
"0.6932163",
"0.6928918",
"0.6884686",
"0.68351525",
"0.68031126",
"0.6755338",
"0.66872823",
"0.6624791",
"0.65779805",
"0.6577729",
"0.6512889",
"0.650226",
"0.64903617",
"0.6468209",
... | 0.707223 | 3 |
Take back your vote during the day (for whom to lynch). | def dzOW(h3Xc: MessageDispatcher, Ol8d: str):
from src.trans import TIMERS
SRYB = h3Xc.game_state
if h3Xc.source not in dPXt(SRYB) or h3Xc.source in jZWR.DISCONNECTED:
return
with G5SE.reaper, G5SE.join_timer:
if SRYB.current_phase == 'join':
if h3Xc.source not in P1Qa:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNaH(YKHO):\n YKHO.vote = 1 - YKHO.vote",
"def xmSY(Emd4, CBIr, Ol8d):\n pass",
"def xmSY(Emd4, CBIr, Ol8d):\n pass",
"def WJ7P(id, OQDr):\n ne5b = _bND.query.filter_by(user_id=c5ow.id).all()\n gTzM = f'{OQDr}:{c5ow.id}:{id}'\n if not ne5b:\n v2Mw = _bND(vote=OQDr, user_id=c5ow.i... | [
"0.6154995",
"0.6004094",
"0.5860259",
"0.57840973",
"0.5761084",
"0.5733187",
"0.57320946",
"0.5710535",
"0.57060146",
"0.5690087",
"0.56654173",
"0.56452435",
"0.56292456",
"0.5607076",
"0.5597123",
"0.5513815",
"0.5504758",
"0.54999584",
"0.5497118",
"0.549184",
"0.5485402... | 0.0 | -1 |
Generates filenames for uploaded images | def nmOG(KAOR, Ux0P):
y0cW = 'photos'
kDxT = abs(hash(u'%s%s' % (qcWV.now(), Ux0P)))
CBIr = KAOR.album.user.username
return u'%s/%s/%s_%s' % (y0cW, CBIr, kDxT, Ux0P) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ger(KAOR, Ux0P):\n return P9WV(KAOR, Ux0P, 'photos')",
"def MiTW(YKHO):\n d6pt = YKHO.helpers.alpha_uuid()\n Ux0P = YKHO.form['FieldStorage'][YKHO.image_cid].filename\n Fst3 = GKtl(bmCH(Ux0P)[0])\n return YKHO.articleData.get('directory') + '/' + YKHO.articleData.get('article_name') + '-' + d... | [
"0.74034274",
"0.719906",
"0.71838284",
"0.7064158",
"0.70195764",
"0.7011877",
"0.7009172",
"0.6860806",
"0.6817289",
"0.6809097",
"0.6795184",
"0.67948836",
"0.671771",
"0.6681375",
"0.6680394",
"0.66632295",
"0.6624939",
"0.6613939",
"0.6553184",
"0.6543377",
"0.6498177",
... | 0.7112399 | 3 |
Check if an email is in the privileged users list. | def dY6E(D3lj):
if UqZV.AuthConfig().get('all_users_privileged'):
return True
k_YL = (L_qe.get_value('privileged_users') or '').splitlines()
return any((BfDw.emails_equal(D3lj, kkS5) for kkS5 in k_YL)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _5yV(D3lj):\n if D3lj and '@' in D3lj:\n bGrB, S6W2 = D3lj.split('@', 1)\n return S6W2 in gCuF.priviledged_user_domains\n return False",
"def Jb0V(cHyp, _Kb1):\n return _Kb1 or (cHyp and cHyp.endswith('@google.com'))",
"def Tb_y(D3lj):\n W03A = (L_qe.get_value('blacklisted_users')... | [
"0.75019515",
"0.7336604",
"0.7048157",
"0.6845665",
"0.67725396",
"0.67076814",
"0.66188204",
"0.6463347",
"0.64296603",
"0.6386634",
"0.6337958",
"0.6328084",
"0.63250136",
"0.63236046",
"0.63139117",
"0.6303485",
"0.6245806",
"0.622814",
"0.62153494",
"0.62059945",
"0.6178... | 0.8246768 | 0 |
Check if an email is in the privileged users list. | def Tb_y(D3lj):
W03A = (L_qe.get_value('blacklisted_users') or '').splitlines()
return any((BfDw.emails_equal(D3lj, hm9V) for hm9V in W03A)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dY6E(D3lj):\n if UqZV.AuthConfig().get('all_users_privileged'):\n return True\n k_YL = (L_qe.get_value('privileged_users') or '').splitlines()\n return any((BfDw.emails_equal(D3lj, kkS5) for kkS5 in k_YL))",
"def _5yV(D3lj):\n if D3lj and '@' in D3lj:\n bGrB, S6W2 = D3lj.split('@', ... | [
"0.8246768",
"0.75019515",
"0.7336604",
"0.6845665",
"0.67725396",
"0.67076814",
"0.66188204",
"0.6463347",
"0.64296603",
"0.6386634",
"0.6337958",
"0.6328084",
"0.63250136",
"0.63236046",
"0.63139117",
"0.6303485",
"0.6245806",
"0.622814",
"0.62153494",
"0.62059945",
"0.6178... | 0.7048157 | 3 |
Return the job_type that is assigned to the current user. None means one can access any job type. You might want to invoke get_access(..) with the job type afterward. | def _HR3():
D3lj = XN37.get_user_email()
k_YL = (L_qe.get_value('privileged_users') or '').splitlines()
for kkS5 in k_YL:
if ';' in kkS5:
s2mk = kkS5.split(';')
yj2J = s2mk[0]
_L5M = s2mk[1]
if BfDw.emails_equal(D3lj, yj2J):
return _L5M... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ucry(YKHO):\n return YKHO._job_type",
"def type(YKHO) -> h8nf[qe4Y.Input['JobType']]:\n return qe4Y.get(YKHO, 'type')",
"def ucry(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'job_type')",
"def ZP0S(YKHO):\n if 'userType' in YKHO._prop_dict:\n return YKHO._prop_dict['userType']\n... | [
"0.747165",
"0.7279678",
"0.7188113",
"0.66801995",
"0.66801995",
"0.65145683",
"0.65145683",
"0.64932984",
"0.62898475",
"0.62308174",
"0.6032937",
"0.5998731",
"0.59227234",
"0.59227234",
"0.59227234",
"0.5885296",
"0.5773404",
"0.5773404",
"0.5773404",
"0.5773404",
"0.5773... | 0.7936359 | 0 |
Check if the user has access. | def JL1u(F5Qe=False, ucry=None, m8SI=None):
Aofo = l1OR(need_privileged_access=F5Qe, job_type=ucry, fuzzer_name=m8SI)
return Aofo == PKta.Allowed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pn7U(YKHO):\n return YKHO.user_has_access(DW23.get_current_user())",
"def JL1u(YKHO, CBIr):\n if CBIr.is_superuser:\n return True\n return YKHO.user_objects(CBIr).filter(id=YKHO.id).exists()",
"def JL1u(YKHO):\n YKHO._has_access = False\n if YKHO.read_contact_info is not None:\n ... | [
"0.8745601",
"0.8226227",
"0.79228014",
"0.7886759",
"0.7802046",
"0.77893096",
"0.77617973",
"0.77617973",
"0.77617973",
"0.772082",
"0.7603447",
"0.754216",
"0.75305015",
"0.7488959",
"0.7471709",
"0.74632084",
"0.74603087",
"0.74568427",
"0.73926055",
"0.73724157",
"0.7370... | 0.70587504 | 45 |
Read 8 bytes of data as `unsigned long long`. | def cTG7(nPrm):
QWw7 = '=%s' % FRul('unsigned_long_long')
return BlNT.unpack(QWw7, nPrm.read(8))[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ieCi(nPrm):\n QWw7 = '=%s' % FRul('unsigned_long')\n return BlNT.unpack(QWw7, nPrm.read(4))[0]",
"def Nokx(nPrm):\n QWw7 = '=%s' % FRul('long')\n return BlNT.unpack(QWw7, nPrm.read(4))[0]",
"def yCfw(nPrm):\n ODP9, gqRb = BlNT.unpack('>ll', nPrm[0:8])\n qAoR = (Swre(ODP9) << 32) + gqRb\n ... | [
"0.7500502",
"0.73812723",
"0.7286104",
"0.72860366",
"0.6631162",
"0.64381015",
"0.6192025",
"0.6147923",
"0.612282",
"0.6120536",
"0.6118173",
"0.6112446",
"0.59630525",
"0.59475785",
"0.59413165",
"0.587513",
"0.5833755",
"0.5731274",
"0.572847",
"0.5717603",
"0.57165813",... | 0.7606046 | 0 |
Creates a pandas dataframe from the dictionary. | def fIqG(nPrm: dict) -> rLdf.DataFrame:
jQ3Z = rLdf.DataFrame(nPrm)
jQ3Z.index.name = 'coin_name'
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o87x(YKHO, Mjw9):\n return rLdf.DataFrame.from_dict(Mjw9, orient='index')",
"def Q1P1(nPrm):\n return rLdf.DataFrame.from_dict(nPrm)",
"def Ez9c(dict, WfCS):\n T6S7 = []\n for G1Hx, Ty9i in dict.items():\n T6S7.append([G1Hx, Ty9i])\n jQ3Z = rLdf.DataFrame(T6S7, columns=WfCS)\n retu... | [
"0.8048167",
"0.78480417",
"0.7835527",
"0.77670795",
"0.7746543",
"0.7701219",
"0.76140004",
"0.7455624",
"0.7377935",
"0.724615",
"0.7154177",
"0.7074613",
"0.70698833",
"0.70054567",
"0.6920569",
"0.6858341",
"0.68326175",
"0.67298836",
"0.67108476",
"0.6701368",
"0.668472... | 0.69406223 | 14 |
Saves the dataframe to a csv file. | def K3Bu(nPrm: pd.DataFrame, Ux0P: str) -> bool:
try:
nPrm = o8c1(nPrm)
nPrm.to_csv(Ux0P)
return True
except FileNotFoundError:
print('Error: Could not save the dataframe to csv.')
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aVpL(YKHO, Ux0P):\n YKHO.data.to_csv(Ux0P)",
"def bJJP(bOBl, Ux0P):\n with open(Ux0P, 'w', encoding='utf8') as _RR0:\n bOBl.to_csv(_RR0, sep=',')",
"def eFxq(Kiac, qaEx):\n Kiac.to_csv(qaEx)\n return None",
"def RZtn(YKHO):\n YKHO.tableView.df.to_csv('Data export.csv', index=False)\... | [
"0.83997774",
"0.839973",
"0.8393634",
"0.8174655",
"0.812801",
"0.8026191",
"0.79809654",
"0.78813314",
"0.78521967",
"0.77838564",
"0.77555627",
"0.7743939",
"0.7742734",
"0.7678461",
"0.7612977",
"0.75615185",
"0.75520724",
"0.7552007",
"0.7544679",
"0.75423867",
"0.752555... | 0.7647942 | 14 |
Returns the price of a coin. | def I0TV(jQ3Z: pd.DataFrame, F9Xv: str) -> float:
try:
return jQ3Z[jQ3Z['coin_name'] == F9Xv]['rates'].values[0]
except IndexError:
print('Error: Could not find the coin.')
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SJ0l(mWFP):\n return rWCm.objects.get(name=mWFP).coins_price",
"def NXNA(ee8p, DpUl):\n hI0L = 'https://api.coinmarketcap.com/v1/ticker/' + ee8p\n qQXR = G4JS.get(hI0L).json()\n BWXx = qQXR[0]['price_' + str(DpUl)]\n return BWXx",
"def N_Zi(YKHO):\n return YKHO.price",
"def N_Zi(YKHO):\... | [
"0.78182226",
"0.7569044",
"0.7433811",
"0.7433811",
"0.7433811",
"0.7390024",
"0.73111016",
"0.7303786",
"0.7240558",
"0.723084",
"0.71930104",
"0.71545553",
"0.71463126",
"0.71463126",
"0.7143903",
"0.7140539",
"0.7137462",
"0.701525",
"0.7004191",
"0.6913137",
"0.68914",
... | 0.6580664 | 37 |
Obtains the range of bands where the SNR is the highest. | def QTLx(YKHO, xusa, GsyW, eHNT):
PyDY = 50
Yd_M = eHNT < PyDY
_z_n = eHNT[Yd_M].size
qLc5 = oyIN.zeros((_z_n, _z_n, xusa.shape[0], xusa.shape[2], xusa.shape[3]))
ppuw = oyIN.zeros((_z_n, _z_n, GsyW.shape[0], GsyW.shape[2], GsyW.shape[3]))
for YRbF in range(_z_n):
for r845 in range(_z_n)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EMql(TquA, v4rA):\n Ra9R = TquA + 2 * v4rA\n uAML = TquA - 2 * v4rA\n return (Ra9R, uAML)",
"def ORf7(YKHO) -> OyIr:\n GMPf = []\n for xgy9 in YKHO.bandits:\n lIpb = oyIN.random.normal(loc=YKHO.mu[xgy9.id], scale=YKHO.var[xgy9.id])\n pb_Q = YKHO.mu[xgy9.id]\n GMPf.append(m... | [
"0.6567467",
"0.6378919",
"0.63360727",
"0.63081694",
"0.6289236",
"0.6281409",
"0.6240292",
"0.6219977",
"0.6207458",
"0.6191986",
"0.60896075",
"0.60645",
"0.60373455",
"0.600317",
"0.59885687",
"0.59823287",
"0.598058",
"0.5968563",
"0.5950438",
"0.58986276",
"0.58848006",... | 0.0 | -1 |
Search for the first defined of possibly many env vars Returns the first environment variable defined in vars, or returns the default defined in kwargs. | def sEAN(*vars, **B2fa):
for Ty9i in vars:
BWXx = Hy7s.environ.get(Ty9i, None)
if BWXx:
return BWXx
return B2fa.get('default', '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sEAN(*vars, **B2fa):\n for Ty9i in vars:\n BWXx = Hy7s.environ.get(Ty9i)\n if BWXx:\n return BWXx\n return B2fa.get('default', '')",
"def sEAN(*vars, **B2fa):\n for Ty9i in vars:\n BWXx = Hy7s.environ.get(Ty9i)\n if BWXx:\n return BWXx\n return B2... | [
"0.8269362",
"0.8261548",
"0.8183286",
"0.8170492",
"0.7234913",
"0.6839318",
"0.6580705",
"0.63613874",
"0.63591564",
"0.63290465",
"0.62897414",
"0.6259116",
"0.6212929",
"0.6119163",
"0.6117221",
"0.60778123",
"0.60545963",
"0.60452294",
"0.60017854",
"0.5941733",
"0.59417... | 0.82147664 | 3 |
Check for correct default arguments. | def wdBL(YKHO):
YKHO.assertEqual(YKHO.args.router, aBG1.DEFAULT_ROUTER)
YKHO.assertEqual(YKHO.args.port, aBG1.DEFAULT_PORT)
YKHO.assertEqual(YKHO.args.interval, aBG1.DEFAULT_INTERVAL)
YKHO.assertEqual(YKHO.args.community, aBG1.DEFAULT_COMMUNITY)
YKHO.assertEqual(YKHO.args.iterations, aBG1.DEFAULT_IT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BLRY(YKHO):\n ZmBy = []\n YKHO.usage.parseOptions(ZmBy)\n YKHO.failUnlessEqual(YKHO.usage.opts['fooint'], 392)\n YKHO.assert_(isinstance(YKHO.usage.opts['fooint'], int))\n YKHO.failUnlessEqual(YKHO.usage.opts['foofloat'], 4.23)\n YKHO.assert_(isinstance(YKHO.usage.opts['foofloat'], float))\n ... | [
"0.75354385",
"0.72266173",
"0.7191842",
"0.7154735",
"0.71442413",
"0.7100915",
"0.70671195",
"0.70434916",
"0.7034564",
"0.700715",
"0.6988643",
"0.6980488",
"0.69748586",
"0.6923872",
"0.68815136",
"0.6868824",
"0.68511957",
"0.6847183",
"0.6820474",
"0.68154454",
"0.68069... | 0.7006569 | 10 |
Return true if light is on. | def Debg(YKHO):
return YKHO._state == _rDc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fBZe(YKHO):\n return YKHO._light == 'ON'",
"def fBZe(YKHO):\n return YKHO._light == 'ON'",
"def Debg(YKHO):\n return YKHO._light_on",
"def h0Nz(YKHO) -> bool:\n return f34S.Light.value in YKHO.type_data.attributes",
"def h0Nz(YKHO) -> bool:\n return f34S.Light.value in YKHO.type_data.att... | [
"0.9035416",
"0.89275813",
"0.86664206",
"0.8008696",
"0.8008696",
"0.78880787",
"0.7866302",
"0.7610281",
"0.7565963",
"0.7415077",
"0.7345493",
"0.7335999",
"0.73116577",
"0.7303292",
"0.72991306",
"0.7243393",
"0.71792775",
"0.71722543",
"0.7157757",
"0.7157757",
"0.715775... | 0.690016 | 46 |
Instruct the light to turn off. If a transition time has been specified in seconds the controller will fade. | def nqqG(YKHO, **B2fa):
OZkM = B2fa.get(Myei, YKHO._fade_time)
G9jH.debug("Turning off '%s' with transition %i", YKHO._name, OZkM)
V7ok.ensure_future(YKHO._controller.set_channels_async(YKHO._channels, 0, transition=OZkM))
YKHO._state = iKVK
YKHO.async_schedule_update_ha_state() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_rv(YKHO, **B2fa):\n YKHO._light.set_color(0, 0, 0, 0)",
"def V8X5(YKHO):\n YKHO.turnOff()",
"def Z_rv(YKHO, **B2fa: Any) -> None:\n YKHO._light.turn_off()",
"async def async_turn_off(YKHO, **B2fa: Any) -> None:\n YKHO._device.light_on = False",
"def Z_rv(YKHO, **B2fa: Any) -> None:\n Y... | [
"0.7233542",
"0.7132049",
"0.70640826",
"0.6948976",
"0.68982106",
"0.68464655",
"0.68431205",
"0.6805358",
"0.67973155",
"0.67798615",
"0.67780244",
"0.6769697",
"0.6750045",
"0.6719887",
"0.66322434",
"0.6597229",
"0.6547781",
"0.65310997",
"0.6504773",
"0.6491345",
"0.6461... | 0.6789168 | 9 |
Take in languagetagged text, and use wordfreq to tokenize it. | def sRy4(nHI3, ee9X, z1E8=False, IbeW=olyM):
if z1E8:
m8K5 = {rQow: lGU7.open('%s/%s.txt.gz' % (ee9X, rQow), 'wt', encoding='utf-8') for rQow in IbeW}
else:
m8K5 = {rQow: open('%s/%s.txt' % (ee9X, rQow), 'w', encoding='utf-8') for rQow in IbeW}
try:
for zFiD in nHI3:
DuqQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def biH0(l5Ny, QTg7=5):\n l5Ny = ZbWC.sub(\"[^A-Za-z0-9(),!?\\\\'\\\\`]\", ' ', l5Ny)\n l5Ny = ZbWC.sub(\"\\\\'s\", \" 's\", l5Ny)\n l5Ny = ZbWC.sub(\"\\\\'ve\", \" 've\", l5Ny)\n l5Ny = ZbWC.sub(\"n\\\\'t\", \" n't\", l5Ny)\n l5Ny = ZbWC.sub(\"\\\\'re\", \" 're\", l5Ny)\n l5Ny = ZbWC.sub(\"\\\\'... | [
"0.72140807",
"0.65063596",
"0.6282093",
"0.62392974",
"0.6229821",
"0.6228819",
"0.6203148",
"0.61765754",
"0.6146587",
"0.61224735",
"0.6119894",
"0.61172533",
"0.61155564",
"0.61057484",
"0.6084336",
"0.60806805",
"0.6066736",
"0.6065682",
"0.60630894",
"0.6044124",
"0.602... | 0.0 | -1 |
Take in monolingual plain text, and break it into SentencePiece tokens with the given model. | def XaZ7(nHI3, PcZo, _A1o):
H4yH = YoaS.SentencePieceProcessor()
H4yH.load(_A1o)
hS5g = qk1z.Packer()
for zFiD in nHI3:
A07C = H4yH.encode_as_ids(zFiD.rstrip())
PcZo.write(hS5g.pack(A07C)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GMXA(ZGE9: str, l5Ny: str) -> CNQv.tokens.Doc:\n K9NE = uyMl(ZGE9)\n return K9NE(l5Ny)",
"def wr3U(l5Ny):\n yAmx = W66f(l5Ny)\n return yAmx.tokens()",
"def kFiU(yAmx):\n return yAmx.text",
"def ky6S(FUjE, C3ST):\n FUjE = Zi4e(FUjE)\n rVAY = [GIN8 for GIN8 in FUjE.split(' ') if GIN8 i... | [
"0.6298731",
"0.62832016",
"0.6222515",
"0.5979018",
"0.5936524",
"0.59228384",
"0.59124017",
"0.59072095",
"0.58958834",
"0.5834245",
"0.58309495",
"0.5804194",
"0.57827735",
"0.5782566",
"0.577117",
"0.5759894",
"0.5755359",
"0.5750391",
"0.57493126",
"0.5741894",
"0.574189... | 0.6448083 | 0 |
Get input, initial state, final state, and probabilities tensor from | def Zur1(YKHO, aNyl):
return (aNyl.get_tensor_by_name('input:0'), aNyl.get_tensor_by_name('initial_state:0'), aNyl.get_tensor_by_name('final_state:0'), aNyl.get_tensor_by_name('probs:0'), aNyl.get_tensor_by_name('keep_prob:0')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VMhG(YKHO):\n K2Ug = ZylS.placeholder(ZylS.int32, [None, None], name='n_input')\n MeT8 = ZylS.placeholder(ZylS.int32, [None, None], name='t_input')\n BT6X = ZylS.placeholder(ZylS.int32, [None, None], name='n_target')\n YpOa = ZylS.placeholder(ZylS.int32, [None, None], name='t_target')\n sMyr = Z... | [
"0.69204074",
"0.66214675",
"0.65101016",
"0.64871496",
"0.64565885",
"0.6426615",
"0.64235866",
"0.63306177",
"0.62981254",
"0.6287973",
"0.6262793",
"0.62424284",
"0.62266934",
"0.62263",
"0.6205642",
"0.6134747",
"0.61147267",
"0.6086173",
"0.60838056",
"0.60643065",
"0.60... | 0.600969 | 27 |
That function is used to set the initial permeability field. | def gJLm(YKHO, ymgy):
if YKHO.flowComponent != None:
YKHO.flowComponent.setpermeabilityfield(ymgy)
pass
else:
raise Exception(' the flow component must be launched before trying to setup K ') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mWFP, m4fF, ZAzL):\n super().__init__(mWFP)\n YKHO.maneuverability = super().limitsValues(m4fF)\n YKHO.protection = super().limitsValues(ZAzL)",
"def SiRx(YKHO):\n YKHO.pwm_freq = YKHO._default['pwm_freq']\n YKHO.gate_logic = YKHO._default['gate_logic']\n YKHO.max_pwm = YKHO._def... | [
"0.5997537",
"0.5640637",
"0.56155497",
"0.5582475",
"0.55760705",
"0.55648077",
"0.551852",
"0.5517421",
"0.54974955",
"0.5496612",
"0.54699683",
"0.54696965",
"0.5463928",
"0.54377735",
"0.54084945",
"0.53702766",
"0.53562075",
"0.5337029",
"0.53322875",
"0.53104126",
"0.52... | 0.8097972 | 0 |
Pick a random card and add it to a user/dealer hand | def G372(khoC):
import random
w1eb = random.choices(xrDl)
khoC.append(w1eb[0])
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vze6(oyg0):\n return oyg0.append(tuKI.choice(nf_0))",
"def IA2m():\n khoC = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]\n dxhl = tuKI.choice(khoC)\n return dxhl",
"def IA2m():\n khoC = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]\n M0wT = tuKI.choice(khoC)\n return M0wT",
"def IA2m(... | [
"0.75244606",
"0.7515193",
"0.7477022",
"0.7327888",
"0.72345185",
"0.7068833",
"0.6940989",
"0.6882412",
"0.6858086",
"0.6732782",
"0.6663108",
"0.65511215",
"0.6549774",
"0.6547239",
"0.6502962",
"0.6502743",
"0.6481193",
"0.639242",
"0.6389019",
"0.63872004",
"0.6369756",
... | 0.7105568 | 5 |
Constructor for data dictionary | def FIMM(YKHO, nPrm):
nPrm = nPrm['results']
ZPAo = {}
ryph = {}
TsEU = {}
for YRbF in range(len(nPrm)):
H5ew = str(YRbF)
if '&' in nPrm[YRbF]['question']:
pass
else:
ZPAo[H5ew] = nPrm[YRbF]['question']
ryph[H5ew] = nPrm[YRbF]['correct_answ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, nPrm: dict={}):\n pass",
"def FIMM(YKHO):\n dict.__init__(YKHO)\n YKHO.datatype = None",
"def FIMM(YKHO):\n YKHO.key2value = {}\n YKHO.key2time = {}",
"def FIMM(YKHO):\n YKHO.data = {'loan_id': None, 'product': None, 'origination_date': None, 'reversion_date': None, 'rate_ter... | [
"0.7945727",
"0.77610564",
"0.7419744",
"0.7417905",
"0.736875",
"0.736875",
"0.72846645",
"0.72825307",
"0.7274945",
"0.72481877",
"0.71975297",
"0.71975297",
"0.71975297",
"0.71975297",
"0.71766746",
"0.71463335",
"0.7134301",
"0.7128413",
"0.7116416",
"0.7103457",
"0.70712... | 0.0 | -1 |
Perform batch normalization and activation | def oDGi(O9Cm, Ag_B, AdY6, _Ycl, LT6S, wH3T):
if wH3T == 'NHWC':
jDK_ = -1
else:
jDK_ = 1
if Ag_B:
IvrM = 0.001
JBMS, I8JS = ZylS.nn.moments(O9Cm, axes=[2], keep_dims=True)
O9Cm = ZylS.nn.batch_normalization(O9Cm, JBMS, I8JS, None, None, IvrM)
if AdY6:
wit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uNRR(ypOY=None):\n A90d = qKmE()\n A90d('batch_size', 30)\n A90d('n_epochs', 1000)\n A90d('learning_rate', 0.01)\n A90d('l1_reg', 0.0)\n A90d('l2_reg', 0.0001)\n A90d('patience', 5000)\n DVQq = J9Qm(input_shape=(A90d.batch_size, 28 * 28), input_var=ypOY, name='Input')\n TyxG = GVKG(i... | [
"0.7156381",
"0.66997266",
"0.6699257",
"0.6698028",
"0.66824365",
"0.6640593",
"0.66355854",
"0.66229975",
"0.6573891",
"0.6550579",
"0.65502006",
"0.6549811",
"0.65491253",
"0.65412486",
"0.65061253",
"0.6498163",
"0.6496593",
"0.64928937",
"0.6470394",
"0.6452172",
"0.6431... | 0.6186093 | 46 |
Raise `ValueError` if combinations of arguments are invalid. | def QGVw(YKHO):
if not YKHO.use_binaries + YKHO.use_installer + YKHO.use_neurodebian:
raise ValueError('Please specify installation method.')
if YKHO.use_binaries + YKHO.use_installer + YKHO.use_neurodebian > 1:
raise ValueError('More than one installation method specified.')
if YKHO.use_ins... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rEH8() -> None:\n\n @gk6e(a='b', c='d')\n def eHNT(jzdc: Any=None, Fg_i: Any=None, Z9rn: Any=None, Csk6: Any=None) -> None:\n ...\n eHNT()\n eHNT(d=1)\n eHNT(c=1, d=1)\n eHNT(b=1)\n eHNT(b=1, d=1)\n eHNT(b=1, c=1, d=1)\n eHNT(a=1, b=1)\n eHNT(a=1, b=1, d=1)\n eHNT(a=1, b... | [
"0.6839503",
"0.6329576",
"0.6296959",
"0.6278309",
"0.62552774",
"0.6248786",
"0.6233678",
"0.62267464",
"0.61843234",
"0.61807895",
"0.6173593",
"0.6169504",
"0.61286634",
"0.6070247",
"0.6000947",
"0.59755355",
"0.59595627",
"0.59411573",
"0.5928474",
"0.59077793",
"0.5907... | 0.5329649 | 76 |
Return Path indicating where to render the template to. | def BrK6(YKHO) -> GkAb:
if YKHO._target_dir:
return YKHO._target_dir
if YKHO.output_dir:
return YKHO.output_dir / YKHO.slug
return YKHO.dependency_dir() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ejpk(YKHO):\n raise NotImplementedError()",
"def UhR0(YKHO) -> str:\n return YKHO._values.get('template_path')",
"def UhR0(YKHO):\n return YKHO.get_config('templates')",
"def gXgy(YKHO):\n return YKHO.template.manager.render_template_txt(YKHO.path, YKHO.template)",
"def vi15(YKHO):\n ckR... | [
"0.7967442",
"0.7860827",
"0.7721165",
"0.74913067",
"0.7111246",
"0.6905986",
"0.68437237",
"0.6794972",
"0.6756213",
"0.6739951",
"0.6739951",
"0.671448",
"0.6709475",
"0.66933554",
"0.66898596",
"0.6688641",
"0.66233754",
"0.66135764",
"0.66028506",
"0.6600421",
"0.6588209... | 0.0 | -1 |
Simple function to calculate distance between two signals of same length | def I2Dl(j93S, Nqp_):
pImw = 0
for YRbF in range(0, len(j93S)):
pImw += oyIN.abs(j93S[YRbF] - Nqp_[YRbF])
return pImw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(jzdc, Fg_i):\n return oyIN.sum((jzdc - Fg_i) ** 2) ** 0.5",
"def Ayfi(jzdc, Fg_i):\n return epAf.sqrt((jzdc[0] - Fg_i[0]) ** 2 + (jzdc[1] - Fg_i[1]) ** 2)",
"def A8hk(jzdc, Fg_i):\n return oyIN.sqrt(oyIN.sum((jzdc - Fg_i) ** 2))",
"def pImw(jzdc, Fg_i):\n return oyIN.sum((jzdc - Fg_i) **... | [
"0.7588253",
"0.7343513",
"0.73374903",
"0.7323455",
"0.730341",
"0.7252602",
"0.7245775",
"0.72455794",
"0.72296816",
"0.7229187",
"0.7199509",
"0.71646804",
"0.7130848",
"0.70999897",
"0.70977515",
"0.7087741",
"0.7086866",
"0.70770425",
"0.70622945",
"0.7058044",
"0.704815... | 0.79909265 | 0 |
Gets item at front of queue. | def T7C_(YKHO):
if YKHO.size():
return YKHO.queue[0]
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass",
"def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None",
"def VnzS(gGq6):\n if _OiT(gGq6):\n raise IndexError('Queue is empty!')\n else:\n return gGq6.front.value",
"def y9BR(YKHO):\n if l... | [
"0.88270885",
"0.84139615",
"0.825491",
"0.8046216",
"0.78960836",
"0.78960836",
"0.7889281",
"0.78330195",
"0.78139967",
"0.78016967",
"0.78016967",
"0.77992004",
"0.77882737",
"0.77732265",
"0.77089995",
"0.7694109",
"0.7664623",
"0.76643145",
"0.7584526",
"0.75361496",
"0.... | 0.76554555 | 18 |
A method used to initialize the weights of PyTorch models. | def YLCr(Zxma, O37i=None):
if O37i == 'xavier_uniform':
FJYT = DbxN.xavier_uniform_
elif O37i == 'xavier_normal':
FJYT = DbxN.xavier_normal_
elif O37i == 'kaiming_normal' or O37i == 'msra':
FJYT = DbxN.kaiming_normal_
elif O37i == 'kaiming_uniform':
FJYT = DbxN.kaiming_un... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(C3ST):\n ...",
"def sTi3(YKHO):\n for gEmA in YKHO._cnn_layers:\n dIoi.WeightsInitializer.initialize_layer_or_model(gEmA)",
"def sTi3(YKHO):\n dIoi.WeightsInitializer.initialize_layer_or_model(YKHO._batch)",
"def DVZr(C3ST):\n mPQc = C3ST.__class__.__name__\n if mPQc.find('Conv... | [
"0.84285975",
"0.8188137",
"0.818156",
"0.8073837",
"0.8039597",
"0.7988564",
"0.79696333",
"0.79619944",
"0.7929481",
"0.79254824",
"0.792279",
"0.7895908",
"0.7790885",
"0.7765611",
"0.77599305",
"0.77451867",
"0.7729079",
"0.7729079",
"0.7729079",
"0.7714726",
"0.77132607"... | 0.0 | -1 |
Initializes the Violation class with the left and right hand side key generators, and func and having callables. If no values for rhs are provided, it assumes we want to find violations in a singular set of column(s) (lhs). | def FIMM(YKHO, yLHq, RKYb=None, JfyU=None, eKe3=None):
YKHO.lhs = NHsP(columns=yLHq, func=JfyU)
YKHO.rhs = YKHO.lhs if RKYb is None else NHsP(columns=RKYb)
YKHO.having = eKe3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VJtY(jQ3Z: pd.DataFrame, yLHq: KeyGenerator, RKYb: KeyGenerator) -> Cf4C:\n\n def xFUr(e5kH):\n return len(e5kH) > 1\n cCJk = oHkr(lhs=yLHq, rhs=RKYb, func=None, having=xFUr)\n return cCJk.map(df=jQ3Z)",
"def FIMM(YKHO):\n YKHO.operators_dict = {'+': {'function': lambda WKvO=0, LVAh=0: WKv... | [
"0.6168251",
"0.55292135",
"0.5029456",
"0.502875",
"0.49425507",
"0.48318386",
"0.4794377",
"0.47929412",
"0.47883832",
"0.474228",
"0.47347608",
"0.47261825",
"0.47180307",
"0.47146568",
"0.46941787",
"0.46764243",
"0.46363854",
"0.46333814",
"0.46247494",
"0.46167645",
"0.... | 0.6106961 | 1 |
Sends a checkout expired reminder. | def wEnA(VW7q, C61p, yxaP):
try:
mE3u.chat.post_message(VW7q, "It's been *{}* since you checked out `{}`. Please renew your checkout online or return it to the device lab.".format(C61p, yxaP), as_user=False, username='DeviceNanny')
G9jH.debug('[slack][user_reminder] Reminder sent to user sent')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wjcL(YKHO, **B2fa):\n return YKHO.notify('notify_expired', **B2fa)",
"def OwNl(YKHO):\n YKHO.setupTransaction()\n s7ch.pay_card(card_name='Expired_MC', verify=False)\n ZZ56 = s7ch.read_message_box(timeout=10)\n if ZZ56:\n s7ch.click_message_box_key('OK')\n if 'Expired' not in ZZ5... | [
"0.6974926",
"0.6032956",
"0.5891985",
"0.58364046",
"0.5814849",
"0.57905036",
"0.57501584",
"0.5640075",
"0.55729246",
"0.55427885",
"0.5476541",
"0.5419828",
"0.54095495",
"0.54004985",
"0.5397468",
"0.53952575",
"0.53698444",
"0.53692544",
"0.53486246",
"0.53387034",
"0.5... | 0.5161133 | 35 |
Remove URLs from a sample string | def RG0J(mvm2):
return ZbWC.sub('http\\S+', '', mvm2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yk6F(Mau6):\n return ZbWC.sub('http\\\\S+', 'URL', Mau6)",
"def Yk6F(mvm2):\n mvm2['full_text'] = ZbWC.sub('http\\\\S+', '', mvm2['full_text'])\n return mvm2",
"def EGZf(l5Ny):\n l5Ny = ZbWC.sub('(?P<url>https?://[^\\\\s]+)', '', l5Ny)\n return l5Ny",
"def EGZf(l5Ny):\n pass",
"def EG... | [
"0.8024629",
"0.8012376",
"0.7941175",
"0.79276586",
"0.79134667",
"0.79063195",
"0.7805464",
"0.7790042",
"0.7647424",
"0.7633826",
"0.75397545",
"0.75013065",
"0.74350727",
"0.7431088",
"0.7386092",
"0.7302479",
"0.73011416",
"0.7291912",
"0.71393806",
"0.7134624",
"0.71004... | 0.8735943 | 0 |
Return the name of the entity. | def mWFP(YKHO) -> str:
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tWCk(YKHO):\n return YKHO.__entity_name",
"def tWCk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'entity_name')",
"def tWCk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'entity_name')",
"def mWFP(YKHO):\n return '{} {}'.format(YKHO._vehicle_name, YKHO._entity_name)",
"def qpoq() -... | [
"0.8988398",
"0.83023036",
"0.83023036",
"0.7979217",
"0.7969564",
"0.75555485",
"0.7543831",
"0.7536042",
"0.7536042",
"0.7536042",
"0.75337434",
"0.75239676",
"0.7496596",
"0.74891084",
"0.74777347",
"0.74761146",
"0.7462404",
"0.74502766",
"0.74502766",
"0.74502766",
"0.74... | 0.0 | -1 |
Return the brightness of this light between 0..255. | def asva(YKHO):
return YKHO._brightness | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def asva(YKHO) -> float:\n Mkmy, Oa1e, Fg_i = (YKHO.r, YKHO.g, YKHO.b)\n return PZyS(0.299 * Mkmy ** 2 + 0.587 * Oa1e ** 2 + 0.114 * Fg_i ** 2) / 255",
"def asva(YKHO):\n return MnOy(YKHO._brightness_pct)",
"def asva(YKHO):\n return round(YKHO._device.current_percentage / 100 * 255)",
"def asva(Y... | [
"0.86106795",
"0.85797876",
"0.84444",
"0.837146",
"0.83107203",
"0.81361365",
"0.81177837",
"0.78746456",
"0.78518254",
"0.78518254",
"0.7823478",
"0.77862597",
"0.7754381",
"0.77270913",
"0.769415",
"0.75714487",
"0.75458485",
"0.7526449",
"0.7523753",
"0.7504014",
"0.74457... | 0.8387642 | 11 |
Return a HcrRepository object created based on this output. The type of this Output object should be 'hcr', otherwise and an exception is raised. | def Ohnw(YKHO):
if YKHO.type != 'hcr':
raise RuntimeError("get_hcr_repository() called on an Output object with type '%s' (should be 'hcr')" % YKHO.type)
return CryC(YKHO.get_hcr_records()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C6M2(YKHO, QpfX=None):\n jY1r = YKHO.__get_output_filename()\n if YKHO.output_obj.type == 'hcr':\n YKHO.logger.info(\"Generating binary repository to '%s'\" % jY1r)\n WJI9 = cFWU()\n boHx = YKHO.output_obj.get_hcr_repository()\n nPrm = WJI9.get_repository_bindata(boHx)\n ... | [
"0.55260706",
"0.5256077",
"0.5224154",
"0.5220494",
"0.5191335",
"0.5183206",
"0.51668274",
"0.5161807",
"0.5140524",
"0.5120932",
"0.51060784",
"0.5073528",
"0.50717187",
"0.5064629",
"0.50319046",
"0.50278115",
"0.5009651",
"0.49744537",
"0.49683103",
"0.49215177",
"0.4881... | 0.90785617 | 0 |
Set the logging level on a logger. Uses ``get_log_level`` from | def WWrj(bo34, E0cB):
wiAm = DXkw(E0cB)
bo34.setLevel(wiAm)
qnWX = G9jH.StreamHandler()
qnWX.setLevel(wiAm)
bo34.addHandler(qnWX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fTst(GJcf, ABDL):\n if isinstance(GJcf, str):\n RKD7 = fZx2(GJcf)\n else:\n RKD7 = GJcf\n RKD7.setLevel(ABDL)\n for DCgT in RKD7.handlers:\n DCgT.setLevel(ABDL)",
"def ABDL(YKHO, wiAm):\n YKHO.logger.setLevel(wiAm)",
"def tnzV(bo34, ABDL):\n if isinstance(bo34, fjkp):... | [
"0.7808671",
"0.77308905",
"0.76957554",
"0.7555545",
"0.7509322",
"0.7506867",
"0.7469308",
"0.74675155",
"0.7457522",
"0.74013716",
"0.7399696",
"0.7366879",
"0.7321019",
"0.72928303",
"0.72891223",
"0.7144481",
"0.70975775",
"0.70849353",
"0.7060703",
"0.6974753",
"0.69713... | 0.592393 | 93 |
Get the model name. | def TbE8(YKHO) -> str:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZGE9(YKHO) -> str:\n return YKHO._model_name",
"def TbE8(YKHO) -> str:\n return YKHO._get_string(wLjv.Prop_RenderModelName_String)",
"def ZGE9(YKHO):\n YqMg = YKHO.get_setting_definition(YKHO.key, **YKHO.get_kwargs())\n return YqMg.get('model', None)",
"def W0tD(YKHO):\n OsSw = YKHO.model.... | [
"0.88881665",
"0.883052",
"0.84520155",
"0.8416848",
"0.8376444",
"0.83522457",
"0.8329777",
"0.82505643",
"0.8224384",
"0.81623787",
"0.80150056",
"0.7973438",
"0.78287315",
"0.77966535",
"0.77646977",
"0.7711224",
"0.76936203",
"0.76847035",
"0.76512337",
"0.7626555",
"0.75... | 0.87915975 | 2 |
Get input tensor from input data. | def TNS6(YKHO, WbAn: Dict[str, Any], **B2fa) -> ht2j.Tensor:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TNS6(WbAn: Dict[str, Any]) -> ht2j.Tensor:\n return WbAn['img']",
"def FRUf(mh5P):\n I0Uz = mh5P.get_input_details()[0]['index']\n return mh5P.tensor(I0Uz)()[0]",
"def FRUf(YKHO):\n if YKHO._direct_feed_dict:\n raise TypeError('This loom has direct_feed_dict set, so it has no input tenso... | [
"0.78926533",
"0.7573257",
"0.7500826",
"0.70625985",
"0.69879276",
"0.67678607",
"0.67557603",
"0.67429",
"0.6610127",
"0.6550787",
"0.65429455",
"0.64512795",
"0.64491844",
"0.6445135",
"0.64403015",
"0.6310326",
"0.6305846",
"0.62908643",
"0.6244693",
"0.62428",
"0.6233682... | 0.796942 | 0 |
Run test with single gpu. | def O6ar(YKHO, C3ST: nn.Module, zQKy: DataLoader, nUHY: bool=False, ee9X: Optional[str]=None, **B2fa) -> x1iM:
C3ST.eval()
dixj = []
__n6 = zQKy.dataset
ea6x = bzBo.ProgressBar(len(__n6))
for YRbF, nPrm in enumerate(zQKy):
with ht2j.no_grad():
Aofo = C3ST(nPrm['points'][0].data, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qIMZ() -> None:\n if AjWT('DISABLE_GPU_FOR_TESTING') is not None:\n print('GPU payload disabled for testing')\n return\n NRWD = Yn3K.Popen(['nvidia-smi'], stdout=Yn3K.PIPE)\n zJsh, bGrB = NRWD.communicate()\n ThQW = zJsh.decode()\n assert 'NVIDIA-SMI' in ThQW, ThQW\n assert NRWD... | [
"0.7356023",
"0.70591587",
"0.69212633",
"0.6905954",
"0.6789409",
"0.6789409",
"0.6789409",
"0.67124987",
"0.66918534",
"0.6637442",
"0.6571921",
"0.6531325",
"0.65180355",
"0.6485515",
"0.64587164",
"0.6424904",
"0.6424904",
"0.6424904",
"0.6410466",
"0.6386261",
"0.6353833... | 0.5992467 | 70 |
View for the home page. | def d6pt():
return TvZl('index.html', title='Home') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy(QePW):\n return SGJU('home.html', {}, K1Ja(QePW))",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'hom... | [
"0.84359366",
"0.8289512",
"0.82851356",
"0.8284263",
"0.82569414",
"0.8204829",
"0.8174893",
"0.81578195",
"0.8126308",
"0.8126109",
"0.80968696",
"0.80968696",
"0.80968696",
"0.80968696",
"0.80968696",
"0.80968696",
"0.80968696",
"0.80968696",
"0.80968696",
"0.80968696",
"0... | 0.0 | -1 |
Clear the text if it is a text entry element | def Y7Bk(YKHO):
YKHO.element.clear() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DX2c(*qIxc, **B2fa):\n qIxc[0].set_text('')",
"def iPKY(YKHO):\n YKHO.root.ids.Title.text = ''\n YKHO.root.ids.Artist.text = ''\n YKHO.root.ids.Year.text = ''\n for KAOR in YKHO.root.ids.entriesBox.children:\n KAOR.state = 'normal'\n YKHO.root.ids.statusLabel2.text = ''",
"def z4Ll... | [
"0.78817517",
"0.7533007",
"0.73453796",
"0.72241646",
"0.72184724",
"0.7201202",
"0.7162356",
"0.7143112",
"0.7033914",
"0.70068014",
"0.6913534",
"0.6842043",
"0.67797184",
"0.6742002",
"0.67028266",
"0.66829175",
"0.66444933",
"0.66282666",
"0.662482",
"0.6614879",
"0.6614... | 0.57811624 | 80 |
Load json from a file | def LNvC(Ux0P):
with open(Ux0P) as eHNT:
return qQXR.loads(eHNT.read()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lc9H(gIsw):\n return qQXR.load(open(gIsw))",
"def WEhu(qaEx):\n with open(qaEx) as eHNT:\n return tU6l(eHNT.read())",
"def lc9H(VqRE: str):\n with open(VqRE, encoding='utf-8') as eHNT:\n return qQXR.load(eHNT)",
"def Ddor(nUeQ):\n with open(nUeQ, 'r') as eHNT:\n return qQ... | [
"0.85169244",
"0.8404855",
"0.8400666",
"0.8377358",
"0.83047533",
"0.83007306",
"0.82911485",
"0.82683283",
"0.82313573",
"0.8230451",
"0.8211095",
"0.82072246",
"0.82040256",
"0.8182415",
"0.8171659",
"0.81529534",
"0.8142312",
"0.81388587",
"0.812936",
"0.8122519",
"0.8116... | 0.8383471 | 3 |
Return rough estimate of utc offset | def mVXc():
fCoM = qcWV.datetime.now() - qcWV.datetime.utcnow()
return fCoM.total_seconds() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YfmJ(YKHO) -> float:\n return YKHO.AD.tz.utcoffset(YKHO.datetime()).total_seconds() / 60",
"def nJdo() -> float:\n import time\n import datetime\n OeQj = time.time()\n UJxm = (datetime.datetime.fromtimestamp(OeQj) - datetime.datetime.utcfromtimestamp(OeQj)).total_seconds()\n return UJxm",
... | [
"0.7360115",
"0.709354",
"0.7013006",
"0.69246316",
"0.68735135",
"0.685113",
"0.67201394",
"0.66911864",
"0.6490587",
"0.6460585",
"0.6375815",
"0.6314648",
"0.6306994",
"0.6291286",
"0.62564015",
"0.62470025",
"0.61877316",
"0.61740637",
"0.6157372",
"0.61535585",
"0.615184... | 0.77048934 | 0 |
Returns gradient of xdivy(x1, x2) with respect to x1 and x2. | def jzZe(o4D3, ajwV, Ro40, pan_=BfDw.CCE):
y2yM = kbUw(o4D3)
UvcZ = o4D3.dtype
Odr0 = kbUw(ajwV)
Hxnq = ajwV.dtype
NF65 = kbUw(Ro40)
x5g5 = Ro40.dtype
if UvcZ != Hxnq or Hxnq != x5g5 or x5g5 != UvcZ:
raise RuntimeError('the type of x1, x2 and grad must be the same,while dtype_x1 = %s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ICX2(o4D3: int, ajwV: int) -> int:\n if o4D3 == ajwV:\n return 0\n Jw7X = o4D3 - ajwV\n return int(Jw7X / abs(Jw7X))",
"def Dm_N(WKvO, LVAh, mL9q):\n with WKvO.graph.as_default():\n frz4 = ZylS.constant(1, shape=mL9q, dtype=LVAh.dtype)\n eUWA = ZylS.identity(frz4)\n vtNT =... | [
"0.71600926",
"0.6560471",
"0.6403256",
"0.63365024",
"0.6247807",
"0.6230522",
"0.61476296",
"0.60991424",
"0.6084394",
"0.6043715",
"0.60322654",
"0.6021473",
"0.60202867",
"0.5992157",
"0.5971621",
"0.59477895",
"0.5945804",
"0.5903332",
"0.58846736",
"0.5863745",
"0.58430... | 0.71540594 | 1 |
Try to stop all threads and timers that RenderThreads started. This method is ment to be used in a closeEvent. | def obEC(YKHO):
try:
YKHO.thread_manager.stop_threads()
L0mZ.stop_services(YKHO)
except:
YKHO.logger.debug('Error stopping threads for queue.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M7Di():\n global listen, root\n vI1d = False\n tk5Y.destroy()",
"def RoR3(YKHO):\n for KCHu, MgeT in YKHO.loggingThreads.items():\n MgeT.stop()",
"def on7_(YKHO, bGrB):\n for MgeT in YKHO.threads:\n MgeT.stop()\n MgeT.wait()",
"def JIjU(YKHO):\n if YKHO.advertise_wa... | [
"0.72340935",
"0.7065168",
"0.6931637",
"0.6690543",
"0.66121507",
"0.6607669",
"0.660233",
"0.6594405",
"0.65802556",
"0.65359986",
"0.653375",
"0.6445834",
"0.64163923",
"0.6405618",
"0.63949573",
"0.6392649",
"0.63728464",
"0.6359364",
"0.63548684",
"0.6350719",
"0.6348623... | 0.789256 | 0 |
Move the cursor down |n| rows. | def E6iv(exwG=1):
return ILzl + str(exwG) + 'B' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DgzZ(YKHO) -> None:\n try:\n SO8V: int = YKHO.buffer.index('\\n', start=YKHO.index)\n except ValueError:\n return\n if SO8V == YKHO.buffer.end:\n return\n zgCg: int\n iVRZ: int = YKHO.buffer.get_column(YKHO.index)\n zgCg = SO8V + 1 + iVRZ\n if zgCg > YKHO.buffer.end:\n... | [
"0.67348504",
"0.6426438",
"0.6266233",
"0.6226493",
"0.612615",
"0.6054243",
"0.6052273",
"0.59459186",
"0.59071577",
"0.5874539",
"0.5859489",
"0.57929003",
"0.5778682",
"0.57604027",
"0.57373136",
"0.5720706",
"0.5718242",
"0.5698752",
"0.56896776",
"0.564143",
"0.5641097"... | 0.5530055 | 30 |
Move the cursor left |n| columns. | def rbtA(exwG=1):
return ILzl + str(exwG) + 'D' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jDQv(YKHO, mLGw):\n YKHO.left_postion = mLGw",
"def jDQv(YKHO, YPaw: int=1) -> None:\n if YKHO.cursor_pos.y == 0:\n YKHO.cursor_pos = PvyL(YKHO.cursor_pos.x, YKHO.width - YPaw)\n else:\n YKHO.cursor_pos = PvyL(YKHO.cursor_pos.x, YKHO.cursor_pos.y - YPaw)",
"def msEY(YKHO, vgXP=100):\... | [
"0.64895916",
"0.6325291",
"0.6201206",
"0.60038537",
"0.5979487",
"0.58898914",
"0.58275056",
"0.57006127",
"0.5651769",
"0.5593872",
"0.55496466",
"0.55383843",
"0.5533781",
"0.5533781",
"0.5479196",
"0.5467312",
"0.5414052",
"0.54113203",
"0.54056543",
"0.53824615",
"0.537... | 0.53616023 | 21 |
Move the cursor right |n| columns. | def E_PP(exwG=1):
return ILzl + str(exwG) + 'C' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bjjd(YKHO, mLGw):\n YKHO.right_position = mLGw",
"def vBSR(YKHO, vgXP=100):\n if YKHO.translated == True:\n vgXP = vgXP * 3\n YKHO.Show(YKHO.displayedColumn + vgXP)",
"def bjjd(YKHO) -> None:\n if not YKHO.buffer:\n return\n if YKHO.index == YKHO.buffer.end:\n return\n ... | [
"0.65402484",
"0.6466299",
"0.6424676",
"0.6365193",
"0.6322769",
"0.6103786",
"0.603273",
"0.5969524",
"0.58977276",
"0.5883043",
"0.5883043",
"0.57872224",
"0.57372415",
"0.57243663",
"0.57163846",
"0.5669679",
"0.56480867",
"0.56445765",
"0.56320035",
"0.5586252",
"0.55785... | 0.5444665 | 26 |
Assert that new passwords are generated for each invocation | def idz2(YKHO):
CyXm = tuple((ikbr(8) for YRbF in range(100)))
YKHO.assertEqual(len(CyXm), len(set(CyXm))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vS4q(YKHO):\n YKHO.user.password = '123456'\n YKHO.user2.password = '123456'\n YKHO.assertTrue(YKHO.user.password_hash != YKHO.user2.password_hash)",
"def hbuS(YKHO):\n _D0U, bGrB = YKHO._setup_user()\n CBIr = mv1M.objects.get(email=_D0U)\n YXxD = 'You are re-using a password that you have ... | [
"0.77554315",
"0.7483207",
"0.7221106",
"0.7171813",
"0.71520656",
"0.7128599",
"0.7065607",
"0.7061595",
"0.6984492",
"0.68821895",
"0.68785536",
"0.6869336",
"0.6795126",
"0.6778452",
"0.6727845",
"0.6725491",
"0.67220694",
"0.6681491",
"0.66740614",
"0.66653395",
"0.666041... | 0.7268743 | 2 |
Assert that the password scheme used for new passwords is ldap_sha512_crypt. | def kX3K(YKHO):
Hhv_ = lcc9
for RBFf in (ikbr(8) for YRbF in range(10)):
jPPD = qzFd(RBFf)
YKHO.assertTrue(Hhv_.identify(jPPD), 'Expected hashes for method {}, got: {}'.format(Hhv_.name, jPPD)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yc5G(YKHO):\n RBFf = ikbr(8)\n for NTzC in (T1Hs, lcc9, oa9N, xX2y):\n jPPD = NTzC.hash(RBFf)\n YKHO.assertTrue(sNjs(RBFf, jPPD), \"{}: '{}' should verify '{}'\".format(NTzC.name, jPPD, RBFf))",
"def SqNO(YKHO):\n lycd = 'Just Complex Enough'\n r8hN = HBct.sha512()\n r8hN.update(... | [
"0.68825155",
"0.65575683",
"0.6479358",
"0.6405322",
"0.62115985",
"0.61670494",
"0.61599153",
"0.6151452",
"0.6125512",
"0.6111802",
"0.61074144",
"0.610129",
"0.6090703",
"0.6034018",
"0.6024548",
"0.60186356",
"0.5992914",
"0.5984441",
"0.5978219",
"0.5972767",
"0.5932382... | 0.69917303 | 0 |
returns dataframe of scraped webscrapingdemo.zgulde.net/news | def Aikw():
bD7m = 'https://web-scraping-demo.zgulde.net/news'
YWSi = 'codeup ds germain'
geh0 = G4JS.get(bD7m, headers={'User-Agent': YWSi})
Z9JV = rKuS(geh0.text)
mrVf = Z9JV.select('.grid.gap-y-12 > div')
NB3P = []
for l3QS in mrVf:
leAC = l3QS.h2.text
_c1T, taDc, kGys = l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UEmZ():\n jQ3Z = rLdf.DataFrame()\n for bD7m in TbRu():\n jQ3Z = rLdf.concat([jQ3Z, qH4N(bD7m)])\n return jQ3Z",
"def HfHh(bD7m):\n YWSi = 'codeup ds germain'\n geh0 = G4JS.get(bD7m, headers={'User-Agent': YWSi})\n Z9JV = rKuS(geh0.text)\n Ghho = Z9JV.find_all('li', {'class': 'act... | [
"0.77619743",
"0.72002083",
"0.7045892",
"0.7045892",
"0.686839",
"0.68438214",
"0.67202157",
"0.65267533",
"0.6519357",
"0.6495249",
"0.6465219",
"0.640279",
"0.6393346",
"0.63774806",
"0.63596904",
"0.6316744",
"0.6294499",
"0.6288771",
"0.62844235",
"0.6269015",
"0.6263668... | 0.816277 | 0 |
Calculate the added mass/damping. Specific for now to vertical cylinders of varying diameter. | def dkrk(yzQ0, Rtnc, mPai, NrEI, FnAt=2):
GPtr = {'end1': [0, 0, Rtnc], 'end2': [0, 0, mPai], 'diameter': NrEI, 'strip width': 1.0}
UEYp = G0q0({'inertia coefficient': FnAt, 'members': [GPtr]})
i8nr = UEYp.Morison_added_mass()
k0lF = oyIN.tile(i8nr, (len(yzQ0), 1, 1))
return SAzL(k0lF, PIEQ(k0lF), P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bMbF(YKHO):\n return YKHO.volume * YKHO.density",
"def yVnD(YKHO):\n YFMp = YKHO.star\n E3D9, nMvt, ywwl = YFMp.mesh_size\n KZ_l = YFMp.phi_coords\n yGTL = YFMp.mu_coords\n Mkmy = YFMp.r_coords\n\n def _kx1(r845, G1Hx):\n sum = 0\n for YRbF in range(0, E3D9 - 2, 2):\n ... | [
"0.6371659",
"0.6072853",
"0.600113",
"0.5976136",
"0.5965597",
"0.5915674",
"0.58820415",
"0.58735377",
"0.5793552",
"0.57713723",
"0.576746",
"0.5747129",
"0.5672541",
"0.5650268",
"0.56478935",
"0.5647493",
"0.56394535",
"0.5625358",
"0.56105465",
"0.5597423",
"0.55941385"... | 0.6057516 | 2 |
This function saves the pothole data frame downloaded from the Chicago Data Portal in a CSV file. | def EeeT(jQ3Z, pmON='potholes.csv'):
jQ3Z.to_csv(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zyFt(YKHO):\n Ccfr, c5XO = YKHO.create_df()\n FGW3 = ZbWC.findall('\\\\d+', YKHO.url)[0]\n if YKHO.write is True:\n with open('house_{}.csv'.format(FGW3), 'w', encoding='utf-8-sig') as nUeQ:\n Ccfr.to_csv(nUeQ, sep=';')\n with open('house_lifts_{}.csv'.format(FGW3), 'w', encod... | [
"0.71915",
"0.68754447",
"0.6822195",
"0.6666302",
"0.6651671",
"0.66197574",
"0.6604787",
"0.65228224",
"0.65225613",
"0.64998955",
"0.6494719",
"0.6486049",
"0.64786494",
"0.6475848",
"0.64399964",
"0.64188117",
"0.64171255",
"0.64123464",
"0.64067143",
"0.6372208",
"0.6371... | 0.70086735 | 1 |
This method returns all the registered services. | def VUpn(YKHO, B373):
ixs2 = []
for zVa7 in B373[1]:
ixs2.append(YKHO._make_dict(zVa7))
return ixs2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ttkl(YKHO):\n return eWrP()",
"def NoQ3(YKHO):\n pass",
"def B373(YKHO):\n return B373.Services(YKHO)",
"def ttkl(YKHO):\n return YKHO._services",
"def ttkl(YKHO):\n return list(YKHO.services.values())",
"def B373(YKHO) -> x1iM[M87a]:\n return YKHO._services",
"def FvQf(YKHO) -> x... | [
"0.80672175",
"0.7876353",
"0.777478",
"0.77249336",
"0.7710903",
"0.7659411",
"0.76051134",
"0.7423793",
"0.73325145",
"0.72990406",
"0.71984893",
"0.7077966",
"0.7063234",
"0.7055363",
"0.69997174",
"0.6873056",
"0.6858519",
"0.68456686",
"0.68176454",
"0.6811213",
"0.67839... | 0.64471847 | 35 |
| Object that holds the International Bank Account Number (IBAN) data | def KCUM(YKHO):
return YKHO.__bank_account_iban | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nfxv(YKHO):\n ZrNc = YKHO.get_random_record_with_valid_attribute('accounts', 'account_type', ['Counterparty'])\n return ZrNc['iban']",
"def Prj8(YKHO):\n ZrNc = YKHO.get_random_record_with_valid_attribute('accounts', 'account_type', ['Firm', 'Client'])\n return ZrNc['iban']",
"def fe4_(YKHO):\n... | [
"0.67390215",
"0.6565001",
"0.65395266",
"0.6439043",
"0.62303406",
"0.61907613",
"0.60821223",
"0.60767746",
"0.5905429",
"0.58185244",
"0.5794006",
"0.57384896",
"0.57006854",
"0.5610026",
"0.5600852",
"0.5596548",
"0.55088454",
"0.54902416",
"0.54475224",
"0.5439107",
"0.5... | 0.75289416 | 0 |
Return the first_name plus the last_name, with a space in between. | def xpqj(YKHO):
eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)
return eHMM.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f",
"def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f",
"def kaIN(c9ua, zp3f):\n eHMM = c9ua + '' + zp3f\n return eHMM.title()",
"def xpqj(YKHO):\n return YKHO.first_name + ' ' + YKHO.last_name",
"def xpqj(YKHO):\n return YKHO.first_name + ' ... | [
"0.83424175",
"0.8227792",
"0.8099884",
"0.80680513",
"0.80531704",
"0.8045193",
"0.7995028",
"0.799401",
"0.799401",
"0.799401",
"0.79797614",
"0.7964116",
"0.79576445",
"0.79403675",
"0.7937235",
"0.7933996",
"0.7915679",
"0.79016924",
"0.78933924",
"0.7869724",
"0.7856853"... | 0.7787285 | 56 |
r""" Generate a vector corresponding to the diagonal of the MIS Hamiltonian. | def FIMM(YKHO, pNZh: Graph, qbnw=(1, 1), Wxnj=t3jy, yn4m=False):
if qbnw == (1, 1) and yn4m:
qbnw = (1,)
YKHO.code = Wxnj
YKHO.graph = pNZh
YKHO.n = YKHO.graph.n
YKHO.energies = qbnw
YKHO.IS_subspace = yn4m
YKHO.optimization = 'max'
if not YKHO.IS_subspace:
if bWeC.is_dia... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IjIm(YKHO):\n E3D9 = YKHO.rep\n r8hN, exwG = YKHO.shape\n return [E3D9[YRbF, YRbF] for YRbF in range(min(r8hN, exwG))]",
"def IjIm(YPaw='Metropolis', S7dm=5000):\n EcVT = FQNo.Uniform('X', lower=-1.0, upper=1.0, value=[0.0, 0.0])\n\n @FQNo.potential\n def XVsX(EcVT=EcVT):\n if abs(Ec... | [
"0.71084434",
"0.69070405",
"0.68508714",
"0.6805694",
"0.66903335",
"0.6583982",
"0.6524836",
"0.65178025",
"0.64895284",
"0.647098",
"0.6459295",
"0.6411523",
"0.63909525",
"0.6351857",
"0.6341357",
"0.6310974",
"0.62809527",
"0.62505215",
"0.624064",
"0.62389773",
"0.62293... | 0.0 | -1 |