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
Read a file and return a list of lines.
def aA6_(Ux0P): with open(Ux0P, 'r') as eHNT: Nqlg = eHNT.readlines() return Nqlg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZLVQ(Ux0P):\n with open(Ux0P) as apum:\n Nqlg = apum.readlines()\n return [zFiD.strip() for zFiD in Nqlg]", "def PyNg(VqRE):\n with open(VqRE, 'r', encoding='utf-8', newline=Hy7s.linesep) as eHNT:\n return eHNT.readlines()", "def zs73(Ux0P):\n with open(Ux0P, 'r') as eHNT:\n ...
[ "0.8466749", "0.83859", "0.82705975", "0.82671875", "0.81991166", "0.8182739", "0.81814766", "0.807736", "0.8065246", "0.80635136", "0.8050295", "0.8034521", "0.8034294", "0.7927322", "0.7892387", "0.787995", "0.7873965", "0.78672296", "0.78525054", "0.7827237", "0.782528", ...
0.84185445
1
Sends a 401 response that enables basic auth
def NLCy(): return oGir('Could not verify your access level for that URL.\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})", "def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})", "def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\...
[ "0.8093736", "0.80926424", "0.7958403", "0.7852648", "0.7843114", "0.7824419", "0.776624", "0.7754693", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.771945", "0.7667712", "0.7664151", "0.76493174", "0.76140213", "0.76131...
0.7810746
24
Verifies a GET /transactions without parameters works properly.
async def test_txn_list(YKHO): HMGj = TUpl.make_paging_response(0, 3) YKHO.stream.preset_response(head_id='2', paging=HMGj, transactions=TUpl.make_txns('2', '1', '0')) geh0 = await YKHO.get_assert_200('/transactions') vQ4U = TUpl.make_paging_controls() YKHO.stream.assert_valid_request_sent(paging=vQ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ETPk(YKHO, ryQO):\n j8eK = 'https://test.com/v3/accounts/{}/transactions'.format(mvjz)\n _hkX = h2IT['_v3_accounts_accountID_transactions']['response']\n l5Ny = qQXR.dumps(_hkX)\n ryQO.register_uri('GET', j8eK, text=l5Ny)\n Mkmy = gQVK.TransactionList(mvjz)\n Aofo = nNXP.request(Mkmy)\n YK...
[ "0.7169059", "0.69467974", "0.6778032", "0.6481524", "0.6469989", "0.6469989", "0.6335585", "0.6310661", "0.62317723", "0.62232196", "0.62192523", "0.61250347", "0.61121184", "0.61057097", "0.6085535", "0.6076183", "0.60663486", "0.6055808", "0.6050486", "0.6022482", "0.60224...
0.58062303
37
Verifies GET /transactions with head and id parameters work properly.
async def test_txn_list_with_head_and_ids(YKHO): HMGj = TUpl.make_paging_response(0, 1) YKHO.stream.preset_response(head_id='1', paging=HMGj, transactions=TUpl.make_txns('0')) geh0 = await YKHO.get_assert_200('/transactions?id=0&head=1') vQ4U = TUpl.make_paging_controls() YKHO.stream.assert_valid_re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ETPk(YKHO, ryQO):\n j8eK = 'https://test.com/v3/accounts/{}/transactions'.format(mvjz)\n _hkX = h2IT['_v3_accounts_accountID_transactions']['response']\n l5Ny = qQXR.dumps(_hkX)\n ryQO.register_uri('GET', j8eK, text=l5Ny)\n Mkmy = gQVK.TransactionList(mvjz)\n Aofo = nNXP.request(Mkmy)\n YK...
[ "0.71942693", "0.7015954", "0.6984337", "0.67370045", "0.6549349", "0.6416777", "0.63829905", "0.6363491", "0.6275178", "0.62376744", "0.62364334", "0.6227067", "0.6224722", "0.6088164", "0.6002757", "0.59749377", "0.58598506", "0.5795719", "0.5793475", "0.5744589", "0.573464...
0.7367473
0
Verifies a GET /transactions with a count of zero breaks properly.
async def test_txn_list_with_zero_count(YKHO): geh0 = await YKHO.get_assert_status('/transactions?count=0', 400) YKHO.assert_has_valid_error(geh0, 53)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_no_transactions(YKHO):\n geh0 = await YKHO.collect(get_request_json_return_value={})\n YKHO.assert_measurement(geh0, value='0')", "async def test_no_transactions(YKHO):\n geh0 = await YKHO.collect(get_request_json_return_value={})\n YKHO.assert_measurement(geh0, value='0')", "async d...
[ "0.7153674", "0.7153674", "0.69534546", "0.6758713", "0.6676406", "0.66698354", "0.6656773", "0.6599557", "0.6412249", "0.63739705", "0.6321175", "0.6174884", "0.61332357", "0.6092304", "0.608266", "0.6077496", "0.6021119", "0.5991651", "0.59907895", "0.5988278", "0.5976223",...
0.82633847
0
Verifies GET /transactions paginated just by count works properly.
async def test_txn_list_paginated_with_just_count(YKHO): HMGj = TUpl.make_paging_response(0, 4) YKHO.stream.preset_response(head_id='d', paging=HMGj, transactions=TUpl.make_txns('d', 'c')) geh0 = await YKHO.get_assert_200('/transactions?count=2') vQ4U = TUpl.make_paging_controls(2) YKHO.stream.asser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_txn_list_paginated_without_count(YKHO):\n HMGj = TUpl.make_paging_response(2, 4)\n YKHO.stream.preset_response(head_id='d', paging=HMGj, transactions=TUpl.make_txns('b', 'a'))\n geh0 = await YKHO.get_assert_200('/transactions?min=2')\n vQ4U = TUpl.make_paging_controls(None, start_index=2...
[ "0.77007246", "0.74251974", "0.7069925", "0.6993161", "0.6839938", "0.677329", "0.67613727", "0.6527892", "0.64921457", "0.6473879", "0.6391203", "0.6389626", "0.63158596", "0.6265969", "0.6234002", "0.6193226", "0.6190416", "0.614115", "0.61301374", "0.6112564", "0.610243", ...
0.80063564
0
Verifies GET /transactions can send proper sort controls.
async def test_txn_list_sorted(YKHO): HMGj = TUpl.make_paging_response(0, 3) gQVK = TUpl.make_txns('0', '1', '2') YKHO.stream.preset_response(head_id='2', paging=HMGj, transactions=gQVK) geh0 = await YKHO.get_assert_200('/transactions?sort=header_signature') tsXd = TUpl.make_paging_controls() So...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_txn_list_sorted_in_reverse(YKHO):\n HMGj = TUpl.make_paging_response(0, 3)\n gQVK = TUpl.make_txns('2', '1', '0')\n YKHO.stream.preset_response(head_id='2', paging=HMGj, transactions=gQVK)\n geh0 = await YKHO.get_assert_200('/transactions?sort=-header_signature')\n tsXd = TUpl.make_pa...
[ "0.66676795", "0.653254", "0.6529262", "0.65248364", "0.6379392", "0.6276524", "0.6037245", "0.6008399", "0.5851362", "0.58068824", "0.57943296", "0.57899666", "0.57848036", "0.57776695", "0.5777194", "0.57226545", "0.57159024", "0.57040507", "0.5602949", "0.55931306", "0.555...
0.7052601
0
Verifies a GET /transactions/{transaction_id} works properly.
async def test_txn_get(YKHO): YKHO.stream.preset_response(transaction=TUpl.make_txns('1')[0]) geh0 = await YKHO.get_assert_200('/transactions/1') YKHO.stream.assert_valid_request_sent(transaction_id='1') YKHO.assertNotIn('head', geh0) YKHO.assert_has_valid_link(geh0, '/transactions/1') YKHO.asse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ETPk(YKHO, ryQO):\n j8eK = 'https://test.com/v3/accounts/{}/transactions'.format(mvjz)\n _hkX = h2IT['_v3_accounts_accountID_transactions']['response']\n l5Ny = qQXR.dumps(_hkX)\n ryQO.register_uri('GET', j8eK, text=l5Ny)\n Mkmy = gQVK.TransactionList(mvjz)\n Aofo = nNXP.request(Mkmy)\n YK...
[ "0.73038137", "0.70534277", "0.6906788", "0.664259", "0.64764535", "0.64220446", "0.6339045", "0.62697726", "0.6216957", "0.61047286", "0.6048317", "0.60114384", "0.600634", "0.5985451", "0.598312", "0.5970697", "0.5918381", "0.5864118", "0.5846506", "0.5845201", "0.58163637"...
0.72029686
1
Direction of traffic to be captured. Valid values are `ingress` and `egress`
def Rmxw(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'traffic_direction')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rmxw(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'traffic_direction')", "def Rmxw(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'traffic_direction')", "def IShi(tvqc):\n return tvqc['result']['parameters']['direction']", "def IShi(YKHO):\n TUcM = dict(aAr1)\n return TUcM.g...
[ "0.7063843", "0.70357573", "0.5919301", "0.57909507", "0.5788569", "0.57549065", "0.5705871", "0.56085664", "0.55834186", "0.55659825", "0.5478359", "0.5353343", "0.53419346", "0.5309664", "0.5268469", "0.5261772", "0.5242762", "0.5225194", "0.5212933", "0.5127292", "0.511361...
0.7289455
0
ARN of the traffic mirror filter rule.
def hMqs(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Yge(YKHO) -> str:\n return qe4Y.get(YKHO, 'config_rule_arn')", "def _Yge(YKHO) -> str:\n return qe4Y.get(YKHO, 'config_rule_arn')", "def eD8c(YKHO) -> str:\n if YKHO._rule:\n return YKHO._rule\n return YKHO._make_rule(member_param=YKHO._member_param, unique_member_param=YKHO._unique_mem...
[ "0.61595756", "0.61595756", "0.5683729", "0.5549101", "0.54840195", "0.54840195", "0.54840195", "0.54840195", "0.54840195", "0.54840195", "0.54840195", "0.54840195", "0.54840195", "0.54840195", "0.54840195", "0.54840195", "0.54840195", "0.54840195", "0.54840195", "0.54840195", ...
0.49532038
74
Direction of traffic to be captured. Valid values are `ingress` and `egress`
def Rmxw(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'traffic_direction')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rmxw(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'traffic_direction')", "def Rmxw(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'traffic_direction')", "def IShi(tvqc):\n return tvqc['result']['parameters']['direction']", "def IShi(YKHO):\n TUcM = dict(aAr1)\n return TUcM.get(YKH...
[ "0.7289455", "0.70357573", "0.5919301", "0.57909507", "0.5788569", "0.57549065", "0.5705871", "0.56085664", "0.55834186", "0.55659825", "0.5478359", "0.5353343", "0.53419346", "0.5309664", "0.5268469", "0.5261772", "0.5242762", "0.5225194", "0.5212933", "0.5127292", "0.511361...
0.7063843
1
Get an existing TrafficMirrorFilterRule resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hMqs: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, BcEf: Optional[pulumi.Input[str]]=None, rnze: Optional[pulumi.Input[pulumi.InputType['TrafficMirrorFilterRuleDestinationPortRangeArgs']]]=None, iquo: Op...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'FirewallRule':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = dict()\n r6DL['end_ip'] = None\n r6DL['name'] = None\n r6DL['start_ip'] = None\n r6DL['type'] = None\n retu...
[ "0.62865347", "0.6111883", "0.5923047", "0.57136595", "0.5619176", "0.55978364", "0.5507319", "0.52930605", "0.5158742", "0.5122193", "0.50192016", "0.5011702", "0.5005343", "0.4872678", "0.48647898", "0.48254102", "0.48140857", "0.4809549", "0.47788647", "0.47717223", "0.474...
0.7291407
0
ARN of the traffic mirror filter rule.
def hMqs(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Yge(YKHO) -> str:\n return qe4Y.get(YKHO, 'config_rule_arn')", "def _Yge(YKHO) -> str:\n return qe4Y.get(YKHO, 'config_rule_arn')", "def eD8c(YKHO) -> str:\n if YKHO._rule:\n return YKHO._rule\n return YKHO._make_rule(member_param=YKHO._member_param, unique_member_param=YKHO._unique_mem...
[ "0.61595756", "0.61595756", "0.5683729", "0.5549101", "0.5420084", "0.5353957", "0.5353957", "0.53007644", "0.53007644", "0.52232647", "0.52182466", "0.5193646", "0.5175938", "0.51703745", "0.51703745", "0.51703745", "0.51703745", "0.51703745", "0.5164615", "0.51548624", "0.5...
0.54840195
20
Direction of traffic to be captured. Valid values are `ingress` and `egress`
def Rmxw(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'traffic_direction')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rmxw(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'traffic_direction')", "def Rmxw(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'traffic_direction')", "def IShi(tvqc):\n return tvqc['result']['parameters']['direction']", "def IShi(YKHO):\n TUcM = dict(aAr1)\n return TUcM.ge...
[ "0.7289455", "0.7063843", "0.5919301", "0.57909507", "0.5788569", "0.57549065", "0.5705871", "0.56085664", "0.55834186", "0.55659825", "0.5478359", "0.5353343", "0.53419346", "0.5309664", "0.5268469", "0.5261772", "0.5242762", "0.5225194", "0.5212933", "0.5127292", "0.5113614...
0.70357573
2
Simple methods for bracketed and the persistent brackets.
def c9WI(Emd4, jtE2: ParseContext, oN_G: Optional[Tuple[str, ...]]=None) -> h8nf['SimpleHintType']: PB8H = [Z4gj for bGrB, Z4gj, bGrB, fpNn in jtE2.dialect.bracket_sets('bracket_pairs') if fpNn] QWu8: fHNa[str] = set() for bf9h in PB8H: dBCu = jtE2.dialect.ref(bf9h).simple(jtE2, crumbs=oN_G) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lCMO(YKHO):\n return YKHO.__brackets", "def p7Yo(HJX9, ygvS):\n p_9N, XkN1, XVAW = H0ME(ygvS)\n while p_9N > -1:\n h3Aq = ygvS[:p_9N].strip(mxSo)\n DOuq = ygvS[XVAW:].strip(mxSo)\n Wxnj = Dvio + str(len(HJX9.Blocks))\n HJX9.Blocks[Wxnj] = I8hg(ygvS[p_9N + 1:XVAW - 1])\n ...
[ "0.67755497", "0.6531037", "0.6472095", "0.62770903", "0.62345237", "0.6205304", "0.6134222", "0.6119047", "0.61070895", "0.5836069", "0.58267", "0.5812828", "0.559637", "0.5594679", "0.5573223", "0.55384165", "0.5538288", "0.55376315", "0.5522027", "0.54893625", "0.5461417",...
0.0
-1
Test some basic default properties for drudge objects.
def sod5(_KEJ): assert isinstance(_KEJ.num_partitions, int) assert _KEJ.full_simplify assert not _KEJ.simple_merge
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kn4D(YKHO):\n YKHO.assertEqual(YKHO.obj.width, 1)\n YKHO.assertEqual(YKHO.obj.height, 1)\n YKHO.assertEqual(YKHO.obj.x, 0)\n YKHO.assertEqual(YKHO.obj.y, 0)\n YKHO.assertEqual(YKHO.obj.id, 1)", "def PNTs(YKHO):\n for wEf2 in (1, {}, 'test', None):\n QWcs = z0e4(default=wEf2)\n ...
[ "0.70528543", "0.6994596", "0.6965438", "0.6872958", "0.6862939", "0.67033905", "0.6637353", "0.66311663", "0.6527435", "0.6505683", "0.6503775", "0.65000117", "0.64971566", "0.64593023", "0.64239097", "0.6376396", "0.6239752", "0.6204432", "0.62043875", "0.62032735", "0.6199...
0.688334
3
Reset mapping attributes for a fresh determination of the sampling, size, and surfacebrightness map. This is mainly used for resetting the internals when using the default sampling and size to set the map. To reconstruct
def b785(YKHO): YKHO.x = None YKHO.X = None YKHO.y = None YKHO.Y = None YKHO.data = None YKHO.sampling = None YKHO.size = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b785(YKHO):\n YKHO.reset_world(YKHO._filename)", "def SiRx(YKHO):\n YKHO._maps = {}", "def X7c3(YKHO):\n if not YKHO.scenario_name.startswith('random'):\n YKHO._map = YKHO._fixed_original_map.copy()\n else:\n from environment.scenarios import generate_random_map\n YKHO._map...
[ "0.7128049", "0.70923704", "0.7058207", "0.7057773", "0.69286776", "0.69136596", "0.663862", "0.66085464", "0.6593443", "0.6592892", "0.6592892", "0.6543239", "0.6528465", "0.6462669", "0.64508015", "0.64286196", "0.6405136", "0.63953155", "0.6325627", "0.63087475", "0.627572...
0.7794614
0
r""" The minimum size that should be used for the distribution map in arcseconds. Currently just set to 3.
def x7Qo(YKHO): return 3.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x7Qo(YKHO):\n return YKHO.fwhm * 2.0", "def x7Qo(YKHO):\n return YKHO.r_eff * 3", "def x7Qo(YKHO):\n zNig = YKHO.seeing.minimum_size()\n try:\n zNig = max(YKHO.intrinsic.minimum_size(), zNig)\n except AttributeError:\n pass\n return zNig", "def GkVq(YKHO):\n return 0", ...
[ "0.74468726", "0.72707444", "0.7155052", "0.7057373", "0.70292497", "0.6817667", "0.66245854", "0.65981185", "0.645702", "0.645309", "0.63096863", "0.62724876", "0.6262653", "0.62395364", "0.62224287", "0.62000304", "0.6197255", "0.619464", "0.61761963", "0.61708325", "0.6160...
0.6856484
5
Sample the source. This interpolates the precalculated source at the requested coordinate. A `ValueError` will be thrown (see `scipy.interpolate.interp2d`_) if the coordinate is outside the bounds of the calculated map.
def nrOS(YKHO, WKvO, LVAh): return YKHO.interp(WKvO, LVAh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mvm2(YKHO):\n LL2J = None\n pImw = None\n gt8v = 1\n nPrm = [] if YKHO.data == None else YKHO.data\n if len(nPrm) == 0:\n return js4S(YKHO.lower_bounds, YKHO.upper_bounds)\n y5bX = epAf.fillpts(YKHO.lower_bounds, YKHO.upper_bounds, gt8v, nPrm, LL2J, pImw)\n return y5bX[0]", "def L...
[ "0.6073271", "0.57992303", "0.5755491", "0.5660392", "0.5643768", "0.55160844", "0.54961294", "0.5404775", "0.53589106", "0.5357067", "0.5293388", "0.52847767", "0.5273042", "0.5271924", "0.5231634", "0.5231629", "0.5223583", "0.52125466", "0.5206058", "0.5187688", "0.5153643...
0.5248061
14
Perform modular inverse on `num` in `modulus`
def GCaQ(mLGw: int, jDtP: int) -> int: if ML2l(mLGw, jDtP) != 1: raise vYXW('gcd is equals to 1') RlDC, TKB8, pO79 = (1, 0, mLGw) lM0e, yxO9, ApEs = (0, 1, jDtP) while ApEs != 0: vPob = pO79 // ApEs lM0e, yxO9, ApEs, RlDC, TKB8, pO79 = (RlDC - vPob * lM0e, TKB8 - vPob * yxO9, pO7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cd0I(mLGw):\n return mLGw % SLVW", "def f03v(Fg_i, exwG):\n return r4a9(Fg_i, exwG)", "def f03v(Fg_i, exwG):\n return r4a9(Fg_i, exwG)", "def qSkL(wEf2, jDtP):\n return B6S9(wEf2, jDtP - 2, jDtP)", "def K4d0(jzdc, VlDb):\n s5mf, dNUk, IBIz, Mkmy, P6bq, Ty9i = (jzdc, 1, 0, VlDb, 0, 1)\n ...
[ "0.76087075", "0.7599907", "0.75446355", "0.7271277", "0.72095096", "0.7132916", "0.7094081", "0.70898604", "0.7052463", "0.70342475", "0.7025433", "0.70142114", "0.70125234", "0.697252", "0.69658965", "0.6876136", "0.68518245", "0.6832232", "0.67837626", "0.67513156", "0.673...
0.8381865
0
Check if an integer is prime
def T1qg(mLGw: int) -> bool: if mLGw < 2: return False yCBT = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBNJ(exwG):\n return T1qg(exwG)", "def T1qg(FGW3: int):\n for d6pt in range(2, FGW3 // 2 + 1):\n if FGW3 % d6pt == 0:\n return False\n return True", "def FBNJ(exwG):\n return T1qg(exwG)", "def T1qg(jzdc):\n return all((jzdc % YRbF for YRbF in Ni9Y(2, jzdc)))", "def GiUy...
[ "0.806168", "0.8038379", "0.80105424", "0.80036575", "0.8000637", "0.7987979", "0.7946168", "0.79253095", "0.7899765", "0.7860847", "0.7825755", "0.77972865", "0.77813077", "0.7775873", "0.77755696", "0.77608085", "0.77501464", "0.7734034", "0.77327824", "0.77155507", "0.7712...
0.0
-1
Writes the Config to a JSON file.
def W1Sa(YKHO, ytgA): fGC9 = YKHO.serialize() with Ki2L(ytgA, mode='w') as WJI9: qQXR.dump(fGC9, WJI9, indent=2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CUfo(YKHO):\n with open(YKHO.config_file, 'w') as KAfx:\n GPtr = {'ibooks_doc_root': YKHO.ibooks_doc_root, 'library_folder': YKHO.library_folder, 'annotation_folder': YKHO.annotation_folder, 'tmp_dir': YKHO.tmp_dir}\n nPrm = qQXR.dumps(GPtr, ensure_ascii=False)\n KAfx.write(nPrm)", "d...
[ "0.8363596", "0.8205384", "0.81158084", "0.8101028", "0.8083625", "0.805155", "0.8005258", "0.79565126", "0.7939603", "0.79173857", "0.78823084", "0.78212786", "0.7801197", "0.779321", "0.77766246", "0.7724846", "0.7670679", "0.76086545", "0.75980157", "0.7597858", "0.7547061...
0.0
-1
Removes comments beginning with '//' from the stream
def PCUI(N5Pj): njyT = '\\s*(#|\\/{2}).*$' dNcK = '(:?(?:\\s)*([A-Za-z\\d\\.{}]*)|((?<=\\").*\\"),?)(?:\\s)*(((#|(\\/{2})).*)|)$' bCYe = [] for zFiD in N5Pj: if ZbWC.search(njyT, zFiD): if ZbWC.search('^' + njyT, zFiD, ZbWC.IGNORECASE): continue elif ZbWC....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RPT9(YKHO):\n AHFD = list()\n for zFiD in YKHO.lines:\n if (not zFiD.startswith('//')) & (not zFiD.isspace()) & (not zFiD.startswith('/*') & (not zFiD.startswith('*/'))):\n zFiD = i9Wa.strip_line(zFiD)\n AHFD.append(zFiD)\n YKHO.lines = AHFD", "def h3jL(YKHO):\n YKHO....
[ "0.7831763", "0.73236525", "0.73236525", "0.72509706", "0.7236525", "0.7156754", "0.71515924", "0.7134593", "0.712082", "0.7103003", "0.7087264", "0.7070003", "0.70223415", "0.69894934", "0.6886132", "0.68485993", "0.6808314", "0.67827356", "0.677989", "0.66633433", "0.662779...
0.66310537
20
Initialize the linked list
def FIMM(YKHO): YKHO.front = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, yv6U=[]):\n YKHO.__length = 0\n YKHO.__head = None\n for tTpl in yv6U:\n YKHO.add(tTpl)", "def FIMM(YKHO):\n Q6kx = Msxl(0)\n YKHO.head = Q6kx\n YKHO.tail = Q6kx\n YKHO.len = 0", "def FIMM(YKHO, sdCG: ListNode):\n YKHO.l = []\n while sdCG:\n YKHO.l.append...
[ "0.7995513", "0.7772318", "0.7671952", "0.7662982", "0.76149744", "0.75935143", "0.7513604", "0.751141", "0.747434", "0.7470124", "0.7470124", "0.74638146", "0.74430084", "0.7408837", "0.7407841", "0.7407383", "0.7399193", "0.73963195", "0.73963195", "0.73963195", "0.7368044"...
0.0
-1
Append new item to front of linked list
def j5ff(YKHO, ZfUD): YKHO.front = o7DN(ZfUD, YKHO.front)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, ZfUD):\n YKHO.linked_list.prepend(ZfUD)", "def byB9(YKHO, ZfUD):\n Esd_ = o7DN(ZfUD)\n if YKHO.head is None:\n YKHO.head = Esd_\n else:\n Esd_.next = YKHO.head\n YKHO.head = Esd_\n YKHO.n += 1", "def dZVG(YKHO, ZfUD):\n YKHO.items.insert(0, ZfUD)", "def _...
[ "0.80932236", "0.79207546", "0.7789035", "0.77499205", "0.743895", "0.7411518", "0.73832494", "0.73774433", "0.73671645", "0.73671645", "0.73597884", "0.7335836", "0.7333048", "0.7306905", "0.71927047", "0.7173657", "0.7128065", "0.71021867", "0.70872563", "0.7061593", "0.704...
0.8145095
0
Return string representation of the sublist headed by node.
def qU9R(Q6kx): if Q6kx == None: return '' else: return str(Q6kx.item) + ' ' + _sfu.str_recursive(Q6kx.next)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n Aofo = []\n Q6kx = YKHO.head\n while Q6kx is not None:\n Aofo.append(str(Q6kx.value))\n Q6kx = Q6kx.next_node\n return '[' + ', '.join(Aofo) + ']'", "def zAg0(YKHO):\n Aofo = []\n Q6kx = YKHO.head\n while Q6kx is not None:\n Aofo.append(str(Q6kx.value))...
[ "0.7378448", "0.7378448", "0.7137586", "0.70630693", "0.70598847", "0.6984991", "0.6953471", "0.69394827", "0.69161016", "0.6898963", "0.6889489", "0.68292844", "0.6805494", "0.67952406", "0.6789903", "0.6772713", "0.6772238", "0.67646974", "0.67565846", "0.6745143", "0.67451...
0.66982806
22
Return string representation of the reverse of the sublist headed by node.
def tM9n(Q6kx): if Q6kx == None: return '' else: return _sfu.str_reverse_recur(Q6kx.next) + ' ' + str(Q6kx.item)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tPc1(YKHO):\n yvT9 = []\n exwG = YKHO\n while exwG:\n yvT9.append(str(exwG.data))\n exwG = exwG.next\n return ''.join(reversed(yvT9))", "def Ry2o(YKHO):\n return _sfu.str_reverse_recur(YKHO.front)", "def zAg0(YKHO):\n Y_sP = '-'\n Q6kx = YKHO.head.next\n while Q6kx != ...
[ "0.7377775", "0.7221987", "0.6838717", "0.6672246", "0.6447731", "0.640659", "0.6405362", "0.6306194", "0.6304246", "0.6295194", "0.62737924", "0.6251645", "0.62411624", "0.62411624", "0.6238511", "0.6226606", "0.62258536", "0.61988467", "0.6184583", "0.6136902", "0.6131418",...
0.7475673
0
Just return time as string
def mcQd(): try: mcQd = qcWV.datetime.now().strftime('%H:%M:%S') except Exception as e: print(tTpl) mcQd = False return mcQd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7L9() -> str:\n return F803('%H:%M:%S')", "def m7L9() -> str:\n return ITS7.strftime(mxlI)", "def YCc8():\n return JRYC.strftime(JRYC.now(), '%H:%M:%S')", "def ITS7():\n return qcWV.datetime.now().strftime('%Y%m%dT%H%M%SZ')", "def Px7F(YKHO):\n try:\n if not YKHO._time:\n ...
[ "0.8599196", "0.83361834", "0.83054096", "0.82475215", "0.8140354", "0.81370556", "0.8126075", "0.80969197", "0.8043803", "0.79808813", "0.79625934", "0.79590195", "0.7903295", "0.78672487", "0.7794261", "0.7743577", "0.77294785", "0.7726325", "0.76728094", "0.7656912", "0.76...
0.0
-1
Check if the list a is not descending (means "rather ascending")
def UaAq(jzdc): for YRbF in range(len(jzdc) - 1): if jzdc[YRbF] > jzdc[YRbF + 1]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UaAq(jzdc):\n for YRbF in range(len(jzdc) - 1):\n if jzdc[YRbF] > jzdc[YRbF + 1]:\n return False\n return True", "def WalB(yv6U):\n for YRbF in range(len(yv6U) - 1):\n if yv6U[YRbF] > yv6U[YRbF + 1]:\n return False\n return True", "def jSD_(YKHO):\n return...
[ "0.82371575", "0.7330693", "0.71535647", "0.70641845", "0.6986995", "0.69312114", "0.69185233", "0.6741396", "0.67373383", "0.67297494", "0.6705234", "0.6625769", "0.6528101", "0.6414327", "0.64021415", "0.6348714", "0.6320354", "0.6309863", "0.6308104", "0.63046575", "0.6292...
0.82387155
0
Delete router from L3 agent test. RBAC test for the neutron delete_l3router policy
def ZNul(YKHO): YKHO.agents_client.create_router_on_l3_agent(YKHO.agent['id'], router_id=YKHO.router['id']) YKHO.addCleanup(z3xZ.call_and_ignore_notfound_exc, YKHO.agents_client.delete_router_from_l3_agent, YKHO.agent['id'], router_id=YKHO.router['id']) with YKHO.override_role(): YKHO.agents_client....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dLRC(YKHO):\n with YKHO.override_role():\n YKHO.agents_client.create_router_on_l3_agent(YKHO.agent['id'], router_id=YKHO.router['id'])\n YKHO.addCleanup(z3xZ.call_and_ignore_notfound_exc, YKHO.agents_client.delete_router_from_l3_agent, YKHO.agent['id'], router_id=YKHO.router['id'])", "def _1jN(Y...
[ "0.72581106", "0.70280457", "0.68491924", "0.65924877", "0.6537437", "0.6436373", "0.6317385", "0.6292039", "0.6250973", "0.62198013", "0.6170497", "0.6156344", "0.6153482", "0.6135706", "0.6124041", "0.60891193", "0.6088728", "0.60834914", "0.60735404", "0.60667443", "0.6052...
0.85685253
0
r"""A LaTeX representation of the Butcher arrays.
def _svw(YKHO): from nodepy.snp import printable VWe_ = ' & ' KCHu = '\\begin{align}' + '\n' KCHu += '\\begin{array}{c|' KCHu += 'c' * len(YKHO) KCHu += '}\n' for YRbF in range(len(YKHO)): KCHu += printable(YKHO.c[YRbF]) + VWe_ KCHu += VWe_.join([printable(ugNV) for ugNV in Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ne1c(YKHO):\n if len(YKHO.shape) > 2:\n raise ValueError('bmatrix can at most display two dimensions')\n\n def FMLJ(WKvO):\n if WKvO == 0:\n return '.'\n if oyIN.abs(WKvO) < CzNp:\n return '0.'\n return '{:.2g}'.format(WKvO)\n EGaG = oyIN.array2string(...
[ "0.6970055", "0.659756", "0.6227812", "0.6129505", "0.6089469", "0.6051443", "0.60052615", "0.5925831", "0.58959085", "0.5885589", "0.5846627", "0.5812129", "0.58071876", "0.5775256", "0.5760656", "0.57533437", "0.5733561", "0.56919664", "0.56869227", "0.56674165", "0.5662075...
0.7219669
0
r""" Length of negative real axis interval contained in the method's region of absolute stability.
def LLA3(YKHO, Tuqy='exact', SGf8=1e-14): import nodepy.stability_function as kY_K XP5J, vexM = YKHO.stability_function(mode=Tuqy) return kY_K.real_stability_interval(XP5J, vexM, eps=SGf8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lMDc(YKHO):\n return YKHO.end - YKHO.start + 1", "def yall(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2)", "def u54L(YKHO):\n return qaWJ.Box(YKHO.bounds).length", "def u54L(YKHO):\n return epAf.sqrt(YKHO.x * YKHO.x + YKHO.y * YKHO.y)", "def u54L(YKHO):\n return float(oyIN.max([YK...
[ "0.6799165", "0.6523013", "0.64874613", "0.63847244", "0.6355488", "0.6334569", "0.62088364", "0.62068504", "0.61969066", "0.6155599", "0.61479384", "0.61242396", "0.60917693", "0.60682476", "0.6067572", "0.6061064", "0.6031231", "0.60228676", "0.5993633", "0.5990231", "0.598...
0.0
-1
Set up test environment befor each test
def FCbF(YKHO): YKHO.db_fd, Pnk4.app.config['DATABASE'] = gbPf.mkstemp() Pnk4.app.config['TESTING'] = True YKHO.app = Pnk4.app.test_client() Pnk4.init_db()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def SjAq():\n global TestEnv\n MQa_(GD0I)", "def SjAq():\n global TestEnv\n MQa_(GD0I)", "def FCbF(YKHO):\n xnZ0.setUp(YKHO)", "def FCbF(YKHO) -> None:\n YKHO.helper = inme()\n YKHO.test_name = 'PYFUNCEBLE_TESTING'\n YKHO.temp_env_file = gbPf.NamedTemp...
[ "0.8583651", "0.77842045", "0.77842045", "0.75123954", "0.75069934", "0.744537", "0.744537", "0.74238944", "0.7396395", "0.73189193", "0.7287442", "0.72579896", "0.72319895", "0.72173023", "0.7185263", "0.7180003", "0.71740633", "0.71740633", "0.71636385", "0.71625495", "0.71...
0.0
-1
Test that the delete confirmation form is accessible
def UsFh(YKHO, nPrm): YKHO.add_success(nPrm) im04 = YKHO.get((nPrm[YKHO.id_field], YKHO.delete_url)) assert not UAIL(im04) assert XPiJ(im04, 'Delete {}'.format(nPrm[YKHO.name_field])) return im04
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w9eq(TThx, SYsl, LmAn):\n SYsl.login(LmAn)\n SYsl.assert_forbidden(SYsl.SEARCH_DELETE_URL)", "def DlFY(YKHO):\n VA7R = YKHO.client.get('/papers/commentary/1/delete')\n YKHO.assertEqual(VA7R.status_code, 200)\n YKHO.assertTrue('object' in VA7R.context)\n YKHO.assertTemplateUsed(VA7R, 'base.h...
[ "0.7769889", "0.73509276", "0.7316214", "0.72853273", "0.72812194", "0.72715646", "0.72543633", "0.71914595", "0.71501523", "0.71227896", "0.7038216", "0.7027079", "0.69793093", "0.6942176", "0.6920717", "0.6884522", "0.6859341", "0.6828267", "0.6825896", "0.6825896", "0.6801...
0.7111074
10
Test that updating a model with the given data succeeds
def MNNH(YKHO, hbFX, nPrm): im04 = YKHO.post((hbFX, YKHO.edit_url), nPrm) assert not XPiJ(im04, 'Edit {}'.format(nPrm[YKHO.name_field])) assert YKHO.verify_object(nPrm) return im04
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mmy9(YKHO):\n pass", "def Tbie(YKHO):\n pass", "def qRhm(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def b6pt(YKHO):\n pass", "def i9wU(YKHO):\n id = YKHO._create_model('customer', YKHO.customer_data, ['name', 'email', 'ph...
[ "0.80372113", "0.78073686", "0.77986133", "0.7746405", "0.7746405", "0.7746405", "0.75263447", "0.74914926", "0.74794495", "0.74782026", "0.74640465", "0.7410784", "0.73828554", "0.73249656", "0.72834855", "0.7223242", "0.7222361", "0.7172504", "0.7141367", "0.71275294", "0.7...
0.0
-1
Test that updating a model with the given data succeeds
def iJmt(YKHO, nPrm, Cc00): YKHO.add_success(nPrm) return YKHO.edit_success(nPrm[YKHO.id_field], Cc00)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mmy9(YKHO):\n pass", "def Tbie(YKHO):\n pass", "def qRhm(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def b6pt(YKHO):\n pass", "def i9wU(YKHO):\n id = YKHO._create_model('customer', YKHO.customer_data, ['name', 'email', 'ph...
[ "0.80372113", "0.78073686", "0.77986133", "0.7746405", "0.7746405", "0.7746405", "0.75263447", "0.74914926", "0.74794495", "0.74782026", "0.74640465", "0.7410784", "0.73828554", "0.73249656", "0.72834855", "0.7223242", "0.7222361", "0.7172504", "0.7141367", "0.71275294", "0.7...
0.0
-1
Test that deleting the specified model succeeds
def kYuI(YKHO, hbFX): im04 = YKHO.post((hbFX, YKHO.delete_url), dict(post='yes')) assert not YKHO.verify_object({YKHO.id_field: hbFX}) return im04
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJc1(YKHO):\n YGfs = mDi0.create(count=8, text='123456789')\n YGfs.delete()\n FdRy = mDi0.objects(id=YGfs.pk).first()\n YKHO.assertIsNone(FdRy)", "def IJc1(YKHO):\n YGfs = mDi0.create(count=8, text='123456789')\n TN1U = YGfs.vid\n YGfs.delete()\n with YKHO.assertRaises(mDi0.DoesNotExi...
[ "0.80975384", "0.7919906", "0.78289723", "0.78166664", "0.77419555", "0.7649547", "0.7505965", "0.7486913", "0.74762404", "0.7381134", "0.7380975", "0.73404914", "0.73338157", "0.7329557", "0.73083365", "0.7297999", "0.72765434", "0.7254224", "0.7244474", "0.7240323", "0.7239...
0.0
-1
Test that deleting the specified model fails
def w9tZ(YKHO, hbFX, Ol8d): im04 = YKHO.post((hbFX, YKHO.delete_url), dict(post='yes')) assert XPiJ(im04, Ol8d) assert YKHO.verify_object({YKHO.id_field: hbFX}) return im04
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJc1(YKHO):\n YGfs = mDi0.create(count=8, text='123456789')\n TN1U = YGfs.vid\n YGfs.delete()\n with YKHO.assertRaises(mDi0.DoesNotExist):\n FdRy = mDi0.get(TN1U)", "def IJc1(YKHO):\n YGfs = mDi0.create(count=8, text='123456789')\n YGfs.delete()\n FdRy = mDi0.objects(id=YGfs.pk).f...
[ "0.81226546", "0.8114499", "0.77762663", "0.7746574", "0.7677617", "0.7623347", "0.7561469", "0.7559645", "0.75229925", "0.7488412", "0.74052787", "0.73805296", "0.7347212", "0.7329506", "0.7327587", "0.73252684", "0.7309433", "0.7275486", "0.72648066", "0.725491", "0.7195645...
0.0
-1
Test that deleting a model that does not exist fails
def DmkG(YKHO, hbFX): assert UAIL(YKHO.get((hbFX, YKHO.delete_url))) YKHO.delete_fail(hbFX, 'does not exist')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJc1(YKHO):\n YGfs = mDi0.create(count=8, text='123456789')\n YGfs.delete()\n FdRy = mDi0.objects(id=YGfs.pk).first()\n YKHO.assertIsNone(FdRy)", "def IJc1(YKHO):\n YGfs = mDi0.create(count=8, text='123456789')\n TN1U = YGfs.vid\n YGfs.delete()\n with YKHO.assertRaises(mDi0.DoesNotExi...
[ "0.82551336", "0.8216983", "0.78420514", "0.7746473", "0.7627469", "0.7567078", "0.75271106", "0.752426", "0.74983686", "0.7490778", "0.7482861", "0.73926353", "0.7384732", "0.73488843", "0.7322199", "0.72983235", "0.7279115", "0.726235", "0.72099906", "0.71872205", "0.717358...
0.0
-1
Test that adding a category works
def osVu(YKHO): YKHO.add_success(YKHO.test_data['pants'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XnPT(YKHO):\n pass", "def osVu(YKHO):\n YKHO.signup('Bo', 'Theo', 'Bo_theo5@example.com', 'Bo1995', 'Bo1995')\n YKHO.login('Bo_theo5@example.com', 'Bo1995')\n YKHO.dashboard()\n im04 = YKHO.category('Breakfast')\n YKHO.assertIn(b'Category created', im04.data)", "def XnPT(YKHO):\n Ylbp ...
[ "0.8789025", "0.8468232", "0.81340444", "0.8119902", "0.8014354", "0.8012194", "0.7937554", "0.77232605", "0.7710287", "0.76993555", "0.76301783", "0.7617197", "0.76074386", "0.7597755", "0.75833964", "0.75707746", "0.7563386", "0.7555715", "0.7542039", "0.7536718", "0.748444...
0.85830075
1
Test that updating a category works
def MT4f(YKHO): YKHO.update_success(YKHO.test_data['pants'], YKHO.test_data['shirts'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MT4f(YKHO):\n pass", "def MT4f(YKHO):\n Ghho = hkDa()\n bD7m = Ua71(Ghho.id)\n YKHO.client.put(bD7m, {'name': 'school'})\n Ghho.refresh_from_db()\n YKHO.assertEqual(Ghho.name, 'school')", "def IsIF(YKHO, JawI, Ghho):\n ipek = n9UN.alphanumeric()\n Ghho.update(name=ipek)\n assert ...
[ "0.9372154", "0.8647779", "0.8541626", "0.8503705", "0.8448047", "0.82895505", "0.8234864", "0.8052643", "0.7904017", "0.7873732", "0.7723735", "0.7681456", "0.76312315", "0.7364562", "0.71864253", "0.7186193", "0.7155049", "0.712442", "0.7080831", "0.70298755", "0.6947935", ...
0.85807896
2
Test that adding a child category works
def TKaN(YKHO): YKHO.add_success(YKHO.test_data['pants']) im04 = YKHO.get('pants') assert XPiJ(im04, 'This category is empty.') YKHO.add_success(YKHO.test_data['jeans']) im04 = YKHO.get('pants') assert not XPiJ(im04, 'This category is empty.') assert XPiJ(im04, 'Jeans')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w2dt(YKHO):\n Ghho = qZuN(catname='olympic games')\n t3Zk = qZuN(catname='Tennis')\n Ghho.parents.append(t3Zk)\n Ghho.save()\n assert Ghho.parents", "def XnPT(YKHO):\n pass", "def osVu(YKHO):\n YKHO.add_success(YKHO.test_data['pants'])", "def dBWV(YKHO):\n pass", "def osVu(YKHO)...
[ "0.8334123", "0.81077206", "0.79081964", "0.76863307", "0.74448884", "0.7418768", "0.73700744", "0.7333911", "0.7316224", "0.71865493", "0.7157221", "0.7122682", "0.70886236", "0.70684", "0.6976651", "0.6931385", "0.69218314", "0.6908338", "0.6879238", "0.68777645", "0.683699...
0.82659537
1
Test that adding/updating a category without a name fails
def rBjp(YKHO): YKHO.required_field_fail('name', YKHO.test_data['pants'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MT4f(YKHO):\n pass", "def Cl4r(YKHO):\n hkDa()\n Ylbp = YKHO.client.post(AQX_, {'name': 'place'})\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertEqual(Ylbp.data['errors']['name'][0], 'This field must be unique.')", "def XlPZ(YKHO):\n Ghho = qQXR.dumps({'name'...
[ "0.82644504", "0.8023558", "0.7823317", "0.7775177", "0.7757664", "0.77515596", "0.77396804", "0.7706122", "0.766532", "0.7524683", "0.7456434", "0.74400824", "0.7414196", "0.7398801", "0.7372786", "0.73369527", "0.72841924", "0.72630847", "0.72521305", "0.7243133", "0.720910...
0.0
-1
Test that adding/updating a category with a nonexistent parent fails
def _vKq(YKHO): YKHO.bad_data_fail(YKHO.test_data['pants'], YKHO.test_data['hats'], 'Parent does not exist')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dBWV(YKHO):\n pass", "def w2dt(YKHO):\n Ghho = qZuN(catname='olympic games')\n t3Zk = qZuN(catname='Tennis')\n Ghho.parents.append(t3Zk)\n Ghho.save()\n assert Ghho.parents", "def Qw1_(YKHO):\n YKHO.delete_does_not_exist_fail('hats')", "def MT4f(YKHO):\n pass", "def e4qQ(YKHO):\...
[ "0.7866154", "0.735557", "0.717028", "0.70292646", "0.69012946", "0.6873153", "0.68437797", "0.6685949", "0.6664411", "0.66210353", "0.65937537", "0.65748817", "0.65647817", "0.65492696", "0.653379", "0.6526681", "0.6460581", "0.644151", "0.6436295", "0.63933766", "0.6364703"...
0.68960756
5
Test that adding a category with an incorrect name fails
def uDZT(YKHO): YKHO.add_success(YKHO.test_data['polo-shirts']) assert YKHO.verify_object(dict(name='Polo Shirts', slug='polo-shirts')) YKHO.add_fail(YKHO.test_data['symbols'], '') YKHO.add_success('Add')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cl4r(YKHO):\n hkDa()\n Ylbp = YKHO.client.post(AQX_, {'name': 'place'})\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertEqual(Ylbp.data['errors']['name'][0], 'This field must be unique.')", "def XlPZ(YKHO):\n Ghho = qQXR.dumps({'name': 'Asian'})\n YKHO.client.po...
[ "0.822602", "0.7997785", "0.7732795", "0.7683495", "0.76777273", "0.7553439", "0.73911196", "0.7387882", "0.7312538", "0.7247392", "0.7225039", "0.72244525", "0.7215455", "0.71904534", "0.71463794", "0.7121509", "0.71163905", "0.7088657", "0.7078364", "0.70444405", "0.7040825...
0.67622954
33
Test that updating a category with an incorrect slug fails
def eg3p(YKHO): im04 = YKHO.app.post(YKHO.get_category_url('add'), data=dict(name='Pants', slug='pants'), follow_redirects=True) im04 = YKHO.app.post(YKHO.get_category_url('pants', 'edit'), data=dict(name='Polo Shirts', slug='polo shirts'), follow_redirects=True) assert b'Edit Pants' in im04.data assert...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MT4f(YKHO):\n pass", "def _W3E(YKHO):\n geh0 = YKHO.client.patch(YKHO.url + '%d/' % YKHO.test_nutch_crawl.id, {'slug': 'Bad Slug'}, format='json')\n assert qQXR.loads(geh0.content)['slug'] == 'test-nutch-rest'", "def IYrR(YKHO):\n hkDa()\n Ghho = hkDa(name='House')\n bD7m = Ua71(Ghho.id)\...
[ "0.7695336", "0.7655478", "0.7204905", "0.708079", "0.70749307", "0.7011297", "0.69769", "0.6953526", "0.6927091", "0.6923927", "0.6873092", "0.68357676", "0.6801231", "0.67697006", "0.67422795", "0.67262864", "0.6654824", "0.6620801", "0.6579277", "0.6575962", "0.6561918", ...
0.8162767
0
Get the 2nd byte as an example of something tricky and arbitrary
def mlRt(input): wEf2 = int(input) >> 8 wEf2 = wEf2 & 255 return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OA2q(YKHO, int: int, zERD: int) -> int:\n ...", "def JVZl(YKHO):\n return YKHO.next_bytes(1)", "def ufNF(nPrm, d6pt):\n Ty9i = nPrm[d6pt]\n d6pt += 1\n if Ty9i == 16:\n Ty9i = nPrm[d6pt]\n d6pt += 1\n return (Ty9i, d6pt)", "def i9DH(C3ST, YB8B):\n YB8B = MhEZ(YB8B)\n ...
[ "0.65566176", "0.6398942", "0.6311261", "0.63094866", "0.6190973", "0.6147707", "0.6116967", "0.61056626", "0.60690683", "0.6042625", "0.6022275", "0.60192883", "0.5963968", "0.58648586", "0.58168954", "0.5805441", "0.58045745", "0.57504094", "0.5721444", "0.57174695", "0.570...
0.6524682
1
The learning rate scheduler
def b0Ix(qtWj): YKHO.lr = YKHO.lr / 1.00000001 return YKHO.lr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fggk(YKHO):\n YKHO.scheduler.step(YKHO.clock.epoch)", "def fggk(YKHO):\n for IesV in YKHO.schedulers:\n if YKHO.opt.lr_policy == 'plateau':\n IesV.step(YKHO.metric)\n else:\n IesV.step()\n tspZ = YKHO.optimizers[0].param_groups[0]['lr']\n print('learning rate =...
[ "0.7866744", "0.77488226", "0.7729407", "0.76878625", "0.7683168", "0.7547539", "0.748419", "0.7457646", "0.74426603", "0.741609", "0.72797287", "0.72555083", "0.7215296", "0.71658236", "0.71366054", "0.710965", "0.7103072", "0.70940465", "0.7075688", "0.7066328", "0.7052628"...
0.6971915
30
Input n>=6, Returns a array of primes, 2 <= p < n
def LT6d(exwG): KwQv = oyIN.ones(exwG // 3 + (exwG % 6 == 2), dtype=oyIN.bool) KwQv[0] = False for YRbF in range(int(exwG ** 0.5) // 3 + 1): if KwQv[YRbF]: G1Hx = 3 * YRbF + 1 | 1 KwQv[G1Hx * G1Hx // 3::2 * G1Hx] = False KwQv[(G1Hx * G1Hx + 4 * G1Hx - 2 * G1Hx * (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPz2(exwG: int) -> [int]:\n return [6 * exwG - 1, 6 * exwG + 1]", "def DwOa(exwG):\n return list(uVDW(exwG))", "def Z2Il(xGUU) -> qw7D:\n XP5J = qw7D('i', list(rPed(xGUU)))\n return XP5J", "def kAOJ(exwG):\n uED7 = []\n for YRbF in range(2, exwG):\n if T1qg(YRbF):\n uE...
[ "0.78810406", "0.78444964", "0.77933097", "0.7650548", "0.7626844", "0.75202084", "0.75010294", "0.7486007", "0.74678427", "0.74572444", "0.7429019", "0.74092805", "0.73962444", "0.73798555", "0.7366298", "0.7364451", "0.7356198", "0.7351732", "0.73305947", "0.7302029", "0.72...
0.7254512
23
Sanity Check for expected input for a particular Feature Extractor, defined by its dependency_feature_name, compared to the path of the raw_path property. If dependency_feature_name isn't set, it checks that the input path and filenames are audifiles. Also compares the stored filenames in self.x for the dependency_feat...
def kIO9(YKHO): zcMF = True if YKHO.dependency_feature_name and YKHO.source_path != nfQV / YKHO.dependency_feature_name or (not YKHO.dependency_feature_name and YKHO.source_path != _hRD) else False iWUX = True if YKHO.dependency_feature_name and '.{}.npy'.format(YKHO.dependency_feature_name) not in YKHO.x[0] or...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lXAM(YKHO, xiNp, fOak):\n if not isinstance(fOak, list):\n fOak = [fOak]\n if not isinstance(xiNp, list):\n xiNp = [xiNp]\n if len(fOak) != len(xiNp):\n raise JeOb('Must have same number of truth and declaration files.')\n if not fOak:\n raise JeOb('Must have at least on...
[ "0.60253286", "0.58523744", "0.56887174", "0.5569594", "0.5537949", "0.5524195", "0.5506564", "0.54941404", "0.54397684", "0.5438609", "0.54316264", "0.54297984", "0.5405921", "0.5371341", "0.5370305", "0.53649974", "0.5342198", "0.53331345", "0.529704", "0.5291214", "0.52909...
0.6936945
0
Given two sparse vectors |v1| and |v2|, each represented as collection.defaultdict(float), return their dot product. You might find it useful to use sum() and a list comprehension. This function will be useful later for linear classifiers.
def uIxP(hQHm, jlSq): return sum((hQHm[G1Hx] * jlSq[G1Hx] for G1Hx in hQHm and jlSq))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uIxP(hQHm, jlSq):\n return sum([hQHm[EQPi] * jlSq.get(EQPi, 0) for EQPi in hQHm])", "def uIxP(hQHm, jlSq):\n TK2h = 0\n for d6pt, wEf2 in hQHm.items():\n TK2h += wEf2 * jlSq[d6pt]\n return TK2h", "def lGqo(hQHm, jlSq):\n uYbU = 0\n for H5ew in jlSq:\n if H5ew in hQHm:\n ...
[ "0.86423", "0.8544593", "0.8232703", "0.8090822", "0.7962373", "0.78506553", "0.7824849", "0.77497625", "0.7713789", "0.7532589", "0.74982405", "0.7496282", "0.7495349", "0.7494858", "0.7485002", "0.74429095", "0.73841673", "0.73344696", "0.73116934", "0.72536117", "0.7240412...
0.84310704
2
Given two sparse vectors |v1| and |v2|, perform v1 += scale v2. This function will be useful later for linear classifiers.
def PdqR(hQHm, NXpY, jlSq): for G1Hx in jlSq.keys(): hQHm[G1Hx] += NXpY * jlSq[G1Hx] return hQHm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PdqR(hQHm, NXpY, jlSq):\n for d6pt in jlSq:\n hQHm[d6pt] += jlSq[d6pt] * NXpY", "def PdqR(hQHm, NXpY, jlSq):\n for sCA4 in jlSq:\n hQHm[sCA4] += NXpY * jlSq[sCA4]\n return hQHm", "def PdqR(jzdc, NXpY, Fg_i):\n bf9h = jzdc if len(jzdc) > len(Fg_i) else Fg_i\n for H5ew in bf9h:\n...
[ "0.8317474", "0.8016688", "0.7265674", "0.7116591", "0.68092793", "0.648811", "0.636057", "0.6249796", "0.61545813", "0.6144386", "0.5934266", "0.59291", "0.59192884", "0.58780324", "0.5871222", "0.57729644", "0.57697046", "0.5708447", "0.56313133", "0.5605271", "0.56016946",...
0.8039961
1
Initialize Pv model with input JSON data
def FIMM(YKHO, PXIy, M2n9='1920x1080', MLMj=None): YKHO.segments = PXIy YKHO.display_res = M2n9 YKHO.stream_id = MLMj YKHO.o22 = [] YKHO.mode = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nPrm):\n YKHO.data = nPrm\n YKHO.model_func = b1_F._deserialize_decision_tree_from_json(nPrm['model'])", "def uIcm(YKHO, qIxc):\n YKHO.model_config = qQXR.loads(qIxc['model_config'])\n print('model_config:', YKHO.model_config)\n YKHO.input_names = []\n for IMuq in YKHO.model_conf...
[ "0.6553741", "0.64573437", "0.6340093", "0.6256089", "0.614125", "0.61199385", "0.6113551", "0.60440433", "0.6033809", "0.60328317", "0.6029315", "0.60049266", "0.59983575", "0.598196", "0.59697783", "0.5944968", "0.59436524", "0.5931014", "0.59007895", "0.5872175", "0.584886...
0.0
-1
Preprocessing input image or ground truth depth.
def zlw4(YKHO, VXjJ, fh2j, ldys, HLKd, hVLt, KHPh=0): if len(VXjJ.shape) == 1: return VXjJ if fh2j: VXjJ = oyIN.flip(VXjJ, axis=1) if len(VXjJ.shape) == 3: V9Z0 = oyIN.pad(VXjJ, ((hVLt[0], hVLt[1]), (hVLt[2], hVLt[3]), (0, 0)), 'constant', constant_values=(KHPh, KHPh)) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j9DC(YKHO, g4y1):\n raise NotImplementedError('preprocess_image method not implemented.')", "def j9DC(YKHO, g4y1):\n return BfDw.preprocess_image(g4y1, mode='custom_tf')", "def KPx2(GhuM):\n\n def ZvG6(YpkZ, **B2fa):\n raat = False if oyIN.percentile(YpkZ, 98) > 1.0 else True\n if le...
[ "0.6998852", "0.6732229", "0.6644247", "0.6618959", "0.6618028", "0.6553457", "0.65250146", "0.63845795", "0.62805784", "0.6262583", "0.62548584", "0.6249484", "0.62440157", "0.6225495", "0.6223621", "0.62102556", "0.6196239", "0.61716735", "0.61636156", "0.6110331", "0.61093...
0.0
-1
Get a list of a user's playlists.
def uJEH(): KwCz = [] icdt = UXsa.getPlaylists(cuiw) if 'items' in icdt: KwCz = icdt['items'] w1hU = UXsa.getSavedPlaylistIDsByUser(int(cuiw['user_id'])) aoH_ = [YRbF for YRbF in KwCz if YRbF['id'] not in w1hU] uubQ = [YRbF for YRbF in KwCz if YRbF['id'] in w1hU] nPrm = {'regPlaylist...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tfH8(YKHO, uJjO: str, qoqK: int=20, vgXP: int=0):\n return YKHO._get(f'users/{uJjO}/playlists', limit=qoqK, offset=vgXP)", "def bgAj(YKHO, QePW):\n CBIr = tHSi.find_by_id(QePW.userid)\n tfH8 = gfdD.find_by_owner(CBIr.key).fetch(20)\n return YKHO.build_playlist_response(tfH8)", "def D20W(YKHO, C...
[ "0.8362418", "0.8254638", "0.8195101", "0.7974434", "0.79178256", "0.7691519", "0.7642135", "0.7630549", "0.75329334", "0.7473043", "0.74099374", "0.73764855", "0.73201317", "0.71808696", "0.70882946", "0.70558065", "0.70499766", "0.69681185", "0.6863668", "0.6645491", "0.654...
0.7333007
12
Unicode representation of Order.
def zAg0(YKHO): return YKHO.shelf.item.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uN_z(YKHO, T4Wy):\n return QMSQ(T4Wy)", "def xx_o(YKHO, T4Wy):\n return u'%s' % T4Wy", "def Ku9n(YKHO):\n return str(YKHO).decode('ascii')", "def Sa1R(YKHO) -> QMSQ:\n ...", "def Sa1R(YKHO) -> QMSQ:\n ...", "def CoPf(YKHO) -> str:\n return YKHO._data['character_order']", "def zAg0...
[ "0.727987", "0.6794999", "0.6483973", "0.64472353", "0.64472353", "0.63554955", "0.61911196", "0.6116624", "0.60456485", "0.60156214", "0.6001794", "0.59931725", "0.59753853", "0.59588695", "0.5953651", "0.59113544", "0.5907901", "0.5885771", "0.5878115", "0.58645177", "0.584...
0.0
-1
Test if an ATEvent object implements all relevant interfaces.
def BPk6(YKHO): YKHO.assertTrue(fRFa.providedBy(YKHO.obj)) YKHO.assertTrue(hW4z.providedBy(YKHO.obj)) YKHO.assertTrue(jByZ.providedBy(YKHO.obj)) YKHO.assertTrue(C7zo.providedBy(YKHO.obj)) YKHO.assertTrue(kVdz.providedBy(YKHO.obj)) YKHO.assertTrue(tnCY(kVdz, YKHO.obj))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ywjQ(Z8Pp, *YfBb):\n for cTH1 in YfBb:\n if not VDeD(Z8Pp, cTH1):\n return False\n return True", "def ywjQ(Z8Pp, *YfBb):\n for cTH1 in YfBb:\n if not VDeD(Z8Pp, cTH1):\n return False\n return True", "def uqUx(YKHO, YEnM, wohN):\n YKHO.assertTrue(wohN.provi...
[ "0.6279814", "0.6279814", "0.6165603", "0.6112963", "0.59556156", "0.5929444", "0.5881702", "0.58559626", "0.5817494", "0.5721367", "0.5681247", "0.5681247", "0.56597096", "0.5642392", "0.5635892", "0.5613095", "0.5574558", "0.55547416", "0.55369914", "0.5534713", "0.55184144...
0.71761626
0
Opens a new database connection if there is none yet for the current application context.
def GGod(viqz): if not hasattr(WsL5.g, 'client'): WsL5.g.client, WsL5.g.db = WlyJ(viqz) return (WsL5.g.client, WsL5.g.db)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db", "def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)", "def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)", "def W...
[ "0.7737639", "0.7582971", "0.73180443", "0.71693045", "0.70220166", "0.6966687", "0.6954785", "0.69486743", "0.6897534", "0.6842663", "0.68292314", "0.68191963", "0.680592", "0.67950195", "0.67697805", "0.6762173", "0.6751266", "0.6746273", "0.67316663", "0.670031", "0.668866...
0.0
-1
Check that the user is NOT logged in
def RLog(m2Zb=None): def ZmIX(LpBI): def uMyV(QePW, *qIxc, **B2fa): if QePW.user.is_authenticated(): return vKnz(gxEw('core:home')) else: return LpBI(QePW, *qIxc, **B2fa) return uMyV if m2Zb is None: return ZmIX else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y8Sy(YKHO):\n return YKHO.auth.get_user_by_session() is not None", "def Baes(YKHO):\n if YKHO.state == Wa7E.LOGGED_OUT:\n return False\n return True", "def Y8Sy(YKHO):\n return YKHO.user is not None", "def T_ME():\n return 'user' in cuiw", "def Y8Sy(QePW):\n return QePW.current...
[ "0.73652387", "0.7342946", "0.7264877", "0.72366494", "0.7186618", "0.7144331", "0.71151835", "0.7073038", "0.7073038", "0.7073038", "0.7073038", "0.7049603", "0.7023439", "0.69996375", "0.698806", "0.6952942", "0.6921483", "0.68559563", "0.684427", "0.68374467", "0.68333995"...
0.0
-1
Parses a point from the line of text
def hfK9(l5Ny): SQ3m = [int(Q7me) for Q7me in l5Ny.strip().split(',')] AU8u = PvyL(*SQ3m) n5sN = '{},{},{},{}'.format(AU8u.x, AU8u.y, AU8u.z, AU8u.t) assert n5sN == l5Ny, yk4i(n5sN, l5Ny) return AU8u
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kz_o(YKHO, m6ae):\n Bmg9 = YKHO.substr(m6ae, EhaV['RECORD_ID'][0], EhaV['RECORD_ID'][1]).strip()\n if Bmg9 not in (q0R2, J60f):\n return\n YKHO.set_definition(EhaV)\n return YKHO.parse(m6ae)", "def u_So(zFiD):\n SQ3m = zFiD.split(',')\n return slKQ(SQ3m[0], [SQ3m[1], SQ3m[2]])", "d...
[ "0.75079757", "0.7078823", "0.66301596", "0.6544174", "0.6531106", "0.6481116", "0.6471549", "0.6382969", "0.6354874", "0.6314013", "0.624457", "0.6211151", "0.61723226", "0.61217695", "0.6107229", "0.6107229", "0.6074324", "0.6056576", "0.602781", "0.59955186", "0.59650505",...
0.71761596
1
Computes p(w) = p(z=1) p_{copy}(w|z=0) + p(z=0) p_{softmax}(w|z=0)
def KVH6(YKHO, Zode, Fw3A, PJWX=False): KeL5 = YKHO.linear(Zode) KeL5[:, CHQV.Constants.UNK] = -float('inf') KeL5[:, CHQV.Constants.PAD] = -float('inf') JxU2 = vuvg.softmax(KeL5) jth9 = vuvg.sigmoid(YKHO.linear_copy(Zode)) PFOw = ht2j.mul(JxU2, 1 - jth9.expand_as(JxU2)) Lt9o = ht2j.mul(Fw3A,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gc42(YKHO, epBp):\n YKHO.a = vuvg.softplus(YKHO.a)\n YKHO.w = vuvg.softmax(YKHO.w, dim=1)\n PcU6 = YKHO.a * epBp + YKHO.b\n sX11 = ht2j.sigmoid(PcU6)\n Ommc = YKHO.w * sX11\n if len(epBp.shape) > 2:\n Ommc = ht2j.sum(YKHO.w * sX11, dim=1)\n J9zt = Ommc * (1 - YKHO.eps) + YKHO.eps * ...
[ "0.66816306", "0.6341917", "0.63075", "0.6231154", "0.6220307", "0.62035924", "0.6187527", "0.61788213", "0.61677027", "0.6154292", "0.6107564", "0.6076157", "0.6073725", "0.60406226", "0.60381573", "0.60348624", "0.60254025", "0.60229063", "0.6019567", "0.5985108", "0.598510...
0.55286825
83
Returns an image with a random degree of brightness.
def x0mx(LNo8): LNo8 = XC5k.cvtColor(LNo8, XC5k.COLOR_RGB2HSV) asva = 0.25 + oyIN.random.uniform() LNo8[:, :, 2] = LNo8[:, :, 2] * asva LNo8 = XC5k.cvtColor(LNo8, XC5k.COLOR_HSV2RGB) return LNo8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0mx(LNo8):\n _z_f = XC5k.cvtColor(LNo8, XC5k.COLOR_RGB2HSV)\n YUO6 = 0.9 + 0.5 * (2 * oyIN.random.uniform() - 1.0)\n _z_f[:, :, 2] = _z_f[:, :, 2] * YUO6\n _z_f = XC5k.cvtColor(_z_f, XC5k.COLOR_HSV2RGB)\n return _z_f", "def x0mx(LNo8):\n XWry = XC5k.cvtColor(LNo8, XC5k.COLOR_RGB2HSV)\n ...
[ "0.7699167", "0.7671408", "0.74550825", "0.7293831", "0.7056945", "0.69009554", "0.675233", "0.67481035", "0.6732132", "0.6726205", "0.6584259", "0.645901", "0.6430547", "0.6338716", "0.6319761", "0.6315538", "0.6281936", "0.6273927", "0.6265488", "0.62469244", "0.62175995", ...
0.78828675
0
newimagefromfile(self, infile) > image Summary Construct a new image analysis tool using the specified image. (Also known as newimage.) Description This method returns an image analysis tool associated with the specified image. Constructing a image analysis tool in addition to the default ia tool allows the user to ope...
def QWMp(YKHO, apum): return t7xG.image_newimagefromfile(YKHO, apum)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g54I(YKHO, apum):\n return t7xG.image_newimage(YKHO, apum)", "def KvUh(YKHO, *qIxc, **B2fa):\n return t7xG.image_newimagefromimage(YKHO, *qIxc, **B2fa)", "def AYWq(YKHO, *qIxc, **B2fa):\n return t7xG.image_newimagefromfits(YKHO, *qIxc, **B2fa)", "def open(YKHO, apum, wyyA=True):\n return t7xG...
[ "0.74905187", "0.64655584", "0.5957915", "0.5539942", "0.5439315", "0.5430824", "0.54275376", "0.5230645", "0.5210181", "0.5202679", "0.5173129", "0.51427925", "0.5132872", "0.5102963", "0.5092627", "0.50748235", "0.5071782", "0.5053466", "0.5046822", "0.50007904", "0.499612"...
0.7515106
0
type(self) > string Summary Return the type of this tool Description This function returns the string `image'. It can be used in a script to make sure this variable is an Image ool.
def type(YKHO): return t7xG.image_type(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hghu(YKHO) -> str:\n ...", "def mbFI(YKHO):\n return YKHO.__imageType", "def i6XV(YKHO) -> W8hl:\n return YKHO._image_type", "def type(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'type')", "def type(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'type')", "def type(YKHO) -> ...
[ "0.6884929", "0.68443716", "0.6739891", "0.66384435", "0.66384435", "0.66384435", "0.66384435", "0.66384435", "0.66384435", "0.66384435", "0.66384435", "0.66384435", "0.66384435", "0.66384435", "0.66384435", "0.66384435", "0.66384435", "0.66384435", "0.66384435", "0.66384435", ...
0.7714822
0
pixeltype(self) > string Summary Get the pixel data type of the attached image Description This application returns the data type of the pixels of the attached image as a string.
def Od7N(YKHO): return t7xG.image_pixeltype(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tr2e(YKHO):\n pass", "def type(YKHO):\n return t7xG.image_type(YKHO)", "def mbFI(YKHO):\n return YKHO.__imageType", "def i6XV(YKHO) -> W8hl:\n return YKHO._image_type", "def sB1G(YKHO):\n return YKHO.unpack_dword(12) & zky8", "def FRul(YKHO) -> str:\n return YKHO.row_dict['type']", ...
[ "0.7601995", "0.6762437", "0.65570414", "0.6318895", "0.6052475", "0.6008654", "0.5970504", "0.5954918", "0.59392214", "0.5908824", "0.58805424", "0.58754957", "0.586327", "0.5825481", "0.5759723", "0.57554764", "0.56984425", "0.56934017", "0.566529", "0.56543887", "0.5646848...
0.7970264
0
isconform(self, other) > bool Summary Returns true of the shape, coordinate system, and axes order of the specified image matches this image. Description Returns True if the shape, coordinate system, and axes order of the specified image matches the current image.
def gFXr(YKHO, Elif): return t7xG.image_isconform(YKHO, Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qTJV(YKHO, Elif):\n return (hasattr(Elif, 'fft') and getattr(Elif, 'fft', oyIN.array([])).shape == YKHO.fft.shape, super(QrDD, YKHO).compatible(Elif))", "def xa14(YKHO, Elif):\n if YKHO.__class__ != Elif.__class__:\n return False\n return YKHO.mesh == Elif.mesh and sqqd.equal(YKHO.shape, Elif...
[ "0.6306146", "0.62065154", "0.62064797", "0.61074966", "0.60226226", "0.5990914", "0.59463644", "0.58837914", "0.58684194", "0.5861098", "0.58139426", "0.57853764", "0.5775929", "0.5770766", "0.5757954", "0.57332295", "0.56849897", "0.56110466", "0.5566642", "0.5565923", "0.5...
0.86936665
0
Generates JSON endpoint for a Category, listing all its items.
def _qxz(VMw8): try: Ghho = cuiw.query(qZuN).filter_by(id=VMw8).one() DumB = cuiw.query(JF4A).filter_by(category_id=VMw8).all() return pz3A(ListItems=[YRbF.serialize for YRbF in DumB]) except Exception as e: return 'There was a problem with your query %s, please Verify,\n ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y1ft():\n LeZt = N3tc()\n return pz3A(categories=[YRbF.serialize for YRbF in LeZt])", "def xBJn(VMw8):\n DumB = cuiw.query(kLxY).filter(kLxY.category_id == VMw8)\n return pz3A(json_list=[YRbF.to_json() for YRbF in DumB.all()])", "def FA4R():\n LeZt = cuiw.query(qZuN)\n return pz3A(json_li...
[ "0.74364364", "0.74330056", "0.7388259", "0.73846996", "0.7369376", "0.718654", "0.70623934", "0.7018258", "0.7005053", "0.69864446", "0.6842182", "0.682935", "0.67754793", "0.671744", "0.67165095", "0.67091656", "0.67071456", "0.6648937", "0.66429365", "0.6642575", "0.659383...
0.6540868
24
Edits an existing category.
def Icd6(VMw8): if 'username' not in sGQh: return vKnz('/login') UsRV = cuiw.query(qZuN).filter_by(id=VMw8).one() if UsRV.user_id != sGQh['user_id']: Dwep('You are not the creator of %s category, and cannot modify it' % UsRV.name) return vKnz(nKyW('showCategories')) elif QePW.met...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Icd6(VMw8):\n UsRV = cuiw.query(qZuN).filter_by(id=VMw8).one()\n if UsRV.user_id != sGQh['user_id']:\n Dwep('You are not authorized to edit this Category. Please create your own Category in order to edit.')\n return vKnz(nKyW('showallCategories'))\n if QePW.method == 'POST':\n...
[ "0.7448016", "0.73773915", "0.72520155", "0.72491616", "0.7223849", "0.7159262", "0.7158876", "0.7130796", "0.7117691", "0.70936936", "0.70255977", "0.679104", "0.67657214", "0.6726786", "0.6685621", "0.66422343", "0.6603833", "0.6603362", "0.6590366", "0.6538154", "0.6503746...
0.71838003
5
Shows all items associated to a category.
def MYp2(VMw8): Ghho = cuiw.query(qZuN).filter_by(id=VMw8).one() DumB = cuiw.query(JF4A).filter_by(category_id=VMw8).all() Wyuj = PviL(Ghho.user_id) if 'user_id' in sGQh: if Ghho.user_id != sGQh['user_id']: return TvZl('pubitems.html', items=DumB, category=Ghho, creator=Wyuj, user=Pv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WDPm(VMw8):\n MT0P()\n LeZt = NCls.getIndexCategories()\n Ghho = NCls.getByCategory(VMw8)\n DumB = NCls.getItemsByCategory(VMw8)\n return TvZl('category.html', main_category=Ghho, categories=LeZt, category_id=VMw8, items=DumB, user_id=sGQh.get('user_id'), STATE=sGQh.get('state'))", "def oMTA(V...
[ "0.8245045", "0.8128328", "0.79183465", "0.77617884", "0.76912117", "0.7679575", "0.76424646", "0.7570494", "0.74917156", "0.7310864", "0.7207436", "0.70068157", "0.68298787", "0.68096113", "0.67776626", "0.67736363", "0.6666207", "0.66629463", "0.66592", "0.66533726", "0.657...
0.7423759
9
Return random variable dataloaders and generator NN. A dataloader is used to iterate through the latent space and the target distribution. The latent space dataloader is a uniform distribution sampler and the target dataloader is a normal distribution sampler. If no_target is True, just return the latent space dataload...
def UlZy(qIxc, Qb0v=False): yYo1 = gMbG.UniformRVDataset(num_samples=qIxc.num_samples, shape=qIxc.in_shape) QHoR = ht2j.utils.data.DataLoader(yYo1, batch_size=qIxc.batch_size) c2Yh = ht2j.nn.Sequential(ht2j.nn.Linear(qIxc.in_shape, 5), ht2j.nn.LeakyReLU(), ht2j.nn.Linear(5, 5), ht2j.nn.LeakyReLU(), ht2j.nn....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PYMZ(YKHO, KDJg, KIp5):\n q1Fq = YKHO.get_uniform_subset(KDJg)\n if KIp5:\n G6pR = YKHO.val_data_args\n else:\n G6pR = YKHO.train_data_args\n QHoR = ht2j.utils.data.DataLoader(q1Fq, batch_size=G6pR['batch_size'], shuffle=False, pin_memory=True, num_workers=0)\n return QHoR", "def...
[ "0.5923972", "0.5715177", "0.5665696", "0.5565205", "0.5559021", "0.5534524", "0.5483504", "0.5472646", "0.5413885", "0.5411865", "0.5405384", "0.53437614", "0.53388894", "0.53118294", "0.52777106", "0.5276128", "0.52755857", "0.5260868", "0.52570456", "0.52104247", "0.520419...
0.6535073
0
Set the document name. Raise CardinalityError if already defined.
def cWFH(YKHO, A97Q, mWFP): if not YKHO.doc_name_set: A97Q.name = mWFP YKHO.doc_name_set = True return True else: raise NIWX('Document::Name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dgIl(YKHO, dgIl):\n YKHO._document_name = dgIl", "def dgIl(YKHO, dgIl):\n YKHO._document_name = dgIl", "def dgIl(YKHO, dgIl):\n YKHO._document_name = dgIl", "def wkjW(YKHO, GtII):\n dgIl = GtII + YKHO.random_string_generator(6)\n YKHO.set_value_into_input_field(YKHO.document_name_text_fiel...
[ "0.7747723", "0.7747723", "0.7747723", "0.7306658", "0.7082357", "0.6463748", "0.6461973", "0.63907516", "0.63525945", "0.6307711", "0.62740475", "0.6269721", "0.62431574", "0.6229135", "0.6212087", "0.6212087", "0.61876816", "0.6180033", "0.61783385", "0.61685866", "0.616858...
0.82850534
0
Set the document SPDX Identifier. Raise value error if malformed value. Raise CardinalityError if already defined.
def XmWe(YKHO, A97Q, BwAV): if not YKHO.doc_spdx_id_set: if BwAV == 'SPDXRef-DOCUMENT': A97Q.spdx_id = BwAV YKHO.doc_spdx_id_set = True return True else: raise mAAK('Document::SPDXID') else: raise NIWX('Document::SPDXID')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ilxn(YKHO, BWXx: str):\n if RyWp.validate_identifier(BWXx):\n YKHO._identifier = BWXx\n else:\n raise qTNt('invalid-identifier-format', 406)", "def oBco(YKHO, BWXx):\n super(V4kV, YKHO)._set_input('DocumentId', BWXx)", "def XmWe(YKHO, A97Q, BwAV):\n if not YKHO.doc_spdx_id_set:\n ...
[ "0.6806322", "0.63734084", "0.6187029", "0.6163038", "0.6131274", "0.6111658", "0.6111658", "0.60508287", "0.60223275", "0.6010436", "0.6010436", "0.6010436", "0.6010436", "0.59688616", "0.58998543", "0.58512574", "0.58264613", "0.58038294", "0.56845844", "0.5656814", "0.5646...
0.6277714
2
Set the `external_document_id` attribute of the `ExternalDocumentRef` object.
def VJJg(YKHO, A97Q, DQPw): A97Q.add_ext_document_reference(Zc4z(external_document_id=DQPw))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7", "def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7", "def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7", "def WhG7(YKHO, WhG7):\n if WhG7 is None:\n raise ValueError('Invalid value for `external_id`, must not be `None`')\n YKHO._external...
[ "0.738844", "0.738844", "0.738844", "0.6689075", "0.6604646", "0.6594093", "0.63521045", "0.6264925", "0.61174864", "0.59861606", "0.58019435", "0.5704018", "0.5691114", "0.55702615", "0.55095255", "0.55095255", "0.547749", "0.5466418", "0.54524696", "0.54442817", "0.5425098"...
0.70707786
3
Set the `spdx_document_uri` attribute of the `ExternalDocumentRef` object.
def SHba(YKHO, A97Q, NzCl): if zty5.validate_doc_namespace(NzCl): A97Q.ext_document_references[-1].spdx_document_uri = NzCl else: raise mAAK('Document::ExternalDocumentRef')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XmWe(YKHO, A97Q, BwAV):\n if not YKHO.doc_spdx_id_set:\n if BwAV == 'SPDXRef-DOCUMENT':\n A97Q.spdx_id = BwAV\n YKHO.doc_spdx_id_set = True\n return True\n else:\n raise mAAK('Document::SPDXID')\n else:\n raise NIWX('Document::SPDXID')", ...
[ "0.62746304", "0.6217704", "0.5873042", "0.5867671", "0.5800019", "0.5800019", "0.5780612", "0.5715904", "0.5715904", "0.56537235", "0.56537235", "0.5602704", "0.5485078", "0.5480636", "0.54584634", "0.5340366", "0.528663", "0.518384", "0.51816887", "0.5159918", "0.50915295",...
0.84740543
0
Set the review comment. Raise CardinalityError if already set. Raise OrderError if no reviewer defined before. Raise SPDXValueError if comment is not free form text.
def PXxc(YKHO, A97Q, aM_I): if len(A97Q.reviews) != 0: if not YKHO.review_comment_set: YKHO.review_comment_set = True if zty5.validate_review_comment(aM_I): A97Q.reviews[-1].comment = fbmq(aM_I) return True else: raise mAAK(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fVat(YKHO, A97Q, aM_I):\n if not YKHO.doc_comment_set:\n YKHO.doc_comment_set = True\n if zty5.validate_doc_comment(aM_I):\n A97Q.comment = fbmq(aM_I)\n return True\n else:\n raise mAAK('Document::Comment')\n else:\n raise NIWX('Document::Comme...
[ "0.7057049", "0.6887548", "0.6858093", "0.6854819", "0.6820559", "0.6779137", "0.6715466", "0.6704581", "0.66766274", "0.6652652", "0.6610748", "0.64181215", "0.6412712", "0.6360429", "0.63485444", "0.63485444", "0.63485444", "0.63485444", "0.63485444", "0.63485444", "0.63485...
0.7602701
0
Set the annotation SPDX Identifier. Raise CardinalityError if already set. Raise OrderError if no annotator defined before.
def UMsf(YKHO, A97Q, nztO): if len(A97Q.annotations) != 0: if not YKHO.annotation_spdx_id_set: YKHO.annotation_spdx_id_set = True A97Q.annotations[-1].spdx_id = nztO return True else: raise NIWX('Annotation::SPDXREF') else: raise skQs('Anno...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lqca(YKHO, *qIxc):\n return _VfD.SBase_setAnnotation(YKHO, *qIxc)", "def Lqca(YKHO, *qIxc):\n return _VfD.Model_setAnnotation(YKHO, *qIxc)", "def Lqca(YKHO, *qIxc):\n return _VfD.SpeciesReference_setAnnotation(YKHO, *qIxc)", "def nCjC(YKHO, Mkmy, mWFP, BWXx):\n YKHO.__context.builder.Document...
[ "0.6655752", "0.6580016", "0.6448447", "0.6032588", "0.57911277", "0.567614", "0.567614", "0.5658713", "0.56456363", "0.5605272", "0.5605272", "0.5605272", "0.5605272", "0.5538689", "0.5472283", "0.5451124", "0.5448639", "0.5448113", "0.5409524", "0.5408796", "0.5406523", "...
0.58795345
4
Set the Package SPDX Identifier. Raise SPDXValueError if malformed value. Raise CardinalityError if already defined.
def gluP(YKHO, A97Q, nztO): YKHO.assert_package_exists() if not YKHO.package_spdx_id_set: if zty5.validate_pkg_spdx_id(nztO): A97Q.package.spdx_id = nztO YKHO.package_spdx_id_set = True return True else: raise mAAK('Package::SPDXID') else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ilxn(YKHO, BWXx: str):\n if RyWp.validate_identifier(BWXx):\n YKHO._identifier = BWXx\n else:\n raise qTNt('invalid-identifier-format', 406)", "def oldI(YKHO, oldI):\n YKHO._package_id = oldI", "def Ilxn(YKHO, Ilxn):\n YKHO._identifier = Ilxn", "def Ilxn(YKHO, Ilxn):\n YKHO._...
[ "0.57149756", "0.54936916", "0.5367692", "0.5367692", "0.53604573", "0.52781177", "0.52781177", "0.52781177", "0.52781177", "0.5268717", "0.5246041", "0.51789856", "0.5110418", "0.51042926", "0.5094257", "0.5049992", "0.5045584", "0.5038243", "0.5028689", "0.50114274", "0.498...
0.6070608
0
Set the package originator, if not already set. entity Organization, Person or NoAssert. Raise CardinalityError if already has an originator. Raise OrderError if no package previously defined.
def ZiEE(YKHO, A97Q, LEXu): YKHO.assert_package_exists() if not YKHO.package_originator_set: YKHO.package_originator_set = True if zty5.validate_pkg_originator(LEXu): A97Q.package.originator = LEXu return True else: raise mAAK('Package::Originator') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lqoY(YKHO, hLRM):\n YKHO.origin = hLRM\n YKHO.__symbol_set.update(hLRM)", "def rEVH(YKHO, A97Q, LEXu):\n YKHO.assert_package_exists()\n if not YKHO.package_supplier_set:\n YKHO.package_supplier_set = True\n if zty5.validate_pkg_supplier(LEXu):\n A97Q.package.supplier = LE...
[ "0.5921372", "0.55250645", "0.53644764", "0.5156686", "0.50321263", "0.5013553", "0.4990318", "0.49623471", "0.49579707", "0.4926831", "0.49218974", "0.4875088", "0.48225436", "0.48066536", "0.4794843", "0.47705242", "0.47481257", "0.4736987", "0.4697249", "0.46906602", "0.46...
0.8140218
0
Set the package's concluded licenses. licenses License info. Raise CardinalityError if already defined. Raise OrderError if no package previously defined. Raise SPDXValueError if data malformed.
def l6CL(YKHO, A97Q, KbHS): YKHO.assert_package_exists() if not YKHO.package_conc_lics_set: YKHO.package_conc_lics_set = True if zty5.validate_lics_conc(KbHS): A97Q.package.conc_lics = KbHS return True else: raise mAAK('Package::ConcludedLicenses') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I7Oe(YKHO, A97Q, ieuM):\n if YKHO.has_package(A97Q) and YKHO.has_file(A97Q):\n if not YKHO.file_conc_lics_set:\n YKHO.file_conc_lics_set = True\n if zty5.validate_lics_conc(ieuM):\n YKHO.file(A97Q).conc_lics = ieuM\n return True\n else:\n...
[ "0.660802", "0.6363097", "0.6235055", "0.6217067", "0.6180782", "0.6148454", "0.6113832", "0.5978379", "0.5886257", "0.58503217", "0.56354606", "0.5634131", "0.5596324", "0.55309457", "0.5513992", "0.550989", "0.5470658", "0.54414254", "0.5421691", "0.53720945", "0.53478247",...
0.75933665
0
Add a license from a file to the package. Raise SPDXValueError if data malformed. Raise OrderError if no package previously defined.
def yd9Z(YKHO, A97Q, ieuM): YKHO.assert_package_exists() if zty5.validate_lics_from_file(ieuM): A97Q.package.licenses_from_files.append(ieuM) return True else: raise mAAK('Package::LicensesFromFile')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oUX5(YKHO, A97Q, ieuM):\n if YKHO.has_package(A97Q) and YKHO.has_file(A97Q):\n if zty5.validate_file_lics_in_file(ieuM):\n YKHO.file(A97Q).add_lics(ieuM)\n return True\n else:\n raise mAAK('File::LicenseInFile')\n else:\n raise skQs('File::LicenseInFi...
[ "0.65451026", "0.63048977", "0.618981", "0.6017855", "0.60013866", "0.5651887", "0.5586394", "0.552065", "0.5476346", "0.5467727", "0.5297547", "0.5155521", "0.5145596", "0.512549", "0.5103639", "0.50962645", "0.50861496", "0.5083219", "0.5061989", "0.50131726", "0.49579895",...
0.7399092
0
Set the package's declared license. Raise SPDXValueError if data malformed. Raise OrderError if no package previously defined. Raise CardinalityError if already set.
def Gu08(YKHO, A97Q, ieuM): YKHO.assert_package_exists() if not YKHO.package_license_declared_set: YKHO.package_license_declared_set = True if zty5.validate_lics_conc(ieuM): A97Q.package.license_declared = ieuM return True else: raise mAAK('Package::Li...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W6EI(YKHO, A97Q, l5Ny):\n YKHO.assert_package_exists()\n if not YKHO.package_license_comment_set:\n YKHO.package_license_comment_set = True\n if zty5.validate_pkg_lics_comment(l5Ny):\n A97Q.package.license_comment = fbmq(l5Ny)\n return True\n else:\n ...
[ "0.6801328", "0.63618284", "0.6317917", "0.6215473", "0.59796244", "0.57942456", "0.5789389", "0.57017475", "0.5699216", "0.56781405", "0.56582403", "0.5617481", "0.5610709", "0.55815625", "0.55813754", "0.5576021", "0.5526632", "0.54805475", "0.547688", "0.54693526", "0.5432...
0.76700735
0
Set the package's license comment. Raise OrderError if no package previously defined. Raise CardinalityError if already set. Raise SPDXValueError if text is not free form text.
def W6EI(YKHO, A97Q, l5Ny): YKHO.assert_package_exists() if not YKHO.package_license_comment_set: YKHO.package_license_comment_set = True if zty5.validate_pkg_lics_comment(l5Ny): A97Q.package.license_comment = fbmq(l5Ny) return True else: raise mAAK('P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zkk8(YKHO, A97Q, l5Ny):\n if YKHO.has_package(A97Q) and YKHO.has_file(A97Q):\n if not YKHO.file_license_comment_set:\n YKHO.file_license_comment_set = True\n if zty5.validate_file_lics_comment(l5Ny):\n YKHO.file(A97Q).license_comment = fbmq(l5Ny)\n else...
[ "0.81494117", "0.8046435", "0.7594991", "0.7152861", "0.698146", "0.68384457", "0.67709124", "0.6671191", "0.6669421", "0.66284496", "0.6505174", "0.6306473", "0.6255196", "0.61364514", "0.6024993", "0.5908839", "0.589094", "0.5853059", "0.58171934", "0.5651913", "0.56445026"...
0.8614442
0
Set the package's copyright text. Raise OrderError if no package previously defined. Raise CardinalityError if already set. Raise value error if text is not one of [None, NOASSERT, TEXT].
def PMhZ(YKHO, A97Q, l5Ny): YKHO.assert_package_exists() if not YKHO.package_cr_text_set: YKHO.package_cr_text_set = True if zty5.validate_pkg_cr_text(l5Ny): if isinstance(l5Ny, jUrF): A97Q.package.cr_text = fbmq(l5Ny) else: A97Q.package.cr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wpIl(YKHO, A97Q, l5Ny):\n if YKHO.has_package(A97Q) and YKHO.has_file(A97Q):\n if not YKHO.file_copytext_set:\n YKHO.file_copytext_set = True\n if zty5.validate_file_cpyright(l5Ny):\n if isinstance(l5Ny, jUrF):\n YKHO.file(A97Q).copyright = fbmq...
[ "0.7157871", "0.70589125", "0.6998868", "0.6817139", "0.6783448", "0.6764741", "0.6532283", "0.650612", "0.613413", "0.613413", "0.5897349", "0.57371515", "0.57294667", "0.57275856", "0.5607852", "0.55684423", "0.5500429", "0.5488332", "0.5484109", "0.5461759", "0.5457328", ...
0.8474046
0
Set the `category` attribute of the `ExternalPackageRef` object.
def s0zb(YKHO, A97Q, Ghho): YKHO.assert_package_exists() if zty5.validate_pkg_ext_ref_category(Ghho): if len(A97Q.package.pkg_ext_refs) and A97Q.package.pkg_ext_refs[-1].category is None: A97Q.package.pkg_ext_refs[-1].category = Ghho else: A97Q.package.add_pkg_ext_refs(B5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ghho(YKHO, Ghho):\n YKHO._category = Ghho", "def Ghho(YKHO, Ghho):\n YKHO._category = Ghho", "def Ghho(YKHO, Ghho):\n YKHO._category = Ghho", "def Ghho(YKHO, Ghho):\n YKHO._category = Ghho", "def Ghho(YKHO, Ghho):\n YKHO._category = Ghho", "def Ials(YKHO, Ghho):\n if Ghho is not Non...
[ "0.70325243", "0.70325243", "0.70325243", "0.70325243", "0.70325243", "0.69428605", "0.6879619", "0.6653265", "0.6124147", "0.61012524", "0.6057481", "0.5979928", "0.5976272", "0.59347236", "0.58687425", "0.579529", "0.5735041", "0.56527996", "0.5650938", "0.55857307", "0.549...
0.82121855
0
Set the `pkg_ext_ref_type` attribute of the `ExternalPackageRef` object.
def sSzA(YKHO, A97Q, rtbR): YKHO.assert_package_exists() if zty5.validate_pkg_ext_ref_type(rtbR): if len(A97Q.package.pkg_ext_refs) and A97Q.package.pkg_ext_refs[-1].pkg_ext_ref_type is None: A97Q.package.pkg_ext_refs[-1].pkg_ext_ref_type = rtbR else: A97Q.package.add_pkg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y_sS(YKHO, qdJE, cM24):\n try:\n qQ1Y = yHyU.types.index(cM24)\n except ValueError:\n raise ValueError('The given type %s could not be found in available types: %' % (cM24, yHyU.types))\n ccKF.setAttr('%s.type' % qdJE, qQ1Y)", "def QIx0(YKHO, QIx0):\n YKHO._package_type = QIx0", "...
[ "0.6159773", "0.5961745", "0.59081626", "0.5753152", "0.5753152", "0.5753152", "0.5730525", "0.541535", "0.5396919", "0.5396919", "0.5396919", "0.5396919", "0.5396919", "0.5396919", "0.5373088", "0.5369171", "0.53629214", "0.53623974", "0.5353288", "0.53107536", "0.5273596", ...
0.8858585
0
Raise OrderError if no package or no file defined. Raise CardinalityError if more than one comment set. Raise SPDXValueError if text is not free form text.
def gVuP(YKHO, A97Q, l5Ny): if YKHO.has_package(A97Q) and YKHO.has_file(A97Q): if not YKHO.file_comment_set: YKHO.file_comment_set = True if zty5.validate_file_comment(l5Ny): YKHO.file(A97Q).comment = fbmq(l5Ny) return True else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zkk8(YKHO, A97Q, l5Ny):\n if YKHO.has_package(A97Q) and YKHO.has_file(A97Q):\n if not YKHO.file_license_comment_set:\n YKHO.file_license_comment_set = True\n if zty5.validate_file_lics_comment(l5Ny):\n YKHO.file(A97Q).license_comment = fbmq(l5Ny)\n else...
[ "0.5914955", "0.5854182", "0.5657133", "0.5595194", "0.54339826", "0.5308573", "0.53011435", "0.52610093", "0.52270424", "0.5199544", "0.51780844", "0.5151495", "0.5097012", "0.50774825", "0.50482154", "0.5039999", "0.50381523", "0.49722335", "0.49688828", "0.49667266", "0.49...
0.6025616
0
Raise OrderError if no package or file defined. Raise SPDXValueError if malformed value.
def oUX5(YKHO, A97Q, ieuM): if YKHO.has_package(A97Q) and YKHO.has_file(A97Q): if zty5.validate_file_lics_in_file(ieuM): YKHO.file(A97Q).add_lics(ieuM) return True else: raise mAAK('File::LicenseInFile') else: raise skQs('File::LicenseInFile')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tmBZ(YKHO):\n\n def Fu95():\n ETu_ = Rg82.read(pmON.join('GenBank', 'invalid_product.gb'), 'genbank')\n YKHO.assertRaises(ValueError, Fu95)", "def dyom(YKHO):\n DQkc(ValueError, yLtf, YKHO.testv1)", "def hIwk(YKHO):\n with TpAC.assert_raises(Bx6I.RejectionError):\n YKHO.dtm1.valid...
[ "0.6375005", "0.5561006", "0.5520461", "0.5514166", "0.5473529", "0.5455603", "0.54430103", "0.5272656", "0.5271739", "0.52384794", "0.52159655", "0.52074456", "0.5205557", "0.5191385", "0.51765156", "0.5176459", "0.5158093", "0.51476985", "0.5129917", "0.5111158", "0.5107678...
0.0
-1
Raise OrderError if no package or file defined. Raise SPDXValueError if not free form text or NONE or NO_ASSERT. Raise CardinalityError if more than one.
def wpIl(YKHO, A97Q, l5Ny): if YKHO.has_package(A97Q) and YKHO.has_file(A97Q): if not YKHO.file_copytext_set: YKHO.file_copytext_set = True if zty5.validate_file_cpyright(l5Ny): if isinstance(l5Ny, jUrF): YKHO.file(A97Q).copyright = fbmq(l5Ny) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xzCw(YKHO):\n UAju = []\n if YKHO.package_format:\n if not ZbWC.match('^[1-9][0-9]*$', str(YKHO.package_format)):\n UAju.append(\"The 'format' attribute of the package must contain a positive integer if present\")\n if not YKHO.name:\n UAju.append('Package name must not be emp...
[ "0.607976", "0.5926898", "0.5802946", "0.57141036", "0.56801033", "0.5672274", "0.5562405", "0.5484936", "0.5468498", "0.5464596", "0.5463877", "0.5458504", "0.54176563", "0.54176", "0.53858477", "0.5385328", "0.53670776", "0.53328896", "0.53297424", "0.53270954", "0.5305994"...
0.0
-1
Add a new extracted license to the document. Raise SPDXValueError if data format is incorrect.
def Hhy6(YKHO, A97Q, GLnd): YKHO.reset_extr_lics() if zty5.validate_extracted_lic_id(GLnd): A97Q.add_extr_lic(C13M.ExtractedLicense(GLnd)) return True else: raise mAAK('ExtractedLicense::id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MZ5x(YKHO, H5ew=None, O7QO='LicenseV500', nNXP=None, MOPg=None):\n return YKHO.license.add(H5ew, O7QO, nNXP, MOPg)", "def yd9Z(YKHO, A97Q, ieuM):\n YKHO.assert_package_exists()\n if zty5.validate_lics_from_file(ieuM):\n A97Q.package.licenses_from_files.append(ieuM)\n return True\n e...
[ "0.6575696", "0.6275083", "0.62596345", "0.62420154", "0.608776", "0.60109174", "0.5892227", "0.5848414", "0.5827891", "0.57654315", "0.57419956", "0.573979", "0.56407845", "0.5620761", "0.55235535", "0.55036247", "0.55033106", "0.5497293", "0.5382184", "0.53481", "0.5313563"...
0.5882061
7
Set license name. Raise SPDXValueError if name is not str or utils.NoAssert Raise OrderError if no license id defined.
def YjSl(YKHO, A97Q, mWFP): if YKHO.has_extr_lic(A97Q): if not YKHO.extr_lic_name_set: YKHO.extr_lic_name_set = True if zty5.validate_extr_lic_name(mWFP): YKHO.extr_lic(A97Q).full_name = mWFP return True else: raise mAAK('Ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YjSl(YKHO, A97Q, mWFP):\n if YKHO.has_extr_lic(A97Q):\n if not YKHO.extr_lic_name_set:\n YKHO.extr_lic_name_set = True\n if zty5.validate_extr_lic_name(mWFP, True):\n YKHO.extr_lic(A97Q).full_name = mWFP\n return True\n else:\n ...
[ "0.73220515", "0.6396575", "0.61972296", "0.61965394", "0.6186129", "0.6170389", "0.6169439", "0.6168958", "0.6168958", "0.61683965", "0.61169314", "0.6085125", "0.6078903", "0.60736537", "0.60736537", "0.60736537", "0.60736537", "0.6058857", "0.6058857", "0.604263", "0.60353...
0.733175
0
Set license comment. Raise SPDXValueError if comment is not free form text. Raise OrderError if no license ID defined.
def hLge(YKHO, A97Q, aM_I): if YKHO.has_extr_lic(A97Q): if not YKHO.extr_lic_comment_set: YKHO.extr_lic_comment_set = True if zty5.validate_is_free_form_text(aM_I): YKHO.extr_lic(A97Q).comment = fbmq(aM_I) return True else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zkk8(YKHO, A97Q, l5Ny):\n if YKHO.has_package(A97Q) and YKHO.has_file(A97Q):\n if not YKHO.file_license_comment_set:\n YKHO.file_license_comment_set = True\n if zty5.validate_file_lics_comment(l5Ny):\n YKHO.file(A97Q).license_comment = fbmq(l5Ny)\n else...
[ "0.81745994", "0.80319244", "0.7535927", "0.7421154", "0.720437", "0.68231684", "0.66864914", "0.65178484", "0.6270932", "0.62492037", "0.6227365", "0.6204164", "0.619954", "0.6194712", "0.6188058", "0.6104291", "0.60890913", "0.6059739", "0.6056942", "0.6056942", "0.604826",...
0.7980674
2
Add a license cross reference. Raise OrderError if no License ID defined.
def yo_y(YKHO, A97Q, bf9h): if YKHO.has_extr_lic(A97Q): YKHO.extr_lic(A97Q).add_xref(bf9h) return True else: raise skQs('ExtractedLicense::CrossRef')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OEXy(YKHO, kGys):\n lnz_ = len(kGys)\n LaVg = (gk2W.c_char * (lnz_ + 1))(*kGys.encode())\n Ylbp = YKHO._dll.JLINK_EMU_AddLicense(LaVg)\n if Ylbp == -1:\n raise UAju.JLinkException('Unspecified error.')\n elif Ylbp == -2:\n raise UAju.JLinkException('Failed to read/write license are...
[ "0.64722526", "0.62111443", "0.58033043", "0.55013335", "0.5416698", "0.5373802", "0.5205612", "0.5191666", "0.516612", "0.51602787", "0.5124441", "0.51213676", "0.5106808", "0.50696963", "0.49839833", "0.49669445", "0.4956937", "0.49544975", "0.49243644", "0.4923189", "0.491...
0.7074869
0
Set name of the snippet. Raise OrderError if no snippet previously defined. Raise CardinalityError if the name is already set.
def RfcG(YKHO, A97Q, mWFP): YKHO.assert_snippet_exists() if not YKHO.snippet_name_set: YKHO.snippet_name_set = True A97Q.snippet[-1].name = mWFP return True else: raise NIWX('SnippetName')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO._name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO._name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO._name = mWFP", "def WZrJ(YKHO, mW...
[ "0.6959192", "0.694765", "0.694765", "0.69101614", "0.69101614", "0.69011956", "0.68903756", "0.68870795", "0.68870795", "0.68870795", "0.68870795", "0.68870795", "0.6861245", "0.6838443", "0.68335605", "0.6824499", "0.6813794", "0.68067247", "0.68067247", "0.68067247", "0.68...
0.8357078
0
Set the snippet's copyright text. Raise OrderError if no snippet previously defined. Raise CardinalityError if already set. Raise SPDXValueError if text is not one of [None, NOASSERT, TEXT].
def bTj3(YKHO, A97Q, l5Ny): YKHO.assert_snippet_exists() if not YKHO.snippet_copyright_set: YKHO.snippet_copyright_set = True if zty5.validate_snippet_copyright(l5Ny): if isinstance(l5Ny, jUrF): A97Q.snippet[-1].copyright = fbmq(l5Ny) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PMhZ(YKHO, A97Q, l5Ny):\n YKHO.assert_package_exists()\n if not YKHO.package_cr_text_set:\n YKHO.package_cr_text_set = True\n if zty5.validate_pkg_cr_text(l5Ny):\n if isinstance(l5Ny, jUrF):\n A97Q.package.cr_text = fbmq(l5Ny)\n else:\n A9...
[ "0.7483664", "0.70696807", "0.7054515", "0.70457447", "0.6823482", "0.6540734", "0.6536564", "0.6187854", "0.6187854", "0.591872", "0.58079594", "0.5701383", "0.56818897", "0.5601822", "0.5402159", "0.53800815", "0.5378974", "0.5361824", "0.5358519", "0.5357413", "0.5355048",...
0.845006
0
Raise OrderError if no snippet previously defined. Raise CardinalityError if already set. Raise SPDXValueError if the data is a malformed value.
def JL_b(YKHO, A97Q, I8YN): YKHO.assert_snippet_exists() if not YKHO.snippet_conc_lics_set: YKHO.snippet_conc_lics_set = True if zty5.validate_lics_conc(I8YN): A97Q.snippet[-1].conc_lics = I8YN return True else: raise mAAK('Snippet::SnippetLicenseConcl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dyom(YKHO):\n DQkc(ValueError, yLtf, YKHO.testv1)", "def tmBZ(YKHO):\n\n def Fu95():\n ETu_ = Rg82.read(pmON.join('GenBank', 'invalid_product.gb'), 'genbank')\n YKHO.assertRaises(ValueError, Fu95)", "def _VMp(YKHO):\n YKHO.ocp_data['source_type'] = 'invalid-source'\n with LCjI(YKHO.te...
[ "0.56103104", "0.52182895", "0.505197", "0.50294346", "0.50227314", "0.5020306", "0.4983532", "0.4959386", "0.48906904", "0.48852557", "0.4831082", "0.4828166", "0.48145762", "0.48132923", "0.47971845", "0.47803226", "0.47758704", "0.47683132", "0.47562045", "0.4753423", "0.4...
0.0
-1
Raise OrderError if no snippet previously defined. Raise SPDXValueError if the data is a malformed value.
def m7zg(YKHO, A97Q, KS4L): YKHO.assert_snippet_exists() if zty5.validate_snip_lics_info(KS4L): A97Q.snippet[-1].add_lics(KS4L) return True else: raise mAAK('Snippet::LicenseInfoInSnippet')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dyom(YKHO):\n DQkc(ValueError, yLtf, YKHO.testv1)", "def tmBZ(YKHO):\n\n def Fu95():\n ETu_ = Rg82.read(pmON.join('GenBank', 'invalid_product.gb'), 'genbank')\n YKHO.assertRaises(ValueError, Fu95)", "def iP_H(YKHO):\n bGrB = YKHO.set_auth_token_header()\n nPrm = {'stock': 'GOOG', 'qua...
[ "0.5954434", "0.57209384", "0.54280454", "0.52760863", "0.521301", "0.517692", "0.5175308", "0.51731735", "0.5092197", "0.50920516", "0.50573885", "0.50407416", "0.50012136", "0.49823266", "0.49694544", "0.49480554", "0.4933678", "0.49084908", "0.4904503", "0.4898814", "0.488...
0.0
-1
Takes square matrices as input and constructs a block diagonal matrix in order of their appearance as input arguments.
def UJ25(Tw2p): e_2d = 0 for XkN1 in Tw2p: if XkN1.shape[0] != XkN1.shape[1]: raise xxyF('Non-square input matrix.') e_2d += XkN1.shape[0] d6pt = 0 l6IL = oyIN.zeros((e_2d, e_2d)) for XkN1 in Tw2p: G1IL = XkN1.shape[0] l6IL[d6pt:d6pt + G1IL, d6pt:d6pt + G1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cq4u(FNxs):\n Z9Mn = {}\n for YRbF, PaeO in enumerate(FNxs):\n for r845, FCz9 in enumerate(FNxs):\n Z9Mn[YRbF, r845] = PaeO.shape[:-1] + FCz9.shape[-1:]\n usx6 = []\n for YRbF, PaeO in enumerate(FNxs):\n bpoz = []\n for r845, bGrB in enumerate(FNxs):\n if ...
[ "0.78770435", "0.772451", "0.77153736", "0.6895055", "0.6756513", "0.667681", "0.6323695", "0.6099601", "0.60986227", "0.6035383", "0.6021418", "0.5928099", "0.5925762", "0.5907038", "0.5885221", "0.58050233", "0.5793896", "0.5793547", "0.5750941", "0.5739432", "0.5709976", ...
0.75373685
3
lcm(a, b) > number Returns least common multiple of two integers a and b using the gcd function.
def BsJX(jzdc, Fg_i): return jzdc * Fg_i / ML2l(jzdc, Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uMYb(jzdc, Fg_i):\n return jzdc * Fg_i / Bu5e(jzdc, Fg_i)", "def BsJX(jzdc, Fg_i):\n return abs(jzdc * Fg_i) / ML2l(jzdc, Fg_i) if jzdc and Fg_i else 0", "def BsJX(jzdc, Fg_i):\n return jzdc * Fg_i / ML2l(jzdc, Fg_i)", "def BsJX(jzdc, Fg_i):\n return jzdc * Fg_i // ML2l(jzdc, Fg_i)", "def B...
[ "0.8980369", "0.88264817", "0.8714298", "0.8696795", "0.8688295", "0.8688295", "0.8688295", "0.8688295", "0.8688295", "0.8688295", "0.8688295", "0.8688295", "0.8688295", "0.86474174", "0.86374545", "0.86374545", "0.8627074", "0.86215067", "0.86196643", "0.86183", "0.8604869",...
0.86542946
15
modExp(a, b, n) > number modExp calculates ab mod n
def vqLz(jzdc, Fg_i, exwG): Z9rn = 0 Csk6 = 1 for U5h4 in bin(Fg_i)[2:]: Z9rn = 2 * Z9rn Csk6 = Csk6 * Csk6 % exwG if U5h4 == '1': Z9rn += 1 Csk6 = Csk6 * jzdc % exwG return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pV15(jzdc, Fg_i, exwG):\n Mkmy = int(1)\n while Fg_i:\n if Fg_i & 1:\n Mkmy = Mkmy * jzdc % exwG\n jzdc = jzdc * jzdc % exwG\n Fg_i >>= 1\n return Mkmy", "def B6S9(jzdc, Fg_i, exwG):\n Aofo = 1\n while True:\n if Fg_i % 2 == 1:\n Aofo = jzdc * ...
[ "0.8597584", "0.84851956", "0.81083775", "0.80882597", "0.76773614", "0.7662332", "0.7503698", "0.7457951", "0.74132854", "0.7327739", "0.73141307", "0.7280034", "0.726227", "0.7226039", "0.7189068", "0.71342766", "0.71265507", "0.712637", "0.71223575", "0.7113074", "0.710953...
0.85754675
1
isPrime(n, [s = 50]) > boolean isPrime uses the Miller Rabin primality test for efficient testing of the primality of n. Optional argument s is number of test iterations. Before beginning the Miller Rabin test, isPrime tests if any known prime < 20000 can factor n.
def _f0Y(exwG, KCHu=50): from random import randrange for WKvO in rPed: if WKvO < exwG: if exwG % WKvO == 0: return False for r845 in range(1, KCHu + 1): jzdc = randrange(1, exwG) if Hfj3(jzdc, exwG): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _f0Y(exwG, rPed):\n G1Hx = epAf.log(exwG, 2)\n Mkmy = vpE4(G1Hx)\n return tZoW(exwG, rPed, Mkmy)", "def u_y_(exwG, nMvt=100):\n if exwG % 2 == 0:\n return exwG == 2\n if exwG in Z3L5.lessThanHundredThousand:\n return True\n return None", "def FBNJ(exwG):\n return T1qg(exw...
[ "0.75833243", "0.75059754", "0.7438362", "0.74137187", "0.74054563", "0.7376554", "0.7366905", "0.7339588", "0.7255724", "0.7255181", "0.72468954", "0.7245205", "0.7239938", "0.7239603", "0.72300446", "0.7228178", "0.7224438", "0.7208048", "0.72071564", "0.7177317", "0.717193...
0.8323775
0