query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Returns the current user rating for the audio_file instance | def jnR1(YKHO) -> int:
return YKHO._user_rating | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OXhY(YKHO, uJjO):\n return YKHO.mean_user_rating[YKHO.mean_user_rating['user_id'] == uJjO]['rating'].item()",
"def cRxX(YKHO, uJjO):\n return YKHO.ratings[YKHO.ratings['user_id'] == uJjO]",
"def Z70p(YKHO):\n return YKHO.proto.aggregateRating.starRating",
"def RrWF(YKHO):\n S8vG = YKHO.review... | [
"0.6627338",
"0.6283099",
"0.62079924",
"0.6195082",
"0.61833507",
"0.61767393",
"0.61595863",
"0.61358863",
"0.61311936",
"0.6091103",
"0.6088088",
"0.6088088",
"0.608783",
"0.6077677",
"0.604285",
"0.60403967",
"0.6000047",
"0.5988844",
"0.59556884",
"0.595322",
"0.59321564... | 0.7233619 | 0 |
Returns a formatted string that shows the audio_file name and times played | def swC_(YKHO):
hO82 = '{} has been played {} time'.format(YKHO._title, YKHO._usage.play_count)
if YKHO._usage.play_count > 1 or YKHO._usage.play_count == 0:
hO82 += 's'
print(hO82) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y89W(gIsw):\n q9mE = qJa9.open(gIsw, 'r')\n l7x1 = q9mE.getsampwidth()\n abR5 = q9mE.getframerate()\n c1sR = q9mE.getnframes()\n YDR7 = q9mE.getnchannels()\n KCHu = 'sample width: {} bytes\\n'.format(l7x1) + 'frame rate: {} Hz\\n'.format(abR5) + 'num frames: {}\\n'.format(c1sR) + 'track lengt... | [
"0.6399311",
"0.62130934",
"0.61505574",
"0.6130907",
"0.61177164",
"0.59263015",
"0.5895166",
"0.5891737",
"0.58695537",
"0.58237946",
"0.582293",
"0.5818907",
"0.5816524",
"0.5814739",
"0.5798617",
"0.5791161",
"0.57439744",
"0.57388574",
"0.57361794",
"0.5724271",
"0.57057... | 0.6288807 | 1 |
Gets the file path of the audio_file instance | def _bsB(YKHO) -> str:
if Hy7s.path.exists(YKHO._file_path):
return 'The file ({}) is located in the path ({})'.format(YKHO._file_name, YKHO._file_path)
else:
raise FileNotFoundError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UnYa(YKHO, Ux0P):\n or8S = YKHO._soundfiles.index(Ux0P)\n return '{}/{}'.format(YKHO._soundpaths[or8S], Ux0P)",
"def chx7(YKHO, P4t4):\n return P4t4.recordingsPath.child(YKHO.filename).path",
"def lMaj(YKHO, AGPF=None):\n return YKHO.make_path(AGPF, '.wav')",
"def OyQC(YKHO):\n try:\n ... | [
"0.7490195",
"0.74901843",
"0.73469466",
"0.731285",
"0.72917885",
"0.7277486",
"0.72742766",
"0.7094798",
"0.70782816",
"0.70298177",
"0.69291383",
"0.6915687",
"0.6902932",
"0.68999505",
"0.68459857",
"0.68395096",
"0.68122905",
"0.6755028",
"0.6746607",
"0.6693361",
"0.667... | 0.0 | -1 |
Convert http.har to YAML. | def oVXq(XOnN):
if XOnN:
cdiC = iStH.convert_har_to_ht(XOnN)
iStH.write_case_to_yaml('', cdiC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q24I(YKHO):\n return eJb6.dump(YKHO.raw, Dumper=eJb6.SafeDumper)",
"def GyQW(YKHO, *, nPrm):\n Aofo = eJb6.dump(nPrm, default_flow_style=True)\n Aofo = Aofo.replace('\\n', ' ').strip()\n Aofo = ZbWC.sub(' *', ' ', Aofo)\n return Aofo",
"def eJb6(YKHO):\n raise NotImplementedError",
"de... | [
"0.6067014",
"0.5750265",
"0.57344013",
"0.56418574",
"0.563329",
"0.55278426",
"0.54972774",
"0.54600006",
"0.543247",
"0.5431276",
"0.54208314",
"0.5402448",
"0.53819096",
"0.5340411",
"0.53272843",
"0.53181577",
"0.52950203",
"0.52925503",
"0.5226353",
"0.5226287",
"0.5211... | 0.8132008 | 0 |
Get file case YAML. | def SnoX(ZdcP):
Y8Kb = []
if ZdcP:
amWv = '&#'.join(ZdcP)
Y8Kb.append(Hy7s.path.join(Hy7s.getcwd(), amWv))
BXLT = Hy7s.path.join(Fd7m.loadcasePath, '.am_cache')
zyFt(Hy7s.path.join(BXLT, 'yaml.cache'), 'w', ';'.join(Y8Kb))
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WTSB(e2gD):\n if e2gD:\n WRxi = Hy7s.path.join(Hy7s.getcwd(), str(e2gD).strip())\n JXH8.generate_case_tmpl(WRxi)",
"def wyGq(ZdcP):\n irci = open(ZdcP)\n GPtr = eJb6.load(irci)\n GPtr['model_dir'] = G53c\n return GPtr",
"def A9Q_():\n IhLb()\n return NINC",
"def LMdB(Ux... | [
"0.6853437",
"0.6578174",
"0.62572324",
"0.61814916",
"0.6178755",
"0.6049517",
"0.5951054",
"0.59024477",
"0.5877184",
"0.57700133",
"0.5766219",
"0.5735199",
"0.5725975",
"0.57209015",
"0.570617",
"0.5703252",
"0.57023776",
"0.5657186",
"0.5652669",
"0.5633805",
"0.56329685... | 0.67364377 | 1 |
The name of the Global Datastore, it is generated by ElastiCache adding a prefix to GlobalReplicationGroupIdSuffix. | def SSNs(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'global_replication_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_uN(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'global_replication_group_id_suffix')",
"def o_uN(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'global_replication_group_id_suffix')",
"def o_uN(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'global_replication_group_id_suffix'... | [
"0.69785523",
"0.6855184",
"0.67185915",
"0.658941",
"0.6206801",
"0.6095029",
"0.5968409",
"0.586667",
"0.5858086",
"0.5858086",
"0.58393973",
"0.5816872",
"0.5791118",
"0.57872117",
"0.57731485",
"0.5748173",
"0.57407176",
"0.5738209",
"0.5688608",
"0.56853837",
"0.5683636"... | 0.648853 | 4 |
Return the state attributes of the device. | def TzCU(YKHO) -> dict[str, ImMB]:
hkS8: dict[str, ImMB] = {}
if isinstance(YKHO.wemo, WRKq):
if YKHO.wemo.has_sensor:
if YKHO.wemo.sensor_state:
hkS8[xaqa] = iKVK
else:
hkS8[xaqa] = _rDc
if YKHO.wemo.switch_mode:
hkS8[c3Kc] = J... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO)... | [
"0.92738223",
"0.92053986",
"0.91516256",
"0.91516256",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148746",
"0.9148746",
"0.9137698",
"0.9110632",... | 0.0 | -1 |
Return the icon of device based on its type. | def _G4g(YKHO) -> str | None:
if isinstance(YKHO.wemo, qiWb):
return 'mdi:coffee'
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _G4g(YKHO):\n if YKHO.device_class:\n return None\n return p3fa.get(YKHO.tesla_device.type)",
"def _G4g(YKHO):\n if not YKHO.device_class:\n return p3fa.get(YKHO.entity_type)\n return None",
"def _G4g(YKHO):\n if 'icon' in YKHO._typeconf:\n return YKHO._typeconf['icon']"... | [
"0.843454",
"0.81947875",
"0.7710127",
"0.76249415",
"0.76149356",
"0.7585125",
"0.752269",
"0.7517366",
"0.74961644",
"0.7411755",
"0.7411755",
"0.74050176",
"0.7388733",
"0.7388733",
"0.73212683",
"0.7295061",
"0.72667056",
"0.7261132",
"0.72199655",
"0.7209597",
"0.7197567... | 0.69205046 | 32 |
Turn the switch off. | def Z_rv(YKHO, **B2fa: Any) -> None:
with YKHO._wemo_call_wrapper('turn off'):
YKHO.wemo.off() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_rv(YKHO, **B2fa):\n YKHO.smartplug.turn_off()",
"def dNOs(YKHO):\n YKHO._switch_callback = None",
"def Z_rv(YKHO):\n YKHO.handleCommand(1)\n YKHO._state = iKVK",
"def Z_rv(YKHO, **B2fa):\n hodN(YKHO._host, 'off')\n YKHO._state = False",
"def Z_rv(YKHO):\n print('Turning the light... | [
"0.870139",
"0.867637",
"0.85906535",
"0.8523712",
"0.84588856",
"0.84180963",
"0.8404447",
"0.8398465",
"0.8375364",
"0.83491224",
"0.83192796",
"0.82949907",
"0.81680954",
"0.8155346",
"0.8112255",
"0.8091075",
"0.8072859",
"0.8058921",
"0.8058517",
"0.8041678",
"0.8036265"... | 0.8277566 | 12 |
Assert that `actual_obj` is the same as `expected_obj` except keys where values are None. | def Hd0J(LA8K, mc7_):
assert type(LA8K) == type(mc7_)
r_iE = LA8K.obj_dict()
JzO4 = mc7_.obj_dict()
k0Xe(r_iE, JzO4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XWuM(aEqx, n5sN):\n return {G1Hx: Ty9i for G1Hx, Ty9i in aEqx.iteritems() if n5sN.get(G1Hx) != Ty9i}",
"def k0Xe(S5sk, YyUh):\n for H5ew in set(S5sk) & set(YyUh):\n H05W(H5ew, S5sk[H5ew], YyUh[H5ew])",
"def P0aX(YKHO, aEqx, n5sN):\n for G1Hx, Ty9i in aEqx.iteritems():\n if G1Hx in n5... | [
"0.74569476",
"0.6970658",
"0.6581951",
"0.65769976",
"0.6518167",
"0.6475961",
"0.63508976",
"0.6308672",
"0.62935245",
"0.6293422",
"0.622943",
"0.6208412",
"0.6177125",
"0.61715347",
"0.61401564",
"0.6114121",
"0.6101795",
"0.6098102",
"0.60845935",
"0.6082214",
"0.6074565... | 0.76034325 | 0 |
adults_directory > string, directory of employed_adults_apr2020_jul2020.csv eg '../../src/csv/employed_adults_apr2020_jul2020.csv' covid_pol_directory > string, directory of pol_covid.csv eg '../../src/csv/pol_covid.csv' returns > pandas.DataFrame containing features of intereast | def Gkyj(g49U, F8fk):
try:
jQ3Z = rLdf.read_csv(g49U, index_col=0)
except Exception as e:
print(str(tTpl))
print('Please enter the correct directory for employed_adults_apr2020_jul2020.csv')
pan_ = jQ3Z.PREMPNOT_y.apply(sqRU)
jQ3Z['target'] = pan_
ex31 = [iVRZ for iVRZ in jQ3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VoyL(h_xa: pathlib.Path) -> AzJI[rLdf.DataFrame, rLdf.DataFrame]:\n AZ1r = h_xa / 'train_df.pkl'\n U4Er = h_xa / 'test_df.pkl'\n if h_xa.exists() and len(tuple(h_xa.iterdir())) > 1:\n x4W3 = rLdf.read_pickle(AZ1r)\n Dmme = rLdf.read_pickle(U4Er)\n else:\n h_xa.mkdir(exist_ok=Tr... | [
"0.61798716",
"0.59276307",
"0.58808255",
"0.5871795",
"0.5857944",
"0.5836723",
"0.57604444",
"0.57296884",
"0.5686535",
"0.5665045",
"0.5616399",
"0.5515983",
"0.5407081",
"0.53935385",
"0.537482",
"0.53732526",
"0.53600115",
"0.5358962",
"0.5354479",
"0.5339399",
"0.533573... | 0.6207496 | 0 |
df > pandas.DataFrame directory > string location of pol_covid.csv | def E_Ep(jQ3Z, AGPF):
gl_c = rLdf.read_csv(AGPF, index_col=0)
jQ3Z = jQ3Z.merge(gl_c, left_on='GESTFIPS', right_on='fips', how='left')
jQ3Z.drop(columns=['fips'], inplace=True)
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AXOg(D1_W: pd.DataFrame, kal_: str) -> str:\n if kal_ is None:\n kal_ = './'\n else:\n kal_ = beR0(kal_)\n qaEx: str = f'{kal_}vouchers.{vHj7()}.csv'\n D1_W.to_csv(qaEx, index=False)\n return qaEx",
"def Jmpp(mWFP):\n return './data/%s' % mWFP",
"def aVpL(jQ3Z, ytgA):\n i... | [
"0.72082216",
"0.6750319",
"0.6591459",
"0.6355767",
"0.63468415",
"0.6325199",
"0.63047373",
"0.6253288",
"0.6220196",
"0.6212935",
"0.6192336",
"0.6166383",
"0.61268777",
"0.6115077",
"0.6111146",
"0.6108714",
"0.6050048",
"0.60345775",
"0.60188013",
"0.60097474",
"0.600474... | 0.0 | -1 |
given a list of colors, create a larger list of colors interpolating the first one. If flatten is True a list of numers will be returned. If False, a list of (r,g,b) tuples. num_colors is the number of colors wanted in the final list | def JLRE(Jw9H, TLbF=False, ydh_=256):
tn62 = []
for YRbF in range(ydh_):
d6pt = YRbF * (len(Jw9H) - 1) / (ydh_ - 1.0)
IJ1f = int(d6pt)
Cwt5 = d6pt - float(IJ1f)
if Cwt5 > 0:
Mkmy = (1.0 - Cwt5) * Jw9H[IJ1f][0] + Cwt5 * Jw9H[IJ1f + 1][0]
Oa1e = (1.0 - Cwt5)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lHli(Jw9H, tAX0=12):\n hlel = []\n if len(Jw9H) != 7 or tAX0 > 14:\n volR = int(tAX0 / len(Jw9H))\n for YRbF in Jw9H:\n hlel += [YRbF] * volR\n else:\n for r845, YRbF in enumerate(Jw9H):\n hlel += [YRbF] * (1 + (r845 % 2 == 1))\n return hlel",
"def fRt4(... | [
"0.64414346",
"0.59855473",
"0.59649986",
"0.5934188",
"0.5889408",
"0.5880003",
"0.58734107",
"0.58412755",
"0.57989866",
"0.57159334",
"0.57072985",
"0.564304",
"0.56237763",
"0.56205845",
"0.55856353",
"0.55585176",
"0.5531769",
"0.5525841",
"0.55230904",
"0.551889",
"0.54... | 0.68439347 | 0 |
given a value between 0 and 1, return an (r,g,b) tuple | def HkkF(YKHO, BWXx):
return AqB_.getrgb('hsl(%d,%d%%,%d%%)' % (int((1.0 - BWXx) * 360), 80, 50)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWXx(YKHO):\n return (YKHO.r, YKHO.g, YKHO.b)",
"def qMln(a9Hh):\n Mkmy, Oa1e = a9Hh\n if Mkmy == 0 and Oa1e == 0:\n return (0, 0)\n elif Mkmy == 1 and Oa1e == 1:\n return (2, 2)\n elif Mkmy == 0:\n if Oa1e == 1:\n Oa1e += 1\n else:\n Oa1e -= 1... | [
"0.72312605",
"0.7091915",
"0.701102",
"0.701102",
"0.6766909",
"0.66827947",
"0.64752096",
"0.639378",
"0.63424754",
"0.63414",
"0.6319955",
"0.6285804",
"0.6274217",
"0.6233372",
"0.6225892",
"0.62256086",
"0.62254864",
"0.62160724",
"0.61624867",
"0.6134874",
"0.6100054",
... | 0.0 | -1 |
Initialised a new ClusterListsComparer analyser. | def FIMM(YKHO):
super().__init__()
YKHO.min_size = 2
YKHO.file_index = 0
YKHO.cluster_lists = [[], []]
YKHO.cluster_spectra_num = [0, 0]
YKHO.sorted_spectra_dict = dict()
YKHO.stars = dict()
YKHO.starlets = dict()
YKHO.shared_spec_num = 0
YKHO.stars_length = 0
YKHO.starlets_l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _5jS(YKHO):\n if len(YKHO.labelList) != len(YKHO.pointList):\n raise ValueError('Label List and Point List not the same length!')\n for YRbF in range(len(YKHO.labelList)):\n YKHO.centroids[YKHO.labelList[YRbF]] = YKHO.pointList[YRbF]\n YKHO.pointcounts[YKHO.labelList[YRbF]] = 1",
"... | [
"0.64214784",
"0.59921706",
"0.59436494",
"0.59354013",
"0.5909261",
"0.58554983",
"0.58468246",
"0.58330745",
"0.581329",
"0.5797158",
"0.5790236",
"0.5758743",
"0.5713067",
"0.5680812",
"0.56649953",
"0.5616604",
"0.5572494",
"0.5562613",
"0.55595654",
"0.55140734",
"0.5510... | 0.5108488 | 80 |
Determine the number of nonempty rows and columns in the Excel sheet | def NWDr(YKHO):
imBQ = mNlw(YKHO.r_sheet)
AYYn = tmav(YKHO.r_sheet)
while YKHO.isEmptyRow(AYYn - 1, imBQ):
AYYn = AYYn - 1
while YKHO.isEmptyColumn(imBQ - 1, AYYn):
imBQ = imBQ - 1
YKHO.log.debug('Number of rows with content: {0}'.format(AYYn))
YKHO.log.debug('Number of column... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DJ6o(YKHO):\n if hasattr(YKHO, '__num_cells__'):\n return YKHO.__num_cells__\n if YKHO.x is not None:\n return YKHO.x.size(YKHO.__cat_dim__('x', YKHO.x))\n if YKHO.boundary_index is not None:\n return int(YKHO.boundary_index[1, :].max()) + 1\n assert YKHO.upper_index is None an... | [
"0.69575936",
"0.69174635",
"0.69098",
"0.6888946",
"0.68511105",
"0.66627747",
"0.6610862",
"0.6600963",
"0.6600963",
"0.6600963",
"0.6600963",
"0.6588624",
"0.6574061",
"0.6529033",
"0.64814025",
"0.64400804",
"0.6433598",
"0.64148366",
"0.63986665",
"0.6386033",
"0.6358315... | 0.66136146 | 6 |
return True/False Accepts a list of number. Check each of them for pairwise primality against the last number in the list. Presumably the numbers other than the last have been checked together already as they were added to the group | def Ep0o(UNwF):
if len(UNwF) < 2:
return True
HpuQ = UNwF[-1]
for EBgd in UNwF[:-1]:
WKvO = Z7kK(EBgd, HpuQ)
LVAh = Z7kK(HpuQ, EBgd)
if not T1qg(WKvO) or not T1qg(LVAh):
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AbtR(yv6U):\n for WKvO in yv6U:\n if AUBy(WKvO) is False:\n return False\n return True",
"def BXN1(_Z1k: list):\n assert isinstance(_Z1k, list)\n zNig = len(_Z1k)\n for YRbF in range(0, zNig - 1):\n for r845 in range(YRbF + 1, zNig):\n if not Q3Pm(_Z1k[YRbF]... | [
"0.7255272",
"0.65309936",
"0.6473677",
"0.64144915",
"0.63442236",
"0.63309944",
"0.6329136",
"0.6321939",
"0.6257557",
"0.6256556",
"0.6254843",
"0.6244247",
"0.6143883",
"0.6110097",
"0.60926336",
"0.607919",
"0.6078543",
"0.6038998",
"0.6021289",
"0.6016878",
"0.60090774"... | 0.73921317 | 0 |
Compute the euclidian distance between two entities | def s7yO(YKHO, Elif):
return float(PZyS(pow(YKHO._row - Elif._row, 2) + pow(YKHO._col - Elif._col, 2))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j3wi(jzdc, Fg_i):\n return oyIN.sqrt((jzdc[0] - Fg_i[0]) ** 2 + (jzdc[1] - Fg_i[1]) ** 2)",
"def XouW(o4D3, si3g, ajwV, skBL):\n Ayfi = PZyS(pow(o4D3 - ajwV, 2) + pow(si3g - skBL, 2))\n return Ayfi",
"def j3wi(ZbiE, CSPF, mOlj, ymxS):\n return PZyS((mOlj - ZbiE) ** 2 + (ymxS - CSPF) ** 2)",
"... | [
"0.7855713",
"0.7762067",
"0.75063074",
"0.74843633",
"0.7461903",
"0.7419441",
"0.72719705",
"0.71506906",
"0.7132709",
"0.71245384",
"0.7121117",
"0.7118845",
"0.7084074",
"0.7067265",
"0.70505553",
"0.7036499",
"0.70339733",
"0.7030447",
"0.69965035",
"0.69893193",
"0.6986... | 0.0 | -1 |
Compute the euclidian distance between an entity and a location | def pct1(YKHO, rdlD, fvDH):
return float(PZyS(pow(YKHO._row - rdlD, 2) + pow(YKHO._col - fvDH, 2))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TNNJ(Bz2B, WDnu):\n return oyIN.sqrt((Bz2B[0] - WDnu[0]) ** 2 + (Bz2B[1] - WDnu[1]) ** 2)",
"def s7yO(YKHO, Rci7):\n return d8UF.getDistance((YKHO.latitude, YKHO.longitude), Rci7)",
"def khyI(YKHO, NiNK):\n Ayfi = epAf.sqrt((YKHO.east - NiNK.east) ** 2 + (YKHO.north - NiNK.north) ** 2)\n return... | [
"0.75478536",
"0.69023114",
"0.6899074",
"0.6835795",
"0.67768645",
"0.67283833",
"0.67283833",
"0.67155427",
"0.65439",
"0.64630586",
"0.6441155",
"0.6358861",
"0.63314825",
"0.62575054",
"0.6158897",
"0.61578774",
"0.61469865",
"0.6115758",
"0.61142504",
"0.6099803",
"0.609... | 0.60883623 | 22 |
single HTML page web application | def d6pt(YKHO):
xuug = Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'index.html')
return UbvO(xuug) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 Ozko():\n return TvZl('index.html')",
"def b8V_():\n return TvZl('index.html')",
"def b8V_():\n return TvZl('index.... | [
"0.74165916",
"0.7397944",
"0.72102684",
"0.72102684",
"0.71679205",
"0.7127047",
"0.70666337",
"0.7059565",
"0.70578384",
"0.70578384",
"0.7008427",
"0.69961375",
"0.6951675",
"0.6951675",
"0.6934824",
"0.6916955",
"0.6883569",
"0.686649",
"0.6853686",
"0.6850671",
"0.684193... | 0.68613815 | 18 |
Return string representation of an order. | def zAg0(YKHO):
return f'Order: {YKHO.size} {YKHO.drink_name} from {YKHO.shop}\nDetails: {YKHO.details}\nLocation: {YKHO.location}\nContact Info: {YKHO.customer_name}, {YKHO.customer_number}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K0Ik(Emd4, qSJ3):\n nqEK = OHmi()\n WjJT = nqEK.getUtility(aACk, name=ZDMG.CQL)\n jbn3 = WjJT()\n qSJ3.accept(jbn3)\n return str(jbn3.expression)",
"def Bnkv(T4Wy):\n CiHI = oyIN.array(T4Wy)\n pNz6 = oyIN.sum(CiHI == 0)\n XQaS = oyIN.sum(CiHI == 1)\n r9BM = oyIN.sum(CiHI == 2)\n ... | [
"0.74354815",
"0.74330306",
"0.7226749",
"0.71246475",
"0.6925106",
"0.6887944",
"0.6846136",
"0.68099225",
"0.6732186",
"0.65517396",
"0.65187943",
"0.6409505",
"0.6381712",
"0.63508654",
"0.63508654",
"0.63508654",
"0.63508654",
"0.63508654",
"0.63508654",
"0.63508654",
"0.... | 0.6875808 | 6 |
Select the best candidate pagenumber for the given page, with reference to neighboring pages. 'pages' must be a windowed_iterator; 'window', if provided, will look to a smaller set of neighboring pages to determine a likely page number. (Smaller than that provided by the given windowed_iterator.) | def gb9Q(_6VS, Gqqd, KnxT=None):
if KnxT is None:
KnxT = Gqqd.window
def A6dL(_6VS, HFkI, _8oV, upAO):
for Z9rn in _6VS.info['pageno_candidates']:
if Z9rn.offset >= HFkI:
continue
if Z9rn.offset not in _8oV[Z9rn.type]:
_8oV[Z9rn.type][Z9rn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mOlS(YKHO, Gqqd):\n pass",
"def ndYQ(n9zv):\n if n9zv % RdtB == 0:\n return int(n9zv / RdtB)\n else:\n return int(n9zv / RdtB) + 1",
"def Zp90(Gqqd, a70H):\n gFpA = []\n for B2Dn in Gqqd:\n FZPG = uwpm(B2Dn.get('extlinks', None))\n if FZPG is None:\n Cu... | [
"0.533257",
"0.5093779",
"0.5020989",
"0.49389336",
"0.49362502",
"0.49140146",
"0.4821802",
"0.48214674",
"0.4809199",
"0.47486413",
"0.4742521",
"0.4684127",
"0.46808767",
"0.46710113",
"0.46595886",
"0.46473902",
"0.4643131",
"0.45898446",
"0.45437312",
"0.45382893",
"0.45... | 0.7138489 | 0 |
Generate the invocation time string | def m7L9():
lY0q = ITS7.time()
D5g7 = ITS7.gmtime(lY0q)
bDaW = int((lY0q - int(lY0q)) * 1000)
return f'{ITS7.strftime(Qww1, D5g7)}.{bDaW:0>3}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sc4B(YKHO) -> str:\n return qe4Y.get(YKHO, 'generate_time')",
"def B1Ou(YKHO):\n return str(bin(int(round(ITS7.time() * 1000))))[2:]",
"def ITS7(YKHO, p9K5, qIxc):\n return str(qcWV.datetime.now())",
"def ITS7(YKHO, p9K5, qIxc):\n return str(qcWV.datetime.now())",
"def IJ8b():\n return F... | [
"0.76272124",
"0.7544282",
"0.7197232",
"0.7197232",
"0.70281094",
"0.7017373",
"0.69867426",
"0.6897424",
"0.6896732",
"0.6896732",
"0.6896732",
"0.6896732",
"0.6896732",
"0.6896732",
"0.6896732",
"0.6896732",
"0.6896732",
"0.6896732",
"0.68881077",
"0.68433386",
"0.6834912"... | 0.0 | -1 |
Factory method for creating a list of datasets based on the provided config. | def TgPF(Emd4, NTaE, JT9N):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NIm3(GPtr):\n EPL3, IrSd = (iFos(2, 5), iFos(2, 5))\n Pa1c = pVAc(EPL3, batch_size=GPtr['batch_size'])\n o7Up = pVAc(IrSd, batch_size=GPtr['batch_size'])\n return (Pa1c, o7Up)",
"def oUGu(YKHO, GPtr, xlLU):\n raise NotImplementedError()",
"def _Pkd(GPtr: ModelSettings, jQ3Z: pd.DataFrame):\n... | [
"0.70969605",
"0.70201373",
"0.68344074",
"0.6776368",
"0.6705866",
"0.6635719",
"0.6573257",
"0.65120465",
"0.6498575",
"0.642622",
"0.6426022",
"0.63702697",
"0.6339183",
"0.63318914",
"0.63004375",
"0.6271441",
"0.62032425",
"0.6139148",
"0.61390036",
"0.6128331",
"0.61185... | 0.71189034 | 0 |
Iterates over a given ndim dataset patchbypatch with a given stride and builds an array of slice positions. | def H4Z2(__n6, wYpV, jM8m):
SuPp = []
if __n6.ndim == 4:
DYuh, n9YE, EZjL, _XKJ = __n6.shape
else:
n9YE, EZjL, _XKJ = __n6.shape
uzb7, dJjU, _Bh4 = wYpV
zl40, HLYT, OHck = jM8m
_zwH = QXKl._gen_indices(n9YE, uzb7, zl40)
for epBp in _zwH:
yozu = QXKl._gen_indices(EZjL,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZCSi(YKHO, _0fC: int, FTrt: Tuple[int, int], Ylkb: Tuple[int, int], hVLt: int=None) -> AzJI[cuzp[str, slice], int, int]:\n XzbN, dDkX = FTrt\n HN6s, NTrv = YKHO._get_margins(XzbN, Ylkb[0], _0fC, pad=hVLt)\n co3n, kCqe = YKHO._get_margins(dDkX, Ylkb[1], _0fC, pad=hVLt)\n HjxD = {}\n for rdlD in r... | [
"0.7005847",
"0.6875334",
"0.67783237",
"0.669869",
"0.65634847",
"0.6540892",
"0.64972025",
"0.6417897",
"0.6367937",
"0.6297416",
"0.62602884",
"0.6231236",
"0.6219337",
"0.61511153",
"0.6101347",
"0.60946655",
"0.6035865",
"0.60248786",
"0.6021954",
"0.5969248",
"0.5953036... | 0.8112532 | 0 |
Returns dictionary containing the training and validation loaders (torch.utils.data.DataLoader). | def lW6r(GPtr):
assert 'loaders' in GPtr, 'Could not find data loaders configuration'
tA2k = GPtr['loaders']
bo34.info('Creating training and validation set loaders...')
Og5D = tA2k.get('dataset', None)
if Og5D is None:
Og5D = 'StandardHDF5Dataset'
bo34.warning(f"Cannot find dataset ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rqQU(YKHO):\n return (YKHO.train_loader, YKHO.test_loader)",
"def SELc(EPL3, IrSd, qby3, Ep8u=128):\n Pa1c = pVAc(EPL3, batch_size=Ep8u, num_workers=8, shuffle=True)\n o7Up = pVAc(IrSd, batch_size=Ep8u, num_workers=8, shuffle=False)\n Blhr = pVAc(qby3, batch_size=Ep8u, num_workers=8, shuffle=Fals... | [
"0.77058",
"0.75321263",
"0.73289746",
"0.72428334",
"0.7208654",
"0.7152161",
"0.7123573",
"0.71009004",
"0.6979185",
"0.6968148",
"0.69598883",
"0.69548553",
"0.69495887",
"0.6937144",
"0.6812265",
"0.6792436",
"0.67497855",
"0.671914",
"0.66676164",
"0.6654188",
"0.6636162... | 0.78866273 | 0 |
Always returns a readonly array of single characters, even for codon sequences. | def YRbF(YKHO):
return oyIN.array(YKHO._sequence) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ni1I(KCHu):\n if type(KCHu) != bytes:\n raise ValueError('Input to to_char_array function should be in bytes')\n cWgI = []\n s2mk = KCHu.split(b' ')\n for eOtH in s2mk:\n cWgI.append(ord(' '))\n if am6Y(eOtH):\n cWgI.append(eOtH)\n continue\n if eOt... | [
"0.6162955",
"0.5973711",
"0.574557",
"0.5743245",
"0.57274646",
"0.57254165",
"0.5680359",
"0.56634533",
"0.56623495",
"0.5628516",
"0.56215113",
"0.5609781",
"0.55517864",
"0.5528191",
"0.5488369",
"0.54747003",
"0.5428007",
"0.53952384",
"0.537731",
"0.5375679",
"0.5373401... | 0.50511724 | 51 |
Converts an integer to an alphabet equivilent | def gd4m(FGW3, gZgb='ABCDEFGHIJKLMNOPQRSTUVWXYZ'):
if not isinstance(FGW3, (int, Swre)):
raise TypeError('number must be an integer')
if 0 <= FGW3 - 1 < len(gZgb):
return gZgb[FGW3 - 1]
P8oC = ''
while FGW3 != 0:
FGW3, Mkmy = divmod(FGW3, len(gZgb))
if Mkmy == 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KCQ5(FGW3):\n return chr(FGW3 + 96)",
"def KCQ5(FGW3):\n return chr(FGW3 + 96)",
"def _IIx(mLGw):\n K0A_ = mLGw\n l5Ny = []\n if mLGw >= 26:\n IJ4N = K0A_ // 26\n l5Ny.append(JSRc[K0A_ // 26 - 1])\n K0A_ -= IJ4N * 26\n l5Ny.append(JSRc[K0A_])\n return ''.join(l5Ny)... | [
"0.8599202",
"0.8599202",
"0.8268884",
"0.8218596",
"0.8072347",
"0.8066379",
"0.80081505",
"0.7729698",
"0.7386837",
"0.7326128",
"0.7321771",
"0.73217565",
"0.72905993",
"0.71751994",
"0.7173629",
"0.71488357",
"0.7145458",
"0.7137527",
"0.7095061",
"0.6982924",
"0.69242847... | 0.77570724 | 7 |
Sheet Size Get the size of the sheet. | def NRbo(YKHO):
_l9J = {9993: 'A0', 9994: 'A1', 9995: 'A2', 9996: 'A3', 9997: 'A4'}
return _l9J[YKHO.doc.Sheets(1).Size] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pxZT(YKHO):\n return YKHO.image.size",
"def TVTK(YKHO):\n return YKHO.sheet.width",
"def H2v2(YKHO):\n return YKHO.sheet.height",
"def R8e4(YKHO):\n return YKHO.screen.get_size()",
"def zNig(YKHO):\n return YKHO._ax.size",
"def jiw9(YKHO):\n return YKHO._surf.get_size()",
"def zNi... | [
"0.7155422",
"0.7145198",
"0.6696293",
"0.6311784",
"0.6203815",
"0.6170172",
"0.614004",
"0.6112646",
"0.6112646",
"0.6112646",
"0.6112646",
"0.6112646",
"0.6112646",
"0.6112646",
"0.6111653",
"0.60817945",
"0.6013408",
"0.5942203",
"0.5916718",
"0.5890572",
"0.588095",
"0... | 0.7440444 | 0 |
Return the energy of the satellite. | def a9W4(YKHO):
QnmL = YKHO.getlatlon()[0]
return 0.5 * YKHO._sm * (YKHO._vr ** 2 + YKHO._vt ** 2 + YKHO._vp ** 2) + LtyS.wgs84_pot(YKHO._r, QnmL) * YKHO._sm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M6MN(YKHO):\n return YKHO._energy",
"def Nndf(YKHO):\n if not hasattr(YKHO, 'energy'):\n YKHO.energy = YKHO.calcEnergy()\n return YKHO.energy",
"def VYvU(YKHO):\n return YKHO._energy",
"def ut5U(YKHO):\n return YKHO.generic_getter(M6MN, 'E', 'convert_energy')",
"def M6MN(YKHO):\n ... | [
"0.7802017",
"0.7779786",
"0.7775046",
"0.77210236",
"0.76014996",
"0.754349",
"0.7407291",
"0.7307963",
"0.7296487",
"0.7278805",
"0.7278805",
"0.7273466",
"0.722053",
"0.7217305",
"0.7211851",
"0.72071874",
"0.7206874",
"0.72063994",
"0.7061582",
"0.7060914",
"0.7044249",
... | 0.0 | -1 |
Return the semi major axis of the satellite. | def RTfI(YKHO):
return 0.5 * -yvY1 * YKHO._mm * YKHO._sm / YKHO.geten() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lUUP(YKHO):\n return (YKHO.semimajor_axis - YKHO.semimedium_axis) / YKHO.semimajor_axis",
"def d6qp(*qIxc):\n j0T1 = taTM()\n Sjjg = []\n for rKyT in qIxc:\n ZTk1 = 'BODY' + rKyT + '_semiMajorAxis'\n Sjjg.append(j0T1[ZTk1])\n return Sjjg",
"def taTM():\n AZ7Q = {'BODY199_sem... | [
"0.65987885",
"0.5913561",
"0.5874253",
"0.575957",
"0.5694626",
"0.5570727",
"0.5450439",
"0.53929514",
"0.53390944",
"0.53167",
"0.52972984",
"0.5287305",
"0.5201529",
"0.5170279",
"0.51487815",
"0.51131576",
"0.508764",
"0.5072412",
"0.50663596",
"0.50513506",
"0.49880537"... | 0.0 | -1 |
Return eccentricity of orbit. | def KLhL(YKHO):
ss91 = yvY1 * (YKHO._mm + YKHO._sm)
UK0S = YKHO.sp_ang_mom()
y917 = YKHO.getvel_xyz()
oeNL = YKHO.getpos_xyz()
ycSF = 1.0 / ss91 * (oyIN.cross(y917, UK0S) - ss91 * oeNL / oyIN.linalg.norm(oeNL))
return ycSF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zIdY(YKHO):\n return YKHO._orbital_eccentricity",
"def pIjc(YKHO):\n return PZyS(YKHO.f * 2 - YKHO.f ** 2)",
"def pIjc(YKHO):\n return YKHO.b / YKHO.a",
"def pIjc(YKHO):\n Cc00 = YKHO._data[['pl_pnum', 'pl_orbper', 'pl_orbsmax', 'pl_masse', 'pl_orbeccen', 'pl_radj', 'pl_dens', 'st_teff', 'st_... | [
"0.8272043",
"0.8088623",
"0.7950198",
"0.7167175",
"0.7021215",
"0.6792659",
"0.63974947",
"0.6323228",
"0.6103145",
"0.60978574",
"0.6093308",
"0.5961122",
"0.5938193",
"0.59116626",
"0.58898216",
"0.5856262",
"0.58329475",
"0.5824408",
"0.5822806",
"0.58115864",
"0.5778034... | 0.6048928 | 11 |
Get the true anomaly of satellite. | def _ihW(YKHO):
y917 = YKHO.getvel_sph()
ycSF = YKHO.get_ecc()
oeNL = YKHO.getpos_xyz()
if oyIN.linalg.norm(ycSF) == 0:
UK0S = YKHO.sp_ang_mom()
ycSF = oyIN.cross([0, 0, 1], UK0S)
wv1i = oyIN.arccos(oyIN.dot(ycSF, oeNL) / (oyIN.linalg.norm(ycSF) * oyIN.linalg.norm(oeNL)))
if y917... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KtG1(YKHO):\n return YKHO._anomaly(result_count=1, failure_amount=1)",
"def ffJ5(YKHO):\n BqwF = YKHO.anom()\n return YKHO.cartesian_map_array(BqwF, vmin=-0.1, vmax=0.1, bands=2)",
"def ER0k():\n wncG = 'SELECT day FROM error_log WHERE error_percent > 1.0'\n jtDf = p1qr(wncG)\n return jtD... | [
"0.7298908",
"0.6191087",
"0.5878371",
"0.5812202",
"0.5634714",
"0.56208795",
"0.5577764",
"0.54375213",
"0.5430601",
"0.54168034",
"0.5390509",
"0.53788763",
"0.5372811",
"0.5371346",
"0.53660834",
"0.532335",
"0.5296805",
"0.52905905",
"0.52845156",
"0.5265431",
"0.5243741... | 0.0 | -1 |
Sifts down heap from starting position down to stopping position. Helper for Dijkstra shortest path algorithm. | def sFmq(gGCN, Ziit, oeNL, z5CQ=None):
z5CQ = z5CQ if not None else len(gGCN) - 1
while oeNL < z5CQ:
kP5y = oeNL + 1 << 1
UidY = kP5y - 1
if UidY > z5CQ:
break
if kP5y > z5CQ:
if gGCN[oeNL][0] > gGCN[UidY][0]:
Q1Kq.__swapHeapNodes(gGCN, Zii... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BXfP(YKHO, yKcO, Os4s):\n YRbF, r845 = (yKcO, 2 * yKcO + 1)\n ycBG = YKHO.heap_list[yKcO]\n while r845 <= Os4s:\n if r845 < Os4s and YKHO.heap_list[r845] < YKHO.heap_list[r845 + 1]:\n r845 += 1\n if ycBG >= YKHO.heap_list[r845]:\n break\n else:\n Y... | [
"0.7655046",
"0.7627548",
"0.7550814",
"0.7384328",
"0.7221247",
"0.71275365",
"0.70701253",
"0.69876534",
"0.69371676",
"0.69053584",
"0.67629975",
"0.6756373",
"0.6743562",
"0.665822",
"0.6635877",
"0.6568616",
"0.65231127",
"0.6522574",
"0.6501323",
"0.6455546",
"0.6421334... | 0.70366675 | 7 |
Push a node onto the heap. | def ciha(gGCN, Ziit, Q6kx):
oeNL = len(gGCN)
gGCN.append(Q6kx)
Ziit[Q6kx[1]] = oeNL
Q1Kq.__siftup(gGCN, Ziit, oeNL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, Esd_):\n YKHO.data.append(Esd_)\n YKHO.heapify_up(len(YKHO.data) - 1)",
"def _jXH(YKHO, ZfUD):\n _eVy.heappush(YKHO.heap, ZfUD)",
"def _jXH(YKHO, WKvO):\n assert WKvO not in YKHO.rank\n YRbF = len(YKHO.heap)\n YKHO.heap.append(WKvO)\n YKHO.rank[WKvO] = YRbF\n YKHO.up(YRbF... | [
"0.7937989",
"0.7867094",
"0.7815276",
"0.7815276",
"0.7584626",
"0.7573246",
"0.748171",
"0.74668956",
"0.7451564",
"0.7417054",
"0.73625857",
"0.73625857",
"0.73625857",
"0.7341388",
"0.7313116",
"0.73125184",
"0.7294567",
"0.7286378",
"0.7274463",
"0.7259147",
"0.72492987"... | 0.74202 | 9 |
Retrieves the value of the specified environment variable. | def IjQk(YKHO, mWFP: str) -> h8nf[str]:
M56f = [kDLT('name', mWFP)]
GSuR = YKHO._select('envVariable', M56f)
return GSuR.execute_sync(h8nf[str]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bx7h(mWFP):\n return Hy7s.environ.get(mWFP)",
"def AxXv(YKHO, SRYB):\n return Hy7s.environ[SRYB]",
"def sEAN(SRYB):\n return Hy7s.environ[SRYB]",
"def TYk2(XuY2: str) -> str:\n if XuY2 in Hy7s.environ.keys():\n return Hy7s.environ[XuY2]",
"def E6J6(H5ew: str) -> str:\n BWXx = Hy7s... | [
"0.81831956",
"0.7972522",
"0.7926396",
"0.78623337",
"0.783319",
"0.77903026",
"0.76746964",
"0.76445436",
"0.76375276",
"0.7609442",
"0.755719",
"0.7531734",
"0.74908495",
"0.74019074",
"0.7351648",
"0.73402476",
"0.7339749",
"0.72997975",
"0.72234595",
"0.7216612",
"0.7200... | 0.6782163 | 40 |
Retrieves the list of environment variables passed to commands. | def H4Hb(YKHO) -> list['EnvVariable']:
M56f: list[kDLT] = []
GSuR = YKHO._select('envVariables', M56f)
GSuR = MqlI(GSuR)._select_multiple(_name='name', _value='value')
return GSuR.execute_sync(list[MqlI]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E6J6(YKHO):\n sEAN = {}\n for G1Hx, Ty9i in Hy7s.environ.items():\n G1Hx = G1Hx.decode() if isinstance(G1Hx, bytes) else G1Hx\n Ty9i = Ty9i.decode() if isinstance(Ty9i, bytes) else Ty9i\n sEAN[G1Hx] = Ty9i\n return list(sEAN.items())",
"def ZnEa():\n return [F47P(name=G1Hx, v... | [
"0.77872515",
"0.7475562",
"0.72771245",
"0.72536695",
"0.71774215",
"0.71641856",
"0.7119661",
"0.7090317",
"0.7089184",
"0.7074179",
"0.6998847",
"0.6963431",
"0.6893453",
"0.6865305",
"0.68650657",
"0.6800763",
"0.6800763",
"0.6800763",
"0.6800763",
"0.6779927",
"0.6779383... | 0.7865112 | 0 |
Retrieves this container's root filesystem. Mounts are not included. | def Vb5F(YKHO) -> 'Directory':
qmLP.warn('Method "fs" is deprecated: Replaced by "rootfs".', DeprecationWarning, stacklevel=4)
M56f: list[kDLT] = []
GSuR = YKHO._select('fs', M56f)
return wjbk(GSuR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FilT(YKHO):\n return YKHO._rootfs",
"def FilT(YKHO):\n return YKHO._rootfs",
"def FilT(YKHO) -> 'Directory':\n M56f: list[kDLT] = []\n GSuR = YKHO._select('rootfs', M56f)\n return wjbk(GSuR)",
"def mWfF(YKHO):\n if not YKHO._mount.endswith(Hy7s.path.sep):\n return '%s%s' % (YKHO.... | [
"0.7788737",
"0.7788737",
"0.7271668",
"0.63438123",
"0.629608",
"0.6159942",
"0.6147158",
"0.60937226",
"0.6086382",
"0.60331404",
"0.5960355",
"0.5955966",
"0.58940434",
"0.58940434",
"0.5892428",
"0.58789295",
"0.58696735",
"0.5856978",
"0.5837316",
"0.5837316",
"0.5836146... | 0.53128815 | 66 |
Retrieves a hostname which can be used by clients to reach this container. Currently experimental; set _EXPERIMENTAL_DAGGER_SERVICES_DNS=0 to disable. Returns str The `String` scalar type represents textual data, represented as UTF8 character sequences. The String type is most often used by GraphQL to represent freefor... | def ayrW(YKHO) -> str:
M56f: list[kDLT] = []
GSuR = YKHO._select('hostname', M56f)
return GSuR.execute_sync(str) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def get_hostname(YKHO):\n RKD7.info('get_hostname')\n hlel = await YKHO.send_command(YKHO.cmd_get_hostname)\n RKD7.info(f\"get_hostname: output: '{hlel}'\")\n hlel = hlel.split()[0]\n RKD7.info(f\"get_hostname: hostname found: '{hlel}'\")\n return hlel",
"def eh9D(YKHO):\n raise NotImp... | [
"0.65890795",
"0.6536303",
"0.6509257",
"0.64840835",
"0.64606553",
"0.64407516",
"0.64041823",
"0.63942474",
"0.6393494",
"0.62995166",
"0.62910855",
"0.6230252",
"0.61710745",
"0.6169512",
"0.6168685",
"0.61206555",
"0.61118555",
"0.61015284",
"0.60687673",
"0.60682136",
"0... | 0.72639436 | 0 |
Retrieves the value of the specified label. Returns Optional[str] The `String` scalar type represents textual data, represented as UTF8 character sequences. The String type is most often used by GraphQL to represent freeform humanreadable text. Raises ExecuteTimeoutError If the time to execute the query exceeds the con... | def UXqs(YKHO, mWFP: str) -> h8nf[str]:
M56f = [kDLT('name', mWFP)]
GSuR = YKHO._select('label', M56f)
return GSuR.execute_sync(h8nf[str]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UnfG(YKHO, UXqs, WmM4=None):\n if isinstance(UXqs, exCv):\n UXqs = LRW1(UXqs)\n return YKHO._labelDict.get(UXqs, WmM4)",
"def xLUR(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'string_value')",
"def BWXx(YKHO) -> str:\n M56f: list[kDLT] = []\n GSuR = YKHO._select('value', M... | [
"0.6551689",
"0.5934342",
"0.5933134",
"0.5895065",
"0.58683586",
"0.58683586",
"0.58683586",
"0.58683586",
"0.58683586",
"0.58683586",
"0.58683586",
"0.5774753",
"0.5774753",
"0.577213",
"0.5752224",
"0.5699184",
"0.5693798",
"0.5693798",
"0.5693798",
"0.5693798",
"0.5608696... | 0.57718027 | 14 |
The platform this container executes and publishes as. Returns Platform The platform config OS and architecture in a Container. The format is [os]/[platform]/[version] (e.g., "darwin/arm64/v7", "windows/amd64", "linux/arm64"). Raises ExecuteTimeoutError If the time to execute the query exceeds the configured timeout. Q... | def a9EH(YKHO) -> zR2c:
M56f: list[kDLT] = []
GSuR = YKHO._select('platform', M56f)
return GSuR.execute_sync(zR2c) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a9EH(YKHO, OuqX=True):\n iJKf = YKHO.arch('docker')\n JOxC = YKHO.osversion() + '/' + iJKf\n if OuqX:\n return JOxC.lower()\n return YKHO.parse_platform(JOxC)",
"def a9EH(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'platform')",
"def Z5O9():\n xDcj = {'type': 'config', 'acti... | [
"0.70846224",
"0.6969208",
"0.69408244",
"0.68314826",
"0.67310053",
"0.67069256",
"0.6661841",
"0.6630605",
"0.6626512",
"0.6568049",
"0.65129524",
"0.633002",
"0.6327338",
"0.6287377",
"0.6273267",
"0.6258723",
"0.62487274",
"0.6242203",
"0.62166417",
"0.62071663",
"0.61486... | 0.7800112 | 0 |
Retrieves this container's root filesystem. Mounts are not included. | def FilT(YKHO) -> 'Directory':
M56f: list[kDLT] = []
GSuR = YKHO._select('rootfs', M56f)
return wjbk(GSuR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FilT(YKHO):\n return YKHO._rootfs",
"def FilT(YKHO):\n return YKHO._rootfs",
"def mWfF(YKHO):\n if not YKHO._mount.endswith(Hy7s.path.sep):\n return '%s%s' % (YKHO._mount, Hy7s.path.sep)\n else:\n return YKHO._mount",
"def zltE(YKHO):\n xhv7 = _BpL.FATPathSpec(location=YKHO.L... | [
"0.77884215",
"0.77884215",
"0.6343019",
"0.62957567",
"0.6158951",
"0.6146067",
"0.6093579",
"0.6085776",
"0.6032729",
"0.59586734",
"0.59546465",
"0.58930963",
"0.58930963",
"0.58919084",
"0.58781826",
"0.5869607",
"0.58564615",
"0.583696",
"0.583696",
"0.5836034",
"0.58270... | 0.72710574 | 2 |
Retrieves this container plus the given environment variable. | def Rhg4(YKHO, mWFP: str, BWXx: str, lHli: Optional[bool]=None) -> 'Container':
M56f = [kDLT('name', mWFP), kDLT('value', BWXx), kDLT('expand', lHli, None)]
GSuR = YKHO._select('withEnvVariable', M56f)
return pa4n(GSuR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, H5ew):\n return Hy7s.environ[H5ew]",
"def sEAN(SRYB):\n return Hy7s.environ[SRYB]",
"def E6J6(H5ew: str) -> str:\n BWXx = Hy7s.getenv(H5ew)\n assert isinstance(BWXx, str), f'the {H5ew} environment variable must be set and a string, value={BWXx!r}'\n return BWXx",
"def OP2O(YKHO,... | [
"0.66907495",
"0.6585065",
"0.6425539",
"0.6366935",
"0.63194776",
"0.6316364",
"0.6312415",
"0.6297444",
"0.62925535",
"0.62174237",
"0.6197452",
"0.6173787",
"0.6170713",
"0.6167491",
"0.6164289",
"0.6162466",
"0.6141566",
"0.611857",
"0.60782933",
"0.6072546",
"0.60469246"... | 0.633415 | 4 |
Retrieves this container plus an env variable containing the given secret. | def uWel(YKHO, mWFP: str, DXni: 'Secret') -> 'Container':
M56f = [kDLT('name', mWFP), kDLT('secret', DXni)]
GSuR = YKHO._select('withSecretVariable', M56f)
return pa4n(GSuR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xshI(YqMg, FXSn=FXSn):\n try:\n return FXSn[YqMg]\n except KeyError:\n tf1m = 'Set the {0} environment variable'.format(YqMg)\n raise rqaQ(tf1m)",
"def xshI(YqMg, FXSn=FXSn):\n try:\n return FXSn[YqMg]\n except KeyError:\n tf1m = 'Set the {0} environment variabl... | [
"0.691501",
"0.6893189",
"0.67204016",
"0.66619724",
"0.6580341",
"0.6438255",
"0.6438255",
"0.64169496",
"0.6399984",
"0.63771164",
"0.62615126",
"0.6224762",
"0.6214608",
"0.6208872",
"0.61976445",
"0.61972857",
"0.6154571",
"0.61503184",
"0.6137395",
"0.611469",
"0.6071613... | 0.5980047 | 25 |
The environment variable name. Returns str The `String` scalar type represents textual data, represented as UTF8 character sequences. The String type is most often used by GraphQL to represent freeform humanreadable text. Raises ExecuteTimeoutError If the time to execute the query exceeds the configured timeout. QueryE... | def mWFP(YKHO) -> str:
if hasattr(YKHO, '_name'):
return YKHO._name
M56f: list[kDLT] = []
GSuR = YKHO._select('name', M56f)
return GSuR.execute_sync(str) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IjQk(YKHO, mWFP: str) -> h8nf[str]:\n M56f = [kDLT('name', mWFP)]\n GSuR = YKHO._select('envVariable', M56f)\n return GSuR.execute_sync(h8nf[str])",
"def nbhT(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'environment_name')",
"def mWFP(YKHO):\n return YKHO._env_name",
"def nbhT... | [
"0.7090671",
"0.68008596",
"0.67548966",
"0.6717462",
"0.67033243",
"0.64816856",
"0.63123107",
"0.63031894",
"0.6211757",
"0.61837345",
"0.615672",
"0.6098947",
"0.60560954",
"0.60309213",
"0.59729797",
"0.59452945",
"0.59197664",
"0.5881984",
"0.58806753",
"0.5843121",
"0.5... | 0.5086345 | 89 |
The environment variable value. Returns str The `String` scalar type represents textual data, represented as UTF8 character sequences. The String type is most often used by GraphQL to represent freeform humanreadable text. Raises ExecuteTimeoutError If the time to execute the query exceeds the configured timeout. Query... | def BWXx(YKHO) -> str:
if hasattr(YKHO, '_value'):
return YKHO._value
M56f: list[kDLT] = []
GSuR = YKHO._select('value', M56f)
return GSuR.execute_sync(str) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IjQk(YKHO, mWFP: str) -> h8nf[str]:\n M56f = [kDLT('name', mWFP)]\n GSuR = YKHO._select('envVariable', M56f)\n return GSuR.execute_sync(h8nf[str])",
"def VTiq(YKHO, mWFP):\n if not Hy7s.environ.has_key(mWFP):\n return None\n return Hy7s.environ[mWFP]",
"def NMoC(YKHO):\n YKHO.value... | [
"0.64593905",
"0.61832523",
"0.61599505",
"0.613271",
"0.60813355",
"0.6045244",
"0.60077274",
"0.5966988",
"0.5925418",
"0.59231293",
"0.5809414",
"0.5777303",
"0.57052636",
"0.56948364",
"0.56453896",
"0.55949736",
"0.5587414",
"0.5586018",
"0.5556676",
"0.55510306",
"0.553... | 0.5813863 | 11 |
Lists of tags on the repository. Returns list[str] The `String` scalar type represents textual data, represented as UTF8 character sequences. The String type is most often used by GraphQL to represent freeform humanreadable text. Raises ExecuteTimeoutError If the time to execute the query exceeds the configured timeout... | def dJ1p(YKHO) -> list[str]:
M56f: list[kDLT] = []
GSuR = YKHO._select('tags', M56f)
return GSuR.execute_sync(list[str]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list(YKHO):\n return YKHO._post(request='list', uri=f8tE.TAGS.value).get('tags')",
"def fd1B(gtI8, qIxc):\n _hkX, dJ1p = gtI8.repositories.list_tags(qIxc.repository)\n dJ1p = [{'Tag': a1PO} for a1PO in dJ1p]\n BfDw.print_list(dJ1p, ['Tag'], sortby='Tag')",
"def wWtK(YKHO, cuiw):\n Aofo = YKH... | [
"0.7537095",
"0.7308341",
"0.7147275",
"0.706256",
"0.69950134",
"0.69553554",
"0.6925393",
"0.6891249",
"0.6863067",
"0.68479353",
"0.6775054",
"0.6760145",
"0.66394955",
"0.6558417",
"0.65561694",
"0.655354",
"0.65425885",
"0.6537936",
"0.64859897",
"0.643276",
"0.63932294"... | 0.80385756 | 0 |
The port description. Returns Optional[str] The `String` scalar type represents textual data, represented as UTF8 character sequences. The String type is most often used by GraphQL to represent freeform humanreadable text. Raises ExecuteTimeoutError If the time to execute the query exceeds the configured timeout. Query... | def JBZA(YKHO) -> h8nf[str]:
if hasattr(YKHO, '_description'):
return YKHO._description
M56f: list[kDLT] = []
GSuR = YKHO._select('description', M56f)
return GSuR.execute_sync(h8nf[str]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO):\n return iYq1.desc_text",
"def JBZA(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'description')",
"... | [
"0.6323781",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"0.5866519",
"... | 0.60819715 | 1 |
Documentation for what this command does. Returns Optional[str] The `String` scalar type represents textual data, represented as UTF8 character sequences. The String type is most often used by GraphQL to represent freeform humanreadable text. Raises ExecuteTimeoutError If the time to execute the query exceeds the confi... | def JBZA(YKHO) -> h8nf[str]:
if hasattr(YKHO, '_description'):
return YKHO._description
M56f: list[kDLT] = []
GSuR = YKHO._select('description', M56f)
return GSuR.execute_sync(h8nf[str]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO):\n return iYq1.desc_text",
"def Qzwg(YKHO) -> str:\n return YKHO._query_text",
"def xDcj(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'query')",
"def xDcj(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'query')",
"def xDcj(YKHO) -> qe4Y.Input[str]:\n return qe4Y.... | [
"0.65657985",
"0.6136409",
"0.6035878",
"0.5971953",
"0.5971953",
"0.59283996",
"0.585003",
"0.57558477",
"0.5733034",
"0.56353945",
"0.55782545",
"0.5556316",
"0.5524568",
"0.546731",
"0.546731",
"0.546731",
"0.546731",
"0.546731",
"0.546731",
"0.546731",
"0.546731",
"0.54... | 0.6015443 | 5 |
The name of the command. Returns str The `String` scalar type represents textual data, represented as UTF8 character sequences. The String type is most often used by GraphQL to represent freeform humanreadable text. Raises ExecuteTimeoutError If the time to execute the query exceeds the configured timeout. QueryError I... | def mWFP(YKHO) -> str:
if hasattr(YKHO, '_name'):
return YKHO._name
M56f: list[kDLT] = []
GSuR = YKHO._select('name', M56f)
return GSuR.execute_sync(str) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xDcj(YKHO, oUZx: str) -> str:\n return YKHO._dmm.query(oUZx).rstrip()",
"def mWFP(YKHO) -> str:\n M56f: list[kDLT] = []\n GSuR = YKHO._select('name', M56f)\n return GSuR.execute_sync(str)",
"def Asoz(YKHO):\n return None",
"def t5do(YKHO):\n return YKHO['command_name']",
"def rNGY(mWF... | [
"0.6812283",
"0.6717072",
"0.66634417",
"0.6342678",
"0.59815717",
"0.59802926",
"0.59802204",
"0.5974514",
"0.5974514",
"0.5974514",
"0.591928",
"0.5886252",
"0.5794865",
"0.5791462",
"0.57757014",
"0.57601476",
"0.5731301",
"0.5730324",
"0.572132",
"0.5713091",
"0.5708666",... | 0.6629308 | 6 |
The name of the type returned by this command. Returns Optional[str] The `String` scalar type represents textual data, represented as UTF8 character sequences. The String type is most often used by GraphQL to represent freeform humanreadable text. Raises ExecuteTimeoutError If the time to execute the query exceeds the ... | def HfXH(YKHO) -> h8nf[str]:
if hasattr(YKHO, '_result_type'):
return YKHO._result_type
M56f: list[kDLT] = []
GSuR = YKHO._select('resultType', M56f)
return GSuR.execute_sync(h8nf[str]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l87X(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'type_name')",
"def if2j(YKHO):\n return XDS4.string_dict[YKHO._field.type]",
"def l87X(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'type_name')",
"def l87X(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'type_name')",
"... | [
"0.70715564",
"0.6812481",
"0.671579",
"0.66758376",
"0.6566107",
"0.65146816",
"0.65146816",
"0.65146816",
"0.65146816",
"0.65146816",
"0.65146816",
"0.65146816",
"0.65146816",
"0.65146816",
"0.65146816",
"0.65146816",
"0.65146816",
"0.65146816",
"0.65146816",
"0.65146816",
... | 0.6703356 | 3 |
Documentation for what this flag sets. Returns Optional[str] The `String` scalar type represents textual data, represented as UTF8 character sequences. The String type is most often used by GraphQL to represent freeform humanreadable text. Raises ExecuteTimeoutError If the time to execute the query exceeds the configur... | def JBZA(YKHO) -> h8nf[str]:
if hasattr(YKHO, '_description'):
return YKHO._description
M56f: list[kDLT] = []
GSuR = YKHO._select('description', M56f)
return GSuR.execute_sync(h8nf[str]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO):\n return iYq1.desc_text",
"def Qzwg(YKHO) -> str:\n return YKHO._query_text",
"def l5Ny(YKHO):\n return YKHO.query.query",
"def xDcj(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'query')",
"def xDcj(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'query')",
"def JBZA... | [
"0.66954607",
"0.6290078",
"0.5963271",
"0.5948084",
"0.5947623",
"0.5822351",
"0.5822351",
"0.5822351",
"0.5822351",
"0.5822351",
"0.5822351",
"0.5822351",
"0.5822351",
"0.5822351",
"0.5822351",
"0.5822351",
"0.5822351",
"0.5822351",
"0.5822351",
"0.5822351",
"0.5822351",
... | 0.6148542 | 3 |
The name of the flag. Returns str The `String` scalar type represents textual data, represented as UTF8 character sequences. The String type is most often used by GraphQL to represent freeform humanreadable text. Raises ExecuteTimeoutError If the time to execute the query exceeds the configured timeout. QueryError If t... | def mWFP(YKHO) -> str:
if hasattr(YKHO, '_name'):
return YKHO._name
M56f: list[kDLT] = []
GSuR = YKHO._select('name', M56f)
return GSuR.execute_sync(str) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OXxz(YKHO):\n return YKHO._flag_name",
"def I1mm(YKHO) -> str:\n return qe4Y.get(YKHO, 'flag')",
"def wEPT(YKHO):\n return YKHO.enum_class.to_representation(YKHO.flags.name)",
"def mWFP(YKHO) -> str:\n M56f: list[kDLT] = []\n GSuR = YKHO._select('name', M56f)\n return GSuR.execute_sync(... | [
"0.6548668",
"0.6199478",
"0.6191867",
"0.5886163",
"0.5809203",
"0.57427704",
"0.57427704",
"0.5735318",
"0.55229014",
"0.55206984",
"0.5505872",
"0.54994524",
"0.5456496",
"0.54313904",
"0.5426892",
"0.5407711",
"0.5381708",
"0.5360862",
"0.5360862",
"0.5356126",
"0.5352852... | 0.580718 | 8 |
The default platform of the builder. Returns Platform The platform config OS and architecture in a Container. The format is [os]/[platform]/[version] (e.g., "darwin/arm64/v7", "windows/amd64", "linux/arm64"). Raises ExecuteTimeoutError If the time to execute the query exceeds the configured timeout. QueryError If the A... | def Odjk(YKHO) -> zR2c:
M56f: list[kDLT] = []
GSuR = YKHO._select('defaultPlatform', M56f)
return GSuR.execute_sync(zR2c) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a9EH(YKHO) -> zR2c:\n M56f: list[kDLT] = []\n GSuR = YKHO._select('platform', M56f)\n return GSuR.execute_sync(zR2c)",
"def a9EH(YKHO):\n return YKHO.random.choice(['Laptop', 'Desktop', 'Workstation', 'Server', 'Virtual Machine', 'Container', 'Micro-Service', 'Droplet', 'SaaS'])",
"def a9EH(YKH... | [
"0.7500557",
"0.6820205",
"0.68178904",
"0.6788074",
"0.67660815",
"0.66832024",
"0.66458005",
"0.6618222",
"0.6601224",
"0.65934664",
"0.6508021",
"0.6468797",
"0.64190835",
"0.63798565",
"0.6327381",
"0.6266462",
"0.6222256",
"0.62124807",
"0.6210097",
"0.6066512",
"0.60634... | 0.7635805 | 0 |
The identifier for this secret. Note This is lazyly evaluated, no operation is actually run. Returns SecretID A unique identifier for a secret. Raises ExecuteTimeoutError If the time to execute the query exceeds the configured timeout. QueryError If the API returns an error. | def id(YKHO) -> Zx0i:
M56f: list[kDLT] = []
GSuR = YKHO._select('id', M56f)
return GSuR.execute_sync(Zx0i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rTi7(YKHO):\n if YKHO._secret_id:\n return YKHO._secret_id\n return YKHO.device_id",
"def vjV5(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'credential_id')",
"def DXni(YKHO, id: SecretID) -> 'Secret':\n M56f = [kDLT('id', id)]\n GSuR = YKHO._select('secret', M56f)\n return o... | [
"0.62632376",
"0.56606525",
"0.5575883",
"0.5551399",
"0.5475425",
"0.54505223",
"0.54505223",
"0.542791",
"0.54203725",
"0.53091943",
"0.5308966",
"0.5299386",
"0.5299386",
"0.52866477",
"0.5282878",
"0.52595127",
"0.52530897",
"0.52530897",
"0.52047634",
"0.51913774",
"0.51... | 0.6752598 | 0 |
Get the model variables' config. | def zBTf() -> ImMB:
return JIS1.CaseVariableConfig.get_variables_config() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD(YKHO):\n return YKHO.config",
"def wLv7(YKHO):\n return YKHO.__config",
"def wLv7(YKHO):\n return YKHO.__config",
"def wLv7(YKHO):\n return YKHO.__config",
"def wLv7(YKHO):\n return YKHO.__config",
"def wLv7(YKHO):\n return YKHO.__config",
"def wLv7(YKHO):\n return YKHO.__... | [
"0.7204027",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"0.7164446",
"... | 0.6774942 | 86 |
Initialize a new Perceptron instance. A perceptron classifies data points as either belonging to a particular class (+1) or not (1). `dimensions` is the dimensionality of the data. For example, dimensions=2 would mean that the perceptron must classify 2D points. | def FIMM(YKHO, DbyF):
YKHO.w = U78l.Parameter(1, DbyF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HH5O(Xi9O: List[SentimentExample], penX: FeatureExtractor) -> QvYK:\n raise Exception('Must be implemented')",
"def HH5O(Xi9O: List[SentimentExample], penX: FeatureExtractor) -> QvYK:\n raise Exception('Must be implemented')",
"def FIMM(YKHO, xhie, YDYE='relu', lQ3t=0.001, sSDk=5, t3eI=0):\n print... | [
"0.6332484",
"0.6332484",
"0.6031983",
"0.57528317",
"0.57304436",
"0.5729055",
"0.5708329",
"0.5662451",
"0.5655464",
"0.56148565",
"0.55637246",
"0.55211455",
"0.55112016",
"0.55009764",
"0.545503",
"0.54533994",
"0.5441745",
"0.54284245",
"0.5391511",
"0.53887767",
"0.5374... | 0.5600593 | 12 |
Calculates the predicted class for a single data point `x`. | def wu2I(YKHO, WKvO):
"""*** YOUR CODE HERE question 1 ***"""
QPrI = U78l.as_scalar(YKHO.run(WKvO))
if QPrI < 0:
return -1
else:
return 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YEmv(YKHO, WKvO):\n aTLP = [J_Es.predict(WKvO) for J_Es in YKHO.forest]\n if YKHO.classify:\n h6DL = [0] * YKHO.param['numClasses']\n for XP5J in aTLP:\n h6DL[XP5J] += 1\n return q1NN(h6DL)\n else:\n return sum(aTLP) / (len(aTLP) * 1.0)",
"def YEmv(YKHO, WKvO):... | [
"0.7661384",
"0.7574608",
"0.755597",
"0.754154",
"0.7517479",
"0.7363987",
"0.7347751",
"0.7347751",
"0.73244995",
"0.72761965",
"0.7252081",
"0.72349423",
"0.7227634",
"0.72211057",
"0.72075224",
"0.7197189",
"0.7193229",
"0.7173875",
"0.7167893",
"0.7153354",
"0.7148989",
... | 0.0 | -1 |
Do a batched gather on a 3D tensor. | def idNV(hkxX, _0VL):
return ZylS.gather(ZylS.reshape(hkxX, [-1, ZylS.shape(hkxX)[2]]), ZylS.range(0, ZylS.shape(hkxX)[0]) * ZylS.shape(hkxX)[1] + _0VL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v6ln(input: torch.Tensor) -> AzJI[ht2j.Tensor]:\n return nK3U.apply(input)",
"def v6ln(vhpA):\n if TNjc().distributed_type == DlJP.TPU:\n return FREf(vhpA)\n elif TNjc().distributed_type in dbtl:\n return xEpo(vhpA)\n else:\n return vhpA",
"def DgR2(nPrm):\n aDYX = pImw.... | [
"0.6302166",
"0.6237263",
"0.6120555",
"0.60212666",
"0.6008304",
"0.5993317",
"0.59825003",
"0.59671915",
"0.59625334",
"0.58826137",
"0.5852146",
"0.58414745",
"0.57512283",
"0.56198025",
"0.5593949",
"0.55925506",
"0.5582084",
"0.5577364",
"0.5508032",
"0.5507494",
"0.5465... | 0.6951424 | 0 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8):
def keUK(GIN8, YRbF, Csk6):
if len(GIN8) <= YRbF:
return True
if Csk6 == 0:
return False
return GIN8[YRbF] in Csk6 and keUK(GIN8, YRbF + 1, Csk6[GIN8[YRbF]])
nXnc = YKHO.root.d
if len(GIN8) == 0:
return True
if len(nXnc) == 0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False",
"def Gtm1(ZO... | [
"0.83870125",
"0.81503856",
"0.812409",
"0.78561914",
"0.78304696",
"0.7793574",
"0.7792858",
"0.7764428",
"0.7753157",
"0.77472574",
"0.7711177",
"0.7680718",
"0.76768374",
"0.76643807",
"0.7650987",
"0.76334465",
"0.76283187",
"0.7610767",
"0.75778055",
"0.75693226",
"0.756... | 0.0 | -1 |
Get the parent directory of this file. This makes it so the app will work, (and the db will be found) no matter the current working directory. | def Eyiy():
pmON = Hy7s.path.dirname(Hy7s.path.realpath(xAKo))
pmON = '/'.join(pmON.split('/')[:-1])
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Chi4(YKHO):\n return Hy7s.path.join(Hy7s.getcwd(), 'src', 'data', 'genes')",
"def yE4I(YKHO):\n yzaj = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n return Hy7s.path.dirname(yzaj)",
"def gmqI(pmON):\n return Hy7s.path.dirname(pmON)",
"def w2bf(pmON):\n if not Hy7s.path.isdir(pmON):\n ... | [
"0.78082865",
"0.7638114",
"0.7614312",
"0.7529412",
"0.75218713",
"0.7497493",
"0.74604976",
"0.7340551",
"0.728736",
"0.7257311",
"0.71410936",
"0.71262145",
"0.7101389",
"0.70540065",
"0.7024741",
"0.7024741",
"0.7021977",
"0.7003165",
"0.6980236",
"0.6978866",
"0.69738686... | 0.82124346 | 0 |
Gets a collection of `InputExample`s for the train set. | def X2wT(YKHO, h_xa, jYva='train'):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGUt(YKHO, PU1l):\n return PU1l",
"def rNg5(YKHO):\n raise NotImplementedError()",
"def rNg5(YKHO, eZ_W):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):\n Artt = '%s-%s' % (TG_K, YRbF)\n l5Ny = LihS[0]\n UX... | [
"0.73499966",
"0.7173421",
"0.7126833",
"0.65602446",
"0.64204013",
"0.64052176",
"0.63422555",
"0.6290186",
"0.6282746",
"0.625262",
"0.62499267",
"0.62466323",
"0.62466323",
"0.62466323",
"0.62466323",
"0.62466323",
"0.62466323",
"0.62466323",
"0.62466323",
"0.62466323",
"0... | 0.0 | -1 |
Extract the bitfield value from a register value. self The Bitfield object. value Integer register value. Integer value of the bitfield extracted from `value`. | def NMoC(YKHO, BWXx: int) -> int:
return uJAe(BWXx, YKHO._msb, YKHO._lsb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set(YKHO, n4_l: int, sjci: int) -> int:\n return ZOzC(n4_l, YKHO._msb, YKHO._lsb, sjci)",
"def Y0mK(YKHO, Jyyj):\n bo34.debug('Getting field starting at bit {}, length {} from register {}'.format(Jyyj.startbit, Jyyj.length, Jyyj.register))\n smZL = YKHO.readU8(Jyyj.register)\n bo34.debug('Raw val... | [
"0.651225",
"0.64570737",
"0.63985926",
"0.6093686",
"0.57431227",
"0.5590481",
"0.5459659",
"0.5447185",
"0.54428077",
"0.5384992",
"0.5379497",
"0.53654367",
"0.53242254",
"0.525438",
"0.52395594",
"0.52010787",
"0.51647145",
"0.50800925",
"0.50796056",
"0.5056775",
"0.5050... | 0.55022365 | 6 |
Test whether two sequences contain the same values. Unlike a simple equality comparison, this function works as expected when the two sequences are of different types, such as a list and bytearray. The sequences must return compatible types from indexing. | def g057(AjzU: Sequence[Any], _sQW: Sequence[Any]) -> bool:
if len(AjzU) != len(_sQW):
return False
for YRbF in range(len(AjzU)):
if AjzU[YRbF] != _sQW[YRbF]:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AHrn(cVRF, Qt6K):\n assert len(cVRF) == len(Qt6K), (len(cVRF), len(Qt6K))\n for MkDQ, GtLx in zip(cVRF, Qt6K):\n assert MkDQ == GtLx, (MkDQ, GtLx)\n return True",
"def xa14(YKHO, Q6uT):\n if YKHO._length != len(Q6uT) or not isinstance(Q6uT, list):\n return False\n return all((YKH... | [
"0.7813231",
"0.7145499",
"0.70590293",
"0.7007046",
"0.6919414",
"0.6892941",
"0.68648785",
"0.6858367",
"0.6839692",
"0.67992145",
"0.6797385",
"0.6788613",
"0.6783527",
"0.67567945",
"0.6742153",
"0.67207736",
"0.6698523",
"0.6692463",
"0.6635252",
"0.6586327",
"0.65729964... | 0.7649041 | 1 |
Returns generator of all files with provided extension from given directory | def dgSh(AGPF, Fst3):
return (eHNT for eHNT in Hy7s.listdir(AGPF) if eHNT.endswith(Fst3) and Hy7s.path.isfile(Hy7s.path.join(AGPF, eHNT))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JMfG(dir, YBcr):\n import os\n for tk5Y, AQSv, RRlC in os.walk(dir):\n for nUeQ in RRlC:\n if nUeQ.split('.')[1].lower() == YBcr.lower() or not YBcr:\n QYhz = os.path.join(tk5Y, nUeQ)\n yield QYhz",
"def ZjdJ(YKHO, AGPF, ztnR):\n xhv7 = '{}**/*.{}' if ... | [
"0.7799749",
"0.7525258",
"0.7381239",
"0.7271311",
"0.72625893",
"0.7261094",
"0.7162578",
"0.7118412",
"0.7086582",
"0.70666647",
"0.70133775",
"0.699755",
"0.69948506",
"0.6990467",
"0.6925858",
"0.69024223",
"0.6888082",
"0.6884435",
"0.68445224",
"0.6844037",
"0.68348545... | 0.73597896 | 3 |
Returns true, if all elements of sequence are equal | def ac8g(aWuw):
return all((WKvO == aWuw[0] for WKvO in aWuw)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Q6uT):\n if YKHO._length != len(Q6uT) or not isinstance(Q6uT, list):\n return False\n return all((YKHO._arr[YRbF] == Q6uT[YRbF] for YRbF in range(YKHO._length)))",
"def g057(Q6uT: typing.Iterable[typing.Any]) -> bool:\n Q6uT = iter(Q6uT)\n cntZ = type(next(Q6uT))\n return all... | [
"0.7771811",
"0.7630559",
"0.76040655",
"0.74519235",
"0.74492294",
"0.74333686",
"0.74333686",
"0.73482615",
"0.7314613",
"0.7251249",
"0.7221133",
"0.71162134",
"0.7042793",
"0.69785583",
"0.6889345",
"0.6882769",
"0.68535495",
"0.68117934",
"0.6715549",
"0.66522205",
"0.66... | 0.8933809 | 0 |
Action generation method. This is a required method that generates list of actions corresponding to the list of 1units. | def Lkpi(YKHO, Ortv, rNYq, yQ9I=None):
GtRa = []
if yQ9I is not None:
YKHO.free_map = yQ9I
for or8S, YWSi in enumerate(Ortv):
gVyb = YKHO.random.randint(0, 5)
if gVyb == 1:
YKHO.heading_up[or8S] = True
elif gVyb == 2:
YKHO.heading_right[or8S] = True
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mdhT(YKHO) -> list:\n pass",
"def KXAp(YKHO):\n XeOP = 0\n for vC9B in range(YKHO.u0_n):\n for r8hN in range(YKHO.u1_n):\n P6bq = oyIN.array([YKHO.ud[0][vC9B], YKHO.ud[1][r8hN]])\n YKHO.actions_input[XeOP, :] = P6bq\n YKHO.actions_index[XeOP, :] = oyIN.array([... | [
"0.7722698",
"0.67298526",
"0.6564368",
"0.62815326",
"0.6203915",
"0.6180544",
"0.6176692",
"0.6164795",
"0.6116633",
"0.59687513",
"0.5946979",
"0.5946116",
"0.5942629",
"0.5939091",
"0.59108436",
"0.58935547",
"0.5885694",
"0.5866792",
"0.58295935",
"0.58207333",
"0.581962... | 0.6441535 | 3 |
Fill episode object with episode number, name and inspectors. Perform some cleanup on episode name and inspectors. | def hfK9(YKHO: object, RFZ4: list[str]):
if len(RFZ4) == 0:
return
G9jH.debug('data row {}'.format(RFZ4))
mxRH: PrRj[str] = ZbWC.search('([0-9]+)', RFZ4[0])
YKHO.episode_id = int(mxRH.group(1))
ocCl: PrRj[str] = ZbWC.search('([0-9]{4})', RFZ4[3])
YKHO.episode_year = int(ocCl.group(1))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlX_(tTpl, dsE5=False):\n if dsE5:\n print('beginning create_episode()')\n xgXB = {}\n AC_D = 'https://www.imdb.com/' + tTpl['link']\n _kpk = A0Fa.BeautifulSoup(G4JS.get(AC_D).text, features='html.parser')\n bA6Y = _kpk.select('.title_wrapper')[0]\n xgXB['title'] = bA6Y.select('h1')[0]... | [
"0.67322844",
"0.6622096",
"0.6532695",
"0.6482621",
"0.6362397",
"0.6313687",
"0.6313687",
"0.63025767",
"0.6289279",
"0.61639607",
"0.6160208",
"0.6115685",
"0.5955112",
"0.59050155",
"0.58917266",
"0.58434886",
"0.5837072",
"0.58209985",
"0.57344383",
"0.5721815",
"0.57147... | 0.62322384 | 9 |
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. | def pbT6(YKHO, KCHu):
if not KCHu:
return True
if not len(KCHu) % 2 == 0:
return False
yCnv = {')': '(', ']': '[', '}': '{'}
E5BI = []
for hcXw in KCHu:
if hcXw in yCnv:
kdwO = E5BI.pop() if E5BI else '@'
if kdwO != yCnv[hcXw]:
return F... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGVO(YKHO, vIwR) -> bool:\n while '()' in vIwR or '{}' in vIwR or '[]' in vIwR:\n vIwR = vIwR.replace('()', '').replace('[]', '').replace('{}', '')\n return len(vIwR) == 0",
"def SGVO(KCHu):\n nrbE = False\n edvT = 0\n for Z9rn in KCHu:\n if Z9rn == '(' and (not nrbE):\n ... | [
"0.83772814",
"0.82181084",
"0.79815835",
"0.7759584",
"0.7669236",
"0.7553811",
"0.7465005",
"0.7016728",
"0.6838599",
"0.6810634",
"0.6720039",
"0.6617623",
"0.6605923",
"0.65578765",
"0.6520223",
"0.64967394",
"0.63794935",
"0.6374473",
"0.63681436",
"0.63490343",
"0.63196... | 0.75636107 | 5 |
MonthlyScheduleParameters a model defined in Swagger | def FIMM(YKHO, SWox=None, BZT7=None, E2ep=None, mNFg=None, y0Xp=None, X_bn=None):
YKHO._start_time = None
YKHO._frequency_type = None
YKHO._day_of_month = None
YKHO._week_of_month = None
YKHO._day_of_week = None
YKHO._months = None
YKHO.discriminator = None
if SWox is not None:
Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.swagger_types = {'id': 'str', 'start_date': 'datetime', 'length_minutes': 'int', 'activities': 'list[BuAgentScheduleActivity]', 'manually_edited': 'bool', 'schedule': 'BuScheduleReference'}\n YKHO.attribute_map = {'id': 'id', 'start_date': 'startDate', 'length_minutes': 'lengthMinutes'... | [
"0.5771325",
"0.5750534",
"0.5725539",
"0.5691441",
"0.56467915",
"0.5524476",
"0.55190575",
"0.55049896",
"0.5370188",
"0.5331168",
"0.53186584",
"0.5256994",
"0.5249017",
"0.52371025",
"0.52100986",
"0.52090067",
"0.51944643",
"0.5190768",
"0.5183598",
"0.51835346",
"0.5168... | 0.0 | -1 |
Sets the start_time of this MonthlyScheduleParameters. | def SWox(YKHO, SWox):
YKHO._start_time = SWox | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWox(YKHO, SWox: str):\n if SWox is None:\n raise ValueError('Invalid value for `start_time`, must not be `None`')\n YKHO._start_time = SWox",
"def SWox(YKHO, SWox):\n YKHO._start_time = SWox",
"def SWox(YKHO, SWox):\n YKHO._start_time = SWox",
"def SWox(YKHO, BWXx):\n YKHO._start_t... | [
"0.6902185",
"0.68328047",
"0.68328047",
"0.68051267",
"0.6692985",
"0.63848627",
"0.6178726",
"0.61568487",
"0.61528385",
"0.61297816",
"0.61274856",
"0.6086166",
"0.6086166",
"0.6086166",
"0.6086166",
"0.6086166",
"0.6086166",
"0.6086166",
"0.6086166",
"0.6086166",
"0.60759... | 0.6920715 | 4 |
Sets the day_of_month of this MonthlyScheduleParameters. | def E2ep(YKHO, E2ep):
YKHO._day_of_month = E2ep | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c7ay(YKHO, c7ay):\n YKHO._monthly_day = c7ay",
"def FIMM(Ro_8, *, E2ep: Optional[pulumi.Input[str]]=None, y0Xp: Optional[pulumi.Input['RefreshScheduleMapScheduleFrequencyPropertiesRefreshOnDayPropertiesDayOfWeek']]=None):\n if E2ep is not None:\n qe4Y.set(Ro_8, 'day_of_month', E2ep)\n if y0Xp... | [
"0.7128963",
"0.6362633",
"0.63394713",
"0.6198328",
"0.6083698",
"0.59888995",
"0.5959477",
"0.58093905",
"0.58093905",
"0.5685598",
"0.5654272",
"0.5651076",
"0.56197333",
"0.56197333",
"0.5604694",
"0.5585938",
"0.5585938",
"0.5577093",
"0.55378944",
"0.5509653",
"0.544917... | 0.82245034 | 0 |
Sets the months of this MonthlyScheduleParameters. | def X_bn(YKHO, X_bn):
BbPm = ['january', 'feburary', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december']
if not set(X_bn).issubset(set(BbPm)):
raise ValueError('Invalid values for `months` [{0}], must be a subset of [{1}]'.format(', '.join(map(str, set(X_bn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ejDz(YKHO, *qIxc):\n return _VfD.Date_setMonth(YKHO, *qIxc)",
"def vZpv(YKHO, BWXx):\n super(tPGm, YKHO)._set_input('Month', BWXx)",
"def D4Ce(YKHO, VOlW, *, E2ep=None, KFIZ=None, d6pt=None, **B2fa):\n if not E2ep and (not KFIZ):\n raise ValueError('Must provide day_of_month or days_of_week... | [
"0.706509",
"0.6490704",
"0.63334316",
"0.62851346",
"0.6143732",
"0.6106879",
"0.60167474",
"0.58650213",
"0.5827655",
"0.5698256",
"0.5679997",
"0.5614835",
"0.56113094",
"0.555234",
"0.5551026",
"0.5551026",
"0.552642",
"0.5522827",
"0.551986",
"0.5368505",
"0.5368221",
... | 0.72907597 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, Lcvd):
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.8455985",
"0.83913255",
"0.81440157",
"0.8140831",
"0.8132328",
"0.80937284",
"0.809181",
"0.809181",
"0.809181",
"0.808509",
"0.808509",
"0.8076134",
"0.8076134",
"0.8065528"
] | 0.0 | -1 |
Return package version as listed in `__version__` in `init.py`. | def kaPv(B5hb):
Eosz = open(Hy7s.path.join(B5hb, '__init__.py')).read()
return ZbWC.search('__version__ = [\'"]([^\'"]+)[\'"]', Eosz).group(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oRea() -> str:\n pmON = gzes(TLI7(xAKo), '__init__.py')\n pmON = ENtY(WQbV(pmON))\n with open(pmON) as eHNT:\n for zFiD in eHNT:\n if zFiD.startswith('__version__'):\n eOtH, DpZH = zFiD.split(' = ', 1)\n DpZH = DpZH.replace(\"'\", '').strip()\n ... | [
"0.84893894",
"0.83908445",
"0.83863354",
"0.8380136",
"0.8379423",
"0.83694756",
"0.83582735",
"0.8357903",
"0.835638",
"0.8078477",
"0.7975143",
"0.7938866",
"0.78928864",
"0.78928864",
"0.78928864",
"0.78029025",
"0.7722147",
"0.7697877",
"0.7694654",
"0.7689602",
"0.76594... | 0.8370828 | 11 |
Return all files under the root package, that are not in a package themselves. | def tNGB(B5hb):
ZAda = [(pGQh.replace(B5hb + Hy7s.sep, '', 1), iumf) for pGQh, iIh5, iumf in Hy7s.walk(B5hb) if not Hy7s.path.exists(Hy7s.path.join(pGQh, '__init__.py'))]
CNwg = []
for P8oC, iumf in ZAda:
CNwg.extend([Hy7s.path.join(P8oC, Ux0P) for Ux0P in iumf])
return {B5hb: CNwg} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XtZ5(tk5Y):\n for pmON, uRGD, RRlC in Hy7s.walk(tk5Y):\n if bYKW(pmON):\n yield pmON.replace('/', '.')",
"def dgSh(YKHO):\n NmfV = []\n for pmON, eQqJ, RRlC in Hy7s.walk(YKHO.root):\n for mWFP in RRlC:\n NmfV.append(Hy7s.path.join(YKHO.root, mWFP))\n return Nmf... | [
"0.707678",
"0.6983264",
"0.6891394",
"0.68547386",
"0.6842646",
"0.6842646",
"0.6842646",
"0.68319273",
"0.67815185",
"0.6732065",
"0.6720336",
"0.66818875",
"0.66626537",
"0.6660138",
"0.6647442",
"0.6609301",
"0.6606118",
"0.660427",
"0.6595916",
"0.65380406",
"0.6512409",... | 0.6172617 | 53 |
Explode a path into all its little giblets. _path_ should ideally be normalized first | def TIOf(YKHO, pmON):
RKD7(6, 'explode')
c6xI = []
sdCG = pmON
while True:
if sdCG == '/':
c6xI.insert(0, sdCG)
break
sdCG, J3uN = Hy7s.path.split(sdCG)
c6xI.insert(0, J3uN)
return c6xI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KkWy(pmON):\n if type(pmON) != str:\n return []\n pmON = ZbWC.sub('/+', '/', pmON)\n pmON = pmON.split('/')\n pmON = [WKvO.lower() for WKvO in pmON if WKvO != '']\n return pmON",
"def _wv_(pmON):\n KCHu = []\n while True:\n cntZ, CsFy = khtY.split(pmON)\n KCHu.append... | [
"0.76698107",
"0.76123106",
"0.7573121",
"0.74729407",
"0.7438995",
"0.7427464",
"0.72871464",
"0.7274829",
"0.7265844",
"0.72539324",
"0.720128",
"0.70462716",
"0.70108306",
"0.6986025",
"0.6976125",
"0.697396",
"0.6894155",
"0.6888861",
"0.6847659",
"0.6845327",
"0.68289995... | 0.81297004 | 0 |
Returns the current pager's max record limit. | def KfQM(YKHO):
return YKHO.max_record_limit | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K3hO(YKHO):\n return YKHO.limit",
"def K3hO(YKHO):\n return YKHO._limit",
"def K3hO(YKHO):\n return YKHO._limit",
"def qoqK(YKHO):\n return YKHO._limit",
"def qoqK(YKHO):\n return YKHO._limit",
"def Ypa4(YKHO):\n return YKHO.max_per_page",
"def K3hO(YKHO):\n qoqK = YKHO.request... | [
"0.79489917",
"0.7935458",
"0.7935458",
"0.76866376",
"0.76866376",
"0.7611077",
"0.74051446",
"0.73823917",
"0.72391516",
"0.71339834",
"0.7114713",
"0.7088168",
"0.70171744",
"0.6955063",
"0.6900978",
"0.68910086",
"0.68852997",
"0.68765527",
"0.6857013",
"0.6851564",
"0.68... | 0.87542504 | 0 |
Sets the current pager's max record limit. | def kRG9(YKHO, qoqK):
YKHO.max_record_limit = qoqK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK",
"def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK",
"def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK",
"def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK",
"def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK\n return YKHO",
"def lhtP(YKHO, FFn8):\n if FFn8 > 0:\n ... | [
"0.7553853",
"0.7453811",
"0.7453811",
"0.7453811",
"0.73704815",
"0.73585373",
"0.72966903",
"0.72817314",
"0.72808117",
"0.7088113",
"0.70641845",
"0.7023995",
"0.6950664",
"0.6950664",
"0.6940453",
"0.68355906",
"0.6828216",
"0.68182147",
"0.6778329",
"0.6778268",
"0.67564... | 0.86914104 | 0 |
Sets the last page number. | def jCBC(YKHO, B2Dn):
YKHO.last_page = B2Dn
if YKHO.get_page() > B2Dn:
YKHO.set_page(B2Dn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qzhh(YKHO, Qzhh):\n YKHO._last_page = Qzhh",
"def Ryx3(YKHO):\n try:\n YKHO.currenturi = YKHO.__baseuri + YKHO.soup.find('li', 'lia-component-pagesnumbered').findAll('a', text=ZbWC.compile('^\\\\d+$'))[-1].parent['href'].split(';')[0]\n YKHO.__setSoupForCurrentUri()\n except:\n ... | [
"0.8215517",
"0.69604975",
"0.6901287",
"0.68505317",
"0.6722965",
"0.6489288",
"0.6430108",
"0.64163125",
"0.6392034",
"0.6353783",
"0.6248091",
"0.6230042",
"0.619774",
"0.6163872",
"0.60937995",
"0.60519964",
"0.6001332",
"0.59572214",
"0.5896831",
"0.57978165",
"0.5753367... | 0.8244133 | 0 |
Sets the current page. | def eSCR(YKHO, B2Dn):
YKHO.page = int(B2Dn)
if YKHO.page <= 0:
if YKHO.get_max_per_page() > 0:
YKHO.page = 1
else:
YKHO.page = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bWPW(YKHO):\n pass",
"def PJtN(YKHO, PJtN):\n YKHO._current_page = PJtN",
"def Uqzt(YKHO, PJtN):\n if not PJtN:\n YKHO.resolve_current_page()\n if not YKHO._is_valid_page_number(PJtN):\n return 1\n return PJtN",
"def _6g1(YKHO, jvSB):\n YKHO.__current = jvSB",
"def dSmk(... | [
"0.8564853",
"0.8274771",
"0.7887133",
"0.705451",
"0.70353645",
"0.70316905",
"0.6863526",
"0.67598087",
"0.6703819",
"0.66118544",
"0.6544035",
"0.6484599",
"0.64590555",
"0.6425014",
"0.6299835",
"0.6276845",
"0.6276845",
"0.6276845",
"0.6276845",
"0.6265614",
"0.6194131",... | 0.69051695 | 6 |
Sets the maximum number of results per page. | def lhtP(YKHO, FFn8):
if FFn8 > 0:
YKHO.max_per_page = FFn8
if YKHO.page == 0:
YKHO.page = 1
elif FFn8 == 0:
YKHO.max_per_page = 0
YKHO.page = 0
else:
YKHO.max_per_page = 1
if YKHO.page == 0:
YKHO.page = 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zD4t(YKHO, zD4t: float):\n YKHO._max_results = zD4t",
"def jsUx(YKHO):\n return 30",
"def CFDy(YKHO, CFDy):\n YKHO._max_num_links = CFDy",
"def IWef(YKHO, IWef):\n YKHO._referencesearchservlet_max_pages = IWef",
"def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK",
"def BZvL(YKHO, exwG):\n ... | [
"0.71293044",
"0.7025348",
"0.6938397",
"0.6830816",
"0.6801889",
"0.67935455",
"0.6776358",
"0.6746384",
"0.67307943",
"0.663617",
"0.6603123",
"0.6603123",
"0.6603123",
"0.65810364",
"0.6514217",
"0.64977545",
"0.6493299",
"0.6493219",
"0.6486678",
"0.647359",
"0.6461834",
... | 0.78552073 | 0 |
Returns an ExpUserLastPlaythrough domain object given an ExpUserLastPlaythroughModel loaded from the datastore. | def beFd(N4EV):
return S6W2.ExpUserLastPlaythrough(N4EV.user_id, N4EV.exploration_id, N4EV.last_played_exp_version, N4EV.last_updated, N4EV.last_played_state_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _fXa(QU4l):\n BKMg = PeTa.ExpUserLastPlaythroughModel(id=QU4l.id, user_id=QU4l.user_id, exploration_id=QU4l.exploration_id, last_played_exp_version=QU4l.last_played_exp_version, last_played_state_name=QU4l.last_played_state_name)\n BKMg.put()",
"def XVAW():\n DW23 = MdYj('files/users.csv')\n retu... | [
"0.6114415",
"0.5247595",
"0.515967",
"0.4883792",
"0.48731354",
"0.4857871",
"0.4835355",
"0.48091578",
"0.48020718",
"0.475728",
"0.47538674",
"0.4676165",
"0.46555308",
"0.46250343",
"0.4602909",
"0.45962125",
"0.45651177",
"0.45483202",
"0.45032454",
"0.44917822",
"0.4487... | 0.7840123 | 0 |
Returns the next `n` tokens in a list. | def XHb1(YKHO, exwG=1):
while len(YKHO._remaining) < exwG:
YKHO._remaining.append(next(YKHO))
return [YKHO._remaining[YRbF] for YRbF in range(exwG)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AgK_(YKHO, exwG, X9rU=False):\n return list(WhY1.islice(YKHO.gen, exwG))",
"def AgK_(oHE7, ywwl):\n try:\n DumB = []\n for bGrB in range(ywwl):\n DumB.append(next(oHE7))\n return DumB\n except StopIteration:\n if DumB:\n return DumB\n return N... | [
"0.73431146",
"0.6693711",
"0.65088105",
"0.64366317",
"0.63886064",
"0.6359041",
"0.6342825",
"0.6342825",
"0.6342825",
"0.6332765",
"0.6322405",
"0.6232221",
"0.62166715",
"0.62131953",
"0.62082434",
"0.619162",
"0.6124147",
"0.60628545",
"0.60547453",
"0.6005955",
"0.59970... | 0.60342956 | 19 |
Calculates vertical (z) acceleration of drone. | def nxCK(YKHO):
Z9rn, VmRH = YKHO.get_thrust_and_moment()
rVnq = YKHO.X[2]
v73R = (YKHO.g - Z9rn * oyIN.cos(rVnq)) / YKHO.m
print(v73R)
return v73R | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EoWO(YKHO):\n return YKHO.angvel.getZ()",
"def Bfis(YKHO):\n return YKHO.posvel.getZ()",
"def Vpqr(YKHO):\n return YKHO.coef_w[0] * YKHO.grid.y[None, :] + YKHO.coef_w[1]",
"def y917(epBp, Z9rn=U7YL.cc.c_light_cm_s / 100000.0):\n return Z9rn * ((1 + epBp) ** 2 - 1) / ((1 + epBp) ** 2 + 1)",
... | [
"0.6356424",
"0.6245218",
"0.6242624",
"0.6193167",
"0.6136546",
"0.61020046",
"0.60854024",
"0.60746443",
"0.60497254",
"0.5962692",
"0.5945629",
"0.58685344",
"0.58629066",
"0.58574307",
"0.58556175",
"0.58161336",
"0.5802175",
"0.57529724",
"0.5745642",
"0.5740741",
"0.569... | 0.67445016 | 0 |
Calculates lateral (y) acceleration of drone. | def Ntsp(YKHO):
Z9rn, VmRH = YKHO.get_thrust_and_moment()
rVnq = YKHO.X[2]
cmHj = Z9rn * (1 - oyIN.sin(rVnq)) / YKHO.m
print(cmHj)
return cmHj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vBED(WKvO, LVAh):\n global G\n global massEarth\n return -yvY1 * uj4j * LVAh / (WKvO ** 2 + LVAh ** 2) ** (3 / 2)",
"def sgTf(YKHO):\n YKHO.x_speed += epAf.cos(epAf.radians(YKHO.degrees))\n YKHO.y_speed += epAf.sin(epAf.radians(YKHO.degrees))",
"def sgTf(Ty9i, P6bq, a1PO):\n return (Ty9i ... | [
"0.66361797",
"0.6630387",
"0.6618695",
"0.65110385",
"0.6463736",
"0.6398143",
"0.6389902",
"0.6293255",
"0.6276663",
"0.6251114",
"0.61948687",
"0.61565864",
"0.6115372",
"0.6078142",
"0.6057548",
"0.6028132",
"0.59784347",
"0.59588647",
"0.59499264",
"0.5949484",
"0.589166... | 0.5853288 | 23 |
Create a new RateLimitExceededResponse with either a body or json_body. | def FIMM(YKHO, jGRS='429 Too Many Requests', JBvl=429, Ewzo=None, TBsA=None, GgSi=None, PNq_=None):
super(ISKj, YKHO).__init__(headerlist=Ewzo, charset='UTF-8')
YKHO.status_code = JBvl
YKHO.status = jGRS
YKHO.environ = PNq_
if TBsA:
YKHO.content_type = BJsk.Constants.content_type_html
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d, iQG7, anVb):\n lYL_ = rmKx._retry_after(anVb)\n YKHO.wrapped_exc = ZrWc.exc.HTTPTooManyRequests(headers=lYL_)\n YKHO.content = {'overLimit': {'code': YKHO.wrapped_exc.status_int, 'message': Ol8d, 'details': iQG7, 'retryAfter': lYL_['Retry-After']}}",
"def VCns(qoqK):\n return (pz... | [
"0.6098914",
"0.5905501",
"0.5676667",
"0.5556727",
"0.54436296",
"0.5438186",
"0.5395934",
"0.53916144",
"0.5321462",
"0.5206814",
"0.51327455",
"0.5109983",
"0.50726634",
"0.50726634",
"0.5052899",
"0.50337666",
"0.503288",
"0.50313205",
"0.5016104",
"0.49825332",
"0.497274... | 0.741112 | 0 |
Return whether progress bars are globally disabled or not. Progress bars used in `huggingface_hub` can be enable or disabled globally using [`~utils.enable_progress_bars`] and [`~utils.disable_progress_bars`] or by setting `HF_HUB_DISABLE_PROGRESS_BARS` as environment variable. | def ivRH() -> bool:
global _hf_hub_progress_bars_disabled
return EtTk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EwWj() -> None:\n if xrjW is False:\n qmLP.warn('Cannot disable progress bars: environment variable `HF_HUB_DISABLE_PROGRESS_BARS=0` is set and has priority.')\n return\n global _hf_hub_progress_bars_disabled\n EtTk = True",
"def Bxi0() -> None:\n if xrjW is True:\n qmLP.warn... | [
"0.80954826",
"0.78224474",
"0.6812388",
"0.6743026",
"0.59798837",
"0.58661014",
"0.58661014",
"0.5833561",
"0.55916744",
"0.55784994",
"0.54817325",
"0.5473092",
"0.5446248",
"0.5437637",
"0.5380249",
"0.531148",
"0.53078437",
"0.53021574",
"0.53021574",
"0.52922225",
"0.52... | 0.880397 | 0 |
Return the bssid for a access point associated with the packet | def mBhm(YKHO):
if YKHO.haslayer(TzDS) or YKHO.hasflag('FCfield', 'to-DS'):
return YKHO.addr1
else:
return YKHO.addr2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DWT5(YKHO):\n if YKHO.haslayer(TzDS) or YKHO.hasflag('FCfield', 'to-DS'):\n return YKHO.addr2\n else:\n return YKHO.addr1",
"def CtDP(YKHO, gLNQ, WZHJ, hlel):\n G9jH.debug('BSSID %s data: %s', gLNQ, hlel)\n VqfF = ZQeO()\n VqfF.bssid = gLNQ\n VqfF.active = WZHJ\n VqfF.ssid ... | [
"0.66561997",
"0.5751736",
"0.55849266",
"0.5567842",
"0.53363216",
"0.5283974",
"0.52727413",
"0.5197677",
"0.50932574",
"0.5053118",
"0.5039937",
"0.49793264",
"0.4975569",
"0.49664629",
"0.4964176",
"0.49487025",
"0.49456146",
"0.49188927",
"0.48956266",
"0.4873034",
"0.48... | 0.7097048 | 0 |
Test that the scripts and container have been added to the template. | def F1mS(YKHO):
Z9rn = i9zE()
_hkX = Z9rn.get('/')
YKHO.assertIn(b'<div id="recent_reviews"></div>', _hkX.content)
YKHO.assertIn(b'<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>', _hkX.content)
YKHO.assertIn(b'<script crossorigin src="https://unpkg.com/react-... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ILGt(YKHO):\n pmON = GSRe().get_script()\n YKHO.assertTrue(Hy7s.path.exists(pmON))",
"def CXp8(YKHO):\n pass",
"def BZk6(YKHO):\n QpfX = {}\n G1wx = 'left'\n _R2e = zGKt(QpfX, G1wx)\n YKHO.assertIn('storybase-container-placeholder', _R2e)\n YKHO.assertIn(G1wx, _R2e)",
"def HVwq(YK... | [
"0.68855286",
"0.6569156",
"0.6454451",
"0.6438828",
"0.6425775",
"0.6329561",
"0.6178871",
"0.6175014",
"0.60941225",
"0.60901165",
"0.60521126",
"0.6021412",
"0.6015235",
"0.6014932",
"0.6012382",
"0.5960278",
"0.59525883",
"0.5903814",
"0.5892183",
"0.58905774",
"0.5887932... | 0.55412173 | 69 |
Mueller matrix operator for an quarterwave plate. | def mVT0(q7In):
EI9L = oyIN.cos(2 * q7In)
yvp2 = oyIN.sin(2 * q7In)
M76y = oyIN.array([[1, 0, 0, 0], [0, EI9L ** 2, EI9L * yvp2, -yvp2], [0, EI9L * yvp2, yvp2 * yvp2, EI9L], [0, yvp2, -EI9L, 0]])
return M76y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GrSa(YKHO):\n if YKHO.model == 'ER':\n YKHO.qmat = oyIN.array([[-YKHO.alpha, YKHO.alpha], [YKHO.alpha, -YKHO.alpha]])\n elif YKHO.model == 'ARD':\n YKHO.qmat = oyIN.array([[-YKHO.alpha, YKHO.alpha], [YKHO.beta, -YKHO.beta]])\n else:\n raise Exception(\"model must be specified as e... | [
"0.60673034",
"0.6040835",
"0.59534115",
"0.5936303",
"0.59071225",
"0.5872927",
"0.5841236",
"0.58081967",
"0.5794956",
"0.5728738",
"0.57063866",
"0.5670171",
"0.5620856",
"0.5606768",
"0.5600662",
"0.5588184",
"0.55748636",
"0.55673945",
"0.55352193",
"0.5526969",
"0.55140... | 0.6152456 | 0 |
Stokes vector for light polarized at angle theta from the horizontal plane. | def cDc5(q7In):
if oyIN.isscalar(q7In):
return oyIN.array([1, oyIN.cos(2 * q7In), oyIN.sin(2 * q7In), 0])
return oyIN.array([oyIN.ones_like(q7In), oyIN.cos(2 * q7In), oyIN.sin(2 * q7In), oyIN.zeros_like(q7In)]).T | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tDoE(T8d8):\n zHl4 = True\n while zHl4:\n SGf8 = tuKI.random() * oyIN.pi\n RHJb = tuKI.random() * (3 / 4) * 2\n if RHJb < 3 / 4 * (1 + oyIN.cos(SGf8) ** 2):\n zHl4 = False\n Ty9i = osja(T8d8, SGf8)\n return Ty9i",
"def tq9k(qjHC):\n return (3.0 * qjHC / (4.0 * o... | [
"0.60356766",
"0.58448327",
"0.581046",
"0.5783196",
"0.57799584",
"0.5669861",
"0.56460464",
"0.56326866",
"0.56157917",
"0.5483285",
"0.54452956",
"0.5406635",
"0.53951234",
"0.5389403",
"0.5361876",
"0.5356048",
"0.5340756",
"0.53296983",
"0.5326263",
"0.5304438",
"0.52986... | 0.5842513 | 2 |
Stokes vector for vertical polarized light. | def O3Wx():
return oyIN.array([1, -1, 0, 0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P5ay(Ty9i):\n return (vjne(Ty9i), q7MD(Ty9i))",
"def SPW6(Mkmy):\n akib = 4 / 3 * epAf.pi * Mkmy ** 3\n return akib",
"def tDoE(T8d8):\n zHl4 = True\n while zHl4:\n SGf8 = tuKI.random() * oyIN.pi\n RHJb = tuKI.random() * (3 / 4) * 2\n if RHJb < 3 / 4 * (1 + oyIN.cos(SGf8... | [
"0.589377",
"0.5741251",
"0.5730084",
"0.5728626",
"0.5676611",
"0.56667644",
"0.5650076",
"0.5563742",
"0.55254483",
"0.54606766",
"0.5449218",
"0.54369754",
"0.54300106",
"0.5413834",
"0.5402253",
"0.53944075",
"0.5390309",
"0.53888935",
"0.53772324",
"0.53700924",
"0.53613... | 0.6714072 | 0 |
Stokes vector for vertical polarized light. | def jtQj():
return oyIN.array([1, 0, 0, 0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O3Wx():\n return oyIN.array([1, -1, 0, 0])",
"def P5ay(Ty9i):\n return (vjne(Ty9i), q7MD(Ty9i))",
"def SPW6(Mkmy):\n akib = 4 / 3 * epAf.pi * Mkmy ** 3\n return akib",
"def tDoE(T8d8):\n zHl4 = True\n while zHl4:\n SGf8 = tuKI.random() * oyIN.pi\n RHJb = tuKI.random() * (3... | [
"0.6714072",
"0.589377",
"0.5741251",
"0.5730084",
"0.5676611",
"0.56667644",
"0.5650076",
"0.5563742",
"0.55254483",
"0.54606766",
"0.5449218",
"0.54369754",
"0.54300106",
"0.5413834",
"0.5402253",
"0.53944075",
"0.5390309",
"0.53888935",
"0.53772324",
"0.53700924",
"0.53613... | 0.5728626 | 4 |
Stokes vector using ellipsometer parameters. This creates a Stokes vector for the specific set of ellipsometry parameters tanpsi and Delta. See Fujiwara table 3.1 for example. | def VOJm(DwKJ, uGwy):
nYlf = oyIN.arctan(DwKJ)
U7YL = oyIN.cos(2 * nYlf)
H4yH = oyIN.sin(2 * nYlf)
o1Kh = oyIN.cos(2 * uGwy)
ifkm = oyIN.sin(2 * uGwy)
if oyIN.isscalar(DwKJ) and oyIN.isscalar(uGwy):
return oyIN.array([1, -U7YL, H4yH * o1Kh, -H4yH * ifkm])
return oyIN.array([oyIN.ones... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YTZ9(YKHO):\n ACCB, zaY1 = YKHO.linear\n YKHO.logger.debug('Stokes_from_linear: (Ex, Ey) = %s', (ACCB, zaY1))\n LAQV, QjdV = YKHO.linear.conj()\n YKHO.logger.debug('Stokes_from_linear: (Ex*,Ey*) = %s', (LAQV, QjdV))\n _ao8, YK2J = abs(YKHO.linear * YKHO.linear.conj())\n YKHO.logger.debug('St... | [
"0.60508937",
"0.5953389",
"0.5497419",
"0.54203093",
"0.5364661",
"0.53449655",
"0.5343437",
"0.5288109",
"0.516597",
"0.51629436",
"0.51338726",
"0.5108275",
"0.5054561",
"0.50430876",
"0.5008257",
"0.5005713",
"0.49933615",
"0.49854788",
"0.49025834",
"0.48844898",
"0.4881... | 0.6754775 | 0 |
Stokes vector for partially polarized elliptically polarized light. | def ZUBV(zCFy, NyAp, VkU7):
wW3z = oyIN.arctan(VkU7)
XOzQ = oyIN.cos(2 * wW3z)
yK2S = oyIN.sin(2 * wW3z)
ZLSD = oyIN.cos(2 * NyAp)
RyuO = oyIN.sin(2 * NyAp)
if oyIN.isscalar(zCFy):
IYR5 = oyIN.array([1 - zCFy, 0, 0, 0])
d8qA = zCFy * oyIN.array([1, XOzQ * ZLSD, XOzQ * RyuO, yK2S]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tq9k(qjHC):\n return (3.0 * qjHC / (4.0 * oyIN.pi)) ** (1.0 / 3.0)",
"def sVRR(Mkmy):\n return 4.0 / 3.0 * oyIN.pi * Mkmy ** 3.0",
"def jtQj():\n return oyIN.array([1, 0, 0, 0])",
"def A3b2(Mkmy: float) -> float:\n return 4.0 * oyIN.pi * Mkmy * Mkmy",
"def xfQ7(YKHO):\n return 1.5",
"d... | [
"0.63318723",
"0.6327714",
"0.62442666",
"0.6202967",
"0.59498054",
"0.5947127",
"0.58631104",
"0.5786203",
"0.5764818",
"0.5729561",
"0.5717512",
"0.5711444",
"0.5681383",
"0.5662926",
"0.56335145",
"0.56233054",
"0.56137854",
"0.5602428",
"0.5598201",
"0.5544973",
"0.552453... | 0.5672353 | 13 |
Update state of Kalman Filter given all observation obtained so far (up to time t1). | def VAZT(YKHO):
if len(YKHO.obs_history) == 0:
return (YKHO.kf.initial_state_mean, YKHO.kf.initial_state_covariance)
QzFq = oyIN.ma.masked_array(YKHO.obs_history, mask=oyIN.zeros((1,)))
for YRbF in range(len(QzFq)):
if QzFq[YRbF] == -100000000.0:
QzFq[YRbF] = oyIN.ma.masked
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def filter(YKHO, NzrI=False, YxeP=False):\n xX49 = []\n Kt_s = YKHO.n_observations()\n EBq6 = oyIN.zeros((YKHO.observations_size, 1, Kt_s))\n irAt = None\n for a1PO in range(Kt_s):\n k0lF, tjUW, Nq1b, lWPh, T8ck, A3Vt = YKHO.parameters(a1PO - 1)\n Mp3Z, DH5C = YKHO.state(a1PO - 1)\n ... | [
"0.655686",
"0.64168936",
"0.6395035",
"0.6384938",
"0.6383031",
"0.63251776",
"0.622099",
"0.6185678",
"0.61494666",
"0.61440665",
"0.6137328",
"0.61222386",
"0.60464853",
"0.59837836",
"0.5950761",
"0.59455943",
"0.5929507",
"0.57840264",
"0.57721776",
"0.5734677",
"0.57176... | 0.5416754 | 45 |
Creates a dict representation of the FeatureManager's composition. Overrides the GeometricFeature. | def nOK5(YKHO):
PEV7 = YKHO.getOptionQueryValues()
PEV7['feature'] = YKHO.name
PEV7['GeometricFeatureQuery'] = PEV7['GeometricFeatureQuery'].name
PEV7['child'] = YKHO.features[0].getRepresentationForCollection()
return PEV7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n fGC9 = {'name': YKHO.name, 'desc_short': YKHO.desc_short, 'desc_long': YKHO.desc_long, 'rating_fun': YKHO.rating_fun, 'rating_scenic': YKHO.rating_scenic, 'rating_aerobic': YKHO.rating_aerobic, 'rating_technical': YKHO.rating_technical}\n for maxk, wEf2 in YKHO.composition.items():\n ... | [
"0.73768866",
"0.6599205",
"0.64819133",
"0.63767844",
"0.6300593",
"0.6230714",
"0.62228936",
"0.6203845",
"0.6155244",
"0.61520356",
"0.6145497",
"0.613381",
"0.6129826",
"0.61287194",
"0.6110831",
"0.6090183",
"0.6058883",
"0.6037409",
"0.60251963",
"0.6013946",
"0.5963965... | 0.6133701 | 12 |
Check if a string is a numeric (int or float) value | def tIyV(KCHu):
try:
float(KCHu)
return True
except ValueError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QirG(Dhyu):\n return Myyj(Dhyu) or QpCZ(Dhyu)",
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def ye72(str):\n ... | [
"0.90552557",
"0.8473757",
"0.846435",
"0.84133816",
"0.83821726",
"0.833728",
"0.8324079",
"0.8320123",
"0.8309022",
"0.8282817",
"0.8282817",
"0.8282817",
"0.8273851",
"0.82565033",
"0.8231587",
"0.8166819",
"0.816083",
"0.8156185",
"0.8136535",
"0.79312146",
"0.791868",
... | 0.8207844 | 15 |