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
Get container DOM element
def NeeP(YKHO): return YKHO.attrs.container
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NeeP(E_qD: RemoteWebDriver) -> V3r3:\n if UjYN(E_qD, A6oM):\n return E_qD.find_element_by_xpath(A6oM)", "def Rl0r(YKHO):\n return YKHO.container", "def zGKt(YKHO, vEq1):\n zKFv = '%s/%s/%s' % (YKHO._box_locator, YKHO._pair_locator, YKHO._value_locator)\n laNn = zKFv % (vEq1[0], vEq1[1])\...
[ "0.7363432", "0.7298085", "0.6947615", "0.6729415", "0.6708667", "0.6582342", "0.6555935", "0.6518048", "0.65127826", "0.64743686", "0.64743686", "0.64743686", "0.63918084", "0.63910115", "0.6387", "0.6368606", "0.6327706", "0.6327471", "0.6306143", "0.6305307", "0.63016605",...
0.7824161
0
Check if the last update was successful for a config entry.
def eQfK(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool: return bool(Sugg in ajET.data and bTKY.entry_id in ajET.data[Sugg] and ajET.data[Sugg][bTKY.entry_id].last_update_success)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SByh():\n QiMQ = pmON.join(gCuF.get_configdir(), 'latest_screenly_sha')\n if pmON.isfile(QiMQ):\n k1S7 = pmON.getmtime(QiMQ)\n cV9T = qcWV.fromtimestamp(k1S7)\n else:\n cV9T = None\n G9jH.debug('Last update: %s' % str(cV9T))\n if cV9T is None or cV9T < qcWV.now() - fCoM(days...
[ "0.70879847", "0.6940001", "0.69256055", "0.6924558", "0.6830576", "0.68123513", "0.6777641", "0.6740523", "0.67190015", "0.6694138", "0.669025", "0.6658062", "0.6658062", "0.6556813", "0.6535218", "0.6529601", "0.65250134", "0.65201837", "0.6505328", "0.64686483", "0.6466661...
0.80757916
0
Get all devices matching types.
def O2Nc(YKHO, hQcY: Iterable[ModelType], l3JX: bool=True) -> jd6F[K8Ky, None, None]: for DS1x in hQcY: YfpN = PBi7(YKHO.api.bootstrap, DS1x).values() for begE in YfpN: if l3JX and (not begE.is_adopted_by_us): continue yield begE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ofIP(YKHO, SnBA):\n Gsp7 = []\n for jf3N in YKHO.devices:\n if YKHO.devices[jf3N]['type'] in SnBA:\n Gsp7.append(YKHO.devices[jf3N])\n return Gsp7", "def Rtt2(YKHO, kN9s):\n Gsp7 = []\n for jf3N in YKHO.devices:\n if YKHO.devices[jf3N]['type'] == kN9s:\n Gsp...
[ "0.82495683", "0.8138218", "0.75318027", "0.73401856", "0.72420436", "0.72355723", "0.71827346", "0.7098613", "0.70712185", "0.69548064", "0.6931884", "0.6930236", "0.6895206", "0.6889074", "0.68873864", "0.68693453", "0.6857095", "0.68350285", "0.68309975", "0.67905456", "0....
0.6322641
61
Return true if permission is granted to the bucketlist owner.
def m4il(YKHO, QePW, tTee, YEnM): if isinstance(YEnM, sjD2): return YEnM.user == QePW.user return YEnM.user == QePW.user
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d0C1(YKHO, QePW):\n list = Iofl(x1iM, slug=YKHO.kwargs['slug'])\n zIRE = Iofl(Nv2E, user=QePW.user)\n return zIRE == list.user", "def d0C1(YKHO, QePW):\n list = Iofl(x1iM, slug=YKHO.kwargs['slug'])\n zIRE = Iofl(Nv2E, user=QePW.user)\n return zIRE == list.user", "def d0C1(YKHO, QePW):\n ...
[ "0.776754", "0.776754", "0.7747962", "0.7747962", "0.7199685", "0.7131291", "0.7099251", "0.7061839", "0.6895004", "0.68829995", "0.687702", "0.6866035", "0.68491226", "0.6835617", "0.6835617", "0.6828947", "0.68211275", "0.68032205", "0.678927", "0.67737144", "0.6729008", ...
0.0
-1
Gathers tensorflow summaries into single list.
def PomB(YKHO): if not YKHO.total_voxels: return [] rhd_ = YKHO.tp / max(YKHO.tp + YKHO.fp, 1) AOzf = YKHO.tp / max(YKHO.tp + YKHO.fn, 1) for Yw_3 in (YKHO.images_xy, YKHO.images_xz, YKHO.images_yz): for YRbF, QxIo in enumerate(Yw_3): QxIo.tag += '/%d' % YRbF WJlW = list(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mYF0(YKHO):\n if YKHO._summary_list:\n return ZylS.summary.merge(YKHO._summary_list)", "def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('total_loss', YKHO.loss)\n ZylS.summary.histogram('histogram_total_loss', YKHO.loss)\n ZylS.summary.histogram('u...
[ "0.70182055", "0.70161533", "0.6968627", "0.6798095", "0.67738223", "0.6686011", "0.66513973", "0.664674", "0.65932864", "0.6569054", "0.6563767", "0.65626365", "0.653851", "0.6478306", "0.64436835", "0.64381677", "0.6374309", "0.6345153", "0.6258446", "0.62060326", "0.619888...
0.71371955
0
Takes in an image and its labeled counterpart and isolates the labels set out in label. Returns an image and label counterpart of the specified labels.
def BkB6(LNo8, skyf, UXqs, o_qv=False): vC9B, yzQ0 = skyf.shape IxFp = oyIN.zeros([vC9B, yzQ0]) Dkg0 = oyIN.zeros([vC9B, yzQ0]) rsrf = [] for G1Hx in UXqs: ycBG = oyIN.zeros([vC9B, yzQ0]) for YRbF in range(0, vC9B): for r845 in range(0, yzQ0): if skyf[YRbF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IUOq(VXjJ: Image, Crrw: Sequence[int]) -> hnIv:\n yvT9 = PIEQ(VXjJ)\n for vC9B in Crrw:\n for WKvO, LVAh, epBp, Ty9i in VXjJ.getNonZeroCoordinates():\n if vC9B == Ty9i:\n yvT9.data[int(WKvO), int(LVAh), int(epBp)] = Ty9i\n break\n else:\n ...
[ "0.759322", "0.71790516", "0.69940585", "0.68636876", "0.67298675", "0.66514033", "0.6619392", "0.6557447", "0.6493113", "0.64831334", "0.64758307", "0.6412182", "0.6394117", "0.6388657", "0.6383114", "0.63702327", "0.6363321", "0.635385", "0.6353079", "0.63474286", "0.634713...
0.5966503
66
Load a learned classification or regression model file, given its location on disk.
def wX8m(YKHO, zj2R): YKHO.modelFileName = zj2R Rrrv = open(YKHO.modelFileName) YKHO.model = Rrrv.read() Rrrv.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(Ux0P):\n pass", "def uyMl(YKHO, pmON='./nnmodel.tflearn'):\n YKHO.model.load(pmON)", "def uyMl(YKHO, WJHQ):\n raise NotImplementedError", "def uyMl(Ux0P):\n raise NotImplementedError()", "def tyeH(YKHO, VqRE):\n YKHO.model = tyeH(VqRE)", "def uyMl(YKHO, VqRE):\n print('Loading ...
[ "0.7847489", "0.776654", "0.7709467", "0.7672756", "0.7670211", "0.7586231", "0.7529785", "0.7517887", "0.747612", "0.7442771", "0.7438286", "0.74353397", "0.74040234", "0.7397013", "0.7344871", "0.7344687", "0.7342838", "0.73269284", "0.7314962", "0.72985566", "0.7291846", ...
0.0
-1
Returns a UserDetails object from a specified identifier
async def user(YKHO, Ilxn): iQG7, jGRS = await YKHO.request_client.make_request(endpoint=f'{YKHO.base_url}user/details/{str(Ilxn)}') if jGRS == 404: raise Fx6w('User could not be found') if jGRS != 200: raise yiLL('There was an error with the API') return rR60(iQG7['payload'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VeUv(uJjO):\n CBIr = mv1M.objects.get(id=uJjO)\n return CBIr", "async def get_user_details(U34r, uJjO) -> h8nf[mv1M]:\n c5ow = W84Y(U34r)\n Sa43 = JLlI()\n return await Sa43.execute(uJjO, c5ow)", "def orql(QePW, uJjO):\n try:\n JfyU = CNDk(getattr(gCuF, 'SOAP_UNIREG_IDENTITY_HANDLE...
[ "0.71370184", "0.70466113", "0.7018557", "0.6919299", "0.6878002", "0.6877133", "0.68280405", "0.6825665", "0.6789537", "0.66321814", "0.6631285", "0.66229963", "0.66229963", "0.6589111", "0.65686506", "0.65605664", "0.6549536", "0.6547926", "0.6546948", "0.6536834", "0.65211...
0.7885526
0
Returns the start date of Challenge
def nUNa(YKHO): return YKHO.start_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kepv(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_date')", "def kepv(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'start_date')", "def kepv(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'start_date')", "def kepv(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'start_date')", "de...
[ "0.74886215", "0.73748136", "0.73748136", "0.7368159", "0.7365164", "0.73485154", "0.7269663", "0.72258085", "0.7190848", "0.71850485", "0.7180599", "0.7180599", "0.71207416", "0.71207416", "0.71207416", "0.71207416", "0.71207416", "0.71207416", "0.71207416", "0.7074538", "0....
0.729232
8
Returns the end date of Challenge
def mjdP(YKHO): return YKHO.end_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KhBf(YKHO) -> str:\n return qe4Y.get(YKHO, 'end_date')", "def KhBf(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'end_date')", "def mjdP(YKHO):\n return", "def Os4s(YKHO):\n return YKHO.getEffectiveDate()", "def KhBf(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'end_date')", ...
[ "0.7634365", "0.7558567", "0.75185466", "0.74222404", "0.7337778", "0.7337778", "0.73372185", "0.73307157", "0.72982717", "0.72982717", "0.72982717", "0.72982717", "0.72982717", "0.72982717", "0.7294044", "0.72519684", "0.7198518", "0.719007", "0.719007", "0.717234", "0.70804...
0.7541714
4
Returns if the challenge is active or not
def ksfB(YKHO): if YKHO.start_date < rIAI.now() and YKHO.end_date > rIAI.now(): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mb1C(YKHO):\n if YKHO.progress is None:\n return False\n return YKHO.progress <= wDeZ", "def hAP2(YKHO):\n return YKHO._current_action != -1", "def ksfB(YKHO):\n TxiD = YKHO.get('modality') == 'dmri'\n return TxiD", "def ksfB(YKHO):\n return", "def ksfB(YKHO):\n return YKHO....
[ "0.7297143", "0.6972786", "0.69707835", "0.69097966", "0.6864951", "0.6857768", "0.6856664", "0.6856664", "0.68236774", "0.6811155", "0.68061304", "0.68006974", "0.6786565", "0.6786565", "0.67786396", "0.67724586", "0.67638266", "0.67511904", "0.67511904", "0.67511904", "0.67...
0.0
-1
Returns the start date of Phase
def nUNa(YKHO): return YKHO.start_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kepv(YKHO) -> _c1T:\n return YKHO.__start_date", "def kepv(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'start_date')", "def nUNa(YKHO):\n return YKHO.__start_date", "def kepv(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_date')", "def nUNa(YKHO):\n return", "def yKcO(YKHO) -> _c1...
[ "0.74285865", "0.7418971", "0.7418966", "0.7418348", "0.740057", "0.73831904", "0.721334", "0.7205229", "0.7205229", "0.7205229", "0.7205229", "0.7205229", "0.7205229", "0.7205229", "0.72049147", "0.72049147", "0.7198187", "0.7194229", "0.7177388", "0.7167824", "0.71048534", ...
0.74523723
3
Returns the end date of Challenge
def mjdP(YKHO): return YKHO.end_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KhBf(YKHO) -> str:\n return qe4Y.get(YKHO, 'end_date')", "def KhBf(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'end_date')", "def mjdP(YKHO):\n return", "def Os4s(YKHO):\n return YKHO.getEffectiveDate()", "def KhBf(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'end_date')", ...
[ "0.7634365", "0.7558567", "0.75185466", "0.74222404", "0.7337778", "0.7337778", "0.73372185", "0.73307157", "0.72982717", "0.72982717", "0.72982717", "0.72982717", "0.72982717", "0.72982717", "0.7294044", "0.72519684", "0.7198518", "0.719007", "0.719007", "0.717234", "0.70804...
0.7541714
5
Returns if the challenge is active or not
def ksfB(YKHO): if YKHO.start_date < rIAI.now() and YKHO.end_date > rIAI.now(): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mb1C(YKHO):\n if YKHO.progress is None:\n return False\n return YKHO.progress <= wDeZ", "def hAP2(YKHO):\n return YKHO._current_action != -1", "def ksfB(YKHO):\n TxiD = YKHO.get('modality') == 'dmri'\n return TxiD", "def ksfB(YKHO):\n return", "def ksfB(YKHO):\n return YKHO....
[ "0.7297143", "0.6972786", "0.69707835", "0.69097966", "0.6864951", "0.6857768", "0.6856664", "0.6856664", "0.68236774", "0.6811155", "0.68061304", "0.68006974", "0.6786565", "0.6786565", "0.67786396", "0.67724586", "0.67638266", "0.67511904", "0.67511904", "0.67511904", "0.67...
0.0
-1
Returns the email of the user
def zAg0(YKHO): return YKHO.email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RC0X(YKHO):\n CBIr = getattr(YKHO, YKHO.USER_FIELD)\n return CBIr.get_email()", "def cHyp(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_email')", "def cHyp(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_email')", "def D3lj(YKHO):\n return YKHO._user_dat['email']", "def bzh1():\n if QePW.en...
[ "0.8954307", "0.88385147", "0.88385147", "0.8673457", "0.8583919", "0.8565654", "0.856373", "0.84943575", "0.84559447", "0.84137386", "0.8412122", "0.83296984", "0.8324761", "0.82609445", "0.821697", "0.8202516", "0.81286156", "0.8090093", "0.8090093", "0.8090093", "0.8086216...
0.0
-1
Helper function for reproducible behavior to set the seed in ``random``, ``numpy``, ``torch`` and/or ``tf`` (if installed).
def e3of(yokr: int): tuKI.seed(yokr) oyIN.random.seed(yokr) ht2j.manual_seed(yokr) ht2j.cuda.manual_seed_all(yokr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ziu_(_BRV):\n ht2j.manual_seed(_BRV)\n ht2j.cuda.manual_seed_all(_BRV)\n ht2j.backends.cudnn.deterministic = True\n ht2j.backends.cudnn.benchmark = False\n oyIN.random.seed(_BRV)\n tuKI.seed(_BRV)", "def G5XO(yokr: int=None, _aKp: bool=False):\n if yokr:\n ht2j.manual_seed(yokr)\n...
[ "0.8097287", "0.8084847", "0.8079392", "0.79656225", "0.7955784", "0.78914976", "0.7873673", "0.78580165", "0.7854422", "0.78432703", "0.7833461", "0.7820544", "0.7819144", "0.7807861", "0.7793344", "0.77882904", "0.77880406", "0.77792597", "0.77727294", "0.7770618", "0.77691...
0.7372742
100
Concatenates `array1` and `array2` on first axis, applying padding on the second if necessary.
def TLNq(eSw6, _baA, B8hl=0): if len(eSw6.shape) == 1 or eSw6.shape[1] == _baA.shape[1]: return oyIN.concatenate((eSw6, _baA), dim=0) EZd9 = (eSw6.shape[0] + _baA.shape[0], max(eSw6.shape[1], _baA.shape[1])) + eSw6.shape[2:] Aofo = oyIN.full_like(eSw6, B8hl, shape=EZd9) Aofo[:eSw6.shape[0], :eSw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TLNq(eSw6, _baA, B8hl=-100):\n if len(eSw6.shape) == 1 or eSw6.shape[1] == _baA.shape[1]:\n return oyIN.concatenate((eSw6, _baA), dim=0)\n EZd9 = (eSw6.shape[0] + _baA.shape[0], max(eSw6.shape[1], _baA.shape[1])) + eSw6.shape[2:]\n Aofo = oyIN.full_like(eSw6, B8hl, shape=EZd9)\n Aofo[:eSw6.s...
[ "0.7934731", "0.6862531", "0.66219383", "0.66219383", "0.66219383", "0.65113026", "0.64681184", "0.6400964", "0.6309941", "0.6164095", "0.6156893", "0.6151621", "0.6148788", "0.6113729", "0.60776865", "0.60287744", "0.6018954", "0.6012328", "0.5998622", "0.5984134", "0.596135...
0.8027125
0
Expand the `arrays` so that the second dimension grows to `new_seq_length`. Uses `padding_index` for padding.
def lMD7(Sk_F, Y2uF, B8hl=0): Aofo = oyIN.full_like(Sk_F, B8hl, shape=(Sk_F.shape[0], Y2uF) + Sk_F.shape[2:]) Aofo[:, :Sk_F.shape[1]] = Sk_F return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jQqR(jWe2, KLk8=None, yDqo='int32', dvgN='pre', qG1m='pre', BWXx=0.0):\n if not hasattr(jWe2, '__len__'):\n raise ValueError('`sequences` must be iterable.')\n Fbjb = []\n for WKvO in jWe2:\n if not hasattr(WKvO, '__len__'):\n raise ValueError('`sequences` must be a list of it...
[ "0.6439899", "0.63091505", "0.62929577", "0.62492937", "0.6101763", "0.60892963", "0.60765016", "0.6045343", "0.60297495", "0.60186106", "0.6004447", "0.59874374", "0.59225047", "0.59086883", "0.59027827", "0.5886107", "0.5870125", "0.5843365", "0.5835755", "0.58334655", "0.5...
0.89296913
0
Gather value of `tensors` (tensor or list/tuple of nested tensors) and convert them to numpy before concatenating them to `gathered`
def n_x1(YKHO, cRc2, mWFP): if cRc2 is None: return return Z8WM(cRc2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HXuo(cRc2):\n return [YRbF.numpy() if isinstance(YRbF, (ZylS.Variable, ZylS.Tensor)) else YRbF for YRbF in cRc2]", "def DgR2(cRc2):\n eqrg = []\n aIXl = []\n aDYX = pImw.get_world_size()\n for vhpA in cRc2:\n tUQx = [ht2j.ones_like(vhpA) for bGrB in range(aDYX)]\n pImw.all_gather...
[ "0.715879", "0.70637083", "0.695775", "0.6788909", "0.6636259", "0.66251755", "0.66251755", "0.6585952", "0.65760386", "0.65432537", "0.65267473", "0.65172654", "0.64487493", "0.64068455", "0.6360861", "0.6354115", "0.62940186", "0.62940186", "0.6291743", "0.62201273", "0.619...
0.57181126
59
The Lambda execution environment injects a default `LambdaLoggerHandler` into the root logger, so we just want to update the traceback formatter on it without changing the actual logging format. Alternatively, locally the root logger will not have any handlers. In this case, we create a logging.StreamHandler and add th...
def JEDw(bo34): if not bo34.hasHandlers(): return for DCgT in bo34.handlers + bo34.parent.handlers: FMLJ = DCgT.formatter._fmt if DCgT.formatter else None DCgT.setFormatter(tM_H(fmt=FMLJ))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rcIg(GPtr):\n cedc = G9jH.StreamHandler()\n lzzZ = G9jH.Formatter('{} {}'.format(GPtr['logging']['stderr_entry_prefix'], GPtr['logging']['entry_format']))\n cedc.setFormatter(lzzZ)\n return cedc", "def l6Ve():\n for DCgT in G9jH.getLogger().handlers:\n uaPq = DCgT.formatter or G9jH._def...
[ "0.62595975", "0.6170778", "0.61388487", "0.60799336", "0.6057235", "0.6050276", "0.60046035", "0.59815925", "0.59553784", "0.5947387", "0.5905929", "0.58861005", "0.58285284", "0.5812712", "0.5804208", "0.5795465", "0.5791414", "0.5790131", "0.57860297", "0.57542014", "0.573...
0.67810535
0
Get a logger instance for the specified name.
def fZx2(mWFP, ABDL=None): if not ABDL: ABDL = Hy7s.environ.get('LOGGER_LEVEL', 'INFO') bo34 = G9jH.getLogger(mWFP) JEDw(bo34) try: bo34.setLevel(ABDL.upper()) except (TypeError, ValueError) as err: bo34.setLevel('INFO') bo34.error('Defaulting to INFO logging: %s', st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fZx2(mWFP):\n return G9jH.getLogger(mWFP)", "def fZx2(mWFP):\n try:\n return S0MI[mWFP]\n except KeyError:\n G9jH.root.setLevel(wnrn)\n uaPq = S4sv(Axo4)\n wOb_ = G9jH.StreamHandler()\n wOb_.setLevel(wnrn)\n wOb_.setFormatter(uaPq)\n RKD7 = G9jH.getLo...
[ "0.863461", "0.8517264", "0.8431661", "0.84201336", "0.8394682", "0.82475597", "0.8177815", "0.81381583", "0.8115114", "0.8080986", "0.7998098", "0.7996794", "0.7966614", "0.7952162", "0.79396474", "0.7924312", "0.7920836", "0.79026353", "0.7902629", "0.78501433", "0.7849676"...
0.7094928
88
Predict class for X. The predicted class of an input sample is a vote by the trees in the forest, weighted by their probability estimates. That is, the predicted class is the one with highest mean probability estimate across the trees.
def YEmv(YKHO, __n6, Dfi0=None): if Dfi0 is None: Dfi0 = XHG5() YKHO.predict_payload = YyWH(inputData='\n SELECT\n %(func)s({{%(features)s} as features}) as predict\n FROM %(test)s\n ' % {'func': YKHO.name, 'features': ','.join(YKHO.features), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmv(YKHO, EcVT):\n return YKHO.classify(YKHO.tree_, EcVT)", "def YEmv(YKHO, EcVT):\n XP5J = EcVT * YKHO.feature_log_prob_.T + YKHO.class_log_prior_\n return YKHO.classes_[oyIN.argmax(XP5J, axis=1)]", "def yUsv(YKHO, WKvO):\n return oyIN.argmax(YKHO.predict(WKvO), 1)", "def YEmv(YKHO, EcVT):\...
[ "0.7820414", "0.77437186", "0.770008", "0.76938456", "0.767738", "0.7627736", "0.76223034", "0.7620226", "0.7577056", "0.75491786", "0.75280756", "0.75093526", "0.7505303", "0.7503807", "0.7484444", "0.74774927", "0.74715215", "0.74600613", "0.74463665", "0.7416716", "0.73916...
0.0
-1
Add a field to an existing template
def asp5(VJS0, ZsoD): bD7m = Za4M.get('endpoints').get('gui').get('add_content') % VJS0 ui7X = qQXR.loads(open(Hy7s.path.join(qE48, 'modify_template.json')).read()) ui7X['ContentField']['FieldName'] = ZsoD geh0 = G4JS.post(url=bD7m, headers=DSfk.dss_headers, json=ui7X, proxies=DSfk.proxy, verify=False) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FxjZ(YKHO, Jyyj):\n YKHO.fields[Jyyj.name] = Jyyj", "def mUpK(YKHO, QpfX):\n QpfX = super().get_template_context(QpfX)\n QpfX['field'] = YKHO\n return QpfX", "def FxjZ(YKHO, mWFP, BWXx):\n YKHO.form_fields.append((mWFP, BWXx))\n return", "def Qw6N(YKHO):\n pmON = '/fields'\n nPrm ...
[ "0.65330166", "0.64642906", "0.64637196", "0.6453901", "0.6442937", "0.6396729", "0.6341212", "0.6257896", "0.6235844", "0.6235844", "0.6235844", "0.6235844", "0.6235844", "0.6199585", "0.6130855", "0.60973233", "0.60907686", "0.6061627", "0.60233676", "0.6009412", "0.6008108...
0.64197236
5
Return the json content from the resource at ``path``.
def QePW(YKHO, NKcE: str, pmON: str, nPrm: Optional[Dict[str, Any]]=None, RRlC: Optional[Dict[str, 'BufferedReader']]=None, qQXR: Optional[Dict[str, Any]]=None, NArs: Optional[Dict[str, Any]]=None, vYBr: float=D2fq) -> h8nf[uLKX[cuzp[str, ImMB], str]]: NArs = _qLf(NArs) or {} NArs['raw_json'] = 1 if isinsta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FjLs(YKHO, pmON):\n YKHO._connection.request('GET', pmON)\n geh0 = YKHO._connection.getresponse()\n YKHO.assertEqual(geh0.status, 200)\n nPrm = geh0.read()\n if geh0.getheader('Content-Encoding') == 'gzip':\n nPrm = lGU7.GzipFile('', 'rb', 9, aKaX(nPrm)).read()\n return qQXR.loads(nPrm...
[ "0.75944364", "0.7156564", "0.7131164", "0.70478356", "0.6951734", "0.6806194", "0.6718052", "0.6702262", "0.6577785", "0.65632963", "0.65417016", "0.6478282", "0.64515823", "0.64460534", "0.64122695", "0.63871986", "0.6327129", "0.6323631", "0.63074386", "0.6305027", "0.6303...
0.0
-1
Initialize an OlapCube instance.
def FIMM(YKHO, UzPC: Connection, id: str, mWFP: str | None=None, o_gm: str | None=None, vfuS: bool=True, u0U7: bool=True, DFta: ExpressionFormat | str=xYRQ.TREE, VCwn: bool=False): super().__init__(UzPC, id=id, name=mWFP, instance_id=o_gm, parallel=vfuS, progress_bar=u0U7) if n814(UzPC, '11.3.0800'): YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tk32() -> I1Al:\n return j8pC(oyIN.zeros((5, 5), dtype=oyIN.float32), spatial_grid='equalarea', grid_spacing=2000.0, domain_corner=(0.0, 0.0))", "def eLpg(Emd4, UzPC: 'Connection', mWFP: str, fsnd: str, JBZA: str | None=None, f2Tp: bool | None=None, azoT: list[dict] | None=None, Wbxz: list[dict] | None=No...
[ "0.65834737", "0.65299624", "0.6513731", "0.6422907", "0.6422907", "0.63626844", "0.63029593", "0.6295157", "0.6266231", "0.624118", "0.6221257", "0.6193785", "0.6158766", "0.6109916", "0.6021087", "0.5985088", "0.5983316", "0.5983104", "0.59594256", "0.5945219", "0.58861274"...
0.0
-1
Check dictionaries with metrics before update of an OLAP Cube.
def TFw8(Wbxz: list[dict], RWjD: list[dict], jGRS: int) -> bool: return eu3e.__check_objects_update(Wbxz, RWjD, 'metric', jGRS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LfER(YEnM: dict) -> bool:\n YWSi = {}\n Wbxz = {}\n MMSF = {}\n try:\n Vb5F = cAzV()\n BhJz = wk86()\n Zxma = X1CD()\n LEu7 = Vb5F.retrieve_disk_info()\n YEnM['disk'] = LEu7\n BhJz.FillSystemInfo(json=YWSi)\n BhJz.FillSystemMetrics(json=Wbxz)\n ...
[ "0.58907795", "0.57425547", "0.56969285", "0.56754667", "0.5653584", "0.5623932", "0.5554565", "0.553065", "0.55118734", "0.55070245", "0.5455661", "0.545118", "0.54463625", "0.54292005", "0.5423141", "0.5420331", "0.5416422", "0.5412933", "0.5393719", "0.5373516", "0.5371696...
0.7043955
0
Creates a CreateUserMessage from a protobuf As a requirement of all objects which inherit from Serializable, this method transforms a protobuf object into an instance of this class.
def aFLm(mLim: CreateUserMessage_PB) -> 'CreateUserMessage': return WyXl(msg_id=vodS(blob=mLim.msg_id), address=vodS(blob=mLim.address), content=qQXR.loads(mLim.content), reply_to=vodS(blob=mLim.reply_to))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hmiq(YKHO) -> gufy:\n return gufy(msg_id=Napc(YKHO.id), address=Napc(YKHO.address), content=qQXR.dumps(YKHO.content), reply_to=Napc(YKHO.reply_to))", "def aFLm(mLim: CreateUserResponse_PB) -> 'CreateUserResponse':\n return UXhQ(msg_id=vodS(blob=mLim.msg_id), address=vodS(blob=mLim.address), status_code...
[ "0.8137164", "0.77125484", "0.7552685", "0.7547193", "0.754291", "0.7493094", "0.7378227", "0.7272307", "0.7187229", "0.71355784", "0.709356", "0.6965224", "0.68125576", "0.67948467", "0.679148", "0.67050934", "0.67050934", "0.66616714", "0.64336807", "0.64209443", "0.6404699...
0.84546095
0
Return the type of protobuf object which stores a class of this type As a part of serialization and deserialization, we need the ability to lookup the protobuf object type directly from the object type. This static method allows us to do this. Importantly, this method is also used to create the reverse lookup ability w...
def FyAo() -> xYTG: return gufy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n0X3(Emd4) -> eBH2:\n return _lR6(Emd4)['obj']", "def T9IL(Emd4):\n return Emd4.__name__", "def yaSt(YKHO):\n return YKHO._instance.GetType", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n ...
[ "0.67815095", "0.6583404", "0.6374535", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", ...
0.0
-1
Return the type of protobuf object which stores a class of this type As a part of serialization and deserialization, we need the ability to lookup the protobuf object type directly from the object type. This static method allows us to do this. Importantly, this method is also used to create the reverse lookup ability w...
def FyAo() -> xYTG: return Gmb4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n0X3(Emd4) -> eBH2:\n return _lR6(Emd4)['obj']", "def T9IL(Emd4):\n return Emd4.__name__", "def yaSt(YKHO):\n return YKHO._instance.GetType", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n ...
[ "0.67818356", "0.6584206", "0.63753194", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665",...
0.0
-1
Return the type of protobuf object which stores a class of this type As a part of serialization and deserialization, we need the ability to lookup the protobuf object type directly from the object type. This static method allows us to do this. Importantly, this method is also used to create the reverse lookup ability w...
def FyAo() -> xYTG: return wXxD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n0X3(Emd4) -> eBH2:\n return _lR6(Emd4)['obj']", "def T9IL(Emd4):\n return Emd4.__name__", "def yaSt(YKHO):\n return YKHO._instance.GetType", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n ...
[ "0.67806953", "0.658258", "0.63734907", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", ...
0.0
-1
Return the type of protobuf object which stores a class of this type As a part of serialization and deserialization, we need the ability to lookup the protobuf object type directly from the object type. This static method allows us to do this. Importantly, this method is also used to create the reverse lookup ability w...
def FyAo() -> xYTG: return nVGg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n0X3(Emd4) -> eBH2:\n return _lR6(Emd4)['obj']", "def T9IL(Emd4):\n return Emd4.__name__", "def yaSt(YKHO):\n return YKHO._instance.GetType", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n ...
[ "0.67810637", "0.6583118", "0.6374606", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", ...
0.0
-1
Return the type of protobuf object which stores a class of this type As a part of serialization and deserialization, we need the ability to lookup the protobuf object type directly from the object type. This static method allows us to do this. Importantly, this method is also used to create the reverse lookup ability w...
def FyAo() -> xYTG: return cyvV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n0X3(Emd4) -> eBH2:\n return _lR6(Emd4)['obj']", "def T9IL(Emd4):\n return Emd4.__name__", "def yaSt(YKHO):\n return YKHO._instance.GetType", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n ...
[ "0.67815095", "0.6583404", "0.6374535", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", ...
0.0
-1
Return the type of protobuf object which stores a class of this type As a part of serialization and deserialization, we need the ability to lookup the protobuf object type directly from the object type. This static method allows us to do this. Importantly, this method is also used to create the reverse lookup ability w...
def FyAo() -> xYTG: return RQay
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n0X3(Emd4) -> eBH2:\n return _lR6(Emd4)['obj']", "def T9IL(Emd4):\n return Emd4.__name__", "def yaSt(YKHO):\n return YKHO._instance.GetType", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n ...
[ "0.67818356", "0.6584206", "0.63753194", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665",...
0.0
-1
Creates a UpdateUserMessage from a protobuf As a requirement of all objects which inherit from Serializable, this method transforms a protobuf object into an instance of this class.
def aFLm(mLim: UpdateUserMessage_PB) -> 'UpdateUserMessage': return IOVo(msg_id=vodS(blob=mLim.msg_id), address=vodS(blob=mLim.address), content=qQXR.loads(mLim.content), reply_to=vodS(blob=mLim.reply_to))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hmiq(YKHO) -> MNmz:\n return MNmz(msg_id=Napc(YKHO.id), address=Napc(YKHO.address), content=qQXR.dumps(YKHO.content), reply_to=Napc(YKHO.reply_to))", "def aFLm(mLim: CreateUserMessage_PB) -> 'CreateUserMessage':\n return WyXl(msg_id=vodS(blob=mLim.msg_id), address=vodS(blob=mLim.address), content=qQXR....
[ "0.8085904", "0.785014", "0.76933116", "0.76809806", "0.75615984", "0.7495648", "0.74638355", "0.74584854", "0.7404344", "0.73927957", "0.7270472", "0.7201519", "0.71412605", "0.71125925", "0.71077347", "0.6890435", "0.6859781", "0.6859781", "0.68083173", "0.6787571", "0.6680...
0.8314561
0
Return the type of protobuf object which stores a class of this type As a part of serialization and deserialization, we need the ability to lookup the protobuf object type directly from the object type. This static method allows us to do this. Importantly, this method is also used to create the reverse lookup ability w...
def FyAo() -> xYTG: return MNmz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n0X3(Emd4) -> eBH2:\n return _lR6(Emd4)['obj']", "def T9IL(Emd4):\n return Emd4.__name__", "def yaSt(YKHO):\n return YKHO._instance.GetType", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n ...
[ "0.67806953", "0.658258", "0.63734907", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", ...
0.0
-1
Return the type of protobuf object which stores a class of this type As a part of serialization and deserialization, we need the ability to lookup the protobuf object type directly from the object type. This static method allows us to do this. Importantly, this method is also used to create the reverse lookup ability w...
def FyAo() -> xYTG: return JM1d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n0X3(Emd4) -> eBH2:\n return _lR6(Emd4)['obj']", "def T9IL(Emd4):\n return Emd4.__name__", "def yaSt(YKHO):\n return YKHO._instance.GetType", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n ...
[ "0.67810637", "0.6583118", "0.6374606", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", ...
0.0
-1
Return the type of protobuf object which stores a class of this type As a part of serialization and deserialization, we need the ability to lookup the protobuf object type directly from the object type. This static method allows us to do this. Importantly, this method is also used to create the reverse lookup ability w...
def FyAo() -> xYTG: return IdzG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n0X3(Emd4) -> eBH2:\n return _lR6(Emd4)['obj']", "def T9IL(Emd4):\n return Emd4.__name__", "def yaSt(YKHO):\n return YKHO._instance.GetType", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n ...
[ "0.67815095", "0.6583404", "0.6374535", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", "0.6336909", ...
0.0
-1
Return the type of protobuf object which stores a class of this type As a part of serialization and deserialization, we need the ability to lookup the protobuf object type directly from the object type. This static method allows us to do this. Importantly, this method is also used to create the reverse lookup ability w...
def FyAo() -> xYTG: return fSrF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n0X3(Emd4) -> eBH2:\n return _lR6(Emd4)['obj']", "def T9IL(Emd4):\n return Emd4.__name__", "def yaSt(YKHO):\n return YKHO._instance.GetType", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n ...
[ "0.67818356", "0.6584206", "0.63753194", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665", "0.63367665",...
0.0
-1
Return the type of protobuf object which stores a class of this type As a part of serialization and deserialization, we need the ability to lookup the protobuf object type directly from the object type. This static method allows us to do this. Importantly, this method is also used to create the reverse lookup ability w...
def FyAo() -> xYTG: return nmvm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n0X3(Emd4) -> eBH2:\n return _lR6(Emd4)['obj']", "def T9IL(Emd4):\n return Emd4.__name__", "def yaSt(YKHO):\n return YKHO._instance.GetType", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n ...
[ "0.67806953", "0.658258", "0.63734907", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", "0.6335917", ...
0.0
-1
Return the type of protobuf object which stores a class of this type As a part of serialization and deserialization, we need the ability to lookup the protobuf object type directly from the object type. This static method allows us to do this. Importantly, this method is also used to create the reverse lookup ability w...
def FyAo() -> xYTG: return gUyz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n0X3(Emd4) -> eBH2:\n return _lR6(Emd4)['obj']", "def T9IL(Emd4):\n return Emd4.__name__", "def yaSt(YKHO):\n return YKHO._instance.GetType", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n return YKHO.__type", "def yaSt(YKHO):\n ...
[ "0.67810637", "0.6583118", "0.6374606", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", "0.6337124", ...
0.0
-1
Test that BoxMC can get and set attributes while attached.
def NN1W(hkS8, BWXx, WN6g, cdbf): cAhc = nScl.hpmc.update.BoxMC(trigger=nScl.trigger.Periodic(10), betaP=10) sg14 = WN6g(cdbf()) sg14.operations.updaters.append(cAhc) FQNo = nScl.hpmc.integrate.Sphere() FQNo.shape['A'] = dict(diameter=1) sg14.operations.integrator = FQNo sg14.run(0) seta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HU4j(hkS8, BWXx):\n cAhc = nScl.hpmc.update.BoxMC(trigger=nScl.trigger.Periodic(10), betaP=10)\n setattr(cAhc, hkS8, BWXx)\n if isinstance(BWXx, dict):\n assert BWXx.keys() == getattr(cAhc, hkS8).keys()\n for G1Hx in BWXx.keys():\n assert pnbL(BWXx[G1Hx], getattr(cAhc, hkS8)[G...
[ "0.6566914", "0.6531058", "0.6256925", "0.61344784", "0.6104152", "0.6039133", "0.603482", "0.5966508", "0.5947099", "0.5942625", "0.59211314", "0.58815867", "0.58665085", "0.5849954", "0.5803383", "0.5792594", "0.578374", "0.5771407", "0.57506895", "0.57307416", "0.57024235"...
0.74243975
0
decimal to base number
def vFtL(Emd4, mLGw: int, P8oC: int) -> 'Base_num': if len(Emd4.numbers) < P8oC: raise GTsJ(f'Conversion list must be longer than {P8oC}') dShr = mLGw dMwb = [] while int(dShr): dMwb.append(dShr % P8oC) dShr //= P8oC return BXdk(''.join([Emd4.numbers[YRbF] for YRbF in dMwb[::...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hr7C(YKHO, P8oC: int) -> 'bNUM':\n SOnQ = YKHO.get_decimal()\n return eWsX(SOnQ, P8oC)", "def f9LB(SOnQ: int or str or float, P8oC=2) -> str:\n VvJF = ''\n n527 = 55\n print(SOnQ)\n if '.' in str(SOnQ) and P8oC == 2:\n VvJF += '.' + kFMt(str(SOnQ))\n SOnQ = str(SOnQ)\n ...
[ "0.81504524", "0.80292124", "0.7908193", "0.7813572", "0.77822757", "0.777754", "0.77744323", "0.7751522", "0.7654686", "0.7645676", "0.76031375", "0.75988877", "0.754177", "0.7511818", "0.750075", "0.748138", "0.74802816", "0.7437431", "0.73854256", "0.73789525", "0.7364297"...
0.77185994
8
Initiate a new Tree and add Root node
def FIMM(YKHO): YKHO._nodes = {} YKHO._add_root()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.root = o7DN(20)\n YKHO.root.left = o7DN(8)\n YKHO.root.left.parent = YKHO.root\n YKHO.root.left.left = o7DN(4)\n YKHO.root.left.left.parent = YKHO.root.left\n YKHO.root.left.right = o7DN(12)\n YKHO.root.left.right.parent = YKHO.root.left\n YKHO.root.left.right.left = ...
[ "0.73739624", "0.7289255", "0.7233075", "0.7165509", "0.7131156", "0.7114332", "0.70878136", "0.7073216", "0.704786", "0.70460236", "0.70439374", "0.69978845", "0.6979172", "0.6922368", "0.69136757", "0.691223", "0.69028366", "0.689745", "0.689745", "0.689745", "0.689745", ...
0.6985497
12
Given a string |text|, return the longest word in |text|. If there are ties, choose the word that comes latest in the alphabet. A word is defined by a maximal sequence of characters without whitespaces. You might find max() and list comprehensions handy here.
def v2Oe(l5Ny): return max(l5Ny.split(), key=len)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sqT8(l5Ny: str):\n return max(l5Ny.split())", "def rZJu(l5Ny):\n V22M = l5Ny.lower().split()\n V22M.sort()\n return V22M[-1]", "def xttE(vIwR: str) -> str:\n W78r: x1iM[str] = vIwR.split(' ')\n xttE: str = W78r[0]\n for vIwR in W78r[1:]:\n vIwR = Zf5h.only_word_characters(vIwR, ...
[ "0.8311584", "0.7744661", "0.77145255", "0.7660413", "0.7541649", "0.74758387", "0.73892015", "0.7371572", "0.73263794", "0.72684234", "0.72271556", "0.72202265", "0.7133023", "0.6983458", "0.6961253", "0.6958449", "0.69317526", "0.69163835", "0.68521076", "0.6825401", "0.681...
0.76077586
4
Check filtering of files based on extension works.
def LJWL(YKHO): kLQb = ['cow.gyp', 'cow.gypi'] RRlC = ['.gitignore', '.gitignore.gyp', 'cow.gyp', 'cow.gyp.orig', 'cow.gypi', 'gyp', 'README.md'] CBZq = set(('gyp', 'gypi')) Aofo = sorted(jXrc.FilterFiles(RRlC, CBZq)) YKHO.assertEqual(Aofo, kLQb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hGfQ(YKHO, z4WE):\n\n def _wIJ(Fst3):\n YBcr = Fst3.strip()\n if YBcr[0] == '.':\n return YBcr.lower()\n return f'.{YBcr}'.lower()\n return [_wIJ(YBcr) for YBcr in z4WE]", "def ARgy(Ux0P: str) -> bool:\n return True", "def AQ5E(RRlC, CBZq):\n CBZq = CBZq if isins...
[ "0.7359565", "0.72549355", "0.7222039", "0.71818435", "0.7176273", "0.7172972", "0.71470666", "0.7066315", "0.701929", "0.701929", "0.701929", "0.701929", "0.701929", "0.7018124", "0.6995444", "0.69737226", "0.6970567", "0.69427454", "0.6924346", "0.6916606", "0.68982065", ...
0.74346346
0
Calculate purity for given true and predicted cluster labels.
def mg3p(Y8eF, aMgO): assert len(Y8eF) == len(aMgO) dzpT = oyIN.zeros(shape=(len(set(Y8eF)), len(Y8eF))) Qwy4 = oyIN.zeros_like(dzpT) for id, CQwJ in enumerate(set(Y8eF)): dzpT[id] = (Y8eF == CQwJ).astype('int') for id, CQwJ in enumerate(set(aMgO)): Qwy4[id] = (aMgO == CQwJ).astype('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ud4l(SaCr, _bmc, Wt3I=None):\n SaCr = oyIN.array(SaCr)\n _bmc = oyIN.array(_bmc)\n o_ia = len(set(_bmc)) - 1\n OZMc = 0\n Ud4l = 0.0\n for G1Hx in range(o_ia + 1):\n lRwJ = SaCr[oyIN.where(_bmc == G1Hx)[0]]\n if Wt3I is not None and len(set(lRwJ).intersection(set(Wt3I))) == 0:\n...
[ "0.79917073", "0.7684322", "0.7288775", "0.7241289", "0.7184379", "0.68493724", "0.6831972", "0.67891073", "0.67831004", "0.6668964", "0.6613481", "0.6499374", "0.6472111", "0.64438605", "0.6400984", "0.6390004", "0.6381432", "0.62673634", "0.62585664", "0.61931115", "0.61758...
0.7159094
5
Returns a list of folders. The list is obtained by iterating through all tasks in the task store and reading the names of the folders they have set. Each task can belong to exactly one folder and the folder is a string.
def EcAx(YKHO): adD_ = set() for kGvP, D5gV in YKHO.store_dict_id.items(): if D5gV.folder: adD_.add(D5gV.folder) Ps_k = sorted(adD_) return Ps_k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G6Ig(YKHO):\n ucBt = []\n for xtX7 in YKHO.folders:\n ucBt.append(xtX7)\n ucBt.extend([Hy7s.path.join(xtX7, GIzo) for GIzo in YKHO.folders[xtX7]])\n return ucBt", "def G6Ig(BQEg):\n return Hy7s.listdir(BQEg)", "def EcAx():\n Eorv = 'folders'\n Mkmy = G4JS.get(jNi7(bD7m, Eorv...
[ "0.746637", "0.7281007", "0.7277563", "0.720641", "0.71978235", "0.70923305", "0.70274967", "0.69681853", "0.6890337", "0.6860035", "0.6827429", "0.6827429", "0.67801", "0.67767256", "0.67402357", "0.67352605", "0.6706124", "0.670143", "0.6698836", "0.6657226", "0.66288275", ...
0.8338299
0
Return a square matrix containing probabilities that points given by `X` in the data are neighbours.
def YPjl(EcVT, qBN0): ywwl = EcVT.shape[0] eFr6 = dFfD(EcVT, EcVT) gCUM = oyIN.ones(EcVT.shape[0]).astype(e89i.config.floatX) kcJe = oyIN.empty(EcVT.shape[0]).astype(e89i.config.floatX) kcJe[...] = -oyIN.inf R5kO = oyIN.empty(EcVT.shape[0]).astype(e89i.config.floatX) R5kO[...] = oyIN.inf ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hd6m(EcVT, SGf8):\n import numpy as oyIN\n bdGm = [[] for bGrB in range(EcVT.shape[0])]\n for YRbF in range(EcVT.shape[0]):\n yfx6 = oyIN.zeros(EcVT.shape[0])\n yfx6[YRbF] = oyIN.inf\n for r845 in range(EcVT.shape[0]):\n if YRbF == r845:\n continue\n ...
[ "0.6930961", "0.6846639", "0.6203178", "0.6186441", "0.61772513", "0.61376643", "0.6121259", "0.60567015", "0.605222", "0.6021819", "0.59899116", "0.59703285", "0.59460706", "0.5933207", "0.59215975", "0.5900788", "0.5891638", "0.5891445", "0.5875629", "0.5843495", "0.5836850...
0.6153016
5
Return a pair (loss, p) given a theano shared variable representing the `embeddings`. `loss` is a theano variable for the loss. `p` is a symbolic variable representing the target neighbour probabilities on which the loss depends.
def fKIH(KTQ3): gCAx = yfx6(KTQ3) S0EB = Gm6T(1 / (1 + gCAx)) wLpw = S0EB.sum(axis=0) vexM = S0EB / wLpw vexM /= vexM.sum() vexM = Kt_s.maximum(vexM, 1e-12) ZtMb = Kt_s.matrix('neighbour_probabilities') ZtMb.tag.test_value = oyIN.random.random((10, 10)).astype(e89i.config.floatX) gzV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CM8S(i3OQ, _7wO, yxlr, ofok=xBlr.partial(uPcK.compute_l2_distances, squared=True)):\n N77f = ZylS.math.reduce_mean(ofok(i3OQ, _7wO))\n CDqf = yxlr * N77f\n WJlW = {'pairwise_loss/PositivePair/Loss/Original': N77f, 'pairwise_loss/PositivePair/Loss/Weighted': CDqf, 'pairwise_loss/PositivePair/Loss/Weigh...
[ "0.58400494", "0.5631275", "0.5540295", "0.54917973", "0.5330423", "0.5288619", "0.52691174", "0.5191552", "0.51731414", "0.5136468", "0.5114553", "0.51088685", "0.50971085", "0.50898755", "0.5059003", "0.5050641", "0.5011168", "0.5005705", "0.49993497", "0.4998698", "0.49948...
0.7022893
0
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None Mxk0 = cmPJ.get('contact') dPMJ = cmPJ.get('businessName') Y8XM = EDCT.from_dictionary(cmPJ.get('businessAddress')) if cmPJ.get('businessAddress') else None Php4 = None if cmPJ.get('identityDocuments') is not None: Php4 = [QX5Q.f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.83722425", "0.8335738", "0.8215464", "0.8167521", "0.8167521", "0.81483614", "0.8051766", "0.80300796", "0.8013641", "0.79792094", "0.79221934", "0.7919166", "0.79183745", "0.79125935", "0.7906434", "0.79004663", "0.78967476", "0.7886129", "0.78760797", "0.78543913", "0.78...
0.0
-1
x and y are the indices of the cell in the level.Level.grid matrix x denotes the row and y denotes the column. num_id is an unique identifier for this cell, and is used for teleportation/doorkey functionality. Preferably should be left as None. Any non None value will be blitted The debug attribute is for cells which a...
def FIMM(YKHO, WKvO, LVAh, zNig, tqoz=C5rE, MpW0=None, dsE5=False): YKHO.x = WKvO YKHO.y = LVAh YKHO.size = zNig if isinstance(tqoz, str): tqoz = riCw.char_code[tqoz] if tqoz not in riCw.num_code.keys(): raise ValueError('No such cell exists') YKHO.__colour = riCw.colour_dict[tqo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MI7Z(ABDL, Vjhr, oyg0, httR, tyT2, C5Bl, g0uS, _Yti):\n Mi_s = 0\n for rdlD in ABDL.grid:\n X82w = 0\n for iVRZ in rdlD:\n WKvO = X82w * _Yti[0]\n LVAh = Mi_s * _Yti[1]\n if ABDL.grid[Mi_s][X82w] == 'w':\n Vjhr.blit(httR, (WKvO, LVAh))\n ...
[ "0.5921486", "0.5912558", "0.5904324", "0.5892079", "0.58195925", "0.5768281", "0.57580054", "0.57016367", "0.5689053", "0.5651584", "0.5640443", "0.56151396", "0.56113493", "0.560977", "0.56081533", "0.56081533", "0.5604291", "0.55298793", "0.5524409", "0.55195767", "0.55128...
0.5978565
0
Return the key of this setting.
def H5ew(YKHO) -> str: return YKHO._key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mexE(YKHO):\n return YKHO._key_string", "def H5ew(YKHO) -> str:\n return qe4Y.get(YKHO, 'key')", "def H5ew(YKHO) -> str:\n return qe4Y.get(YKHO, 'key')", "def H5ew(YKHO) -> str:\n return qe4Y.get(YKHO, 'key')", "def H5ew(YKHO) -> str:\n return qe4Y.get(YKHO, 'key')", "def H5ew(YKHO) ->...
[ "0.81926465", "0.80660653", "0.80660653", "0.80660653", "0.80660653", "0.80660653", "0.80660653", "0.80660653", "0.80660653", "0.80660653", "0.80660653", "0.80660653", "0.80660653", "0.80660653", "0.80660653", "0.80660653", "0.80660653", "0.80660653", "0.80660653", "0.80660653"...
0.8020917
24
Returns a readable representation of the item when None, for debugging.
def wHJl(YKHO) -> str: return f'<{YKHO.key}> {YKHO.value}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.item)", "def zAg0(YKHO):\n if len(YKHO) > 0:\n return YKHO.items[YKHO._index]\n else:\n return 'empty'", "def n7oj(ZfUD):\n AAhI = kn2E(ZfUD) if isinstance(ZfUD, type) else repr(ZfUD)\n iNnY = AAhI.split('\\n')\n if len(iNnY) > 1:\n AAhI ...
[ "0.7077435", "0.6851675", "0.6830748", "0.67609185", "0.6748784", "0.6745686", "0.6723646", "0.6645336", "0.6635436", "0.6592616", "0.65806764", "0.6578543", "0.6577885", "0.6577885", "0.6577885", "0.6577885", "0.6577885", "0.6577885", "0.6577885", "0.6577885", "0.6577885", ...
0.0
-1
Indicates if the value is True (in python's terms). Missing values are False.
def eRwN(YKHO) -> bool: return bool(YKHO.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m2ls(BWXx):\n return BWXx is True", "def m2ls(BWXx):\n return BWXx in j3sL", "def m2ls(BWXx):\n if not BWXx:\n return False\n BWXx = str(BWXx)\n return BWXx.lower() in ['true', '1', 't', 'y', 'yes']", "def eRwN(YKHO) -> bool:\n if not YKHO.has_value():\n return True\n r...
[ "0.84548986", "0.84432", "0.81265223", "0.78875315", "0.7842228", "0.78100574", "0.78018546", "0.77628446", "0.77499485", "0.7732077", "0.7732077", "0.7688942", "0.7687113", "0.763511", "0.7623189", "0.7603314", "0.75722283", "0.75390786", "0.7535216", "0.7521106", "0.7507463...
0.7715811
11
Converts a value to a string.
def YWvJ(BWXx: Optional[ConfigValue]) -> str: if not isinstance(BWXx, (str, bool, int, float)): raise ValueError(f'Cannot convert objects of type {type(BWXx)}.') if not isinstance(BWXx, str): BWXx = str(BWXx) if not BWXx: raise ValueError(f'StringSettings cannot be empty.') retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLCI(Emd4, BWXx):\n return str(BWXx)", "def Nc2D(BWXx):\n YKHO.verbose('trying to convert value to string : %s', BWXx)\n return str(BWXx)", "def yLCI(YKHO, BWXx):\n return BWXx", "def yLCI(YKHO, BWXx):\n return BWXx", "def whrw(BWXx) -> str:\n return str(BWXx) if BWXx else str()", "...
[ "0.9025235", "0.8782241", "0.8625255", "0.8625255", "0.8532555", "0.8366767", "0.8128491", "0.80742043", "0.8047528", "0.7990952", "0.7941786", "0.79202276", "0.79172355", "0.79079294", "0.79070055", "0.79020166", "0.7857491", "0.7754837", "0.7752731", "0.7752731", "0.7715283...
0.0
-1
return the id of this vertex
def unpH(YKHO): return YKHO.id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b78Z(YKHO):\n vEq1 = YKHO.vid\n YKHO.vid += 1\n return vEq1", "def MO8v(YKHO, C5WR=..., C5WR=...):\n ...", "def wfbg(YKHO):\n return ZYgz.TUNGraphEdgeI_GetId(YKHO)", "def wfbg(YKHO):\n return ZYgz.TNGraphEdgeI_GetId(YKHO)", "def wfbg(YKHO):\n return ZYgz.TUNGraphNodeI_GetId(YKHO)",...
[ "0.7890216", "0.7880434", "0.77313167", "0.76185274", "0.733667", "0.7330228", "0.73163986", "0.73041004", "0.73041004", "0.73041004", "0.72875136", "0.7223067", "0.72150886", "0.71612227", "0.71547353", "0.7085124", "0.70521367", "0.7045834", "0.7023976", "0.6993662", "0.698...
0.0
-1
Return the risk level of an interactive Minerva audit. Noninteractive and bulk Minerva audits are not considered here since the sampled number of reported winner ballots is not available.
def NKPV(YKHO): if len(YKHO.pvalue_schedule) < 1: return None return min(YKHO.pvalue_schedule)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W2HI(YKHO):\n return YKHO.__risk_score", "def I_cD(YKHO):\n if 'RiskyDstn' in YKHO.time_vary:\n LYDC = YKHO.RiskyAvgTrue\n TirB = YKHO.RiskyStdTrue\n else:\n LYDC = YKHO.RiskyAvg\n TirB = YKHO.RiskyStd\n YKHO.shocks['Risky'] = t9P0.from_mean_std(LYDC, TirB, seed=YKHO.R...
[ "0.58431876", "0.5706929", "0.5612809", "0.5528791", "0.5491001", "0.5479696", "0.53604436", "0.5294933", "0.5231433", "0.5215551", "0.5205956", "0.5193047", "0.5181281", "0.5164387", "0.5152611", "0.51476395", "0.51049894", "0.507983", "0.50768095", "0.50715494", "0.5069072"...
0.5651695
3
Update distribution_null for each sub audit for current round.
def AKvN(YKHO): if len(YKHO.rounds) == 0: raise Exception('No rounds exist.') for OYTs in YKHO.sub_audits.values(): YKHO._current_dist_null_pairwise(OYTs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPxH(YKHO):\n if 'tb_incidence' in YKHO.timeseries_log.keys():\n YKHO.timeseries_log['tb_incidence'][0] = 0.0", "def X8ma(YKHO):\n if len(YKHO.rounds) == 0:\n raise Exception('No rounds exist')\n for OYTs in YKHO.sub_audits.values():\n YKHO._current_dist_reported_pairwise(OYTs)"...
[ "0.5588559", "0.5586542", "0.55629945", "0.5497531", "0.5492528", "0.54880345", "0.54617685", "0.5415205", "0.5337593", "0.5293579", "0.52511215", "0.5248899", "0.52421355", "0.52398854", "0.5229802", "0.5221294", "0.52185804", "0.5206395", "0.5168739", "0.51549476", "0.51527...
0.7644271
0
Return the point at which the plane intersects the line segment [v0,v1].
def Hs1B(YKHO, T8d8, hQHm): exwG = AbJb(YKHO.a, YKHO.b, YKHO.c) a1PO = -(BJ1H(exwG, T8d8) + YKHO.d) / BJ1H(exwG, hQHm - T8d8) return T8d8 + (hQHm - T8d8) * a1PO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z2aP(sZHl, LNDw, Q8_n, cLWh):\n lWPh = -BJ1H(cLWh, Q8_n)\n G1Hx = -(lWPh + BJ1H(cLWh, sZHl)) / BJ1H(cLWh, LNDw)\n XP5J = or8B(sZHl, M4dG(LNDw, G1Hx))\n return XP5J", "def Mo5q(zFiD, kEC0):\n TK2h = Yob5(zFiD.value, kEC0.value)\n if TK2h[0] == -1.0:\n return None\n return LAOT.Mult...
[ "0.77065843", "0.7639941", "0.7611882", "0.7585175", "0.752986", "0.74750185", "0.7398565", "0.73418576", "0.7297084", "0.7291182", "0.7281097", "0.7248883", "0.72417915", "0.72314733", "0.7209118", "0.7181959", "0.71591514", "0.7133859", "0.7128212", "0.71188015", "0.7085488...
0.80802065
0
returns a `self.cleaned_data` copy without empty ChoiceFields
def yLtf(YKHO): return dict(((G1Hx, YKHO.cleaned_data[G1Hx]) for G1Hx, Ty9i in YKHO.fields.iteritems() if not (isinstance(Ty9i, jQ3Z.ChoiceField) and YKHO.cleaned_data[G1Hx] == '-1')))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0SS(YKHO):\n return YKHO.cleaned_data", "def x0SS(YKHO):\n if not any(YKHO.cleaned_data.values()):\n raise H6V6.ValidationError(u'Select at least one of the fields.')\n return YKHO.cleaned_data", "def VMhS(YKHO):\n s16o = []\n for L03z in YKHO:\n if L03z.is_valid() and (not L0...
[ "0.7434733", "0.72996086", "0.6777355", "0.67175496", "0.6528157", "0.63593745", "0.63125354", "0.62946075", "0.59806293", "0.59088534", "0.5902046", "0.5902046", "0.58904743", "0.5889924", "0.5871429", "0.58586365", "0.5857868", "0.58507013", "0.58285654", "0.57479805", "0.5...
0.7708205
0
Compute pressure at r from a well at origin
def ARHj(mM0K, y4fz, lWPh, Mkmy, a1PO): d7pR = lWPh * Mkmy * Mkmy / a1PO XP5J = mM0K + y4fz * iLlx(d7pR) / 1000000.0 return XP5J
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nEfJ(YKHO):\n T8ck = YKHO.Q\n oZuG = YKHO.rho\n Oa1e = YKHO.g\n C7Ls = YKHO.calc_thickness()\n V6IE = oZuG * Oa1e * C7Ls\n return V6IE", "def CJ2p(R8g3):\n return z1KK.press * R8g3", "def CJ2p(YKHO) -> P6bq.Pa:\n ...", "def CJ2p(YKHO):\n Yh3e = YKHO.data.adc_p\n Z9rn = YKHO....
[ "0.7047476", "0.6982639", "0.68003035", "0.6739086", "0.6683416", "0.668101", "0.6598273", "0.6460108", "0.64384365", "0.64362514", "0.6432167", "0.6376847", "0.635632", "0.6343091", "0.6334362", "0.6334089", "0.6314933", "0.62982905", "0.627612", "0.6246404", "0.62331706", ...
0.6014484
33
Compute pressure at origin from a well at this position
def cZQK(MZBS, yqRF, lWPh, y4fz, mM0K, Kt_s): exwG = len(MZBS) I2Si = oyIN.zeros(exwG) for YRbF in range(exwG): Mkmy = oyIN.sqrt(MZBS[YRbF] * MZBS[YRbF] + yqRF[YRbF] * yqRF[YRbF]) I2Si[YRbF] = ARHj(mM0K, y4fz, lWPh, Mkmy, Kt_s) return I2Si
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nEfJ(YKHO):\n T8ck = YKHO.Q\n oZuG = YKHO.rho\n Oa1e = YKHO.g\n C7Ls = YKHO.calc_thickness()\n V6IE = oZuG * Oa1e * C7Ls\n return V6IE", "def CJ2p(YKHO) -> P6bq.Pa:\n ...", "def CJ2p(YKHO):\n Yh3e = YKHO.data.adc_p\n Z9rn = YKHO.calibration\n if YKHO.t_fine is None:\n Y...
[ "0.7086604", "0.6992189", "0.69307166", "0.6841591", "0.6785388", "0.6756516", "0.67506045", "0.67427295", "0.67288005", "0.67135197", "0.66798496", "0.6629849", "0.6594052", "0.65005815", "0.6453699", "0.6425752", "0.64182436", "0.6416473", "0.6416473", "0.6416473", "0.64164...
0.0
-1
Encrypt document using the SecretStore and keyed by the given documentId. This can be used by the publisher of an asset to encrypt the urls of the asset data files before publishing the asset ddo. The publisher to use this service is one that is using a frontend with a wallet app such as MetaMask. In such scenario the ...
def rUZg(): LCiw = ['documentId', 'signature', 'document', 'publisherAddress'] nPrm = t4kz(QePW) if 'signedDocumentId' in nPrm and 'signature' not in nPrm: nPrm['signature'] = nPrm['signedDocumentId'] tO9_, jGRS = Xc83(LCiw, nPrm, 'publish') if tO9_: return (tO9_, jGRS) _30w = nP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UfcA(C13M):\n KUf6 = VqX4()\n return ITBy(C13M, KUf6)", "def To_U(YKHO, _30w, nPrm):\n Aofo = None\n if YKHO.config.secret_store_url and YKHO.config.parity_url and YKHO.main_account:\n nu3W = YKHO._secret_store_client(YKHO.config.secret_store_url, YKHO.config.parity_url, YKHO.main_account....
[ "0.60842395", "0.56978285", "0.5318755", "0.49970356", "0.4931551", "0.49221233", "0.48839495", "0.4880661", "0.48671335", "0.48565575", "0.48124793", "0.48086047", "0.4800411", "0.4710166", "0.4710166", "0.4710166", "0.4710166", "0.4710166", "0.4703112", "0.4641693", "0.4631...
0.49681443
4
Create a deep copy of this cache.
def i3ak(YKHO, imAk) -> Qpwc: return Qpwc(imAk, list(YKHO._fitness_functions), list(YKHO._coverage_functions), dict(YKHO._fitness_cache), dict(YKHO._is_covered_cache), dict(YKHO._coverage_cache))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FzJk(YKHO):\n return YKHO.__deepcopy__({})", "def _qLf(YKHO, i_PE=None):\n return YKHO.__class__(_qLf(YKHO.to_dict(flat=False), i_PE))", "def d9kX(YKHO, i_PE=None):\n return YKHO", "def d9kX(YKHO, i_PE=None):\n return YKHO", "def d9kX(YKHO, i_PE=None):\n return YKHO", "def d9kX(YKHO, i...
[ "0.7762485", "0.7675079", "0.7660396", "0.7660396", "0.7660396", "0.7660396", "0.76477736", "0.76235145", "0.7610461", "0.7610461", "0.7591066", "0.7581776", "0.7558558", "0.7558558", "0.75561893", "0.7548282", "0.753258", "0.7483868", "0.74752074", "0.74590147", "0.7458821",...
0.0
-1
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() Hu0p = {'January': 0, 'Feburary': 0, 'March': 0, 'April': 0, 'May': 0, 'June': 0} fjDt = {'1': 'January', '2': 'Feburary', '3': 'March', '4': 'April', '5': 'May', '6': 'June'} X_bn = jQ3Z['Start Time'].d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.8001252", "0.79222965", "0.78933024", "0.78628844", "0.78607917", "0.7840687", "0.78012836", "0.7786372", "0.7736968", "0.7724636", "0.7715267", "0.7709949", "0.77061343", "0.7703284", "0.76915216", "0.768726", "0.7681907", "0.7680392", "0.7673678", "0.76631093", "0.766182...
0.0
-1
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() yXty = list(jQ3Z['Start Station']) V_8k = xutl(yXty) Ri0C = max(V_8k, key=V_8k.get) print('The most common starting station is at: {}.'.format(Ri0C)) oF7u = list(jQ3Z['End Station']) S7Eb = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.7665365", "0.76264536", "0.7610902", "0.75852126", "0.7576492", "0.7567089", "0.75577486", "0.7538181", "0.75294757", "0.7502035", "0.74997437", "0.7496321", "0.74872565", "0.74840283", "0.7475714", "0.7472988", "0.7437631", "0.74366206", "0.7433223", "0.7428372", "0.74269...
0.0
-1
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() jqX5 = jQ3Z['Trip Duration'].sum() Kdnt = p3Lt(jqX5) print('The total travel time overall is: {} years, {} months, {} days, {} hours, {} minutes, and {} seconds.'.format(*Kdnt)) Hvpk = jQ3Z['Trip Duration'].mean() O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8251978", "0.81471264", "0.80965656", "0.80127156", "0.7987783", "0.79834235", "0.7978646", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.791...
0.0
-1
Return a list containing the children ASTs of the root node.
def C_Pq(YKHO): return YKHO._kids
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def afYC(YKHO) -> iu5r:\n for aUGN in wNRb(YKHO.astNode):\n yield o7DN(aUGN)", "def afYC(YKHO):\n U5bT = []\n for _eu6 in aM69.get_child_ids(YKHO._cursor, YKHO.id):\n Q6kx = o7DN(YKHO._transaction, _eu6)\n U5bT.append(Q6kx)\n return U5bT", "def RbaF(YKHO) -> x1iM['Node']:\n ...
[ "0.756837", "0.7446027", "0.74453616", "0.7387471", "0.7369877", "0.7369877", "0.73647755", "0.72868997", "0.7246787", "0.71353054", "0.7044001", "0.6918676", "0.6910044", "0.6906083", "0.6864354", "0.68605316", "0.68601656", "0.6839691", "0.6839691", "0.6822412", "0.6816262"...
0.0
-1
Return the label of the AST's root node.
def bzNK(YKHO): return YKHO._label
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UXqs(YKHO):\n return YKHO._node.label", "def UXqs(J_Es):\n return J_Es[0]", "def UXqs(J_Es):\n return J_Es[0]", "def UXqs(J_Es):\n return J_Es[0]", "def UXqs(J_Es):\n return J_Es[0]", "def UXqs(J_Es):\n return J_Es[0]", "def DW_4(YKHO):\n YKHO._set_parser()\n return YKHO._pa...
[ "0.7847154", "0.7474851", "0.7474851", "0.7439835", "0.7439835", "0.7439835", "0.7407591", "0.7274354", "0.72555953", "0.7150991", "0.71491194", "0.70534086", "0.6938008", "0.69279397", "0.68962944", "0.68846804", "0.68846804", "0.68846804", "0.68846804", "0.68846804", "0.688...
0.0
-1
Return the assignment operator token name.
def HcCX(YKHO): return YKHO.assignToken
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TMbP(YKHO):\n LFlW = YKHO.variable_name()\n YKHO.check_token_type('ASSIGNMENT')\n _tIi = YKHO.expression()\n TMbP = yAEA(LFlW, _tIi)\n return TMbP", "def k3sZ(YKHO):\n w2fL = None\n if YKHO.current_char == '+':\n w2fL = _J2v(ajER, '+')\n elif YKHO.current_char == '-':\n ...
[ "0.6563447", "0.643763", "0.6437237", "0.62811553", "0.6263258", "0.62335145", "0.6211818", "0.6181012", "0.6172568", "0.6148592", "0.6148592", "0.6148592", "0.6148592", "0.6148592", "0.6119868", "0.6115697", "0.6112445", "0.60966885", "0.59491384", "0.5941706", "0.5913413", ...
0.0
-1
Return the addition operator token name.
def HcCX(YKHO): return YKHO.addToken
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k3sZ(YKHO):\n w2fL = None\n if YKHO.current_char == '+':\n w2fL = _J2v(ajER, '+')\n elif YKHO.current_char == '-':\n w2fL = _J2v(NvbL, '-')\n elif YKHO.current_char == '×':\n w2fL = _J2v(eBYW, '×')\n elif YKHO.current_char == '÷':\n w2fL = _J2v(glw9, '÷')\n elif YK...
[ "0.70116913", "0.6643316", "0.64297485", "0.63512236", "0.6279426", "0.6174147", "0.6158422", "0.61478513", "0.61477464", "0.6124586", "0.6099263", "0.6093224", "0.6088788", "0.60605055", "0.60545826", "0.6053024", "0.6053024", "0.6053024", "0.6053024", "0.6053024", "0.604487...
0.0
-1
Return the multiplication operator token name.
def HcCX(YKHO): return YKHO.multToken
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k3sZ(YKHO):\n w2fL = None\n if YKHO.current_char == '+':\n w2fL = _J2v(ajER, '+')\n elif YKHO.current_char == '-':\n w2fL = _J2v(NvbL, '-')\n elif YKHO.current_char == '×':\n w2fL = _J2v(eBYW, '×')\n elif YKHO.current_char == '÷':\n w2fL = _J2v(glw9, '÷')\n elif YK...
[ "0.6665018", "0.6352965", "0.62964207", "0.62956303", "0.62746483", "0.62186426", "0.62047553", "0.61909425", "0.61731565", "0.616522", "0.609506", "0.6070633", "0.60679215", "0.60595727", "0.60523933", "0.6038089", "0.5992195", "0.5988273", "0.595929", "0.59349555", "0.59307...
0.57208747
40
Display the given set of images, optionally with titles.
def cEbM(Yw_3, k1TJ=None, WfCS=4, iMGt=None, CkYf=None, GoGv=None, zNig=14): k1TJ = k1TJ if k1TJ is not None else [''] * len(Yw_3) usx6 = len(Yw_3) // WfCS + 1 QrM1.figure(figsize=(zNig, zNig * usx6 // WfCS)) YRbF = 1 for LNo8, leAC in zip(Yw_3, k1TJ): QrM1.subplot(usx6, WfCS, YRbF) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cPsg(YKHO, Yw_3, k1TJ=None):\n import matplotlib.pyplot as QrM1\n NzGf = len(Yw_3)\n if k1TJ is None:\n k1TJ = ['(%d)' % YRbF for YRbF in range(1, NzGf + 1)]\n LZpg = QrM1.figure()\n exwG = 1\n for LNo8, leAC in zip(Yw_3, k1TJ):\n jzdc = LZpg.add_subplot(1, NzGf, exwG)\n ...
[ "0.83263165", "0.82248145", "0.8119961", "0.80731463", "0.8024354", "0.8023974", "0.8023974", "0.8017556", "0.80137753", "0.79810375", "0.7800233", "0.779955", "0.7758014", "0.77129906", "0.7619289", "0.7596083", "0.75338197", "0.7508518", "0.7473114", "0.73739827", "0.737398...
0.813324
2
Converts a model to patches. This is required before being able to use it with tesselation shaders
def fNu9(C3ST): for Q6kx in C3ST.find_all_matches('**/+GeomNode'): Dh0G = Q6kx.node() CoVI = Dh0G.get_num_geoms() for YRbF in range(CoVI): Dh0G.modify_geom(YRbF).make_patches_in_place()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def baNJ(YKHO, ohfT, CK6s=False):\n raise NotImplementedError()", "def sHFN(og4Y, PSe5):\n for pmON in og4Y:\n Po4F = bzBo.load(pmON)\n Po4F = Po4F + ht2j.tensor((103.53, 116.28, 123.675)).view(1, 3, 1, 1)\n Ux0P = Hy7s.path.split(pmON)[-1]\n PuUe = {'patch': Po4F, 'totensor': F...
[ "0.66734546", "0.62017256", "0.6188436", "0.60285324", "0.59255415", "0.5790545", "0.5670452", "0.56021434", "0.55765045", "0.55168664", "0.54971117", "0.54922837", "0.54501253", "0.54266405", "0.53815675", "0.5378088", "0.5346447", "0.5329102", "0.5328195", "0.5288722", "0.5...
0.8068276
0
BoxBox intersection over union utils Calculate the IOU for two bounding boxes with same size. Each box is represented by its diagonal points.
def v4Yr(HtXD, ROGq): FJ23 = max(HtXD[0], ROGq[0]) cpky = max(HtXD[1], ROGq[1]) lCRk = min(HtXD[2], ROGq[2]) w871 = min(HtXD[3], ROGq[3]) c5_M = max(0, lCRk - FJ23) * max(0, w871 - cpky) aipi = (HtXD[2] - HtXD[0]) * (HtXD[3] - HtXD[1]) g94v = (ROGq[2] - ROGq[0]) * (ROGq[3] - ROGq[1]) Rju...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ySfS(knvf, IkxF):\n rn1I = knvf[2]\n De7X = knvf[3]\n mIwi = IkxF[2]\n GD1K = IkxF[3]\n Z9pq = rn1I * De7X\n d_Zw = mIwi * GD1K\n RsfQ = min(knvf[0] - rn1I / 2.0, IkxF[0] - mIwi / 2.0)\n DIq2 = max(knvf[0] + rn1I / 2.0, IkxF[0] + mIwi / 2.0)\n B5ql = DIq2 - RsfQ\n suhQ = min(knvf[...
[ "0.8446118", "0.84091526", "0.8328751", "0.8247311", "0.8166151", "0.81595933", "0.8148297", "0.8144419", "0.8139515", "0.8133195", "0.8102991", "0.8083999", "0.8034527", "0.8023074", "0.8022098", "0.79609", "0.7943133", "0.7942332", "0.7933356", "0.7928194", "0.7919656", "...
0.0
-1
Queries the database and returns a generator with the results.
def StLr(Pe9W, NArs=None): gYgm(NArs) w2B8 = wk5E.mysql.connection DpUl = w2B8.cursor() ei4T = [] try: DpUl.execute(Pe9W, NArs) if DpUl.description: WfCS = [fvDH[0] for fvDH in DpUl.description] for Ylbp in DpUl: PoiV = [str(WKvO) for WKvO in Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xDcj(YKHO, Pe9W, *qIxc, **B2fa):\n with YKHO.locked() as w2B8:\n for rdlD in w2B8.query(Pe9W, *qIxc, **B2fa):\n yield rdlD", "def xDcj(YKHO, Pe9W, SGPK=None):\n YKHO._cursor.execute(Pe9W, SGPK)\n for AIu6 in YKHO._cursor:\n yield AIu6", "def JUdV(YKHO, *qIxc, **c_sp):\n ...
[ "0.78799933", "0.7724885", "0.74633247", "0.7402563", "0.737671", "0.7264112", "0.720829", "0.71996176", "0.7193147", "0.71230435", "0.7118303", "0.7105606", "0.7103172", "0.7084363", "0.7058089", "0.7048231", "0.7020972", "0.69790673", "0.69225156", "0.69204473", "0.69186133...
0.0
-1
Return link to a bucket name
def F_hi(YKHO, l7rj): try: WE7e = YKHO.s3.get_bucket(l7rj) except (gP7g.exception.BotoClientError, gP7g.exception.BotoClientError) as e: print(tTpl) print('Trying to reconnect to s3') YKHO._refresh_s3_connection() WE7e = YKHO.s3.get_bucket(l7rj) return WE7e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aNBK(l7rj):\n return 'https://{}.s3.amazonaws.com/'.format(l7rj)", "def bD7m(YKHO):\n return w2ud(YKHO.name)", "def aNBK(YKHO, WE7e):\n return 'http://{}.{}'.format(WE7e.name, gnPz.get_endpoint(YKHO.get_region_name(WE7e)).host)", "def bD7m(Emd4, WE7e, pmON):\n if pmON.startswith('/'):\n ...
[ "0.8079373", "0.78835094", "0.7676986", "0.7432947", "0.7252276", "0.7244608", "0.72188085", "0.71769375", "0.70670336", "0.7052563", "0.7052563", "0.7052563", "0.7052563", "0.7052563", "0.7052563", "0.7052563", "0.7049107", "0.7049107", "0.7049107", "0.70236164", "0.7020071"...
0.0
-1
Return the number of matching documents contained in this set.
def szAg(YKHO): return len(YKHO.results)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHFx(YKHO):\n return len(YKHO.document_ids)", "def UHFx(YKHO):\n if YKHO.contains_empty:\n return 0\n xDcj, bGrB = YKHO.__compile_queries(YKHO.items)\n kXUa = YKHO.document_class._es\n if xDcj is None:\n JezQ = kXUa.count(YKHO.document_class.get_index_name())\n else:\n ...
[ "0.75162846", "0.73694783", "0.72414565", "0.71592265", "0.70478183", "0.6994754", "0.6991819", "0.6908769", "0.69011295", "0.6899473", "0.6757212", "0.6748245", "0.67393154", "0.67383224", "0.67383224", "0.67092365", "0.6699503", "0.6693854", "0.6693854", "0.6693854", "0.668...
0.0
-1
Get state, don't serialize anything.
def k8jS(YKHO): if not YKHO.__empty_please: return YKHO.broadcast() else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__stat...
[ "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224", "0.81766224"...
0.0
-1
Populates User model with fake names and emails.
def jEFq(exwG=10): for ZfUD in range(exwG): lff4 = n9UN.first_name() W26M = n9UN.last_name() HpJX = n9UN.email() CBIr = mv1M.objects.get_or_create(first_name=lff4, last_name=W26M, email=HpJX)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Flr6(YKHO, QePW, TfkJ, nPrm):\n CBIr = TfkJ.account.user\n CBIr.first_name = nPrm['first_name']\n CBIr.last_name = nPrm['last_name']\n CBIr.username = nPrm['username']\n CBIr.email = nPrm['email']", "def zrKT(YKHO):\n YKHO._populate_user_from_attributes()\n YKHO._populate_user_from_group...
[ "0.7276624", "0.7134637", "0.6992356", "0.6992356", "0.6961362", "0.69048256", "0.6845921", "0.68435764", "0.6780846", "0.6780846", "0.67523676", "0.67476517", "0.6744407", "0.67384005", "0.67295235", "0.6714335", "0.66846806", "0.6682415", "0.66810316", "0.66338795", "0.6632...
0.6278113
95
Returns a thread/processexclusive LyrikCompilersingleton.
def mF9o() -> xzsh: e0K5 = UxZq() try: PD5D = e0K5.Lyrik_00000001_compiler_singleton except AttributeError: e0K5.Lyrik_00000001_compiler_singleton = xzsh() PD5D = e0K5.Lyrik_00000001_compiler_singleton return PD5D
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eaSC(*qIxc):\n return IOEi.get_compilers(*qIxc)", "def mF9o(YKHO):\n iEeZ = YKHO.get_compiler_name(YKHO.default_compiler)\n with GPtr.and_merge(GPtr.get_option(lNrS.make_key(iEeZ))):\n return YKHO.compilers[iEeZ](YKHO)", "def mF9o():\n return SyF0(current_compiler=True)", "def PD5D(YKH...
[ "0.54894733", "0.5288701", "0.51953995", "0.50171846", "0.4995642", "0.49503013", "0.4918611", "0.48926163", "0.48683375", "0.4810441", "0.47925603", "0.47925603", "0.47920826", "0.4733255", "0.4676647", "0.46110207", "0.45859808", "0.4556287", "0.45125237", "0.44866183", "0....
0.68945116
0
Returns dict of Tolerances
def VTEN(YEnM=None, GkJn=None): yJiH = dict(mw_transmission_input_minus_measured=2e-05, mag_psql_minus_input_corrected_for_ext=1e-14, mag_input_minus_measured=dict(g=0.12, r=0.1, z=0.2), rhalf_input_minus_measured=0.15) if GkJn == 'grz': yJiH.update(rhalf_input_minus_measured=0.35) if YEnM == 'star'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yJiH():\n return {'rtol': 0, 'atol': 1e-08}", "def Dc_N(YKHO):\n ...", "def oxya(YKHO):\n return YKHO._tols", "def B8X5(sEAN, _AKB):\n return dict(_name='tolerances', help=lambda: 'Tolerances for mixed integer optimization.', absmipgap=yaEe.NumParameter(sEAN, FXjg.MIPTolerancesAbsMIPGap, _AKB...
[ "0.71890426", "0.66840565", "0.6658881", "0.6531117", "0.64024335", "0.637038", "0.6311593", "0.63082373", "0.63060045", "0.63053256", "0.6284063", "0.62792695", "0.6274585", "0.6274585", "0.62709963", "0.6264332", "0.62640744", "0.62559485", "0.6254153", "0.6254153", "0.6245...
0.0
-1
Returns dict of Tolerances
def YzY3(YEnM=None, GkJn=None): return dict(mw_transmission_input_minus_measured=5e-06, mag_psql_minus_input_corrected_for_ext=1e-14, mag_input_minus_measured=dict(g=2.6, r=2.6, z=0.11), rhalf_input_minus_measured=0.1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yJiH():\n return {'rtol': 0, 'atol': 1e-08}", "def Dc_N(YKHO):\n ...", "def oxya(YKHO):\n return YKHO._tols", "def B8X5(sEAN, _AKB):\n return dict(_name='tolerances', help=lambda: 'Tolerances for mixed integer optimization.', absmipgap=yaEe.NumParameter(sEAN, FXjg.MIPTolerancesAbsMIPGap, _AKB...
[ "0.7188769", "0.6683574", "0.66573477", "0.65321225", "0.6403048", "0.63691175", "0.6312997", "0.63096386", "0.63068044", "0.63051397", "0.6285369", "0.6278737", "0.6275972", "0.6275972", "0.62723756", "0.62657714", "0.62655014", "0.6257255", "0.6255417", "0.6255417", "0.6247...
0.0
-1
Returns True if bool_array has at most N elements that are False Example, all(bool_array) is equivalent to at_most_N_is_false(bool_array,N=0)
def PYym(e5t6, ywwl=1): return e5t6.sum() >= len(e5t6) - 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K5IX(UqER: List[bool]) -> bool:\n return UqER.count(False) == 0", "def zEXi(exwG, fUYa):\n jTp2 = 0\n for WKvO in filter(None, fUYa):\n jTp2 += 1\n if jTp2 > exwG:\n return False\n return True", "def NFkL(dn1Z):\n if oyIN.nansum(dn1Z) > 0:\n return True\n r...
[ "0.69495785", "0.6714174", "0.63617265", "0.6099268", "0.6046732", "0.5849483", "0.58016264", "0.57813996", "0.5743927", "0.56952953", "0.5647737", "0.5643461", "0.56402624", "0.5586176", "0.5549963", "0.55373955", "0.55241686", "0.54823655", "0.5457056", "0.54418355", "0.543...
0.92062336
0
Return True if the chatid is in the database with the 'permission' flag False otherwise
def epWG(YKHO, wiZa): if wiZa in YKHO._okusers: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wasn(DVsZ: int) -> bool:\n DW23 = KHUq(path='users')\n for CBIr in DW23:\n if DVsZ == CBIr['chat_id']:\n return True\n return False", "def mPlC(YKHO, DVsZ):\n return DVsZ in YKHO.allowed_chats", "def qHTF(YKHO, mLGw, Uvf2):\n if Uvf2 not in YKHO.clearance_db.columns:\n ...
[ "0.7159409", "0.7032906", "0.675521", "0.6671218", "0.66423863", "0.66255206", "0.66104686", "0.6601762", "0.6464897", "0.64156497", "0.63092047", "0.6302827", "0.6287956", "0.6272991", "0.625769", "0.6229307", "0.6209579", "0.62003607", "0.62003607", "0.6178673", "0.61586344...
0.6962189
2
Read requirements file and remove comments and empty lines.
def jeGQ(ndwV): with open(Hy7s.path.join(Hy7s.path.dirname(xAKo), ndwV), 'r') as eHNT: fA3L = eHNT.read().splitlines() return [sKYw for sKYw in fA3L if sKYw.strip() and (not sKYw.startswith('#'))]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ks_v(Ux0P):\n fA3L = []\n with open(Ux0P) as eHNT:\n for zFiD in eHNT.readlines():\n zFiD = zFiD.strip()\n if not zFiD or zFiD.startswith('#') or zFiD == '':\n continue\n fA3L.append(zFiD)\n fA3L.reverse()\n return fA3L", "def DRKI():\n SY...
[ "0.75478256", "0.7484923", "0.7372062", "0.7344017", "0.7297298", "0.72927815", "0.72753257", "0.7251708", "0.7251207", "0.72455245", "0.7241545", "0.7230168", "0.7230168", "0.7230168", "0.7230168", "0.7230168", "0.7230168", "0.7230168", "0.7230168", "0.7230168", "0.7230168",...
0.6655763
55
Add an assignment to bare variable annotations.
def zAoo(zZcM): try: J_Es = jZ4I.parse(zZcM) except SyntaxError: return zZcM jbn3 = XoXT() jbn3.visit(J_Es) if jbn3.annotation_lines: Nqlg = zZcM.split('\n') for YRbF in jbn3.annotation_lines: zFiD, Bc7X, aM_I = Nqlg[YRbF].partition('#') Nqlg[Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ED1P(YKHO, Q6kx):\n YKHO.new_var(Q6kx.target, 'normal', value=Q6kx.value, aug=True)\n YKHO.generic_visit(Q6kx)", "def ED1P(YKHO, Q6kx):\n pan_ = Q6kx.target.id\n zAQk = Y5qA.to_source(Q6kx.value)\n for H5ew in OXYv:\n zAQk = ZbWC.sub(H5ew, OXYv[H5ew], zAQk)\n if isinstance(Q6kx.op, j...
[ "0.68128616", "0.6635536", "0.6457699", "0.6348741", "0.633936", "0.6307976", "0.62872005", "0.62818396", "0.62349045", "0.6209359", "0.61644393", "0.6152475", "0.6130025", "0.6081566", "0.60596025", "0.6043263", "0.603713", "0.6030085", "0.60273635", "0.59979624", "0.5979277...
0.0
-1
Form to add post
def CgNh(): L03z = t2id(QePW.form) if QePW.method == 'POST': m8z6 = YkQc() m8z6.title = L03z.title.data m8z6.body = L03z.body.data m8z6.date = qcWV.strptime(L03z.date.data, '%d.%m.%Y') m8z6.put() return vKnz(nKyW('admin_view')) return TvZl('add_post.html', for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uJC5(QePW):\n return {}", "def vfFc(id):\n CBIr = mv1M.query.get(id)\n dJ1p = OhYN.query.all()\n return TvZl('form_post.html', user=CBIr, tags=dJ1p)", "def CgNh(YKHO, QePW: foundation.Request) -> h4u6.Response:\n if QePW.method == 'POST':\n m8z6 = FYrf.Post(title=QePW.POST['title'], c...
[ "0.80738455", "0.7904141", "0.7784199", "0.7669217", "0.75711983", "0.7517815", "0.7380509", "0.7266181", "0.7240412", "0.72171694", "0.72124374", "0.7212316", "0.7210667", "0.7210373", "0.71965235", "0.7186582", "0.71840966", "0.7161787", "0.71520215", "0.71511805", "0.71481...
0.77680314
3
This function creates and writes a json file for each patient, then closes the file
def krgX(lhUb): PcZo = open(lhUb['First Name'] + '-' + lhUb['Last Name'] + '.json', 'w') import json json.dump(lhUb, PcZo) PcZo.close() return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eVeD(lhUb):\n import json\n _RR0 = open('{}-{}.json'.format(lhUb['First'], lhUb['Last']), 'w')\n flIk = {}\n flIk['First Name'] = lhUb['First']\n flIk['Last Name'] = lhUb['Last']\n flIk['Age'] = lhUb['Age']\n flIk['Gender'] = lhUb['Gender']\n flIk['TSH'] = lhUb['TSH Data']\n flIk['Di...
[ "0.78672034", "0.785351", "0.76338905", "0.71778625", "0.70283115", "0.6738579", "0.6604757", "0.6596347", "0.6577664", "0.65723747", "0.6482462", "0.6435071", "0.63926446", "0.6383584", "0.63806844", "0.636377", "0.63281965", "0.6304616", "0.62883675", "0.6288136", "0.628258...
0.73320174
3
Euclidean distance between two locations
def _mEA(Bz2B, WDnu): return oyIN.linalg.norm(Bz2B - WDnu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gvwv(fZEQ, sgoH):\n Ayfi = epAf.sqrt(sum([(WKvO - LVAh) ** 2 for WKvO, LVAh in zip(fZEQ, sgoH)]))\n return Ayfi", "def TNNJ(IM3G, _3JW):\n Ayfi = (IM3G - _3JW) ** 2\n Ayfi = Ayfi.sum(axis=-1)\n Ayfi = oyIN.sqrt(Ayfi)\n return Ayfi", "def Gvwv(fZEQ, sgoH):\n return epAf.sqrt((sgoH[0] - ...
[ "0.8510066", "0.85001814", "0.84122443", "0.8311307", "0.82036316", "0.81383353", "0.80603385", "0.80385107", "0.8028412", "0.8019999", "0.80151385", "0.80064976", "0.7995501", "0.7994343", "0.7987854", "0.79759353", "0.79564744", "0.7912521", "0.7906619", "0.7906619", "0.790...
0.8402248
3
Return a list of registered task holder loaders.
def FKL_(): return list(smLN.__registered.keys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hqIk():\n return dict(smLN.__loaders)", "def lqDe(YKHO) -> bdIy[str]:\n pass", "def AnPd(YKHO):\n pdlj = list()\n _8UM = BfDw.get_available_skins(selected=YKHO.skin).values()\n u5dK = [Hy7s.path.join(EJkW, 'templates') for EJkW in _8UM]\n pdlj.append(Gaj0.FileSystemLoader(u5dK))\n retu...
[ "0.7294176", "0.7245313", "0.7119746", "0.6828149", "0.6681853", "0.6676275", "0.66086304", "0.65957487", "0.6539691", "0.6450481", "0.6416082", "0.638653", "0.634375", "0.62680775", "0.6234301", "0.62161773", "0.620556", "0.61750185", "0.61524236", "0.6022897", "0.60088444",...
0.65675545
8
Get all moves considering checks. 1. Get the King from the side moving this turn. 2. Figure out if the King is in check, and if so, by how many pieces. 3. Remove all moves that put the King into check. 4. If the King hasn't moved, find all castling moves and determine if they are valid.
def yy8N(YKHO): oLdq = [] if YKHO.white_to_move: VAWV = YKHO.board.white_king else: VAWV = YKHO.board.black_king if VAWV.get_square() is None: return [] YKHO.pins, YKHO.checks = YKHO.get_pins_and_checks(VAWV) KCHu = YKHO.board.squares oG44, _vZc = VAWV.get_coords() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yy8N(YKHO):\n oLdq = []\n YKHO.inCheck, YKHO.pins, YKHO.checks = YKHO.check_for_pins_and_checks()\n if YKHO.whiteToMove:\n GRry = YKHO.whiteKingLocation[0]\n clR2 = YKHO.whiteKingLocation[1]\n else:\n GRry = YKHO.blackKingLocation[0]\n clR2 = YKHO.blackKingLocation[1]\n ...
[ "0.79523414", "0.7739059", "0.7691578", "0.7291846", "0.7021437", "0.6935531", "0.69238317", "0.68717486", "0.68537813", "0.6829715", "0.682006", "0.67733043", "0.675274", "0.674047", "0.66642153", "0.6659005", "0.6653545", "0.66287893", "0.66264504", "0.66118044", "0.6587552...
0.77894086
1
Initialize the Flask application, and get a client for testing.
def FCbF(YKHO) -> None: Hy7s.environ['JWT_SECRET'] = 'foosecret' YKHO.app = SOdd() YKHO.client = YKHO.app.test_client()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0hE() -> QRbk:\n P4t4.config['TESTING'] = True\n return P4t4.test_client()", "def x0hE(P4t4: Flask) -> QRbk:\n return P4t4.test_client()", "def x0hE(P4t4: Flask):\n return P4t4.test_client()", "def n9x0():\n P4t4 = LUif()\n udfG = P4t4.test_client()\n return udfG", "def x0hE():\n ...
[ "0.824086", "0.8064025", "0.7855776", "0.7813157", "0.7698079", "0.7679941", "0.76332587", "0.75764406", "0.7550285", "0.74945754", "0.7437663", "0.74130607", "0.74130607", "0.74130607", "0.74130607", "0.74130607", "0.74130607", "0.74130607", "0.74130607", "0.74130607", "0.74...
0.0
-1
Test creating a thing with tags
def o2dg(YKHO): R9U6 = eo18('book') GTT9 = eo18('etf') pB3N = {'title': 'Book1', 'description': 'Awesome book 1', 'tags': [R9U6.name, GTT9.name]} Ylbp = YKHO.client.post(CV2F, pB3N) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_201_CREATED) vGaq = nPup.objects.get(id=Ylbp.data['id']) dJ1p = v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FDpy(YKHO):\n pass", "def xsEp(YKHO):\n R9U6 = eo18(YKHO.user, name='Vegan')\n GTT9 = eo18(YKHO.user, name='Dessert')\n pB3N = {'title': 'Some Recipe', 'tags': [R9U6.id, GTT9.id], 'time_minutes': 40, 'price': 30.0}\n Ylbp = YKHO.client.post(nyJA, pB3N)\n YKHO.assertEqual(Ylbp.status_code, j...
[ "0.83565223", "0.772551", "0.7719132", "0.7715837", "0.764875", "0.7646925", "0.7642299", "0.76417005", "0.76286924", "0.7606761", "0.75970614", "0.759419", "0.7592159", "0.7591231", "0.7588973", "0.75797653", "0.75757", "0.7553383", "0.75227267", "0.73722166", "0.7356732", ...
0.85177
0
Display the home page.
def kZiy(QePW, ONVH=None, Gckm=None): if QePW.user.is_authenticated(): return vKnz('badges.new.step1') if ONVH is None: ONVH = eUF5() if Gckm is None: Gckm = Eo6a() NArs = {'register_form': ONVH, 'login_form': Gckm, 'share_url': HU0k('/'), 'tweet_text': ARfH(Uf5S)} return ZGO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def C_QL():\n return TvZl('home.html')", "def zQR8():\n rBdx = gnPz.get_users_projects()\n return TvZl('home.html', proj_list=rBdx)", "def kZiy():\n return TvZl('main.html')", "def kZiy():\n retur...
[ "0.8485583", "0.8438882", "0.8397234", "0.83924305", "0.8305098", "0.8262274", "0.8256538", "0.8243467", "0.8238337", "0.8237717", "0.8227406", "0.81901574", "0.81571734", "0.81571734", "0.8143535", "0.8141828", "0.8130062", "0.8123092", "0.8112347", "0.8112347", "0.81116927"...
0.0
-1
Initiates a threading pool with a given number of threads.
def FIMM(YKHO, l54n, tqzY): YKHO.requests = gGq6.Queue(l54n) YKHO.failed_requests = tqzY o4ed.register(YKHO.destructor) YKHO.useThreads = True if l54n > 0 else False if YKHO.useThreads: for bGrB in range(l54n): V0aa.ThreadedRequester(YKHO.requests, YKHO.failed_requests)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aomE(YKHO, mLGw):\n assert not YKHO.prepared, \"Can't change number of threads after start\"\n YKHO.threads = mLGw", "def HeA9(exwG):\n cUM6()\n if not isinstance(exwG, (int, oyIN.integer)):\n raise TypeError('The number of threads specified must be an integer')\n lOU5(exwG)\n A6ab(e...
[ "0.7386237", "0.7138006", "0.70937014", "0.702259", "0.7008879", "0.7002579", "0.6990081", "0.69047356", "0.6747465", "0.66954345", "0.66793555", "0.66600657", "0.664437", "0.66075885", "0.65408784", "0.6524082", "0.65231955", "0.6504704", "0.6493531", "0.6490671", "0.6487974...
0.58884275
65
Get a destination address from the states attributes.
def tZMc(YKHO, QTBn) -> h8nf[str]: azoT = QTBn['attributes'] X7fk = None if 'destination_name' in azoT: X7fk = azoT['destination_name'] elif 'destination_addresses' in azoT: X7fk = azoT['destination_addresses'][0] else: YKHO.log('Could not find destination_name or destination...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sIwv(YKHO):\n return Q9dT.args.destination_address", "def sIwv(YKHO):\n return Q9dT.args.destination_address", "def X7fk(YKHO) -> int:\n return YKHO._destination_address", "def ceuN(YKHO):\n return YKHO.address", "def E_vY(YKHO, yFgu):\n d6pt = tuKI.randrange(YKHO.routes[yFgu].tie)\n ...
[ "0.6712017", "0.6712017", "0.6637687", "0.6043372", "0.60169226", "0.59965336", "0.59965336", "0.59965336", "0.59480816", "0.5941292", "0.59373033", "0.59373033", "0.59373033", "0.59168684", "0.5911217", "0.59073925", "0.588747", "0.58846056", "0.5882596", "0.5847472", "0.584...
0.81626564
0
Returns the product of a list of numbers. Takes an argument c, which should be a list of integers.
def Lx3t(Z9rn): QRFO = 1 for XP5J in Z9rn: QRFO *= XP5J return QRFO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lx3t(mSrU: list) -> int:\n from functools import reduce\n import operator\n return reduce(operator.mul, mSrU, 1)", "def Lx3t(vC9B):\n QRFO = 1\n for WKvO in vC9B:\n QRFO *= WKvO\n return QRFO", "def MsVe(mSrU):\n Lx3t = 1\n for FGW3 in mSrU:\n Lx3t *= FGW3\n return ...
[ "0.75165373", "0.73334897", "0.72498906", "0.72376436", "0.7232532", "0.72183466", "0.71725464", "0.7164104", "0.71579516", "0.71579516", "0.7142696", "0.7135084", "0.70721406", "0.7050694", "0.70465094", "0.7026548", "0.70234877", "0.70057935", "0.6984112", "0.6968593", "0.6...
0.8506559
0
Checks if any value in one list is equal to any value in a second list. Takes two arguments, check1 and check2, which should be lists. Returns a boolean.
def TviI(a8U_, peHL): for LVAh in a8U_: if LVAh in peHL: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dhj_(Kt9y, I_KI):\n for CZxs in Kt9y:\n for AhJh in I_KI:\n if CZxs in AhJh:\n return True\n return False", "def LNyM(Kt9y, I_KI):\n return all((LihS in Kt9y for LihS in I_KI))", "def ICJU(jtyf: List, V70B: List) -> bool:\n return set(jtyf) == set(V70B)", "def...
[ "0.75181866", "0.74864835", "0.73482436", "0.70952535", "0.7035342", "0.70348936", "0.69965696", "0.69922024", "0.698948", "0.6773113", "0.66741234", "0.6660329", "0.65852964", "0.65662515", "0.6555099", "0.6539287", "0.6401083", "0.6389284", "0.6376665", "0.637394", "0.63731...
0.7711457
0
If the class is uninitialized, returns a dictionary that can be used to reinstantiate the class. Otherwise, returns a dictionary that can be saved as JSON to reinstantiate this class later.
def NqH3(YKHO): hlel = {} if YKHO.bitmap is None: try: YGFP = diMR.get_json_dict(YKHO.SAVEPATH.format(YKHO.char)) hlel['bitmap'] = oyIN.asarray(YGFP['bitmap'], oyIN.uint8) hlel['signature'] = {HyPc(H5ew): wEf2 for H5ew, wEf2 in YGFP['signature'].items()} excep...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MgK0(YKHO):\n return _qLf(YKHO.id_to_class_info)", "def dict(Emd4):\n if Emd4._dict is None:\n Emd4._dict = {hkS8: getattr(Emd4, hkS8) for hkS8 in Emd4.keys()}\n return Emd4._dict", "def rJcP(YKHO) -> cuzp[str, int]:\n return YKHO._classDictionary", "def MNRr(YKHO):\n Csk6 = YKHO.__...
[ "0.68242913", "0.6756067", "0.6739177", "0.66144305", "0.6547405", "0.6530938", "0.6513555", "0.6467866", "0.6448046", "0.641891", "0.6417642", "0.63862216", "0.6362757", "0.6352217", "0.6298835", "0.62934035", "0.62926334", "0.6270337", "0.6254237", "0.6250748", "0.6245045",...
0.0
-1