query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Sets the phone_number_pricing of this Store.
def FoBJ(YKHO, FoBJ): YKHO._phone_number_pricing = FoBJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cdCi(YKHO, cdCi):\n YKHO._service_phone_number_pricing = cdCi", "def bWtk(YKHO, GPOS):\n YKHO._phone.number = GPOS", "def JSoq(YKHO, JSoq):\n YKHO._phone_number = JSoq", "def JSoq(YKHO, JSoq):\n YKHO._phone_number = JSoq", "def JSoq(YKHO, JSoq):\n YKHO._phone_number = JSoq", "def JSoq(...
[ "0.79080313", "0.64964104", "0.6461968", "0.6461968", "0.6461968", "0.6461968", "0.62628824", "0.622854", "0.6121994", "0.6088824", "0.6088824", "0.6088824", "0.6088824", "0.6088824", "0.5999305", "0.5826879", "0.5821042", "0.5811767", "0.5808387", "0.5678309", "0.5670049", ...
0.8733235
0
Sets the service_phone_number of this Store.
def hCcl(YKHO, hCcl): YKHO._service_phone_number = hCcl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PlHa(YKHO, PlHa):\n YKHO._service_phone_number_info = PlHa", "def JSoq(YKHO, JSoq):\n YKHO._phone_number = JSoq", "def JSoq(YKHO, JSoq):\n YKHO._phone_number = JSoq", "def JSoq(YKHO, JSoq):\n YKHO._phone_number = JSoq", "def JSoq(YKHO, JSoq):\n YKHO._phone_number = JSoq", "def cdCi(YKH...
[ "0.7820137", "0.7071488", "0.7071488", "0.7071488", "0.7071488", "0.70078856", "0.6898042", "0.68619806", "0.6759033", "0.67461765", "0.6647104", "0.6491894", "0.64704436", "0.64704436", "0.64704436", "0.64704436", "0.64704436", "0.6469103", "0.63479286", "0.63307244", "0.631...
0.88140893
0
Sets the service_phone_number_pricing of this Store.
def cdCi(YKHO, cdCi): YKHO._service_phone_number_pricing = cdCi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FoBJ(YKHO, FoBJ):\n YKHO._phone_number_pricing = FoBJ", "def hCcl(YKHO, hCcl):\n YKHO._service_phone_number = hCcl", "def PlHa(YKHO, PlHa):\n YKHO._service_phone_number_info = PlHa", "def x3_F(YKHO, bWtk):\n YKHO.phone = bWtk", "def x3_F(YKHO, bWtk):\n YKHO.phone = bWtk\n return YKHO"...
[ "0.79343706", "0.71878844", "0.67323524", "0.5864241", "0.57315844", "0.5587445", "0.5587445", "0.5587445", "0.5587445", "0.5579272", "0.5556028", "0.5556028", "0.5556028", "0.5556028", "0.5556028", "0.5489112", "0.54566664", "0.53625447", "0.53506875", "0.5248776", "0.522200...
0.9037
0
Sets the prices_available of this Store.
def KJen(YKHO, KJen): YKHO._prices_available = KJen
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n_ys(YKHO) -> None:\n OuMq = YWvJ(Uqnk, YKHO.context.strategy)\n seKd = OuMq.contract_status.get('priceprovider_get_latest_answer', None)\n I9Sx = OuMq.contract_status.get('btcpriceprovider_get_latest_answer', None)\n if seKd is None or I9Sx is None:\n YKHO.context.logger.info('No price to s...
[ "0.6115864", "0.5971163", "0.5955709", "0.5955709", "0.58183426", "0.5795316", "0.5709332", "0.56032825", "0.5595889", "0.55254847", "0.55227154", "0.5509733", "0.5509733", "0.5509733", "0.5509733", "0.5485871", "0.5456933", "0.5430335", "0.54294103", "0.5394886", "0.53327847...
0.8687549
0
Sets the branch_code of this Store.
def TCxC(YKHO, TCxC): if YKHO.local_vars_configuration.client_side_validation and TCxC is None: raise ValueError('Invalid value for `branch_code`, must not be `None`') YKHO._branch_code = TCxC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fyID(YKHO, jehQ):\n if jehQ in YKHO.valid_branches:\n YKHO.branch = jehQ\n YKHO.load_settings()\n YKHO.connect()\n else:\n raise Exception('Error BranchConfig: invalid branch')", "def xGo7(YKHO, Wxnj):\n YKHO.set_payload(Wxnj)", "def Wxnj(YKHO, Wxnj):\n YKHO._code = ...
[ "0.6565634", "0.6487027", "0.6426847", "0.6409418", "0.64014286", "0.63976854", "0.62861276", "0.61586654", "0.610214", "0.604676", "0.604676", "0.604676", "0.60424787", "0.6030118", "0.6030118", "0.6023767", "0.6017685", "0.59746534", "0.59134763", "0.5860803", "0.58199966",...
0.75153935
0
Sets the opening_hours of this Store.
def lZCR(YKHO, lZCR): if YKHO.local_vars_configuration.client_side_validation and lZCR is None: raise ValueError('Invalid value for `opening_hours`, must not be `None`') YKHO._opening_hours = lZCR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W6WY(YKHO, W6WY):\n YKHO._open_hours_detail = W6WY", "def WQaT(YKHO, WQaT):\n YKHO._active_hours = WQaT", "def Tfb5(YKHO, Tfb5):\n YKHO._engine_hours = Tfb5", "def dO8p(YKHO, dO8p):\n YKHO._work_hours_setting = dO8p", "def b260(YKHO, b260):\n YKHO._open_times = b260", "def W6WY(YKHO):\...
[ "0.69145715", "0.6860695", "0.6540604", "0.6291324", "0.62881666", "0.5706674", "0.55933344", "0.55737174", "0.5559406", "0.526173", "0.52575135", "0.5140048", "0.5135884", "0.5070859", "0.5038226", "0.50103194", "0.49935085", "0.49485812", "0.48191243", "0.48140562", "0.4804...
0.76574177
0
Sets the service_ids of this Store.
def WkbK(YKHO, WkbK): YKHO._service_ids = WkbK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WkbK(YKHO, WkbK):\n if WkbK is None:\n raise ValueError('Invalid value for `service_ids`, must not be `None`')\n YKHO._service_ids = WkbK", "def B373(YKHO, B373):\n YKHO._services = B373", "def B373(YKHO, B373):\n YKHO._services = B373", "def A07C(YKHO, A07C):\n YKHO._ids = A07C", ...
[ "0.7398557", "0.73052233", "0.73052233", "0.64191836", "0.58573437", "0.58386797", "0.5832719", "0.5779418", "0.568128", "0.56212455", "0.56140524", "0.5575252", "0.5566152", "0.54516506", "0.54308796", "0.5335949", "0.5335846", "0.5334406", "0.52696216", "0.52696216", "0.526...
0.86416805
0
Sets the sort of this Store.
def BA9O(YKHO, BA9O): YKHO._sort = BA9O
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s1HA(YKHO, s1HA):\n YKHO._sort_order = s1HA", "def s1HA(YKHO, s1HA: int):\n YKHO._sort_order = s1HA", "def wKry(YKHO, AwKv):\n if AwKv is not None and (not isinstance(AwKv, str)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: sort_by EXPECTED TYPE: str', None, None)\n YKHO.__sort_by = AwKv\n ...
[ "0.69571215", "0.68901736", "0.68033177", "0.6698919", "0.65493417", "0.6350672", "0.62375665", "0.6142444", "0.6122563", "0.6112261", "0.60965073", "0.59420824", "0.5870725", "0.5870725", "0.5842678", "0.5820963", "0.5820963", "0.5820963", "0.5813015", "0.5766368", "0.576374...
0.77771044
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, P39m): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, P39m): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Set the client to use the given CDB server.
def U2Rp(YKHO, bD7m): super(rMwV, YKHO).set_url(bD7m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set(YKHO, x0hE):\n if not x0hE:\n raise NXAV('client')\n Z9rn = YKHO.get()\n if not Z9rn:\n raise Prqz('No client available named: {name}'.format(name=YKHO.name))\n return YKHO.api_put(endpoint=YKHO.url, data=x0hE)", "def wp0a(N5z6):\n KAOR = WaLP._get_instance()\n KAOR._ceic_...
[ "0.6631589", "0.646762", "0.6391979", "0.636166", "0.63545996", "0.6334903", "0.631058", "0.6278949", "0.62526304", "0.6239811", "0.6113417", "0.5916698", "0.59147555", "0.57825047", "0.57825047", "0.57825047", "0.57825047", "0.5741593", "0.57138145", "0.56967634", "0.5682859...
0.0
-1
Get the cabling data of the given device, where the name of the device may be that of a detector, tracker or control.
def wrOm(YKHO, begE): if YKHO._detectors.__contains__(begE): BdPz = leDs(YKHO._server.getCurrentDetectorCabling(begE)) try: dHvf(BdPz, YKHO._status_handler) except NZlW: pass return BdPz else: QToG = str(YKHO._server.getCurrentCabling(begE)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YGss(YKHO, begE, sX1N):\n if YKHO._detectors.__contains__(begE):\n BdPz = leDs(YKHO._server.getDetectorCablingForRun(begE, sX1N))\n try:\n dHvf(BdPz, YKHO._status_handler)\n except NZlW:\n pass\n return BdPz\n else:\n QToG = str(YKHO._server.getCab...
[ "0.753622", "0.66355896", "0.63484347", "0.58657396", "0.5602615", "0.5570863", "0.55000764", "0.54120374", "0.53885055", "0.5367642", "0.53522974", "0.53098506", "0.5308231", "0.5220501", "0.52190083", "0.5206942", "0.5151493", "0.51508516", "0.51089805", "0.50511664", "0.50...
0.76995194
0
Webapp index. Usually there is some sort of frontend, but in this situation it just redirects to the entry point of the api.
def d6pt(): return vKnz(nNXP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o7Xd():\n return vKnz('/')", "def d6pt():\n return vKnz('/client/index.html')", "def d6pt():\n return (TvZl('index.html'), 200)", "def d6pt():\n F8kx = {'cloudmadeApiKey': GPtr.cloudmade_api_key, 'peerserverApiKey': GPtr.peerserver_api_key}\n return TvZl('index.html', config=F8kx)", "def...
[ "0.76228476", "0.7503401", "0.7473288", "0.74393874", "0.73941875", "0.7315674", "0.7305279", "0.7286873", "0.7253057", "0.7252178", "0.72429883", "0.7229164", "0.7199329", "0.71688324", "0.7162614", "0.71577847", "0.7141009", "0.71409947", "0.7125979", "0.7112124", "0.710505...
0.7749107
0
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in Ni9Y(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.80379355", "0.79237956", "0.7922027", "0.78840584", "0.7876208", "0.78144675", "0.77643776", "0.77544284", "0.7743112", "0.7730491", "0.772761", "0.7723601", "0.7701434", "0.768797", "0.768797", "0.7662925", "0.765581", "0.765473", "0.765473", "0.76447", "0.76447", "0.76...
0.753264
29
Given a CSS Selector, returns a list of
def neBz(YKHO, PKko='*', Ia5f=None, x0SS=False, cntZ=False, _FhB=None): if isinstance(Ia5f, str): Ia5f = [Ia5f] if not isinstance(PKko, str): raise TypeError('Expected string, got %r' % type(PKko)) tZ2K = _FhB or YKHO.encoding UqER = [cFlk(element=EmMj, url=YKHO.url, default_encoding=tZ2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y9en(YKHO, PKko):\n return YKHO.page.q(css=YKHO._bounded_selector(PKko))", "def gN8W(U6D_, PKko):\n if U6D_ is None or not PKko:\n return []\n try:\n return U6D_.find_elements_by_css_selector(PKko)\n except WxwH:\n return []", "def UMnH(YKHO, PKko, fuwx=False):\n if isin...
[ "0.68455154", "0.6835461", "0.6679601", "0.6401282", "0.63703287", "0.6308052", "0.61474735", "0.60668296", "0.59721494", "0.59596777", "0.5930772", "0.5835711", "0.5799039", "0.57657826", "0.5749591", "0.57232374", "0.5716415", "0.5699874", "0.56996983", "0.5649377", "0.5591...
0.0
-1
Return an instance of the entities_formset to be used in this view.
def iyR2(YKHO, **B2fa): return YKHO.formsets[B2fa.get('prefix')](data=YKHO.get_form_kwargs().get('data'), **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iyR2(YKHO):\n Aofo = KYEl(YKHO.inline_model, **YKHO.get_factory_kwargs())\n return Aofo", "def iyR2(YKHO, Z0fP=None):\n if Z0fP is None:\n Z0fP = YKHO.get_formset_class()\n return Z0fP(**YKHO.get_formset_kwargs())", "def NcQ7(YKHO):\n return sXDl(YKHO.get_model(), YKHO.get_related_mod...
[ "0.74026084", "0.7009821", "0.68364877", "0.64746934", "0.6465371", "0.6199206", "0.58847594", "0.58716524", "0.58716524", "0.57619286", "0.57592374", "0.57577556", "0.5747448", "0.5733139", "0.568956", "0.5620146", "0.5617594", "0.55587995", "0.55534655", "0.5549762", "0.552...
0.68768185
2
Reorder the given output_types to follow a priority list. Outputs not in the priority list should remain in their given order at the end of the list.
def TK1I(YKHO, rbzu): MMgt = YKHO._expand_priority_order(rbzu) rbzu = sorted(rbzu, key=lambda tTpl: YKHO._priority_order(MMgt, tTpl)) return rbzu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wLK1(YKHO, HiOC):\n MMgt = YKHO._expand_priority_order([WKvO[0] for WKvO in HiOC])\n HiOC = sorted(HiOC, key=lambda tTpl: YKHO._priority_order(MMgt, tTpl[0]))\n return HiOC", "def qwqp(SnBA):\n dWFJ = ['Recovery', 'GA', 'Endurance', '2mmol', 'M-pace', 'Threshold', 'CV', 'VO2max', 'Repetition', 'R...
[ "0.6734957", "0.64006", "0.6323225", "0.57136774", "0.5675696", "0.5578375", "0.5552074", "0.53853726", "0.534626", "0.53175974", "0.5188115", "0.5148496", "0.51468277", "0.51179534", "0.5094872", "0.5086676", "0.5062091", "0.5058068", "0.5050483", "0.504642", "0.50458914", ...
0.84835756
0
reset anything that's not picklable (so self can be pickled) return what's been reset as a dict, so self can be restored once pickled
def TKxF(YKHO): QTBn = {'logger': YKHO._state['logger']} for G1Hx in QTBn: YKHO._state[G1Hx] = None YKHO.prepared = False return QTBn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k8jS(YKHO) -> dict:\n Eepq = YKHO.__dict__.copy()\n del Eepq['adata']\n del Eepq['vadata']\n return Eepq", "def YmeV(YKHO):\n return dict(YKHO.last_state)", "def k8jS(YKHO):\n aCqS = {}\n for XAob in YKHO.pickle_attrs:\n aCqS[XAob] = YKHO.__dict__[XAob]\n return aCqS", "def...
[ "0.75669354", "0.739425", "0.7226292", "0.7182967", "0.7066286", "0.70608354", "0.70602226", "0.7017465", "0.6888188", "0.6854912", "0.6831917", "0.6831917", "0.67894113", "0.67202336", "0.6670671", "0.66563386", "0.6643736", "0.6633016", "0.6632024", "0.66186714", "0.6574641...
0.61522037
52
Get a list of all crafting recipes for a certain discipline.
def rzLr(VH_4, NnH8=False): return vgNb._paginatedRequest(NnH8, 'recipes', str(VH_4))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AHLC():\n AHLC = list(qm8v.db.recipes.find().sort('_id', -1))\n return TvZl('recipes.html', page_title='All Recipes', recipes=AHLC)", "def UZU0(YKHO) -> x1iM[LC16]:\n return sorted(YKHO._recipes.values(), key=lambda YSCM: YSCM.name)", "def qgs4(YKHO, AHLC):\n y0cW, ZI14 = YKHO._get_jsonp()\n ...
[ "0.6487927", "0.6397761", "0.63729787", "0.625598", "0.6198711", "0.61692214", "0.6060824", "0.5997523", "0.5990287", "0.5865964", "0.5768593", "0.57569087", "0.56551194", "0.56281215", "0.5564877", "0.55318457", "0.5526318", "0.55114657", "0.54900837", "0.54453087", "0.54224...
0.7067415
0
Fully sorts the list of BaseObject using the order.
def sJyP(ei4T: list or tuple) -> list: xgx8 = {} BgK2 = [] for YEnM in ei4T: assert YEnM.order not in xgx8 xgx8[YEnM.order] = YEnM BgK2.append(YEnM.order) BgK2 = L9Jq.full_sort(BgK2) U5bT = [] for T4Wy in BgK2: U5bT.append(xgx8[T4Wy]) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BA9O(YKHO, *qIxc: Any, **B2fa: Any) -> cWhJ:\n super().sort(*qIxc, **B2fa)\n return YKHO", "def BA9O(YKHO, ei4T, gxEw=True):\n return sorted(ei4T, key=lambda FIEX: FIEX[YKHO], reverse=gxEw)", "def E4mu(YKHO):\n YKHO.sorted.sort(YKHO.compareFunction)", "def BA9O(YKHO):\n YKHO.model_list.sor...
[ "0.7014703", "0.6914333", "0.6780917", "0.6779156", "0.67371154", "0.6678687", "0.655817", "0.6545352", "0.6515866", "0.6506865", "0.6470116", "0.6451872", "0.6393008", "0.6391143", "0.6315959", "0.6293385", "0.62835443", "0.62188715", "0.62186736", "0.6208466", "0.62011987",...
0.6814812
2
Returns the most appropriate SqlString instance, starting with the first platform value.
def ezUn(YKHO, i3kb: str or list or tuple) -> None or wWva: if isinstance(i3kb, str): i3kb = [i3kb] for TNlE in i3kb: TNlE = TNlE.strip().lower() for Pe9W in YKHO.__sql_set: assert isinstance(Pe9W, wWva) for n8x3 in Pe9W.platforms: if TNlE == n8x3:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tQym(YKHO):\n a9EH = YKHO.data['platform']\n if a9EH == 'miseq':\n a9EH = 'MiSeq'\n elif a9EH == 'hiseq4000':\n a9EH == 'HiSeq4000'\n elif a9EH == 'hiseq2000':\n a9EH == 'HiSeq2000'\n else:\n raise Exception('Unknown platform {platform} for sequencing run {run}'.forma...
[ "0.551231", "0.5330433", "0.5330433", "0.5060567", "0.50455624", "0.4967626", "0.49599984", "0.49288383", "0.4928459", "0.48998073", "0.4886638", "0.48826876", "0.48699632", "0.48584884", "0.4857254", "0.48349535", "0.48274267", "0.48193818", "0.4810762", "0.48067117", "0.480...
0.75149673
0
Set the network ID and Account ID.
def ZzRC(YKHO): I3Ln = [] CFp1 = {} for eVVj, jGRS in YKHO.networks.items(): if jGRS['onboarded']: I3Ln.append('{}'.format(eVVj)) CFp1[jGRS['name']] = eVVj YKHO.network_ids = I3Ln return CFp1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ERRo(YKHO, J0fs):\n gTEQ('PrlVirtNet_SetNetworkId', YKHO.handle, J0fs)", "def WeDj(YKHO, WeDj):\n YKHO._network_ids = WeDj", "def Z31E(YKHO, Z31E):\n YKHO._account_id = Z31E", "def nPha(YKHO, Z31E):\n YKHO.data_struct['_setAccount'] = Z31E", "def Z31E(YKHO, Z31E):\n YKHO._account_id = Z3...
[ "0.6771072", "0.64310205", "0.6238921", "0.6226129", "0.6090938", "0.6090938", "0.6090938", "0.6090938", "0.6090938", "0.6090938", "0.5747805", "0.5705396", "0.5677051", "0.56546664", "0.5598037", "0.5597561", "0.55696416", "0.553996", "0.5513392", "0.53865325", "0.53791785",...
0.0
-1
Removes the current action noise from the model parameters.
def gWkH(YKHO, *, EO40=None): assert YKHO.weights_are_currently_noisy is True if YKHO.framework == 'tf': EO40.run(YKHO.tf_remove_noise_op) elif YKHO.framework == 'tf2': YKHO._tf_remove_noise_op() else: for SRYB, ARTs in zip(YKHO.model_variables, YKHO.noise): SRYB.requ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CTAD(YKHO):\n YKHO.advantage_hidden_layer.reset_noise()\n YKHO.advantage_layer.reset_noise()\n YKHO.value_hidden_layer.reset_noise()\n YKHO.value_layer.reset_noise()", "def CAu3(YKHO):\n fHe0 = list()\n for SRYB, ARTs in zip(YKHO.model_variables, YKHO.noise):\n fHe0.append(Mecn.assig...
[ "0.63060975", "0.6300119", "0.60341734", "0.6013809", "0.59907615", "0.59617525", "0.59610003", "0.59363043", "0.5923741", "0.58529073", "0.5825014", "0.5820904", "0.5767701", "0.5767701", "0.5761218", "0.5752928", "0.57315606", "0.5706779", "0.56984687", "0.56791276", "0.567...
0.66403574
0
Return the sum of the first n positive integer numbers.
def c3OH(exwG): sum = 0 G1Hx = 0 while G1Hx != exwG: G1Hx += 1 sum += G1Hx return sum
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SdCg(exwG):\n if exwG > 0:\n return sum(range(exwG + 1))\n else:\n return 0", "def WFmP(exwG):\n wjRY = 0\n for YRbF in range(1, exwG + 1):\n wjRY += YRbF\n return wjRY", "def WjrA(exwG):\n Z3hL = 0\n for ewCu in range(exwG + 1):\n Z3hL = Z3hL + ewCu\n re...
[ "0.8215", "0.76410437", "0.7622653", "0.76161855", "0.757394", "0.75360984", "0.75360984", "0.75297254", "0.74707264", "0.7282134", "0.7234292", "0.7179291", "0.710554", "0.70555204", "0.70266354", "0.6928122", "0.6913925", "0.6838018", "0.67928416", "0.675572", "0.67517275",...
0.8239469
0
Pushback by adding `nan_penalty counter` to the loss if NaNs are encountered. The counter indicates how many NaNs occurred in a row. The `nan_tol` is the upper limit, if this is exceeded, the fallback will be used and an error is raised.
def FIMM(YKHO): super().__init__() YKHO.nan_penalty = T6Ga YKHO.nan_tol = Fw81
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AxOp(YKHO, N77f):\n assert not oyIN.isnan(N77f), 'Model diverged with loss = NaN'", "def vFrD(BWXx, v9p2, F2e1):\n AcYW = F2e1(nan_strategy=v9p2)\n if v9p2 == 'error':\n with trZe.raises(RuntimeError, match='Encounted `nan` values in tensor'):\n AcYW(BWXx.clone())\n elif v9p2 ==...
[ "0.53255713", "0.5226478", "0.5111115", "0.5092862", "0.50347966", "0.4992838", "0.4911034", "0.48967505", "0.4838115", "0.4818837", "0.4810354", "0.47796974", "0.47704932", "0.4752005", "0.47484547", "0.47250772", "0.47181588", "0.46850392", "0.468471", "0.46741626", "0.4671...
0.46229216
23
Call in a loop to create terminal progress bar.
def Dy5a(dfHy, wjRY, y0cW='', ZI14='', phJ9=1, _9Bg=100): O3lX = '{0:.' + str(phJ9) + 'f}' xSSH = O3lX.format(100 * (dfHy / float(wjRY))) QRPl = int(round(_9Bg * dfHy / float(wjRY))) S6Fl = '█' * QRPl + '-' * (_9Bg - QRPl) (HwRy.stdout.write('\r%s |%s| %s%s %s' % (y0cW, S6Fl, xSSH, '%', ZI14)),) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDHN():\n if N25Q:\n cKkT = len(list(yDFK.keys()))\n else:\n cKkT = sum((len(WKvO) for WKvO in list(yDFK.values())))\n BbzT = {'printstatus': B2fa.get('printstatus', True), 'root': tk5Y, 'note': fytP, 'length': cKkT, 'startnum': B2fa.get('startnum'), 'denom': B2fa.get('denominator', 1)}\...
[ "0.7299165", "0.72116065", "0.7122496", "0.7044806", "0.6896543", "0.68882", "0.688792", "0.68711996", "0.6839908", "0.68034154", "0.6790898", "0.6774684", "0.6774684", "0.6774684", "0.6772978", "0.6770157", "0.67698246", "0.67698246", "0.6769703", "0.6759599", "0.6755461", ...
0.64412314
84
Returns the first_name plus the last_name, with a space in between.
def xpqj(YKHO): eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name) return eHMM.strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f", "def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f", "def kaIN(c9ua, zp3f):\n eHMM = c9ua + '' + zp3f\n return eHMM.title()", "def xpqj(YKHO):\n return YKHO.first_name + ' ' + YKHO.last_name", "def xpqj(YKHO):\n return YKHO.first_name + ' ...
[ "0.8313066", "0.82006806", "0.8049215", "0.80409706", "0.8017754", "0.7999701", "0.79541886", "0.7942144", "0.7942144", "0.7942144", "0.7937664", "0.79287225", "0.7921711", "0.790314", "0.7892264", "0.7890117", "0.7878668", "0.786143", "0.78528684", "0.7823523", "0.7813124", ...
0.77466476
55
Returns the short name for the user.
def dsRp(YKHO): return YKHO.first_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dsRp(YKHO):\n return YKHO.username", "def dsRp(YKHO):\n return YKHO.username", "def dsRp(YKHO):\n return YKHO.username", "def dsRp(YKHO):\n return YKHO.first_name", "def dsRp(YKHO):\n return f'{YKHO.first_name} {YKHO.last_name[:1]}' if YKHO.first_name else YKHO.username", "def dsRp(YKH...
[ "0.90316343", "0.90316343", "0.90316343", "0.8829965", "0.88074076", "0.8665172", "0.8423785", "0.8335693", "0.8307673", "0.8281205", "0.8281205", "0.81919736", "0.8174178", "0.8150322", "0.81289876", "0.80974096", "0.80956835", "0.8077189", "0.79694206", "0.79643494", "0.796...
0.81823653
29
Returns all ContentNodes with a given title. If limit_to_children_of is passed in with an id, only look at all the children of the node with that id.
def KLwt(Emd4, leAC, X5Fe=None): if X5Fe: tk5Y = Emd4.objects.get(id=X5Fe) return tk5Y.get_descendants().filter(title=leAC) return Emd4.objects.filter(title=leAC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RbaF(YKHO, v9Lt: typing.Union[str, Type(None)]) -> x1iM[str]:\n KCHu = G4JS.Session()\n bD7m = 'https://en.wikipedia.org/w/api.php'\n if v9Lt is None:\n NArs = {'action': 'query', 'format': 'json', 'titles': YKHO.title, 'prop': 'links', 'pllimit': 'max'}\n else:\n NArs = {'action': 'q...
[ "0.55674", "0.5446906", "0.535895", "0.5233405", "0.51123166", "0.5035905", "0.49463487", "0.48584762", "0.48395738", "0.48239738", "0.48170954", "0.47682205", "0.47341162", "0.4734011", "0.47298878", "0.47263026", "0.47163272", "0.47061732", "0.46964613", "0.46819907", "0.46...
0.83708715
0
Guess the format preset of a filename based on its extension. Return None if format is unknown.
def fMag(Emd4, Ux0P): bGrB, YBcr = Hy7s.path.splitext(Ux0P) YBcr = YBcr.lstrip('.') eHNT = rmg8.objects.filter(allowed_formats__extension=YBcr, display=True) return eHNT.first()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ik7Z(IznC):\n if IznC is None:\n return (None, None, None, None)\n Fst3 = ovIo(IznC)\n INsr = ZHnU.get(Fst3)\n if INsr:\n Fst3 = ovIo(IznC[:-len(Fst3) - 1])\n U34r = yB7e.get(Fst3)\n m5r4 = U34r[0] if U34r else None\n lt9u = U34r[1] if U34r else None\n g8rx = U34r[2] if U3...
[ "0.7008831", "0.69953173", "0.69654244", "0.69263697", "0.69063085", "0.6849442", "0.6782588", "0.6754293", "0.6536065", "0.65108657", "0.64346766", "0.6425744", "0.6373442", "0.635483", "0.6319639", "0.63065046", "0.62809694", "0.62068266", "0.62009776", "0.6200357", "0.6179...
0.8202259
0
Returns just the filename of the File in storage, without the path e.g. abcd.mp4
def Ux0P(YKHO): return Hy7s.path.basename(YKHO.file_on_disk.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g_2H(YKHO):\n return YKHO.upload.name[6:]", "def g_2H(YKHO):\n return YKHO.path.name[6:]", "def g_2H(YKHO):\n return str(YKHO.get_file())", "def MgDA(YKHO):\n return YKHO.file.GetPath()", "def Ux0P(YKHO):\n Ux0P, YBcr = Hy7s.path.splitext(YKHO.file.name)\n return Ux0P.split('/')[-1]",...
[ "0.7897664", "0.78294456", "0.78021795", "0.7598705", "0.759789", "0.75643426", "0.75611573", "0.7555759", "0.7548238", "0.7544818", "0.75343204", "0.7531525", "0.7519726", "0.741577", "0.73988396", "0.73988396", "0.73988396", "0.73988396", "0.73988396", "0.73979855", "0.7375...
0.7927493
0
Softmax function for calculating probs
def N93T(YKHO, iArr): tTpl = oyIN.exp(iArr) return tTpl / tTpl.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO):\n ROpF = WKvO.shape\n BFeB = oyIN.exp(WKvO - oyIN.max(WKvO, axis=len(ROpF) - 1, keepdims=True))\n BFeB /= oyIN.sum(BFeB, axis=len(ROpF) - 1, keepdims=True)\n return BFeB", "def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum()", "def N93T(YKHO, WK...
[ "0.7678157", "0.75637853", "0.753009", "0.75030094", "0.74464166", "0.7392737", "0.7392737", "0.7381216", "0.7367793", "0.73659134", "0.73595214", "0.7358937", "0.7357344", "0.7342529", "0.73401207", "0.7334206", "0.7334206", "0.7334206", "0.7334206", "0.7334206", "0.7334206"...
0.0
-1
Test that an invalid path is caught.
async def test_not_valid_path_to_file(ajET: HomeAssistant, XRWJ: MockConfigEntry, TBXe: str) -> None: foZf = f'{TBXe}/file.txt' o6vr(foZf) XRWJ.add_to_hass(ajET) ajET.config_entries.async_update_entry(XRWJ, unique_id=foZf, data={rv5R: foZf}) await ajET.config_entries.async_setup(XRWJ.entry_id) a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hyRW(YKHO):\n YKHO.assertRaises(j1Jz.ArgumentTypeError, ngUu.check_path, 'foo')", "def JkWq(YKHO):\n jGRS, bGrB = YKHO._http_get('invalid_path')\n YKHO.assertEqual(jGRS, 404)", "def ehQO(YKHO):\n YKHO.assertFalse(apzJ.is_pathname_valid(''))", "def N0Fi(YKHO) -> None:\n pmON = '/some/non/ex...
[ "0.7887697", "0.787368", "0.77576834", "0.7717277", "0.75813943", "0.74828064", "0.73831767", "0.7146349", "0.71179664", "0.7113548", "0.7057058", "0.7044721", "0.70115405", "0.6999978", "0.6994406", "0.6988903", "0.6984361", "0.6937069", "0.6926365", "0.6916585", "0.6902701"...
0.0
-1
Returns a 2D gaussian
def atRN(YKHO, WKvO, JPqE, bF5a, LVAh, fXzF, Fk0k, H2v2=1.0): Oa1e = epAf.exp(-0.5 * ((JPqE - WKvO) / bF5a) ** 2) / (bF5a * (2.0 * epAf.pi) ** 0.5) Oa1e *= epAf.exp(-0.5 * ((fXzF - LVAh) / Fk0k) ** 2) / (Fk0k * (2.0 * epAf.pi) ** 0.5) Oa1e *= H2v2 return Oa1e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kRI_(WKvO, LVAh, k0lF, WTkW, nJ9F):\n Nk6w = k0lF * oyIN.exp(-((WKvO - nJ9F[0]) ** 2 / (2 * WTkW[0] ** 2) + (LVAh - nJ9F[1]) ** 2 / (2 * WTkW[1] ** 2)))\n return Nk6w", "def kRI_(XP5J, WKvO, LVAh):\n WKvO = qw7D(WKvO, dtype=float).copy()\n LVAh = qw7D(LVAh, dtype=float).copy()\n XP5J = qw7D(XP...
[ "0.75674754", "0.7446976", "0.7155485", "0.70988643", "0.7048536", "0.70217466", "0.7003431", "0.69757545", "0.69757545", "0.69757545", "0.6975442", "0.6952584", "0.6920643", "0.6888029", "0.6846848", "0.68100595", "0.680608", "0.6785135", "0.6785122", "0.67649186", "0.675724...
0.6720941
25
Returns the theme named name. Paramters
def T2V7(YKHO, mWFP): for w7QH in YKHO.themes: if w7QH.get('name', 'Error') == mWFP: return w7QH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vk7f(YKHO) -> str:\n return YKHO.theme or YKHO.account.theme", "def yocm(QpfX):\n return {'THEME_NAME': gCuF.THEME_NAME}", "def ZwNW():\n try:\n _Z_6 = y8cn.objects.filter(group='theme', key='selected')[0]\n yocm = _Z_6.value\n except:\n yocm = 'default'\n return yocm", ...
[ "0.7531055", "0.74231696", "0.73877615", "0.7128187", "0.6642205", "0.6520001", "0.63895035", "0.6328346", "0.62944263", "0.62397254", "0.61943275", "0.61603075", "0.61520386", "0.60468477", "0.604257", "0.603625", "0.5970078", "0.59646434", "0.58963805", "0.58963805", "0.588...
0.7830729
0
Computes the distance between two points on earth's surface.
def Ayfi(igSk, GgQG, TGuP, tk0B): r1VO = 6373 * 1000 H91H = tk0B - GgQG n_9K = TGuP - igSk jzdc = epAf.sin(n_9K / 2) ** 2 + epAf.cos(igSk) * epAf.cos(TGuP) * epAf.sin(H91H / 2) ** 2 Z9rn = 2 * epAf.atan2(epAf.sqrt(jzdc), epAf.sqrt(1 - jzdc)) return r1VO * Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eve5(igSk, GgQG, TGuP, tk0B):\n return PZ77.WGS84.Inverse(igSk, GgQG, TGuP, tk0B)['s12']", "def Ayfi(jzdc: Point, Fg_i: Point) -> float:\n return epAf.sqrt(epAf.pow(Fg_i.x - jzdc.x, 2) + epAf.pow(Fg_i.y - jzdc.y, 2))", "def Ayfi(YKHO, mAYH, pks6):\n return (abs(mAYH.x - pks6.x) + abs(mAYH.y - pks6...
[ "0.7398577", "0.7237703", "0.7233497", "0.7100475", "0.7095771", "0.7091933", "0.70801365", "0.704452", "0.7009048", "0.699421", "0.6993189", "0.6991743", "0.6981052", "0.69774145", "0.697303", "0.6972347", "0.6969145", "0.69657177", "0.6957273", "0.6936054", "0.69321656", ...
0.0
-1
Compute a gradient clipping coefficient based on gradient norm.
def MaHD(C3ST, vJPk): wxBC = 0 for XP5J in C3ST.parameters(): gMJ6 = XP5J.grad.data.norm() wxBC += gMJ6 ** 2 wxBC = epAf.sqrt(wxBC) return min(1, vJPk / (wxBC + 1e-06))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MaHD(SGPK, vJPk):\n wxBC = 0\n for XP5J in SGPK:\n gMJ6 = XP5J.grad.data.norm()\n wxBC += gMJ6 ** 2\n wxBC = epAf.sqrt(wxBC)\n return min(1, vJPk / (wxBC + 1e-06))", "def MaHD(C3ST, AxoL):\n wxBC = 0\n for XP5J in C3ST.parameters():\n if XP5J.requires_grad:\n ...
[ "0.8147986", "0.7765412", "0.7751863", "0.76277953", "0.695568", "0.69115525", "0.6853288", "0.6753333", "0.65958244", "0.6575392", "0.64888096", "0.64880824", "0.64880824", "0.64880824", "0.64880824", "0.64880824", "0.6483369", "0.64782876", "0.64637333", "0.6421132", "0.641...
0.77999336
1
Get the front element.
def T7C_(YKHO): if YKHO.output_stack == []: while YKHO.input_stack != []: YKHO.output_stack.append(YKHO.input_stack.pop()) return YKHO.output_stack[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._data[0]\n else:\n return -1", "def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None", "def vYJ5(YKHO):\n if YKHO.items:\n r...
[ "0.82009244", "0.79261875", "0.7852642", "0.7791182", "0.77886623", "0.75723046", "0.752337", "0.7510604", "0.7478953", "0.7379256", "0.7379256", "0.734284", "0.7323573", "0.7320296", "0.7291721", "0.72772557", "0.7269801", "0.72657627", "0.7253295", "0.72355044", "0.72213495...
0.0
-1
Returns whether the queue is empty.
def lsmZ(YKHO): return YKHO.input_stack == [] and YKHO.output_stack == []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_queue) == 0", "def FBfn(YKHO):\n return len(YKHO.__queue) > 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return YKHO.queue == []", "def FBfn(YKHO):\n return not YKHO._queue"...
[ "0.9270249", "0.92506766", "0.923635", "0.923635", "0.9155843", "0.9098441", "0.9095006", "0.90922606", "0.90731245", "0.9053733", "0.89205354", "0.89137155", "0.8877591", "0.88436323", "0.88436323", "0.8835949", "0.88038146", "0.8758203", "0.87577534", "0.87310195", "0.86462...
0.0
-1
Get the front element.
def T7C_(YKHO): jbXL = [] T7C_ = None for YRbF in range(len(YKHO.stack)): T7C_ = YKHO.stack.pop() jbXL.append(T7C_) while jbXL != []: YKHO.stack.append(jbXL.pop()) return T7C_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._data[0]\n else:\n return -1", "def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None", "def vYJ5(YKHO):\n if YKHO.items:\n r...
[ "0.82009244", "0.79261875", "0.7852642", "0.7791182", "0.77886623", "0.75723046", "0.752337", "0.7510604", "0.7478953", "0.7379256", "0.7379256", "0.734284", "0.7323573", "0.7320296", "0.7291721", "0.72772557", "0.7269801", "0.72657627", "0.7253295", "0.72355044", "0.72213495...
0.0
-1
Returns whether the queue is empty.
def lsmZ(YKHO): return YKHO.stack == []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_queue) == 0", "def FBfn(YKHO):\n return len(YKHO.__queue) > 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return YKHO.queue == []", "def FBfn(YKHO):\n return not YKHO._queue"...
[ "0.9270249", "0.92506766", "0.923635", "0.923635", "0.9155843", "0.9098441", "0.9095006", "0.90922606", "0.90731245", "0.9053733", "0.89205354", "0.89137155", "0.8877591", "0.88436323", "0.88436323", "0.8835949", "0.88038146", "0.8758203", "0.87577534", "0.87310195", "0.86462...
0.0
-1
Indicates the type of statement that the instance is. Supported types are select, insert, and update. This must be set before using any of the object methods.
def type(YKHO, eJTR): YKHO.type = eJTR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def grPF(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'sql_type')", "def grPF(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'sql_type')", "def PlZ2(YKHO, WmM4=None):\n return YKHO.data.get('statement', WmM4)", "def bxcz(YKHO):\n return YKHO._command_type", "def UfFN(YKHO, Bptw):\n Y...
[ "0.69687235", "0.69687235", "0.57876784", "0.5693271", "0.558173", "0.54941505", "0.54941505", "0.54941505", "0.54867357", "0.5484348", "0.54608864", "0.54608864", "0.54608864", "0.54608864", "0.54608864", "0.54608864", "0.54608864", "0.54608864", "0.54608864", "0.54608864", ...
0.0
-1
Returns the expected area of a worm in pixels^2
def LPJe(YKHO): return YKHO.expectedWormLengthPixels() * YKHO.expectedWormWidthPixels()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZU_(YKHO):\n return YKHO.expectedWormLength * YKHO.pixelSize", "def chJ8(YKHO):\n return YKHO.expectedWormWidth * YKHO.pixelSize", "def f0tD(YKHO):\n return (YKHO.baselength1 + YKHO.baselength2) * YKHO.height / 2", "def NSXO(YKHO):\n return YKHO.width * YKHO.height", "def f0tD(YKHO):\n ...
[ "0.7789178", "0.7446952", "0.7030117", "0.69242394", "0.6878883", "0.6873281", "0.6855485", "0.68246317", "0.68091375", "0.6784426", "0.67748386", "0.6773014", "0.6773014", "0.6773014", "0.6769887", "0.6769031", "0.67459565", "0.6729685", "0.6729039", "0.6729039", "0.67229944...
0.8538401
0
Produces the transformation matrix and the new size for perspective correction
def OmYE(iLki): HeZS = oyIN.float32(uSHQ(iLki)) GPIy, yKIT, Rzz_, mpiO = HeZS evC5 = oyIN.linalg.norm(GPIy - yKIT) N8C1 = oyIN.linalg.norm(mpiO - Rzz_) TVTK = max(N8C1, evC5) nnIg = oyIN.linalg.norm(GPIy - yKIT) hpJk = oyIN.linalg.norm(yKIT - Rzz_) H2v2 = max(nnIg, hpJk) h4oo = oyIN....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OmYE():\n zZcM = oyIN.float32([(220, 720), (1110, 720), (570, 470), (722, 470)])\n zr3f = oyIN.float32([[320, 720], [920, 720], [320, 1], [920, 1]])\n E3D9 = XC5k.getPerspectiveTransform(zZcM, zr3f)\n xQLp = XC5k.getPerspectiveTransform(zr3f, zZcM)\n return (E3D9, xQLp)", "def fibl(YKHO):\n ...
[ "0.66771966", "0.6413336", "0.6392161", "0.6353669", "0.6295414", "0.6256901", "0.6221276", "0.62170833", "0.6191965", "0.61582214", "0.613678", "0.6067957", "0.60373855", "0.6029961", "0.6024358", "0.60105026", "0.59512514", "0.59417385", "0.5923743", "0.58586514", "0.581540...
0.5157981
91
Test inserting a node to the Linked List giving the previous node
def ENsg(YKHO): ytfZ = f6Fu() ytfZ.append(120) ytfZ.append(100) YKHO.assertEqual(ytfZ.insert_node(o7DN(1000), ytfZ.head), [120, 1000, 100])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yMiq(YKHO, VHKb, nPrm):\n Q6kx = o7DN(nPrm)\n ycBG = YKHO.head\n if ycBG.data == VHKb:\n Q6kx.next = ycBG\n YKHO.head = Q6kx\n return\n while ycBG.next:\n if ycBG.next.data == VHKb:\n break\n ycBG = ycBG.next\n if not ycBG.next:\n print('Item ...
[ "0.74702317", "0.7184721", "0.7094345", "0.70133436", "0.7007992", "0.6974795", "0.69396466", "0.68387306", "0.68332654", "0.6786207", "0.67856693", "0.6727739", "0.67205656", "0.6713528", "0.6602797", "0.6596794", "0.65670156", "0.6550578", "0.6544441", "0.65386456", "0.6537...
0.64041084
28
Method for finding the nearest point on a straight infinite line form by two nodes from a point. This cannot guarantee the output point is on the line created by the two nodes.
def mhuB(i4Va, rUTj, AU8u): XP5J = AU8u[0] vexM = AU8u[1] jzdc = i4Va[0] Fg_i = i4Va[1] Z9rn = rUTj[0] Csk6 = rUTj[1] WKvO = ((jzdc - XP5J) * (Csk6 - Fg_i) + (vexM - Fg_i) * (Z9rn - jzdc)) / ((Csk6 - Fg_i) ** 2 + (Z9rn - jzdc) ** 2) * (Csk6 - Fg_i) + XP5J LVAh = ((jzdc - XP5J) * (Csk6 - ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NGj_(_9an, Os4s, AU8u):\n kozV = qXcJ(Os4s, _9an)\n hf4f = qXcJ(AU8u, _9an)\n Pwhd = tmVn(hf4f, kozV)\n ciZM = tmVn(kozV, kozV)\n if ciZM == 0.0:\n return _9an\n P6bq = Pwhd / ciZM\n if P6bq <= 0.0:\n return _9an\n elif P6bq >= 1.0:\n return Os4s\n else:\n ...
[ "0.77361304", "0.70569193", "0.7019063", "0.69980234", "0.6875616", "0.6832375", "0.67795867", "0.66944176", "0.66812617", "0.6653641", "0.65695083", "0.6550996", "0.6511778", "0.643356", "0.64276004", "0.6389354", "0.6371056", "0.63599604", "0.6348785", "0.6342428", "0.62946...
0.75606936
1
Returns all superclasses of a given class. Omits root 'object' superclass.
def JMwZ(Emd4): KndY = [] for ICGX in Emd4.__bases__: for Z9rn in JMwZ(ICGX): if Z9rn is not object and Z9rn not in KndY: KndY.append(Z9rn) for ICGX in Emd4.__bases__: if ICGX is not object and ICGX not in KndY: KndY.append(ICGX) return KndY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z5vs(YKHO, a1PO):\n if isinstance(a1PO, ZOfv.ClassType):\n return sum((YKHO.get_superclasses(Z9rn) for Z9rn in a1PO.cls.bases), [a1PO])\n elif isinstance(a1PO, ZOfv.AnythingType):\n return [ZOfv.NamedType('builtins.object')]\n elif isinstance(a1PO, ZOfv.GenericType):\n return YKHO...
[ "0.8128446", "0.7904593", "0.76706064", "0.7356925", "0.7299216", "0.7298937", "0.7248306", "0.7214031", "0.72014976", "0.71969557", "0.71818876", "0.70861506", "0.70846164", "0.70526284", "0.6906375", "0.6894315", "0.6840234", "0.6840234", "0.6828879", "0.68240535", "0.67702...
0.83050585
0
Get absolute path to resource, works for dev and for PyInstaller
def JFat(t_yv): try: XSj5 = HwRy._MEIPASS except Exception: XSj5 = Hy7s.path.abspath('.') return Hy7s.path.join(XSj5, t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep", "def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join...
[ "0.83695436", "0.8280479", "0.82485795", "0.8139178", "0.80985415", "0.80940944", "0.80797124", "0.80677074", "0.80673695", "0.8062465", "0.8062465", "0.8062465", "0.8062465", "0.8062465", "0.8062465", "0.8062465", "0.80569947", "0.80545217", "0.80448323", "0.80448323", "0.80...
0.8114118
4
Mutating a chromosome in N genes , at index 0 chromosome itself, at index 1 the makespan
def r3Zb(q7V9: list): a1PO = [YRbF for YRbF in range(len(q7V9[0]))] ypN0 = Acvy(a1PO, 3, replace=False) for YRbF in range(len(q7V9[0])): xPQw[q7V9[0][YRbF]].addJob(kZHf[YRbF]) Pz1c = set() for YRbF in range(len(ypN0)): xPQw[q7V9[0][ypN0[YRbF]]].removeJob(ypN0[YRbF]) dmI8 = Fa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def myCg(q7V9: str, NblP: int=10):\n H3sD = 21 * NblP\n d6pt = qukk(0, H3sD)\n imAk = q7V9[:d6pt]\n if q7V9[d6pt] == '0':\n imAk += '1'\n else:\n imAk += '0'\n imAk += q7V9[d6pt + 1:]\n return imAk", "def v8o1(Lx35):\n yokr = tuKI.randint(0, 5)\n if len(Lx35) <= 1:\n ...
[ "0.6779124", "0.66622233", "0.6610554", "0.65017587", "0.61599565", "0.6133932", "0.60566163", "0.60434973", "0.60009", "0.6000775", "0.5925693", "0.5876229", "0.5836937", "0.58198845", "0.5807447", "0.57886285", "0.5725932", "0.5703654", "0.56643486", "0.5639894", "0.56093",...
0.6633287
2
Sanitizes a string so it could be used as part of a filename. If restricted is set, use a stricter subset of allowed characters. Set is_id if this is not an arbitrary string, but an ID that should be kept if possible.
def WOHH(KCHu, eSH6=False, i7NC=False): def PAwS(hcXw): if eSH6 and hcXw in uUW0: return uUW0[hcXw] if hcXw == '?' or ord(hcXw) < 32 or ord(hcXw) == 127: return '' elif hcXw == '"': return '' if eSH6 else "'" elif hcXw == ':': return '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aSeI(KCHu, U3Fm=True):\n KzJa = ''.join(['ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz', '0123456789'])\n if not U3Fm:\n KzJa += '-_.'\n KCHu = str(KCHu).replace(' ', '_')\n return ''.join([YRbF for YRbF in KCHu if YRbF in KzJa])", "def aSeI(mWFP):\n PFCi = '\\\\/:<>?*|'\n ...
[ "0.6425492", "0.6252466", "0.61610687", "0.61091113", "0.60681653", "0.60572934", "0.59674186", "0.59613883", "0.5878622", "0.5859218", "0.5815915", "0.58132446", "0.58079904", "0.5792112", "0.5777289", "0.5761631", "0.5663602", "0.5633081", "0.56095046", "0.5603764", "0.5588...
0.8018548
1
Returns a list of valid words. Words are strings of lowercase ENglish characters.
def CJFM(): print('Loading word list from file...') nW2s = open(KvIa, 'r') zFiD = nW2s.readline() rw6h = zFiD.split() print(' ', len(rw6h), 'words loaded.') return rw6h
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V22M(YKHO):\n pC3l = '!()-[]{};:\\'\"\\\\,<>./?@#$%^&*_~'\n yv6U = []\n for Nqlg in YKHO.lines:\n V22M = Nqlg.split(' ')\n for GIN8 in V22M:\n V28s = ''\n for Z9rn in GIN8:\n if Z9rn not in pC3l:\n V28s += Z9rn.lower()\n ...
[ "0.7153364", "0.71504265", "0.71280795", "0.7105015", "0.6916777", "0.6874299", "0.68656516", "0.6861505", "0.6817898", "0.6802267", "0.6802267", "0.6792035", "0.6730974", "0.67154634", "0.67011964", "0.66883117", "0.6679545", "0.66668385", "0.6662633", "0.66534257", "0.66439...
0.0
-1
Obtain the index HTML
def d6pt() -> str: return TvZl('index.html', username=AOO4.getuser(), hostname=GGmw.gethostname(), manager_host=gWXY.value.decode() or 'localhost', manager_port_nr=zdkG.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(YKHO):\n return YKHO.html", "def Vn7Z():\n return TvZl('index.html')", "def d6pt(YKHO) -> Z8IP:\n return TvZl('index.jinja2')", "def d6pt(YKHO):\n return TvZl('index.html')", "def d6pt():\n return TvZl('0-index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\...
[ "0.79172456", "0.7795948", "0.7622198", "0.7476992", "0.7458507", "0.7403224", "0.73913115", "0.7388152", "0.7388152", "0.73846173", "0.73846173", "0.7361599", "0.7351011", "0.7344008", "0.7344008", "0.7344008", "0.7344008", "0.7344008", "0.7344008", "0.7344008", "0.7344008",...
0.0
-1
this lets you see whether one privilege is "higher" than another, though it's really meant more for display sorting than determining ability to do something, since possession of a "higher" privilege doesn't necessarily imply the ability to do anything a "lower" privilege can.
def GFDZ(Emd4, Dbzr, h9oN): hEZf = Emd4._ORDERED_PRIV_LIST.index(Dbzr) hHgW = Emd4._ORDERED_PRIV_LIST.index(h9oN) if hEZf == hHgW: return 0 if hEZf < hHgW: return -1 return 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmxi(YKHO, Elif):\n return Elif < YKHO._cmpkey()", "def jmxi(YKHO, Elif):\n return YKHO.abs2phy.__gt__(Elif)", "def jmxi(YKHO, Elif):\n return YKHO.abs2phy.__gt__(Elif)", "def jmxi(YKHO, Elif):\n if Elif.num_of_certified_applications > YKHO.num_of_certified_applications:\n return True\...
[ "0.5892672", "0.58163613", "0.58163613", "0.57768315", "0.5751311", "0.57469845", "0.57055604", "0.5687826", "0.56395966", "0.5633531", "0.56155765", "0.5608583", "0.5601823", "0.5601157", "0.559949", "0.5594099", "0.5594099", "0.5586501", "0.5576287", "0.556291", "0.555138",...
0.6286243
0
only super users can edit other users
def CCWi(Emd4, gcHF, pan_, ehDb): return pan_.user_id == ehDb.user_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FAbd(YKHO, CBIr):\n return CBIr == YKHO.owner", "def vxqt(CBIr):\n return fBaL(CBIr)", "def hO62(YKHO, CBIr):\n return YKHO.author_id == CBIr.id or CBIr.is_staff", "def kFCl(YKHO, CBIr):\n return YKHO.is_public or CBIr == YKHO.owner or CBIr in list(YKHO.auth_users.all())", "def BI3A(CBIr):\...
[ "0.771653", "0.76991606", "0.76565516", "0.75638527", "0.7405994", "0.7217011", "0.7101091", "0.70014864", "0.6955683", "0.6939442", "0.6870975", "0.6830878", "0.6822593", "0.67372197", "0.6705892", "0.66733146", "0.665614", "0.65813035", "0.6574445", "0.64955735", "0.6488079...
0.0
-1
f1(x) = (25 (x1 2)^2 + (x22)^2 + (x31)^2(x44)^2 + (x51)^2)
def beDw(o4D3, ajwV, rNcn, SzKB, H3v3, wS5a): return -1 * (25 * pow(o4D3 - 2, 2) + pow(ajwV - 2, 2) + pow(rNcn - 1, 2) * pow(SzKB - 4, 2) + pow(H3v3 - 1, 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dyub(WKvO):\n return WKvO ** 3 - 2 * WKvO + 2", "def Dyub(WKvO, jzdc, Fg_i):\n return (WKvO ** 42 + 42) / (WKvO - jzdc) + (WKvO ** 6 + 42) / (WKvO - Fg_i)", "def eHNT(nJ9F: float, o4D3: float) -> float:\n return 8 - (nJ9F - 2) ** 2 - (o4D3 - 2) ** 2", "def Dyub(WKvO):\n eHNT = 0.0\n for B9...
[ "0.80238146", "0.7812538", "0.7690267", "0.7358475", "0.72731894", "0.72357255", "0.7161593", "0.7145089", "0.70449936", "0.70319945", "0.70186985", "0.7002549", "0.69389224", "0.6932416", "0.68665487", "0.68607014", "0.68581665", "0.68482184", "0.6801166", "0.6745981", "0.66...
0.69056976
14
A string representation of the parameters used to create this algorithm. It will be incorporated at the end of the string returned by
def _OIP(YKHO) -> str: return YKHO._cache_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0hb(YKHO):\n if YKHO._parameters == list():\n return ''\n HeCJ = '\\n\\nParameters:\\n'\n KLk8 = 0\n for xqoZ in YKHO._parameters:\n KLk8 = max(KLk8, len(xqoZ[0]))\n for FpFC, xqoZ in enumerate(YKHO._parameters):\n if FpFC > 0:\n HeCJ += '\\n'\n HeCJ += ' ...
[ "0.7353868", "0.729785", "0.70484996", "0.7029147", "0.6981808", "0.69213605", "0.68782747", "0.686707", "0.6859016", "0.6858455", "0.6854309", "0.6842913", "0.6836546", "0.68241465", "0.6816255", "0.68121964", "0.6810011", "0.6789935", "0.6779839", "0.6731179", "0.67188954",...
0.0
-1
Calculates the leftmost adjusted x position of this hit box
def LFlW(YKHO) -> float: LTIa = YKHO.get_adjusted_points() fiGP = [AU8u[0] for AU8u in LTIa] return min(fiGP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nIKw(YKHO):\n return YKHO._collision_rect.x + 14", "def YH9x(YKHO):\n return YKHO.rect.x", "def PqXs(YKHO):\n return min(YKHO.x, YKHO.x + YKHO.w)", "def BTm8(YKHO, WKvO=1):\n YKHO.x -= WKvO\n return YKHO.pos(YKHO.x, YKHO.y)", "def Oiy6(YKHO):\n return YKHO.position_x + YKHO.margin_lef...
[ "0.7605652", "0.7562004", "0.7466592", "0.7344871", "0.73445636", "0.7280049", "0.7280049", "0.72243625", "0.7095257", "0.70596707", "0.70426035", "0.6979223", "0.6963511", "0.6930742", "0.68853927", "0.6883056", "0.6869194", "0.6831616", "0.6820282", "0.6525763", "0.65118074...
0.7183301
8
Calculates the rightmost adjusted x position of this hit box
def _tIi(YKHO) -> float: LTIa = YKHO.get_adjusted_points() fiGP = [AU8u[0] for AU8u in LTIa] return max(fiGP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nIKw(YKHO):\n return YKHO._collision_rect.x + 14", "def eqr8(YKHO):\n return max(YKHO.x, YKHO.x + YKHO.w)", "def PqXs(YKHO):\n return min(YKHO.x, YKHO.x + YKHO.w)", "def YH9x(YKHO):\n return YKHO.rect.x", "def YJQD(YKHO, WKvO=1):\n YKHO.x += WKvO\n return YKHO.pos(YKHO.x, YKHO.y)", ...
[ "0.7327979", "0.70541704", "0.7025631", "0.6912925", "0.68352437", "0.6785634", "0.665798", "0.665798", "0.6647112", "0.6579544", "0.6539942", "0.6440918", "0.6421393", "0.6420561", "0.6420561", "0.6418955", "0.64146113", "0.6396952", "0.6377699", "0.63574845", "0.63383967", ...
0.62261117
25
Calculates the topmost adjusted y position of this hit box
def tlxW(YKHO) -> float: LTIa = YKHO.get_adjusted_points() vNbQ = [AU8u[1] for AU8u in LTIa] return max(vNbQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zojy(YKHO):\n return YKHO.position.y + YKHO.size.y + YKHO.bulk", "def cp3Z(YKHO):\n return max(YKHO.y, YKHO.y + YKHO.h)", "def boAb(YKHO):\n return YKHO.rect.y", "def yDCK(YKHO):\n return YKHO._collision_rect.y + 25", "def Z7II(YKHO):\n return YKHO.position_y + YKHO.margin_top", "def L...
[ "0.786082", "0.7558219", "0.74815404", "0.74248594", "0.7343123", "0.71959025", "0.6974631", "0.6904198", "0.68585354", "0.68357044", "0.6811056", "0.6740623", "0.6689451", "0.6687586", "0.66079247", "0.6599081", "0.6599081", "0.6530806", "0.6520209", "0.6494811", "0.6490394"...
0.60721797
38
Calculates the bottommost adjusted y position of this hit box
def es2x(YKHO) -> float: LTIa = YKHO.get_adjusted_points() vNbQ = [AU8u[1] for AU8u in LTIa] return min(vNbQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RBuK(YKHO):\n return YKHO.position.y - YKHO.size.y - YKHO.bulk", "def Nzkc(YKHO):\n return min(YKHO.y, YKHO.y + YKHO.h)", "def yDCK(YKHO):\n return YKHO._collision_rect.y + 25", "def zojy(YKHO):\n return YKHO.position.y + YKHO.size.y + YKHO.bulk", "def boAb(YKHO):\n return YKHO.rect.y", ...
[ "0.79716057", "0.7688332", "0.7463521", "0.74181217", "0.73802996", "0.7328168", "0.7131311", "0.6903236", "0.6853397", "0.6852393", "0.68495566", "0.68495566", "0.68180716", "0.68067265", "0.67231315", "0.6702768", "0.66856945", "0.66573095", "0.66320527", "0.6620935", "0.66...
0.6781623
14
Create a rotatable instance of this hit box. The internal ``PointList`` is transferred directly instead of deepcopied, so care should be taken if using a mutable internal representation.
def s0qC(YKHO, YylR: float=0.0) -> lT_E: return lT_E(YKHO._points, position=YKHO._position, scale=YKHO._scale, angle=YylR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FzJk(YKHO) -> 'Plane':\n return YKHO.__class__(YKHO._normal, YKHO._distance_from_origin)", "def tEIf(YKHO):\n LdiU = list()\n for YRbF in range(len(YKHO._points)):\n WKvO = YKHO._points[YRbF][0]\n LVAh = YKHO._points[YRbF][1]\n kNbz = YKHO._center[0] + YKHO._center[1] - LVAh\n ...
[ "0.5573029", "0.5551235", "0.53923625", "0.53923625", "0.5275601", "0.5178709", "0.51570475", "0.5082338", "0.50811464", "0.5065062", "0.5035872", "0.5031376", "0.4983563", "0.49818492", "0.49745435", "0.4967136", "0.49613687", "0.49301225", "0.49218398", "0.4920458", "0.4906...
0.7346769
0
enum members are equal to their string values
def yGWG(): for jGRS in ('draft', 'published', 'archived'): mS46 = M7sY(jGRS) yield (bWeC.assert_equal, jGRS, mS46) if QMSQ is not None: yield (bWeC.assert_equal, QMSQ(jGRS), mS46)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qvOF(YKHO, uGHt, Fvlg):\n YKHO.assertEqual(uGHt.name, Fvlg.name)\n YKHO.assertEqual(uGHt.description, Fvlg.description)\n YKHO.assertEqual(uGHt.func_descriptor, Fvlg.func_descriptor)", "def qmuu(YKHO):\n pass", "def njrT(YKHO):\n mWFP = 'george'\n kgDL = [('abc', 3), ('def', 5), ('ghi', 7...
[ "0.66439307", "0.6566932", "0.6452141", "0.644056", "0.62484866", "0.62467456", "0.618298", "0.6121253", "0.6105709", "0.606691", "0.6062442", "0.60566014", "0.6045054", "0.6045031", "0.6025295", "0.59924686", "0.5943859", "0.5922348", "0.5886979", "0.5878718", "0.5809724", ...
0.6203614
6
Ordered enum members may be inequalitycompared to other enum members
def AgYP(): for X2PW, Maem in ((M7sY.draft, [bWeC.assert_less]), (M7sY.published, [bWeC.assert_less_equal, bWeC.assert_greater_equal]), (M7sY.archived, [bWeC.assert_greater])): for seET in Maem: yield (seET, X2PW, M7sY.published)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dXec():\n\n class RedundantStatus(X2DN):\n S3dM = 'draft'\n yKGp = 'draft'\n xBxz = 'published'\n Gbcw = 'archived'\n YG79 = 'draft, unpublished, published, archived'\n yield (bWeC.eq_, QbdS.draft.ordinal, QbdS.unpublished.ordinal)\n yield (bWeC.eq_, QbdS.draft, QbdS...
[ "0.7274192", "0.72474146", "0.67388976", "0.65765446", "0.65139794", "0.6399444", "0.63178045", "0.6311401", "0.61603653", "0.6113865", "0.6051778", "0.60478383", "0.6042003", "0.5979132", "0.5976072", "0.5973447", "0.59471273", "0.5937109", "0.58287144", "0.5805283", "0.5797...
0.7080131
2
Sets the total of this WorkflowExecutionStatisticReport.
def wjRY(YKHO, wjRY): YKHO._total = wjRY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wjRY(YKHO, wjRY):\n if YKHO.local_vars_configuration.client_side_validation and wjRY is None:\n raise ValueError('Invalid value for `total`, must not be `None`')\n YKHO._total = wjRY", "def wjRY(YKHO, wjRY: float):\n if wjRY is None:\n raise ValueError('Invalid value for `total`, must ...
[ "0.67515725", "0.6622718", "0.65249896", "0.63994133", "0.6364935", "0.63348025", "0.62613404", "0.6218069", "0.6074108", "0.6056513", "0.60248977", "0.6000132", "0.5973204", "0.5926201", "0.58709884", "0.58374655", "0.5834444", "0.58298534", "0.5828621", "0.58272046", "0.579...
0.71200514
7
Sets the last_executed of this WorkflowExecutionStatisticReport.
def X3LK(YKHO, X3LK): YKHO._last_executed = X3LK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mn17(YKHO, mn17):\n YKHO._last_updated = mn17", "def mn17(YKHO, mn17):\n YKHO._last_updated = mn17", "def mn17(YKHO, mn17):\n YKHO._last_updated = mn17", "def mn17(YKHO, mn17):\n YKHO._last_updated = mn17", "def mn17(YKHO, mn17: str):\n YKHO._last_updated = mn17", "def bQcq(YKHO, bQcq)...
[ "0.5983626", "0.5983626", "0.5983626", "0.5983626", "0.59450394", "0.5855105", "0.5755604", "0.56860083", "0.5578798", "0.55777425", "0.5558356", "0.5523428", "0.5496051", "0.5484417", "0.54533756", "0.54533756", "0.54142714", "0.53915215", "0.5369135", "0.5348507", "0.532085...
0.8134434
0
Sets the completed of this WorkflowExecutionStatisticReport.
def g9mP(YKHO, g9mP): YKHO._completed = g9mP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rDN6(YKHO, Aofo: str=None):\n YKHO._has_run = True\n YKHO.exp_metadata.result = Aofo\n YKHO.exp_metadata.status = A7MX.COMPLETED\n YKHO._finish_exp_run()", "def eKEE(YKHO, r2Qz):\n YKHO.status = 'completed'\n YKHO.modification_time = kyrj()\n YKHO.result = {'content': r2Qz.result, 'versi...
[ "0.73184514", "0.63476485", "0.6258236", "0.60944146", "0.6087708", "0.60695493", "0.6068729", "0.5939304", "0.59199256", "0.5898214", "0.58947057", "0.58938366", "0.5875933", "0.5793653", "0.576968", "0.57680684", "0.5767285", "0.57632077", "0.57570904", "0.5752571", "0.5741...
0.7407728
2
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, rkvd): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, rkvd): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Get the current value of this ValueTracker.
def Zmkp(YKHO) -> float: return YKHO.points[0, 0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JkD2(YKHO):\n assert YKHO.is_started()\n return YKHO.currValue", "def izFS(YKHO):\n return YKHO.current_counter.value", "def Zmkp(YKHO):\n return YKHO._value", "def Zmkp(YKHO):\n return YKHO._value", "def Zmkp(YKHO):\n return YKHO._value", "def PjLF(YKHO):\n return YKHO.__current...
[ "0.84498435", "0.83609134", "0.8021918", "0.8021918", "0.8021918", "0.8012059", "0.8011915", "0.7994619", "0.79860646", "0.79844034", "0.7982696", "0.7974252", "0.7974252", "0.7956663", "0.7956663", "0.7956663", "0.7938293", "0.79051846", "0.7893386", "0.7892001", "0.7892001"...
0.0
-1
Set the value of this value tracker to the current value modulo ``d_value``.
def crBd(YKHO, nwXE: float): YKHO.set_value(YKHO.get_value() % nwXE) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nulo(YKHO, nwXE: float):\n YKHO.set_value(YKHO.get_value() + nwXE)\n return YKHO", "def QdZT(YKHO, oYbL):\n YKHO.val[:] += oYbL[:]\n return", "def E5Sh(YKHO, nwXE: float):\n YKHO.set_value(YKHO.get_value() / nwXE)\n return YKHO", "def nxJm(YKHO, nwXE: float):\n YKHO.set_value(YKHO.ge...
[ "0.6974386", "0.6383232", "0.62796813", "0.62210476", "0.61323863", "0.5939189", "0.5939189", "0.5923567", "0.58471316", "0.5816539", "0.5800461", "0.5800116", "0.5767023", "0.57560366", "0.5723446", "0.5695607", "0.56850725", "0.5669766", "0.564745", "0.564745", "0.5641324",...
0.82289565
0
Return True if the NFFG contains no Node.
def FBfn(YKHO): return len(YKHO.network) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.__nodes) == 0", "def FBfn(YKHO):\n if YKHO.root == None:\n return True\n return False", "def FBfn(YKHO):\n return YKHO.__root == None", "def FBfn(YKHO):\n return YKHO.root is None", "def FBfn(YKHO):\n return YKHO.root is None", "def FBfn(YKHO) ->...
[ "0.8303268", "0.78261316", "0.7736217", "0.7646781", "0.7646781", "0.76317334", "0.76298916", "0.7497835", "0.7492709", "0.7482308", "0.7482308", "0.7433599", "0.73641205", "0.7349632", "0.7322528", "0.7322177", "0.73121303", "0.7296272", "0.7274654", "0.7273803", "0.72613555...
0.7370883
12
Return True if the NFFG is an infrastructure view with Infrastructure nodes.
def nmzL(YKHO): return sum([1 for YRbF in YKHO.infras]) != 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkwy(YKHO, iRhX: URIRef) -> bool:\n return iRhX in hoEP or bool(set(YKHO.graph.transitive_objects(iRhX, iTBw.subClassOf)).intersection(hoEP))", "def Uuyy(gVJc, nPrm):\n if gVJc == 'way[\"highway\"]':\n if nPrm['type'] == 'way' and 'tags' in nPrm and ('highway' in nPrm['tags']):\n retu...
[ "0.6539021", "0.65380067", "0.61785614", "0.5650283", "0.55871004", "0.5580826", "0.5513682", "0.55113745", "0.5456774", "0.5449252", "0.5418488", "0.53829515", "0.5347815", "0.52714795", "0.5265002", "0.5257124", "0.5254371", "0.5245468", "0.52417386", "0.5221561", "0.521703...
0.65583783
0
Return True if the topology does not contain any NF or flowrules need to install or remap.
def ao1M(YKHO): if len([Ty9i for Ty9i in YKHO.nfs]) == 0: Q3ta = sum([sum((1 for aF0O in YRbF.ports.flowrules)) for YRbF in YKHO.infras]) if Q3ta == 0: sBOp = len([_sef for _sef in YKHO.sg_hops]) if sBOp == 0: ZQks = len([_sef for _sef in YKHO.reqs]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sCxZ(YKHO):\n return YKHO.mapping1 is not None or YKHO.mapping2 is not None", "def Cg1A(YKHO, _QYm: 'int', TNBq: 'int') -> 'bool':\n return pZ_q.beamformer_sptr_check_topology(YKHO, _QYm, TNBq)", "def eSRS(YKHO) -> bool:\n for yhyn in YKHO.__ops:\n khtY = YWvJ(uS0y, YKHO.__ops[yhyn])\n ...
[ "0.60574776", "0.598162", "0.5918374", "0.5905532", "0.5818316", "0.58074284", "0.5774021", "0.57633144", "0.5722792", "0.5719835", "0.5710215", "0.5689669", "0.5687855", "0.56869996", "0.56773084", "0.56760776", "0.5673487", "0.5671983", "0.56698", "0.5642993", "0.5639439", ...
0.631738
0
Return true if there is a Static outbound or inbound EdgeLink, false if there is a Dynamic outbound or inbound link, throws exception if borth, or warning if multiple of the same type.
def oN5S(Emd4, yvY1, XP5J): _cvl = False M7VS = False for SqXy, aYtU in ((yvY1.out_edges_iter, 'src'), (yvY1.in_edges_iter, 'dst')): for YRbF, r845, G1Hx, QZnA in SqXy([XP5J.node.id], data=True, keys=True): MFCc = getattr(QZnA, aYtU) if MFCc.id == XP5J.id: if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xSOU(YKHO, f6Fj):\n for Qovt in f6Fj['relationship-list']['relationship']:\n if Qovt['related-to'] == 'ext-aai-network':\n return True\n return False", "def o5fC(YKHO):\n if not YKHO.sources:\n raise ValueError('No sources available')\n if not YKHO.receivers:\n rai...
[ "0.62145", "0.60337317", "0.60157526", "0.5975105", "0.5946777", "0.5906914", "0.5846751", "0.58444256", "0.58435833", "0.5783474", "0.5763917", "0.57411116", "0.57314605", "0.5711576", "0.5703112", "0.56962645", "0.56906474", "0.5684504", "0.5678857", "0.5668293", "0.5659386...
0.63736135
0
Returns the top of the stack, but without popping it out of the stack.
def tlxW(YKHO): assert not YKHO.empty() return YKHO._s[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tlxW(YKHO):\n if YKHO.stack == []:\n return None\n return YKHO.stack[-1]", "def tlxW(YKHO):\n if YKHO.stack:\n return YKHO.stack[-1]\n raise ValueError", "def tlxW(E5BI):\n if N0mo(E5BI):\n raise IndexError('Stack is empty!')\n else:\n return E5BI.top.value", ...
[ "0.85154396", "0.8331587", "0.8208456", "0.8152517", "0.8106501", "0.7975088", "0.7898652", "0.7888846", "0.7878758", "0.7875383", "0.7873644", "0.7873644", "0.7840939", "0.7832265", "0.7814107", "0.7774041", "0.77234983", "0.7645507", "0.75738347", "0.75665087", "0.7552239",...
0.686399
60
Checks to see if the stack is empty or not.
def lsmZ(YKHO): return YKHO.__len__() == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_stack) == 0", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return len(YKHO.stack) == 0", "def FBfn(YKHO):\n if YKHO.num_items ==...
[ "0.9032904", "0.89708567", "0.88101727", "0.87722486", "0.87722486", "0.8716798", "0.8694265", "0.8669593", "0.86669445", "0.8640886", "0.8634666", "0.8578355", "0.8573562", "0.8558491", "0.84686714", "0.84630495", "0.8459857", "0.83910096", "0.83910096", "0.8331577", "0.8329...
0.0
-1
to_json_string Writes a string to a text file (UTF8).
def IZ3T(UxL2): return qQXR.dumps(UxL2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IxRr(YKHO, vIwR):\n B2fa = {'cls': sFr4, 'indent': 1, 'sort_keys': True, 'separators': (',', ': ')}\n return Ur3m(qQXR.dumps(vIwR, **B2fa), 'utf-8')", "def jCFJ(nHI3, PcZo):\n _CS_ = []\n with open(nHI3) as KAfx:\n nPrm = qQXR.load(KAfx)\n TZ9_ = open(PcZo, 'w')\n for l5Ny in nPrm:\n...
[ "0.71411014", "0.7069346", "0.7056892", "0.6832394", "0.67765903", "0.66921085", "0.66912115", "0.65841866", "0.6509333", "0.6468959", "0.64109415", "0.63577974", "0.6278687", "0.62580717", "0.62456805", "0.623683", "0.6227749", "0.6217299", "0.62164503", "0.61842984", "0.617...
0.0
-1
returns true if the string contains all the digits 19
def ozon(KCHu): i9Rn = 0 GW4T = ord('0') for Z9rn in [Z9rn for Z9rn in KCHu if Z9rn.isdigit()]: i9Rn |= 1 << ord(Z9rn) - GW4T return i9Rn == (1 << 10) - 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vqm_(YKHO, vIwR):\n return bool(YKHO.compiledDigitRegex.search(vIwR))", "def OxSy(YKHO, GIN8):\n return ZbWC.match('^\\\\d+$', GIN8) != None", "def fwdt(l5Ny):\n return any((True for exwG in Ni9Y(10) if str(exwG) in l5Ny))", "def iNvx(FGW3):\n if FGW3[:3] == '140':\n return True\n r...
[ "0.70764965", "0.67739165", "0.6587947", "0.6553335", "0.646963", "0.63680243", "0.63437355", "0.6293572", "0.62917197", "0.6278777", "0.62578434", "0.6245347", "0.61682874", "0.6148781", "0.61386025", "0.61160433", "0.61004794", "0.60975385", "0.60960126", "0.6069966", "0.60...
0.55662423
58
load a yaml file into the application's configuration dictionary.
def LgIG(Ux0P): QmMM['config'] = jnN0(Ux0P)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f9B0(Emd4, nUeQ=None):\n if nUeQ is None:\n nUeQ = f'{Elhn.base_path}cfg.yml'\n try:\n with open(nUeQ, 'r') as eHNT:\n GPtr = eJb6.load(eHNT, Loader=eJb6.FullLoader)\n _Fei.__dict__ = GPtr\n return _Fei\n except FileNotFoundError:\n print(\"Config file doe...
[ "0.7893102", "0.7792185", "0.77210414", "0.7720834", "0.7653627", "0.7557784", "0.75298995", "0.75252074", "0.74886584", "0.74620175", "0.7450017", "0.74446195", "0.7442429", "0.74394524", "0.7407112", "0.73927665", "0.7378457", "0.736378", "0.73598486", "0.73528266", "0.7346...
0.7764571
2
Change the logging level.
def ai_s(hOrn): nfqd.set_level(G9jH.getLogger('plysp'), hOrn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ABDL(YKHO, wiAm):\n YKHO.logger.setLevel(wiAm)", "def f8MA(YKHO, ABDL):\n if str(ABDL) == '1':\n YKHO.logging_level = G9jH.DEBUG\n elif str(ABDL) == '2':\n YKHO.logging_level = G9jH.INFO\n elif str(ABDL) == '3':\n YKHO.logging_level = G9jH.WARNING\n elif str(ABDL) == '4':\...
[ "0.7940263", "0.7911231", "0.7864149", "0.78448635", "0.7839782", "0.7839544", "0.782832", "0.77901715", "0.7663805", "0.76436836", "0.76214963", "0.75616926", "0.75098425", "0.74216264", "0.7381827", "0.73232466", "0.72850716", "0.7201122", "0.7179793", "0.71656823", "0.7165...
0.71043026
25
Return the instance id
def Pl65(YKHO): return YKHO.instance_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')", "def o_gm(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'instance_id')", "def o_gm(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'instance_id')", "def o_gm(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'instance_id')", ...
[ "0.9116741", "0.88717157", "0.88717157", "0.88717157", "0.886873", "0.88266855", "0.88266855", "0.88266855", "0.88266855", "0.88266855", "0.88266855", "0.8816027", "0.8816027", "0.8816027", "0.8701977", "0.8701977", "0.8701977", "0.8701977", "0.8701977", "0.8701977", "0.85580...
0.90589434
1
Add the binary missing indicators.
def SZFh(YKHO, EcVT: pd.DataFrame) -> rLdf.DataFrame: EcVT = YKHO._transform(EcVT) tN_v = [f'{RDhP}_na' for RDhP in YKHO.variables_] EcVT[tN_v] = EcVT[YKHO.variables_].isna().astype(int) return EcVT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xxMC(YKHO, DeuS):\n YKHO.available_balls += DeuS\n YKHO.balls += DeuS", "def okG0():\n WcJ2(name='DUMP1', weight=10.0)\n WcJ2(name='DUMP2', weight=240.0)", "def v3uw(YKHO):\n v3uw = dict()\n for LNo8, zr3f in YKHO._data_list.items():\n VLdb = YKHO._is_pulled(LNo8)\n if YKHO....
[ "0.5409568", "0.5296511", "0.5278374", "0.5277077", "0.5267183", "0.51989126", "0.51102704", "0.509788", "0.5016097", "0.500567", "0.49672735", "0.49629593", "0.496245", "0.49399298", "0.4936408", "0.49318472", "0.4895782", "0.48751754", "0.48488134", "0.4842613", "0.48366237...
0.0
-1
gets the cached value of this item.
def BWXx(YKHO): return YKHO._get_cached_value(YKHO._value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oqgq(YKHO, BWXx):\n return BWXx", "def NMoC(YKHO, H5ew):\n return YKHO.cache_data.get(H5ew)", "def NMoC(YKHO, H5ew):\n if H5ew in YKHO.cache:\n BWXx = YKHO.cache[H5ew].value\n YKHO._re_enqueue(YKHO.cache[H5ew])\n return BWXx\n else:\n return -1", "def NMoC(YKHO, H5...
[ "0.80452806", "0.78033125", "0.77467656", "0.75549805", "0.75232244", "0.75148743", "0.7514284", "0.7473147", "0.7465596", "0.74205315", "0.73983943", "0.73745465", "0.73745465", "0.736356", "0.72755563", "0.7251704", "0.7203161", "0.71617657", "0.713911", "0.71266204", "0.69...
0.75039876
7
gets the key of this item.
def H5ew(YKHO): return YKHO._key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mexE(YKHO, ZfUD):\n return ZfUD[0]", "def mexE(YKHO):\n return YKHO.key", "def mexE(YKHO):\n return YKHO.key", "def mexE(YKHO) -> int:\n return YKHO.key", "def mexE(YKHO) -> int:\n return YKHO.__key", "def mexE(YKHO):\n return YKHO._key", "def mexE(YKHO):\n return YKHO._determi...
[ "0.84701264", "0.8398488", "0.8398488", "0.82440716", "0.81917036", "0.81179094", "0.80839694", "0.80385804", "0.8029655", "0.80056864", "0.8002845", "0.797569", "0.79645115", "0.79645115", "0.79645115", "0.79645115", "0.79597783", "0.79535323", "0.7883551", "0.78755856", "0....
0.7776284
21
gets the expire time value of this item in milliseconds.
def pg_u(YKHO): return YKHO._expire
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e2iN(YKHO) -> str:\n return qe4Y.get(YKHO, 'expire_time')", "def e2iN(YKHO) -> str:\n return qe4Y.get(YKHO, 'expire_time')", "def e2iN(YKHO) -> str:\n return qe4Y.get(YKHO, 'expire_time')", "def e2iN(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'expire_time')", "def e2iN(YKHO) -> qe4Y...
[ "0.82294023", "0.82294023", "0.82294023", "0.79001206", "0.79001206", "0.7843518", "0.77198654", "0.7698794", "0.76325047", "0.76325047", "0.75609314", "0.738715", "0.73569995", "0.72367406", "0.7130521", "0.7073537", "0.70327306", "0.7028027", "0.6950745", "0.6914583", "0.69...
0.7406235
11
Makes the names of phase measurement and attachments unique. This function will make the names of measurements and attachments unique. It modifies the input all_phases.
def MnxT(Fw7A): z_x5 = ZwJN(Hs6x.chain.from_iterable((JT9N.measurements.keys() for JT9N in Fw7A if JT9N.measurements))) pYrO = list(Hs6x.chain.from_iterable((JT9N.attachments.keys() for JT9N in Fw7A))) pYrO.extend(Hs6x.chain.from_iterable((['multidim_' + mWFP for mWFP, oy3e in JT9N.measurements.items() if o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lfOv(P1dX):\n BWz1 = {}\n for jzdc in P1dX:\n Z9rn = BWz1.get(jzdc['name'], 0) + 1\n BWz1[jzdc['name']] = Z9rn\n if Z9rn > 1:\n jzdc['name'] += '_' + str(Z9rn - 1)\n rmZ9 = set((G1Hx for G1Hx, Ty9i in BWz1.items() if Ty9i > 1))\n for jzdc in P1dX:\n if jzdc['n...
[ "0.64196336", "0.5934985", "0.554763", "0.55056745", "0.53984594", "0.5367987", "0.5249584", "0.52124804", "0.50584024", "0.49809545", "0.49367014", "0.49135208", "0.4910912", "0.4910722", "0.48929605", "0.48702845", "0.48270914", "0.47974837", "0.47963843", "0.47960886", "0....
0.8443444
0
Get the couch database.
def GGod(): return FfT0(gCuF.COUCH_DATABASE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GGod(YKHO):\n YKHO.logger.info('in get_db()')\n try:\n return YKHO.client[YKHO.db_name]\n except Exception as e:\n YKHO.logger.error(f'Error occurred while getting client {tTpl}')", "def u_OD(YKHO):\n return YKHO.database", "def u_OD(YKHO):\n if YKHO._database is None:\n ...
[ "0.75996315", "0.7541116", "0.7478221", "0.7469355", "0.7409623", "0.74087703", "0.7375324", "0.73654824", "0.7352712", "0.7329053", "0.7314676", "0.73024815", "0.7302336", "0.72157574", "0.72157574", "0.7205381", "0.71966976", "0.71935546", "0.71464163", "0.71464163", "0.714...
0.7628401
0
Define python package module root path and absolute package root path.
def tk5Y(YKHO, VAis): IDmA = tyeH(YKHO.__module__) fJcW = QZ1g(VAis) YKHO.package.module_root = YKHO.__module__[0:YKHO.__module__.find(fJcW) + len(fJcW)] YDYG = vU11(YKHO.package.module_root) YKHO.package.abs_root = IDmA.__file__[0:IDmA.__file__.find(YDYG) + len(YDYG)] return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cYu8(YKHO):\n return '.'", "def mSqg(mWFP, LZlf):\n muwo = {'lmod': '$spack/share/spack/lmod', 'tcl': '$spack/share/spack/modules'}\n YPJ1 = pBmG.config.get('modules:%s:roots' % LZlf, {})\n YPJ1 = pBmG.config.merge_yaml(muwo, YPJ1)\n pmON = YPJ1.get(mWFP, Hy7s.path.join(pBmG.paths.share_path, ...
[ "0.7345929", "0.71355265", "0.68328315", "0.6809901", "0.67503464", "0.6747813", "0.6747354", "0.6738957", "0.67311877", "0.6711822", "0.6708144", "0.6708016", "0.6695172", "0.66699547", "0.6660481", "0.6640726", "0.66393757", "0.65918744", "0.6585257", "0.6536816", "0.649664...
0.6713428
9
check that the 6 arrays are the expected shape
def ZR4c(YKHO): print('Testing that get_region_data return values are the correct shape') QOe9 = mjrk(YKHO.wmo_boxes, YKHO.float_name, YKHO.config, YKHO.index, YKHO.pres) YKHO.assertTrue(QOe9[0].shape == QOe9[1].shape == QOe9[2].shape, 'salinity, pressure, and potential temperature arrays should be same sha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FpGg(XoB7):\n Vfdq = [YRbF.shape for YRbF in XoB7]\n cIT_ = oyIN.all(oyIN.array([Vfdq[0] == YRbF for YRbF in Vfdq[1:]]))\n XObx = 'Arrays arr not of the same shape...'\n if not cIT_:\n raise ValueError('{}\\n{}'.format(XObx, Vfdq))", "def NOne(YKHO):\n [o4D3, si3g, j93S, IZ6w] = YKHO.da...
[ "0.751339", "0.7260294", "0.72292393", "0.7193923", "0.7160661", "0.7072554", "0.70599127", "0.70169044", "0.7013178", "0.69916576", "0.69439137", "0.69074905", "0.68364245", "0.6777319", "0.6769668", "0.6756369", "0.67492056", "0.6743319", "0.6733503", "0.67289037", "0.66906...
0.6370879
55
Export merged data to CSV format.
def VqRh(rEpf, Hj_N, Te0u): print('writing merged data to CSV file') ZLJ_ = Hj_N.columns Te0u.writerow((iVRZ.name for iVRZ in ZLJ_)) for ZfUD in rEpf: WJqi = {JchQ['nutrient']['id']: JchQ['amount'] for JchQ in ZfUD['foodNutrients']} Te0u.writerow((BuNt(iVRZ, ZfUD, WJqi, float_format=Hj_N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QIvx(YKHO, JZXy, pan_):\n YKHO.log.info(f'Dumping data into {pan_}')\n JZXy.to_csv(pan_, index=False)", "def ODdy(WKvO, LVAh, iJhz):\n with open(iJhz, 'w', newline='') as tTpl:\n WJI9 = m6_J.writer(tTpl, delimiter=',')\n for YRbF in range(0, len(WKvO)):\n WJI9.writerow([WKvO...
[ "0.73520005", "0.71937376", "0.69667894", "0.6924836", "0.68453074", "0.6814207", "0.68059725", "0.6789022", "0.67888296", "0.6773372", "0.67715263", "0.67671627", "0.673209", "0.6724741", "0.662498", "0.6570266", "0.65510094", "0.6544339", "0.6511611", "0.65081745", "0.65047...
0.79536265
0
Setup editing data using a regular cohort setup Setup a WikiCohort that will span to all users that we have in the project.
def FCbF(YKHO): sKpD.setUp(YKHO) YKHO.common_cohort_4() YKHO.create_wiki_cohort() YKHO.cohort_service = ZbvE() YKHO.wiki_cohort = YKHO.cohort_service.get(YKHO.session, YKHO.owner_user_id, by_id=YKHO.basic_wiki_cohort.id) YKHO.user_ids = [yzQ0.mediawiki_userid for yzQ0 in YKHO.cohort_service.get_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n super().setUp()\n YKHO.manual_cohort_name = 'ManualCohort1'\n YKHO.auto_cohort_name = 'AutoCohort1'\n YKHO.course_fixture = DPg3(**YKHO.course_info).install()\n YKHO.setup_cohort_config(YKHO.course_fixture, auto_cohort_groups=[YKHO.auto_cohort_name])\n YKHO.manual_cohort_id = YK...
[ "0.6554218", "0.60419846", "0.58714294", "0.5524126", "0.5519026", "0.54560786", "0.5439724", "0.5432877", "0.5373439", "0.5373439", "0.53181887", "0.5308331", "0.5270714", "0.5266665", "0.52658254", "0.5234584", "0.517833", "0.5174957", "0.5163751", "0.5135936", "0.51259047"...
0.7161842
0
Unmute a user that is already muted.
async def unmute(YKHO, OaeV, CBIr: discord.Member=None): try: if not CBIr: return await OaeV.send(f'> **<@{OaeV.author.id}>, Please specify a user to unmute.**') if CBIr.id == OaeV.author.id: return await OaeV.send(f'> **<@{OaeV.author.id}>, You cannot unmute yourself.**') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def unmute(YKHO, OaeV, CBIr: Redeemed):\n if mS46 == None or mS46 == OaeV.message.author:\n await OaeV.send('You cannot unmute yourself!')\n return\n await CBIr.remove_roles(ZOrr.utils.get(OaeV.guild.roles, name='Muted'))\n await OaeV.send(f'{CBIr.mention} has been unmuted')", "def m...
[ "0.8070011", "0.7602932", "0.73917466", "0.70347655", "0.7000994", "0.6717318", "0.65731317", "0.6399834", "0.62517285", "0.6171112", "0.6139472", "0.611902", "0.61041653", "0.6092649", "0.6031676", "0.59940195", "0.59929574", "0.5984859", "0.5939585", "0.591522", "0.5912813"...
0.77826923
1
Actually does the parsing, converting a refined row to a list of tuples
def fTv7(rdlD): lkz_ = [] def L3mB(): nonlocal events_duration if len(lkz_) == 0: lkz_.append((15, 'Vuota')) return LiCS, u_zo = lkz_[-1] if u_zo == 'Vuota': lkz_[-1] = (LiCS + 15, u_zo) else: lkz_.append((15, 'Vuota')) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J14V(YKHO, rdlD):\n YRbF = 0\n nPrm = []\n for bTKY in rdlD['f']:\n nPrm.append(YKHO.Convert(bTKY['v'], YKHO.schema[YRbF]))\n YRbF += 1\n return tuple(nPrm)", "def oqeS(YKHO, zFiD):\n UqER = zFiD[1:-1].split(',\\t')\n if len(UqER) == len(YKHO.description):\n return tupl...
[ "0.7244563", "0.7164698", "0.6565908", "0.64096016", "0.6353323", "0.6277993", "0.62029463", "0.6182385", "0.6124941", "0.6047554", "0.6004721", "0.5999602", "0.59870124", "0.59848386", "0.595571", "0.5932366", "0.5898904", "0.5872047", "0.5818242", "0.58170927", "0.57774055"...
0.0
-1
Return a heprecord for a Master's thesis (should be None as we don't want them).
def feZE(): tPnp = IXEf.PhenixSpider() TBsA = '\n <ul>\n <li><b>M.Sc. Author</b>:\n "This is an Master\'s thesis, not a PhD", &nbsp; M.Sc. thesis at Master Science University, 2016,&nbsp;\n <br><br>\n </ul>\n ' geh0 = I2gI(TBsA) Q6kx = IyQV(tPnp, '//li', text=TBsA) return tPnp.pars...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rH_c(YKHO):\n return YKHO._arm.master_id", "def kKL7(YKHO):\n if 'seriesMasterId' in YKHO._prop_dict:\n return YKHO._prop_dict['seriesMasterId']\n else:\n return None", "def H1kP(YKHO):\n return yDDV()", "def LDIG(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'mast...
[ "0.5528087", "0.5513417", "0.54352945", "0.5400845", "0.5305067", "0.5171653", "0.5159602", "0.51450783", "0.51450783", "0.5144749", "0.5140726", "0.51137555", "0.5103103", "0.5009979", "0.5008616", "0.5003694", "0.50006515", "0.49668756", "0.49632555", "0.49581948", "0.49393...
0.48076546
30
Calculate the distance between a point and a rectangle, very general can be used many ways
def ThPM(AU8u, ETu_): Jw7X = max(ETu_[0] - AU8u.x, 0, AU8u.x - ETu_[1]) eUWA = max(ETu_[2] - AU8u.y, 0, AU8u.y - ETu_[3]) return (Jw7X ** 2 + eUWA ** 2) ** 0.5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GHFn(o4D3, si3g, qK9Y, UdEN, ajwV, skBL, BWvo, vEcA):\n LFlW = BWvo < o4D3\n _tIi = qK9Y < ajwV\n es2x = vEcA < si3g\n tlxW = UdEN < skBL\n if tlxW and LFlW:\n return Ayfi(o4D3, UdEN, BWvo, skBL)\n elif LFlW and es2x:\n return Ayfi(o4D3, si3g, BWvo, vEcA)\n elif es2x and _tIi...
[ "0.7808502", "0.74146366", "0.6837201", "0.6827407", "0.67619324", "0.67551535", "0.6719458", "0.66931796", "0.6663596", "0.660348", "0.65696186", "0.6544622", "0.6521946", "0.6471103", "0.6463308", "0.6463308", "0.6463308", "0.6463308", "0.6453824", "0.64477515", "0.6419617"...
0.0
-1
Applies the bridge layer to the final encoder hidden states. The input to the ``forward`` is expected to have already been reshaped for initializing the decoder.
def KVH6(YKHO, Zode: Union[torch.Tensor, Tuple[torch.Tensor, ...]]) -> uLKX[ht2j.Tensor, AzJI[ht2j.Tensor, ...]]: if not isinstance(Zode, tuple): Zode = (Zode,) Ep8u, wjbX = Zode[0].size() if YKHO.share_bidirectional_parameters: Zode = tuple((MKlR.view(Ep8u, 2, -1) for MKlR in Zode)) hle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, Lb6x, r5GU, uYRw, xZIv, pU63, Zode=None, wzH_=None):\n if wzH_ is None:\n wzH_ = Lb6x.size(1)\n if Zode is None:\n Zode = YKHO.init_hidden(uYRw)\n CJhb = YKHO.attention.key_layer(r5GU)\n JfYO = []\n v1aI = []\n for YRbF in range(wzH_):\n BQas = Lb6x[:, YRbF].un...
[ "0.63221574", "0.6157343", "0.6141186", "0.6141186", "0.6122082", "0.6069905", "0.5950378", "0.5930603", "0.584369", "0.58335346", "0.58134943", "0.5795488", "0.57759076", "0.5774589", "0.577322", "0.5769746", "0.57366055", "0.5735398", "0.5673114", "0.5650568", "0.5642992", ...
0.6893193
0
Cook up a mock for the Response with specific arguments.
def geh0(): def _gRY(_p9N, dCz_): """Set up response with the given parameters. :param ret_code: Return code for the response :param ret_value: Return value for the response :return: Mocked Responce object with the given parameters """ with TMAJ.patch('req...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTa6():\n\n class MockResponse:\n\n def FIMM(YKHO, RKft, Pst5):\n YKHO.content = RKft\n YKHO.status_code = Pst5\n\n def hGN5(YKHO):\n return YKHO.content\n return HiyZ", "def nrOS(YKHO, bD7m, **B2fa):\n YKHO.response = HiyZ()\n YKHO.response.url = bD...
[ "0.69786805", "0.6805909", "0.66405565", "0.6631657", "0.6606776", "0.6583181", "0.6576626", "0.6537886", "0.6537886", "0.64663863", "0.6438763", "0.6434038", "0.6428945", "0.6370893", "0.63572294", "0.6318053", "0.6259043", "0.62482667", "0.6245254", "0.6188998", "0.6166345"...
0.7046971
0
Prepare instance of the RPClient for testing.
def Gfso(): x0hE = H4s0('http://endpoint', 'project', 'api_key') x0hE.session = TMAJ.Mock() return x0hE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pntg(YKHO):\n YKHO.client = i9zE()", "def FCbF(YKHO):\n YKHO.client = nNXP.Client(GPtr.get_config(), nNXP.json_handler)", "def tTS8(YKHO):\n YKHO.client = TMAJ.Client(client_class=NYXC.GetClientClass('edge', 'v1alpha1'))\n YKHO.client.Mock()\n YKHO.addCleanup(YKHO.client.Unmock)\n YKHO.me...
[ "0.7082959", "0.68216586", "0.6733405", "0.67294174", "0.67294174", "0.67294174", "0.67294174", "0.66008776", "0.65996695", "0.6582165", "0.6566996", "0.6522097", "0.6515163", "0.6515163", "0.6515163", "0.6515163", "0.6515163", "0.65132797", "0.65132797", "0.64890045", "0.645...
0.7576592
0
Initialize the battery's attributes.
def FIMM(YKHO, n8ok=75): YKHO.battery_size = n8ok
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, n8ok=40):\n YKHO.battery_size = n8ok", "def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok", "def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok", "def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok", "def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok", "def FIMM(YKHO, ...
[ "0.7382995", "0.73729676", "0.73598105", "0.73598105", "0.73598105", "0.7318721", "0.73161864", "0.7284151", "0.72274315", "0.7206751", "0.7195436", "0.69978577", "0.69625956", "0.69494915", "0.6906689", "0.6906689", "0.6906689", "0.6906689", "0.6906689", "0.6906689", "0.6626...
0.73419243
5
Initialize attributes of the paren class. Then initialize attributes specific to an electric car
def FIMM(YKHO, PEX4, C3ST, lO87): super().__init__(PEX4, C3ST, lO87) YKHO.battery = BqDA()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, PEX4, C3ST, lO87):\n super().__init__(PEX4, C3ST, lO87)\n YKHO.battery = BqDA()", "def FIMM(YKHO):\n YKHO.name = '{0} {1}'.format(Acvy(miOn), Acvy(YKHO.__class__.planets))\n YKHO.casteOrder = list(YKHO.__class__.castes)\n hXNa(YKHO.casteOrder)\n YKHO.tech = Acvy(YKHO.__class__.te...
[ "0.6989882", "0.6597792", "0.6594358", "0.6537479", "0.6483297", "0.64058214", "0.6387269", "0.6387269", "0.6387269", "0.6377212", "0.6270694", "0.6256299", "0.6220412", "0.6218522", "0.6218522", "0.6218522", "0.617318", "0.6169872", "0.615041", "0.61309123", "0.6105477", "...
0.5729241
89