query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
returns a reference to the instantiated DatabaseHandler object
def VdNj(): if _dQe.status != EVcG.STATUS_CONNECTED: _dQe.connect() return _dQe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NCls(YKHO):\n return VCLV(YKHO)", "def NCls(YKHO) -> FfT0:\n return YKHO.impl.db", "def JdrA():\n pass", "def VmlM(YKHO):\n return pths(SZpq.ClientStorage((YKHO.server, YKHO.port)))", "def GGod(YKHO, id: Any) -> VQCX:\n id = str(id)\n try:\n bf9h = YKHO._cache[id]\n retu...
[ "0.74818826", "0.7151715", "0.7127734", "0.70821404", "0.70469826", "0.70404065", "0.6927181", "0.68655276", "0.68633515", "0.6827132", "0.68182987", "0.68108356", "0.6761908", "0.6712951", "0.6711142", "0.66675836", "0.66455704", "0.66091734", "0.659884", "0.65860426", "0.65...
0.8282447
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, JGQ7): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, JGQ7): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8457179", "0.8393067", "0.81457263", "0.8140635", "0.8133462", "0.8094992", "0.8093376", "0.8093376", "0.8093376", "0.80863357", "0.80863357", "0.8077303", "0.8077303", "0.8066831", "0.8043635", "0.8043635", "0.8043635", "0.8043635", "0.8043635", "0.8043635", "0.8043635", ...
0.0
-1
Returns the cluster with this name.
def oT52(mWFP: str) -> PwH5: GikI = _JSP().environment return GikI.clusters[mWFP]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKn5(YKHO):\n return YKHO._cluster", "def hKn5(YKHO):\n return YKHO._cluster", "def c0yN(YKHO):\n return YKHO.name", "def zWug(OaeV, c0yN, B5PH):\n bNKA = OaeV.obj.groups.byName[B5PH].get().data\n hKn5 = OaeV.obj.groups[bNKA.id].clusters[c0yN].get()\n CgYo(hKn5.data)", "def iBC6(YKHO,...
[ "0.77922726", "0.77922726", "0.7730408", "0.7622579", "0.75773084", "0.75548303", "0.75548303", "0.74400455", "0.7404349", "0.7380145", "0.7260885", "0.7260885", "0.7260885", "0.7260885", "0.7260885", "0.72187954", "0.71755487", "0.71755487", "0.71600723", "0.7100872", "0.701...
0.7820616
0
r"""Test receiving a pandas from a local file.
def RpQV(YKHO): super(X3G2, YKHO).test_recv()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AxjR(YKHO):\n with bxBA() as jbXL:\n ytgA, af07 = kO5Q(jbXL, 'test.csv')\n YOlb = HyUK.from_file(ytgA).df\n YKHO.assertEqual(rLdf.testing.assert_frame_equal(af07, YOlb), None)", "def nSnN(IznC):\n jQ3Z = PCdH(IznC)\n print(jQ3Z.head())", "def TtEh(IznC):\n nPrm = rLdf.read_...
[ "0.69225705", "0.68565845", "0.68449205", "0.67720747", "0.67447287", "0.67030984", "0.6582944", "0.65760076", "0.65027696", "0.64517444", "0.64394397", "0.6424362", "0.6382221", "0.629216", "0.629216", "0.629216", "0.6287692", "0.62859434", "0.62815547", "0.627248", "0.62496...
0.0
-1
Populates a list of needed variables for this calculator
def r0v5(YKHO, C3ST): """ #Inputs """ '\n #Outputs\n ' YKHO._addModelVariable(C3ST, 'ircal_auxndiv', int, mZ_g.DECIMAL, units='bytes', desc='This value is predetermined.') YKHO._addModelVariable(C3ST, 'ircal_auxlodiv', int, mZ_g.DECIMAL, units='bytes', desc='This value is p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bp2V(YKHO):\n pass", "def o4w4(YKHO):\n T34g = YKHO.fgraph\n YKHO.inputs = T34g.inputs\n YKHO.outputs = T34g.outputs\n YKHO.variables = [SRYB for SRYB in YKHO.inputs if not len(SRYB.clients)]\n YKHO.variables += pNZh.variables(YKHO.inputs, YKHO.outputs)\n YKHO.orphans = list((Mkmy for Mk...
[ "0.7176706", "0.6255865", "0.6223358", "0.6208901", "0.6111802", "0.6084455", "0.6035643", "0.59593767", "0.59551436", "0.5935641", "0.5919173", "0.59070677", "0.58614933", "0.58588594", "0.5856863", "0.58416057", "0.58322054", "0.580339", "0.57958555", "0.5770678", "0.576645...
0.58472925
15
Name of the resource group to which the resource belongs.
def TRLE(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def vBTQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group')", "def iKNZ(YKHO):\n return YKHO.instance_metadata.resource_group_name", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')", ...
[ "0.9059678", "0.88036025", "0.8789842", "0.8738128", "0.8738128", "0.8738128", "0.8738128", "0.8738128", "0.8738128", "0.8738128", "0.8738128", "0.8738128", "0.8738128", "0.8738128", "0.8738128", "0.8411277", "0.8411277", "0.8319124", "0.8319124", "0.8319124", "0.8319124", ...
0.8386944
48
The size of the virtual machines in the cluster. All nodes in a cluster have the same VM size. For information about available VM sizes for clusters using images from the Virtual Machines Marketplace see Sizes for Virtual Machines (Linux). Batch AI service supports all Azure VM sizes except STANDARD_A0 and those with p...
def oMFE(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'vm_size')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oMFE(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'vm_size')", "def RXwJ(OaeV):\n VTcd = w7bG(GPtr)\n CgYo(OKYm.supported_vmsizes(workspace=VTcd))\n print('\\n>>> For VM prices, see https://azure.microsoft.com/en-us/pricing/details/virtual-machines/linux/ <<<\\n')", "def oMFE(YKHO) ...
[ "0.71593857", "0.7121742", "0.69779676", "0.69779676", "0.69779676", "0.6953305", "0.6762661", "0.66604614", "0.6583882", "0.65299684", "0.6451065", "0.6407382", "0.6407382", "0.6407382", "0.63993216", "0.6386042", "0.6368465", "0.63597447", "0.6358446", "0.62982076", "0.6249...
0.7141963
1
The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash () and underscore (_). The name must be from 1 through 64 characters long.
def c0yN(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'cluster_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')", "def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')", "def c0yN(YKHO):\n return YKHO._data['cluster_name']", "def c0yN(YKHO):\n return YKHO.name", "def c0yN(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'cluster...
[ "0.79041266", "0.79041266", "0.7811556", "0.7703207", "0.75292665", "0.75292665", "0.731615", "0.70660836", "0.6882469", "0.6815811", "0.67413", "0.66419846", "0.6639584", "0.66057485", "0.65160996", "0.6426567", "0.6426567", "0.6426567", "0.6426567", "0.6426567", "0.6367757"...
0.7415742
10
Information about a Cluster.
def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, c0yN: Optional[pulumi.Input[str]]=None, RcmZ: Optional[pulumi.Input[pulumi.InputType['NodeSetupArgs']]]=None, TRLE: Optional[pulumi.Input[str]]=None, hTNY: Optional[pulumi.Input[pulumi.InputType['ScaleSettingsArgs']]]=None, VWZy: Optional[pulumi.Inp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EIWO(YKHO) -> cuzp[str, ImMB]:\n pass", "def LyCO(YKHO) -> whsl:\n if not YKHO.connected:\n raise RuntimeError('Cluster is not connected, cannot get cluster info.')\n LyCO = None\n LyCO = YKHO._get_cluster_info()\n YKHO._cluster_info = LyCO\n return LyCO", "def UWf5(YKHO):\n if ...
[ "0.84084195", "0.81358904", "0.7596213", "0.7564989", "0.7423753", "0.7337379", "0.72892374", "0.72829854", "0.71147966", "0.71147966", "0.70346195", "0.69925475", "0.6990907", "0.68235856", "0.67936516", "0.6771438", "0.6764659", "0.67592525", "0.6750035", "0.6710748", "0.66...
0.0
-1
Information about a Cluster.
def FIMM(Ro_8, kFeU: str, qIxc: ClusterArgs, VKhi: Optional[pulumi.ResourceOptions]=None): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EIWO(YKHO) -> cuzp[str, ImMB]:\n pass", "def LyCO(YKHO) -> whsl:\n if not YKHO.connected:\n raise RuntimeError('Cluster is not connected, cannot get cluster info.')\n LyCO = None\n LyCO = YKHO._get_cluster_info()\n YKHO._cluster_info = LyCO\n return LyCO", "def UWf5(YKHO):\n if ...
[ "0.84084195", "0.81358904", "0.7596213", "0.7564989", "0.7423753", "0.7337379", "0.72892374", "0.72829854", "0.71147966", "0.71147966", "0.70346195", "0.69925475", "0.6990907", "0.68235856", "0.67936516", "0.6771438", "0.6764659", "0.67592525", "0.6750035", "0.6710748", "0.66...
0.0
-1
Get an existing Cluster 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) -> 'Cluster': VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id)) r6DL = j4n1.__new__(j4n1) r6DL.__dict__['allocation_state'] = None r6DL.__dict__['allocation_state_transition_time'] = None r6DL....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, JvOq: Optional[pulumi.Input[str]]=None, _E99: Optional[pulumi.Input[pulumi.InputType['ClusterIdentityArgs']]]=None, Rci7: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, TRLE: Optional[pulumi.Input[str...
[ "0.705705", "0.676295", "0.62671417", "0.6145344", "0.5751916", "0.5751526", "0.5699974", "0.56880915", "0.5618602", "0.54789984", "0.54437464", "0.5439982", "0.541828", "0.5418008", "0.53804255", "0.5379253", "0.532215", "0.5297963", "0.52802396", "0.5273717", "0.52416044", ...
0.68880475
1
The name of the resource.
def mWFP(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YJsY(YKHO):\n return YKHO._resource_name", "def mWFP(YKHO):\n return YKHO.raw_resource['name']", "def mWFP(YKHO):\n return YKHO.resource['metadata']['name']", "def kFeU(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_name')", "def kFeU(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'r...
[ "0.8797532", "0.8770644", "0.8469626", "0.8306927", "0.8306927", "0.8075097", "0.8075097", "0.8075097", "0.8075097", "0.8075097", "0.77082634", "0.76422197", "0.7560483", "0.7560483", "0.7560483", "0.7560483", "0.7560483", "0.7560483", "0.7560483", "0.7560483", "0.7560483", ...
0.0
-1
Virtual network subnet resource ID the cluster nodes belong to.
def VWZy(YKHO) -> qe4Y.Output[h8nf['outputs.ResourceIdResponse']]: return qe4Y.get(YKHO, 'subnet')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pyfM(YKHO) -> str:\n return qe4Y.get(YKHO, 'subnet_id')", "def _BHp(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'virtual_network_subnet_id')", "def pyfM(YKHO):\n return YKHO._subnet_id", "def Ll4v(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'subnet_resource_id')", "...
[ "0.80972964", "0.78585327", "0.78098315", "0.7687506", "0.76847196", "0.76847196", "0.7502823", "0.7475515", "0.7356693", "0.7334006", "0.7334006", "0.69895285", "0.6972776", "0.6844168", "0.67223144", "0.6681554", "0.65140283", "0.6507876", "0.65046257", "0.64572453", "0.645...
0.70347166
11
The type of the resource.
def type(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qjbs(Emd4):\n pass", "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]...
[ "0.8790597", "0.8584682", "0.8584682", "0.8426495", "0.8426495", "0.8426495", "0.8426495", "0.8426495", "0.8225479", "0.7959945", "0.78332675", "0.78332675", "0.78332675", "0.78332675", "0.78332675", "0.78332675", "0.78332675", "0.78332675", "0.78332675", "0.78332675", "0.783...
0.0
-1
The size of the virtual machines in the cluster. All nodes in a cluster have the same VM size.
def oMFE(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'vm_size')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QSg8(YKHO, Sa_m):\n Nv89 = []\n qC6E = Sa_m.labels\n for G1Hx in oyIN.arange(qC6E.max()):\n Nv89.append(len(oyIN.where(qC6E == G1Hx)[0]))\n return Nv89", "def oMFE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vm_size')", "def zNig(YKHO) -> int:\n return YKHO.sizes.sum()", "...
[ "0.7373247", "0.7230623", "0.70368874", "0.7030629", "0.70136684", "0.6994482", "0.6994482", "0.6994482", "0.69334006", "0.6915432", "0.6880479", "0.686475", "0.6852191", "0.68416387", "0.6808766", "0.67839956", "0.6719153", "0.6704634", "0.6687448", "0.66719", "0.66316897", ...
0.74416775
0
Gets as inputs the aciton taken from the policy and the encoded state by the encoder in the inverse model. The froward model trys to predict the encoded next state. Returns the predicted encoded next state. Gets optimized by the MSE between the actual encoded next state and the predicted version of the forward model!
def KVH6(YKHO, QTBn, XeOP): XPm_ = ht2j.zeros(XeOP.shape[0], YKHO.OHE_size) _0VL = ht2j.stack((ht2j.arange(XeOP.shape[0]), XeOP.squeeze().long()), dim=0) _0VL = _0VL.tolist() XPm_[_0VL] = 1.0 WKvO = ht2j.cat((QTBn, XPm_), dim=1) return YKHO.forwardM(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, *qIxc):\n bGrB, (ok8c, bGrB) = YKHO.enc(*qIxc)\n aMgO = YKHO.mlp(ok8c)\n return aMgO", "def KVH6(YKHO, *qIxc):\n Xfip, bGrB, bGrB = YKHO.unified_encoder(*qIxc)\n Xfip = Xfip.view(Xfip.shape[0], -1)\n aMgO = YKHO.mlp(Xfip)\n return aMgO", "def YEmv(YKHO):\n YKHO.eval()\n ...
[ "0.6443538", "0.62089664", "0.6140577", "0.60962397", "0.60822535", "0.6081336", "0.5989855", "0.5943661", "0.59300905", "0.58951133", "0.5888375", "0.58642584", "0.58445036", "0.5844479", "0.58430386", "0.5815357", "0.5805219", "0.5781389", "0.5775499", "0.57685506", "0.5747...
0.0
-1
Returns true if the player has already visited all the rooms.
def FrL3(YKHO, *yvVF): for XIAj in yvVF: if XIAj not in YKHO._rooms_already_visited: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DyYs(DFSo):\n wjRY = len(DFSo)\n azXi = [False] * wjRY\n azXi[0] = True\n pPvV = [0]\n while pPvV:\n exwG = pPvV.pop()\n print(f'visit room {exwG}')\n for H5ew in DFSo[exwG]:\n if 0 <= H5ew < wjRY and (not azXi[H5ew]):\n pPvV.append(H5ew)\n ...
[ "0.73381436", "0.6999641", "0.6402926", "0.62737966", "0.62575084", "0.62267727", "0.61341035", "0.61102456", "0.60665184", "0.6042786", "0.6031819", "0.60136205", "0.5976673", "0.5930121", "0.591965", "0.59147084", "0.59147084", "0.5900237", "0.5854317", "0.5849685", "0.5832...
0.7830867
0
Plots average duration and distance of bike trips on Tuesdays
def YWbS(nPrm): P0mg = 0 HtZI = 0 exwG = 0 Yxje = [YRbF for YRbF in range(2, 31, 7)] for d6pt, rdlD in nPrm.iterrows(): if int(rdlD['started_at'].split(' ')[0].split('-')[2]) in Yxje: P0mg += oysP(rdlD['start_station_latitude'], rdlD['start_station_longitude'], rdlD['end_station_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W8mS(YKHO):\n KCHu = _vRI(YKHO.userID, YKHO.password, YKHO.database)\n ' Total Activity by hour '\n eQp6 = YKHO.activity().index\n e1yY = []\n FDPd = []\n for ZfUD in eQp6:\n e1yY.append(ZfUD.timetuple().tm_yday)\n FDPd.append(ZfUD.hour)\n WKvO = e1yY\n LVAh = FDPd\n gz...
[ "0.5842115", "0.5818831", "0.58152544", "0.57870823", "0.5751964", "0.57402927", "0.57294345", "0.5683966", "0.5680436", "0.567116", "0.5667245", "0.5665901", "0.5665071", "0.5662742", "0.56620824", "0.5661078", "0.5658846", "0.56540483", "0.5649238", "0.5645376", "0.56298554...
0.75536937
0
Gets all stations and find most popular ones.
def oIaP(nPrm): E04T = list(set(nPrm['start_station_name'].tolist() + nPrm['end_station_name'].tolist())) cEP7 = {gnAD: 0 for gnAD in E04T} for d6pt, rdlD in nPrm.iterrows(): cEP7[rdlD['start_station_name']] += 1 print('List of all stations:') print(E04T) sjXb = list(cEP7.keys()) T6S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n jQ3Z = UlWi(j5sA, x0eS, CjKC)\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n OMIk = jQ3Z['Start Station'].mode()[0]\n print('Most popular start station', OMIk)\n oVHu = jQ3Z['End Station'].mode()[0]\n print('Most popular end station'...
[ "0.6793665", "0.6679763", "0.6642862", "0.6568323", "0.64454436", "0.6444351", "0.64112246", "0.64096916", "0.6405301", "0.63963705", "0.6396146", "0.6395128", "0.6395029", "0.63908863", "0.638625", "0.6368572", "0.636506", "0.6351154", "0.63474756", "0.63330066", "0.6328231"...
0.59845865
96
Check whether or not Email is valid (ready to send)
def zz6o(YKHO): return all(map(lambda Ty9i: Ty9i is not None, (YKHO.connection, YKHO.sender, YKHO.receiver, YKHO.subject, YKHO.body)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xzCw(YKHO):\n im04 = Y509.validate(YKHO)\n if not im04:\n return False\n DpUl = tiX4()\n if not PGGO(DpUl, YKHO.email.data):\n YKHO.email.errors.append('Please check your email address.')\n return False\n return True", "def l3WM(YKHO):\n raise NotImplementedError", "d...
[ "0.7367757", "0.71055406", "0.70033073", "0.6985207", "0.6957917", "0.6953169", "0.69275177", "0.6914797", "0.6883713", "0.6858398", "0.6844769", "0.68410033", "0.68318", "0.6776361", "0.676862", "0.67637527", "0.6694208", "0.66901594", "0.66589814", "0.6639372", "0.6628725",...
0.0
-1
Convert sequence a into timelagged vectors
def agUT(jzdc=None, tsWk=None, AkU5=None): if not isinstance(jzdc, list): jzdc = [jzdc] L_iB = [] sMVM = [] for YRbF, g02w in enumerate(jzdc): if g02w.shape[0] < tsWk: continue ROpF = [g02w.shape[0] - tsWk + 1, tsWk, g02w.shape[-1]] FEri = [g02w.strides[0], g0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cRU7(H3bz):\n SUCC = oyIN.r_[0, oyIN.cumsum(H3bz)]\n return SUCC", "def CKA6(RkFZ, JRYC):\n return oyIN.cumsum(RkFZ) * JRYC", "def Q4Kf(cTF1, vVbW):\n eRig = []\n for KCHu in range(vVbW):\n eRig.append(cTF1.shift(KCHu))\n LImO = rLdf.concat(eRig, 1).dropna()\n nzV8 = LImO.iloc[:...
[ "0.64424336", "0.60823476", "0.6024994", "0.6002265", "0.595392", "0.5924837", "0.5792131", "0.5784678", "0.57843417", "0.56903523", "0.56883556", "0.56702554", "0.56592816", "0.5636329", "0.56196606", "0.55488616", "0.55488616", "0.55413634", "0.55352706", "0.55337113", "0.5...
0.0
-1
reads .bed file into pandas dataframe
def awED(pmON, gU5V=0): Y0zd = rLdf.read_table(pmON, sep='\t', header=None) NKcn = kQvK(Y0zd, gU5V) Y0zd.columns = NKcn print(Y0zd.head()) return Y0zd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MBjr(FzIG):\n if FzIG.lower().endswith(('.bed.gz', '.bed')):\n Z0lN = rLdf.read_csv(FzIG, sep='\\t', index_col=3, dtype={'#chr': str, '#Chr': str})\n elif FzIG.lower().endswith('.bed.parquet'):\n Z0lN = rLdf.read_parquet(FzIG)\n Z0lN.set_index(Z0lN.columns[3], inplace=True)\n else...
[ "0.638718", "0.61649466", "0.6122096", "0.6093712", "0.6074376", "0.59862417", "0.5984604", "0.5903469", "0.5828193", "0.580324", "0.57994986", "0.57978356", "0.57915485", "0.57824236", "0.57146895", "0.56894195", "0.5688615", "0.56875104", "0.566715", "0.56555396", "0.565539...
0.76813644
0
Convert utc datetime to local datetime
def P7aT(B8aT): return qcWV.fromtimestamp(XbVV(B8aT.timetuple()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N2YM(JRYC):\n return JRYC.astimezone(forW)", "def yYe4(B8aT: datetime) -> qcWV:\n if B8aT is None:\n return None\n shus = B8aT.astimezone(yl4j.tzlocal())\n return shus", "def cMES(ZCQF):\n nOtw = ITS7.time()\n vgXP = qcWV.fromtimestamp(nOtw) - qcWV.utcfromtimestamp(nOtw)\n retur...
[ "0.82599336", "0.79972535", "0.79688895", "0.79470736", "0.76508397", "0.764903", "0.7605416", "0.7600073", "0.75419134", "0.75267357", "0.7306483", "0.7296312", "0.7296312", "0.7296312", "0.7190681", "0.71516335", "0.7131339", "0.7057341", "0.70480084", "0.7021855", "0.69829...
0.79525477
3
Takes an array of valid indices and a list of tickets, scans the tickets to check for fields that are invalid.
def dYlE(deVW: List[bool], E6Ha: List[List[int]]) -> int: mVUw = 0 for YXSb in E6Ha: for wEf2 in YXSb: if not deVW[wEf2]: mVUw += wEf2 return mVUw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hn_C(YKHO, d6pt, inK4, ewu6=None):\n if not d6pt.isdigit():\n return (YKHO.ticket_messages.invalid_index, None)\n d6pt = int(d6pt)\n if not ewu6:\n if d6pt not in YKHO.reverse_ticket_ref:\n return (YKHO.ticket_messages.bad_index, None)\n ewu6 = YKHO.tickets[YKHO.reverse...
[ "0.65329665", "0.56348306", "0.56062984", "0.54405105", "0.5242853", "0.5205942", "0.52031505", "0.52027863", "0.51789314", "0.5171475", "0.5130657", "0.51057553", "0.50972146", "0.5082088", "0.50775796", "0.5069668", "0.5009493", "0.5007292", "0.5003921", "0.49999163", "0.49...
0.5443359
3
Returns a signed representation of 'x'.
def pHIh(WKvO, UOVU): if WKvO >= 0: return WKvO else: return int('1{:0{}b}'.format(2 ** (UOVU - 1) + WKvO, UOVU - 1), 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zihr(WKvO):\n return tBeC(1, WKvO)", "def Zihr(WKvO):\n if WKvO >= 0:\n return 1\n else:\n return -1", "def Zihr(WKvO):\n if WKvO >= 0:\n return 1\n return -1", "def w5pQ(JZXy):\n if not isinstance(JZXy, str):\n raise ValueError('string type required')\n i...
[ "0.7416465", "0.71082306", "0.6997009", "0.65060806", "0.6438313", "0.6356634", "0.6291086", "0.62800175", "0.606167", "0.60528535", "0.59295094", "0.5921742", "0.5914535", "0.5893646", "0.5823133", "0.57841164", "0.5754345", "0.5737159", "0.5629804", "0.5629804", "0.56113106...
0.7417579
0
Extend an array from the back. Useful to fill arrays that have been shortened and need to conform to a certain size.
def KLEu(vC9B, exwG): vC9B.extend([-1] * exwG) vC9B = vC9B[:exwG] return vC9B
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PNsU(YKHO, fBOt: int) -> None:\n yk4i = fBOt - len(YKHO)\n if yk4i > 0:\n YKHO.extend([0] * yk4i)", "def FJj_(tgCD, qw7D):\n u54L = len(tgCD)\n VRz9 = u54L + len(qw7D)\n tgCD.resize((VRz9,) + qw7D.shape[1:])\n tgCD[u54L:VRz9] = qw7D\n return VRz9", "def dNSY(YKHO, yKcO: int, zNi...
[ "0.66217035", "0.64583373", "0.6360135", "0.62053424", "0.6138675", "0.6125723", "0.61012614", "0.60935694", "0.6075794", "0.6070164", "0.59849495", "0.59266514", "0.58320254", "0.5804029", "0.57999176", "0.5767587", "0.5721585", "0.5719776", "0.5686566", "0.5684422", "0.5682...
0.67937744
0
Updates the ``Context`` for the given Task. Useful when you need to pass the context among different tasks. This method is available for backwardcompatibility. Use the ``AsyncioContextProvider`` API to set the current active ``Context``.
def HQNI(D5gV, OaeV): setattr(D5gV, AzrC._CONTEXT_ATTR, OaeV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PJ8F(Emd4, hFFO, D5gV, QTBn, o6uS):\n xiPv = hFFO.tasks.get(D5gV['name'])\n xowk = D5gV['task_runtime_context']\n tfTg = YXpS.get_outbound_context(D5gV, o6uS)\n QTBn, xowk = ZFzw.get_task_runtime(xiPv, QTBn, tfTg, xowk)\n Lnr9 = {'state': QTBn, 'output': o6uS, 'task_runtime_context': xowk}\n ...
[ "0.5931201", "0.59306806", "0.58346915", "0.57609236", "0.57496864", "0.5701335", "0.56470454", "0.5616688", "0.5532264", "0.5528464", "0.5476038", "0.54721737", "0.5458368", "0.54513663", "0.5409048", "0.5406428", "0.5406428", "0.53607816", "0.53367335", "0.53343904", "0.528...
0.7531768
0
Calculates the heuristic of the state. The calculation depends on if specific goals are given or not. If goals are assigned the distance to those goals is used as heuristic, otherwise the distance to the nearest goal of the same color is used.
def y_oG(YKHO, QTBn: ODState) -> int: MKlR = 0 if YKHO.assigned_goals is None: for YWSi in QTBn.new_agents: MKlR += YKHO.grid.get_heuristic(YWSi.coords, YWSi.color) for r845 in range(len(QTBn.new_agents), len(QTBn.agents)): MKlR += YKHO.grid.get_heuristic(QTBn.agents[r845...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M1aw(YKHO, QTBn):\n\n def WCBl(UA1B, VW_L):\n \"\"\"Returns the manhattan distance between coord_a and coord_b.\"\"\"\n return abs(UA1B.x - VW_L.x) + abs(UA1B.y - VW_L.y)\n\n def HaIO(UA1B, VW_L):\n \"\"\"Returns the number of obstacles (wriggler segments or walls) between\n ...
[ "0.7267905", "0.7016952", "0.70017385", "0.69961554", "0.6972024", "0.6941171", "0.6913669", "0.69027805", "0.68044233", "0.6787444", "0.67554885", "0.6720003", "0.6711873", "0.665831", "0.6633275", "0.65907824", "0.6572349", "0.6568922", "0.6560635", "0.652899", "0.65183425"...
0.7558685
0
Initialise a new sample rate converter.
def u7Kj(jYgM, xMux): P1dF = gaxy.new('int*') QTBn = dSjZ.src_new(jYgM, xMux, P1dF) return (QTBn, P1dF[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BdN0(YKHO, UaDd=44100, eXNo=1, lBFh=16):\n YKHO.reset()\n YKHO.nNbrChannel = eXNo\n YKHO.nSamplingRate = UaDd\n YKHO.nNbrBitsPerSample = lBFh\n YKHO.updateHeaderComputedValues()", "def baUB(YKHO):\n raise NotImplementedError", "def mQ3a(YKHO, DbxN, M9wU):\n ZbOB = qvp9()\n G1vt = Zb...
[ "0.6131779", "0.59625643", "0.59358096", "0.5895996", "0.5873622", "0.5851705", "0.5774728", "0.5768871", "0.57549113", "0.5695908", "0.56726557", "0.5670159", "0.56402856", "0.5637754", "0.56264025", "0.56246275", "0.5591267", "0.5584221", "0.55727935", "0.5554595", "0.55292...
0.0
-1
Return `True` if ratio is a valid conversion ratio, `False` otherwise.
def LftF(dMYj): return bool(dSjZ.src_is_valid_ratio(dMYj))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qFAF(YKHO):\n if '/' not in YKHO._ratio:\n tO9_ = \"Ratio input {} does not contain the '/' character. Please make sure the ratio input is a string in the form 'numerator_column_name/denominator_column_name'\"\n tTpl = tO9_.format(YKHO._ratio)\n bo34.error(tTpl)\n raise DQrD(tTpl...
[ "0.63475585", "0.6309936", "0.6184787", "0.6009115", "0.59804565", "0.59167606", "0.58148825", "0.58127016", "0.57809705", "0.57613695", "0.56969726", "0.5690059", "0.56751794", "0.5650626", "0.5616441", "0.55917543", "0.5577948", "0.55764407", "0.5501736", "0.54993105", "0.5...
0.8384849
0
Get all Players in the entity list.
def Bwa6(YKHO): return YKHO._get_by_class(mVZ4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V6BG(YKHO):\n return iter(YKHO.players)", "def dPXt(YKHO, all=False):\n if all:\n return YKHO.all_players\n else:\n return YKHO.players", "def dPXt(YKHO):\n return YKHO.players.values()", "def Bwa6(YKHO):\n return mVZ4.objects.filter(team=YKHO)", "def y0Fx(YKHO):\n retur...
[ "0.7476747", "0.7304088", "0.7222711", "0.7190505", "0.71495235", "0.70690197", "0.7043049", "0.69756544", "0.69491905", "0.69125885", "0.681817", "0.67515016", "0.6570159", "0.6525586", "0.65217125", "0.6364989", "0.6363765", "0.6347749", "0.62612224", "0.6254866", "0.624345...
0.7080602
5
Returns the name of the device if any.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yxaP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'device_name')", "def yxaP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'device_name')", "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO._device.name", "def ueYb(Y...
[ "0.8948684", "0.8948684", "0.8575258", "0.8575258", "0.8575258", "0.8508962", "0.84862804", "0.838302", "0.8367647", "0.8367647", "0.8353379", "0.8319792", "0.8271619", "0.81589013", "0.8131442", "0.8102677", "0.80319405", "0.8013851", "0.8009554", "0.7948883", "0.79324096", ...
0.0
-1
Returns the name of the device if any.
def QTBn(YKHO): return YKHO._state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yxaP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'device_name')", "def yxaP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'device_name')", "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO._device.name", "def ueYb(Y...
[ "0.8948684", "0.8948684", "0.8575258", "0.8575258", "0.8575258", "0.8508962", "0.84862804", "0.838302", "0.8367647", "0.8367647", "0.8353379", "0.8319792", "0.8271619", "0.81589013", "0.8131442", "0.8102677", "0.80319405", "0.8013851", "0.8009554", "0.7948883", "0.79324096", ...
0.0
-1
Given an array nums of integers and integer k, return the maximum sum such that there exists i < j, with nums[i] + nums[j] = sum and sum < k. If no i, j exist satisfying this equation, return 1
def mk3Q(xYvp, G1Hx): xYvp.sort() yKcO = 0 Os4s = len(xYvp) - 1 YAIB = -1 while yKcO < Os4s: ECVa = xYvp[yKcO] + xYvp[Os4s] if ECVa < G1Hx: YAIB = max(ECVa, YAIB) if ECVa >= G1Hx: Os4s -= 1 else: yKcO += 1 return YAIB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TVdk(YKHO, xYvp: List[int], G1Hx: int) -> int:\n exwG = len(xYvp)\n if exwG == 0:\n return 0\n if exwG == 1:\n return xYvp[0]\n TifC = [0] * exwG\n TifC[0] = xYvp[0]\n YAIB = TifC[0]\n KTWf = 0\n for YRbF in range(1, exwG):\n if KTWf >= YRbF - G1Hx:\n if ...
[ "0.8274466", "0.8078755", "0.78772104", "0.7632056", "0.7421356", "0.7303891", "0.7289666", "0.7220777", "0.71189696", "0.70995396", "0.70642453", "0.6993605", "0.6969033", "0.69625676", "0.6899552", "0.682759", "0.6825111", "0.68014956", "0.67082655", "0.66967523", "0.668855...
0.8137371
1
returns a star rating between 0 and 5 for current conditions,
def GNR2(WwGV, AC_j, G2BA, Mx62): PiHn = 0 if WwGV > 2: PiHn += 4 elif WwGV > 1.6: PiHn += 3 elif WwGV > 1.4: PiHn += 2 elif WwGV > 1.2: PiHn += 1 if AC_j >= 270 or AC_j <= 30: PiHn += 1 if G2BA < 15: PiHn += 1 if Mx62 < 1.2: PiHn +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gJT9(YKHO, RrWF):\n return 1.0 * max(0, min(int(RrWF + 0.5), 5))", "def G1Hx(RrWF):\n if RrWF < 100:\n return 40\n if RrWF < 200:\n return 20\n return 10", "def lcsm(PZkd):\n if PZkd < 14:\n return 1\n elif PZkd < 15:\n return 2\n elif PZkd < 17:\n re...
[ "0.71564525", "0.69826484", "0.6799818", "0.6367902", "0.6359642", "0.63387793", "0.63360375", "0.6248107", "0.61657065", "0.6115102", "0.6070869", "0.60223264", "0.5976396", "0.59432673", "0.5941993", "0.59387696", "0.59206915", "0.59071594", "0.58722144", "0.58640075", "0.5...
0.6884922
2
Gets the name of this TeamBuilderConfig.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._config_name", "def mWFP(YKHO):\n return YKHO.config['name']", "def mWFP(YKHO):\n return YKHO._config.get(BiEj)", "def mWFP(YKHO) -> str:\n mWFP = YKHO._config['name']\n assert isinstance(mWFP, str)\n return mWFP", "def Ks8p(YKHO):\n pass", "def W0tD(YKH...
[ "0.82457095", "0.80872715", "0.7972231", "0.79245055", "0.7553295", "0.75037193", "0.7491554", "0.7481969", "0.7481969", "0.73511493", "0.73207635", "0.71269494", "0.711729", "0.7078735", "0.696346", "0.696166", "0.6885289", "0.68741506", "0.6835821", "0.6835821", "0.68161696...
0.0
-1
Sets the name of this TeamBuilderConfig.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO.options['name'] = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.settings['name'] = mWFP", "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 WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", ...
[ "0.76163036", "0.75752044", "0.7235179", "0.7235179", "0.7235179", "0.7235179", "0.7235179", "0.71058345", "0.70972013", "0.7093581", "0.70647377", "0.706012", "0.706012", "0.70282125", "0.70110816", "0.699908", "0.69961244", "0.69961244", "0.6977196", "0.69567764", "0.693114...
0.0
-1
Gets the is_default of this TeamBuilderConfig.
def eoCS(YKHO): return YKHO._is_default
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eoCS(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'is_default')", "def WmM4(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'default')", "def WmM4(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'default')", "def WmM4(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'default')", "def WmM4(YKHO) -> h8...
[ "0.78300124", "0.77499", "0.77499", "0.77499", "0.77499", "0.77499", "0.76571006", "0.75788844", "0.7552164", "0.74837476", "0.74549496", "0.74319893", "0.7416595", "0.7294534", "0.71046233", "0.70533794", "0.70533794", "0.70466316", "0.70271987", "0.70271987", "0.70271987", ...
0.7413157
13
Sets the is_default of this TeamBuilderConfig.
def eoCS(YKHO, eoCS): YKHO._is_default = eoCS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SbWH(YKHO):\n YKHO.is_default = True", "def SbWH(YKHO):\n YKHO.is_default = True", "def eoCS(YKHO, eoCS: bool):\n YKHO._is_default = eoCS", "def eoCS(YKHO, eoCS):\n if eoCS is not None:\n if not isinstance(eoCS, bool):\n raise TypeError('Invalid type for `is_default`, type h...
[ "0.79241943", "0.79241943", "0.7815185", "0.76151633", "0.72140473", "0.6873145", "0.68356246", "0.6834142", "0.6777006", "0.67350197", "0.6707941", "0.67010546", "0.67010546", "0.67010546", "0.67010546", "0.67010546", "0.6668671", "0.6614374", "0.6538922", "0.6538922", "0.65...
0.77044505
3
Gets the modified of this TeamBuilderConfig.
def C4fU(YKHO): return YKHO._modified
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C4fU(YKHO):\n return YKHO.__modified", "def C4fU(YKHO):\n return YKHO.__modified", "def tgzD(YKHO):\n return super().get_config()", "def zoFt(YKHO):\n return YKHO.config", "def GPtr(YKHO):\n return YKHO._config", "def GPtr(YKHO):\n return YKHO._config", "def tgzD(YKHO):\n retur...
[ "0.6530059", "0.6530059", "0.64382386", "0.6374289", "0.6274927", "0.6273921", "0.626986", "0.6266055", "0.62280625", "0.62280625", "0.6200885", "0.61425626", "0.61425626", "0.61425626", "0.61323506", "0.6108029", "0.6078097", "0.60672027", "0.6063838", "0.6028929", "0.602166...
0.6472333
4
Gets the id of this TeamBuilderConfig.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S8MR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'config_id')", "def S8MR(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'config_id')", "def id(YKHO):\n return YKHO.config['key']", "def ShR8(YKHO) -> str | None:\n return YKHO._config[vLVn]", "def id(YKHO):\n return YKHO.config....
[ "0.74159837", "0.7367211", "0.7287387", "0.7087607", "0.68372184", "0.68184465", "0.68148214", "0.6731414", "0.6731414", "0.65862817", "0.65862817", "0.65862817", "0.65862817", "0.6576837", "0.65249455", "0.65076673", "0.6491747", "0.6390738", "0.6390738", "0.6364249", "0.633...
0.0
-1
Sets the id of this TeamBuilderConfig.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def b2mu(YKHO, b2mu):\n YKHO._team_id = b2mu", "def b2mu(YKHO, b2mu):\n YKHO._team_id = b2mu", "def b2mu(YKHO, b2mu):\n YKHO._team_id = b2mu", "def b2mu(YKH...
[ "0.6853728", "0.6683665", "0.6610117", "0.6580616", "0.6580616", "0.6580616", "0.6580616", "0.65318364", "0.64859545", "0.6434107", "0.6409524", "0.6408897", "0.63549006", "0.63549006", "0.63549006", "0.63034177", "0.63034177", "0.63034177", "0.63034177", "0.63034177", "0.629...
0.0
-1
Gets the team_id of this TeamBuilderConfig.
def b2mu(YKHO): return YKHO._team_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z9BA(YKHO, xKro):\n rJco = YKHO.get_teams()\n for dZPi in rJco:\n if dZPi['name'] == xKro:\n return dZPi['id']\n return None", "def z9BA(YKHO):\n try:\n return YKHO.profile_data['proTeamId']\n except Exception as e:\n tf1m = \"Failed to retrieve the player's tea...
[ "0.6865887", "0.67626315", "0.6667452", "0.65567875", "0.64365387", "0.61714417", "0.61088115", "0.60990226", "0.6095199", "0.6083141", "0.6058664", "0.60309404", "0.6014208", "0.598399", "0.598399", "0.598399", "0.598399", "0.58915734", "0.58915734", "0.58743465", "0.5847677...
0.7936434
0
Sets the team_id of this TeamBuilderConfig.
def b2mu(YKHO, b2mu): YKHO._team_id = b2mu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AX_2(YKHO, dZPi):\n YKHO.team_id = dZPi.instance_id\n YKHO.team_id_friendlyname = dZPi.friendlyname\n YKHO.team_name = dZPi.name", "def b2mu(YKHO):\n return YKHO._team_id", "def dZPi(YKHO, dZPi):\n YKHO._team = dZPi", "def dZPi(YKHO, dZPi):\n YKHO._team = dZPi", "def dZPi(YKHO, dZPi):...
[ "0.71737075", "0.6598815", "0.64879835", "0.64879835", "0.64879835", "0.64879835", "0.64719284", "0.62555873", "0.62455547", "0.62178195", "0.6145683", "0.5954311", "0.5790594", "0.5529493", "0.5493783", "0.5460579", "0.5453473", "0.54208356", "0.5285559", "0.5283992", "0.527...
0.80651426
2
Gets the portals of this TeamBuilderConfig.
def el6Y(YKHO): return YKHO._portals
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xZH3(YKHO):\n return YKHO._portals", "def Fb8A(YKHO):\n return YKHO.network_settings['Ports']", "def Fb8A(YKHO):\n return YKHO.attrs.get('NetworkSettings', {}).get('Ports', {})", "def ILe8(YKHO):\n return YKHO._port_list", "def h5w0(YKHO):\n return YKHO._ports", "def h5w0(YKHO) -> tupl...
[ "0.7558862", "0.63059175", "0.6236059", "0.61246806", "0.6048607", "0.59435594", "0.5937523", "0.5910373", "0.58514804", "0.57869375", "0.57303786", "0.56947243", "0.5677965", "0.56714004", "0.56417745", "0.5549618", "0.554369", "0.5543231", "0.5536904", "0.55330336", "0.5501...
0.78411996
0
Sets the product_groups of this TeamBuilderConfig.
def bL40(YKHO, bL40): YKHO._product_groups = bL40
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def moMn(YKHO, moMn):\n YKHO._groups = moMn", "def moMn(YKHO, moMn):\n YKHO._groups = moMn", "def moMn(YKHO, moMn):\n YKHO._groups = moMn", "def moMn(YKHO, moMn):\n YKHO._groups = moMn", "def moMn(YKHO, moMn):\n YKHO._groups = moMn", "def QYWb(YKHO, uOe2):\n YKHO.config.GROUP = uOe2", ...
[ "0.58502275", "0.58502275", "0.58502275", "0.58502275", "0.5835275", "0.56724936", "0.5645487", "0.563896", "0.56194127", "0.55523527", "0.54608214", "0.54608214", "0.5441664", "0.5342628", "0.5322196", "0.51945984", "0.51924276", "0.5138973", "0.5105691", "0.5094045", "0.508...
0.8121454
0
Gets the product_types of this TeamBuilderConfig.
def nxgV(YKHO): return YKHO._product_types
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nxgV(YKHO):\n return list(YKHO._product_type_plugins.keys())", "def quJO(YKHO):\n pass", "def quJO(YKHO) -> str:\n return i5PV(YKHO._get_property(TFPl, str), YKHO, TFPl)", "def dSf7(YKHO):\n return YKHO.types", "def nxgV(YKHO, nxgV):\n YKHO._product_types = nxgV", "def list(YKHO, QePW)...
[ "0.78907853", "0.660336", "0.6293005", "0.6189517", "0.6120814", "0.6034096", "0.60296935", "0.59759516", "0.59331036", "0.5917478", "0.5857283", "0.584192", "0.57928365", "0.5781339", "0.575365", "0.5720826", "0.56761724", "0.56509817", "0.5633754", "0.56326175", "0.55849236...
0.8218948
0
Gets the product_size_materials of this TeamBuilderConfig.
def V3h_(YKHO): return YKHO._product_size_materials
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OOo9(YKHO):\n pass", "def ynHO(YKHO):\n pass", "def RK8Z(YKHO):\n pass", "def X6EW(YKHO):\n pass", "def tKZ1(YKHO):\n return YKHO._product_size_materials_rel", "def aVO0(YKHO):\n pass", "def cQx2(YKHO):\n pass", "def nJLU(YKHO):\n pass", "def y9HW(YKHO):\n return YKHO...
[ "0.8047327", "0.77792865", "0.76262605", "0.74027044", "0.7322649", "0.72033674", "0.7117839", "0.71029353", "0.70932364", "0.68598086", "0.68409806", "0.67435664", "0.67150205", "0.66836214", "0.6587144", "0.6406696", "0.6170016", "0.59737045", "0.5747317", "0.5734922", "0.5...
0.82773024
0
Gets the product_size_materials_rel of this TeamBuilderConfig.
def tKZ1(YKHO): return YKHO._product_size_materials_rel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V3h_(YKHO):\n return YKHO._product_size_materials", "def OOo9(YKHO):\n pass", "def ynHO(YKHO):\n pass", "def RK8Z(YKHO):\n pass", "def tKZ1(YKHO, tKZ1):\n YKHO._product_size_materials_rel = tKZ1", "def X6EW(YKHO):\n pass", "def cQx2(YKHO):\n pass", "def aVO0(YKHO):\n pass"...
[ "0.7800131", "0.75651366", "0.74155396", "0.7187809", "0.70892626", "0.6847651", "0.6821609", "0.6665253", "0.6587752", "0.6543135", "0.65385056", "0.64721036", "0.6411234", "0.6320619", "0.6173086", "0.6040177", "0.59960485", "0.5890668", "0.5348582", "0.53281546", "0.530521...
0.8342002
0
Returns true if both objects are equal
def xa14(YKHO, Elif): return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.7961088", "0.7961088", "0.79433626", "0.79303336", "0.7926563", "0.7897525", "0.78826123", "0.78826123", "0.78806067", "0.7872423", "0.7868354", "0.78668815", "0.7825702", "0.7819993", "0.78162885", "0.78078854", "0.78068...
0.79670393
50
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Return value of Basic Authorization HTTP header.
def Xxlb(YKHO) -> str: return 'Basic %s' % QMfv(f'{YKHO.__email}:{YKHO.__password}'.encode()).decode('ascii')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cnwX(YKHO):\n WBPg = YKHO.request.getHeader('Authorization')\n if WBPg:\n try:\n if WBPg.lower().startswith('basic '):\n _kpP = WR89.b64decode(WBPg[6:]).split(':')\n if len(_kpP) == 1:\n return None\n return (_kpP[0], ':'.j...
[ "0.85119975", "0.77596045", "0.74358016", "0.722031", "0.7128892", "0.711249", "0.6931752", "0.6921638", "0.68677074", "0.68598527", "0.6803585", "0.6778641", "0.67356503", "0.6732692", "0.6731713", "0.6721981", "0.67061967", "0.67061967", "0.66657555", "0.6658012", "0.665705...
0.7294515
3
Like find_symbols() but when found only one, returns one item, not list with one item
def o61b(YKHO, **YSA3): if not YSA3: raise ValueError(u"'symbol' needs keyword arguments") Ylbp = YKHO.find_symbols(**YSA3) if len(Ylbp) == 1: return Ylbp[0] else: return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aWoS(o61b, fNzm):\n for YRbF in range(len(fNzm)):\n if fNzm[YRbF] == o61b:\n return YRbF", "def ZHHv(yv6U):\n U5bT = []\n for P2GO in yv6U:\n U5bT += [pZi9(P2GO)]\n return U5bT", "def ZHHv(YKHO, **YSA3):\n return list(YKHO.ifind_symbols(**YSA3))", "def qvA0(YKHO):\...
[ "0.69440824", "0.64823014", "0.6391833", "0.621189", "0.61845696", "0.6138568", "0.6090266", "0.60163385", "0.59851235", "0.59739023", "0.59625745", "0.59524494", "0.58431435", "0.58382154", "0.58308756", "0.5790445", "0.5768231", "0.5754692", "0.57262963", "0.56650114", "0.5...
0.6827875
1
Similar to ifind_at but returns list
def vTaZ(YKHO, WKvO, LVAh): return list(YKHO.ifind_at(WKvO, LVAh))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def khtG(YKHO, QyVM: Union[str, int]) -> x1iM[ImMB]:\n hlel = []\n for nPrm in YKHO.data:\n hlel.append(nPrm[QyVM])\n return hlel", "def khtG(YKHO, QyVM: Union[str, int]) -> x1iM[ImMB]:\n hlel = []\n for nPrm in YKHO.data:\n hlel.append(nPrm[QyVM])\n return hlel", "def eWn1(YKHO...
[ "0.6305985", "0.62262416", "0.61895216", "0.6154223", "0.60050476", "0.595091", "0.5915911", "0.59113336", "0.59023803", "0.5878262", "0.583461", "0.5818285", "0.5803825", "0.58010626", "0.57734114", "0.57560515", "0.5734005", "0.57265306", "0.5708081", "0.56734914", "0.56711...
0.7200324
0
Constructor for the Node object.
def FIMM(YKHO, nPrm=None, next=None): YKHO.data = nPrm YKHO.next = next
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.root = o7DN('')", "def FIMM(YKHO):\n YKHO.__root = o7DN()", "def FIMM(YKHO):\n YKHO.root = YKHO.Node(None)", "def FIMM(YKHO):\n YKHO.root = YKHO.Node()", "def FIMM(YKHO):\n YKHO.root = o7DN('')", "def FIMM(YKHO):\n YKHO.root = o7DN('')", "def FIMM(YKHO):\n YK...
[ "0.79788005", "0.7924777", "0.7924138", "0.7892642", "0.78917146", "0.78917146", "0.7866171", "0.7818067", "0.7818067", "0.7818067", "0.77830786", "0.7736678", "0.7722379", "0.75891405", "0.758806", "0.75492644", "0.75268805", "0.75217617", "0.74934405", "0.747363", "0.747289...
0.0
-1
Constructor for the Linked List object.
def FIMM(YKHO, OxJJ=()): YKHO.head = None YKHO._counter = 0 if isinstance(OxJJ, (str, tuple, list)): for ZfUD in OxJJ: YKHO.push(ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n Q6kx = Msxl(0)\n YKHO.head = Q6kx\n YKHO.tail = Q6kx\n YKHO.len = 0", "def FIMM(YKHO, mcM9: object):\n YKHO.current_node = mcM9._head", "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...
[ "0.8129265", "0.8063581", "0.7901676", "0.78837174", "0.76725006", "0.76725006", "0.76725006", "0.76725006", "0.76725006", "0.7651917", "0.7627156", "0.76201326", "0.758628", "0.758628", "0.756887", "0.75368667", "0.75368667", "0.7514597", "0.7502049", "0.7500917", "0.7498207...
0.0
-1
Add a new value to the head of the Linked List.
def _jXH(YKHO, wEf2): ac0X = o7DN(wEf2, YKHO.head) YKHO.head = ac0X YKHO._counter += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mn5t(YKHO, BWXx):\n Q6kx = o7DN(BWXx)\n if YKHO.head is not None:\n Q6kx.set_next(YKHO.head)\n YKHO.head = Q6kx", "def mn5t(YKHO, BWXx):\n Esd_ = Msxl(BWXx)\n if YKHO.size == 0:\n YKHO.head = Esd_\n YKHO.tail = Esd_\n else:\n Esd_.next = YKHO.head\n YKHO.h...
[ "0.84290504", "0.8418046", "0.8362911", "0.8347601", "0.81448716", "0.8140178", "0.8128415", "0.8111633", "0.8111633", "0.810367", "0.79990417", "0.7974682", "0.7952147", "0.7888331", "0.7877744", "0.7827625", "0.78238624", "0.75750965", "0.75732356", "0.7517199", "0.75157404...
0.68096054
66
Remove and return the value if the head of the Linked List.
def BEuN(YKHO): if not YKHO.head: raise IndexError('Empty list, unable to pop') hlel = YKHO.head.data YKHO.head = YKHO.head.next YKHO._counter -= 1 return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vmd7(YKHO):\n if YKHO.size == 0:\n return None\n ZESx = YKHO.head.value\n if YKHO.size == 1:\n YKHO.head = YKHO.tail = None\n else:\n YKHO.head = YKHO.head.next\n YKHO.head.prev = None\n YKHO.size -= 1\n return ZESx", "def kSdD(YKHO, BWXx):\n Q6kx = YKHO.first...
[ "0.8284167", "0.80771106", "0.79335696", "0.78934693", "0.7617397", "0.75654584", "0.7534936", "0.7530711", "0.7529095", "0.74735785", "0.74041426", "0.73136175", "0.7290755", "0.7278959", "0.7261771", "0.7204866", "0.71812654", "0.7181264", "0.71444046", "0.70825964", "0.707...
0.6388104
83
Get the front element.
def T7C_(YKHO) -> int: if len(YKHO.sk1.stack) == 0: if len(YKHO.sk2.stack) > 0: return YKHO.sk2.stack[-1] else: return YKHO.sk1.stack[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._data[0]\n else:\n return -1", "def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None", "def vYJ5(YKHO):\n if YKHO.items:\n r...
[ "0.8201041", "0.7926421", "0.7852804", "0.77914184", "0.7789178", "0.75732213", "0.75237143", "0.75105965", "0.7478661", "0.7379368", "0.7379368", "0.73430735", "0.7323501", "0.73202574", "0.72916055", "0.7277044", "0.7269943", "0.7265428", "0.72533417", "0.72358", "0.7221035...
0.0
-1
Returns whether the queue is empty.
def lsmZ(YKHO) -> bool: return len(YKHO.sk2.stack) <= 0 if len(YKHO.sk1.stack) == 0 else False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_queue) == 0", "def FBfn(YKHO):\n return len(YKHO.__queue) > 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return YKHO.queue == []", "def FBfn(YKHO):\n return not YKHO._queue"...
[ "0.9270249", "0.92506766", "0.923635", "0.923635", "0.9155843", "0.9098441", "0.9095006", "0.90922606", "0.90731245", "0.9053733", "0.89205354", "0.89137155", "0.8877591", "0.88436323", "0.88436323", "0.8835949", "0.88038146", "0.8758203", "0.87577534", "0.87310195", "0.86462...
0.0
-1
Return the device state attributes.
def TzCU(YKHO): if YKHO.is_connected: return {'interface': YKHO._device.interface} return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attrs", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._...
[ "0.93168503", "0.92452604", "0.92202556", "0.92145616", "0.92145616", "0.9210586", "0.9210586", "0.9190543", "0.9190543", "0.9190543", "0.9190543", "0.9190543", "0.9190543", "0.9190543", "0.9190543", "0.9190543", "0.9190543", "0.9190543", "0.9190543", "0.9190543", "0.91438437...
0.0
-1
Hash the password when the value is set.
def hJ51(pan_, BWXx, FAI2, ALmv): return jf1V.encrypt(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jTXt(YKHO, BWXx):\n YKHO.password_hashed = JfyU.crypt(BWXx, JfyU.gen_salt('bf'))", "def qzFd(YKHO):\n YKHO.__password = YKHO.str_to_hash(YKHO.__password)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)", "def jTXt(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)", "def qzFd(YKHO, j...
[ "0.8206083", "0.8189543", "0.7921746", "0.79145014", "0.78269666", "0.76821333", "0.76364714", "0.76160294", "0.7612611", "0.7571564", "0.75425076", "0.7521486", "0.7521486", "0.7521486", "0.7521486", "0.7514608", "0.7428923", "0.7413124", "0.7357456", "0.7321448", "0.7321448...
0.0
-1
Tokenizes input text data by applying normalization, tokenization, removal of stopwords and stemmatization. Returns a list of words.
def wr3U(l5Ny): qyGl = ZbWC.sub('[^a-zA-Z0-9]', ' ', l5Ny) vwCE = dFss(qyGl) vgRf = [yzQ0 for yzQ0 in vwCE if yzQ0 not in di0c.words('english')] GP1q = [qXkR().stem(yzQ0) for yzQ0 in vgRf] return GP1q
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NBjn(YKHO, yAmx):\n V22M = YKHO.tokenizer.tokenize(yAmx)\n V22M = [YKHO.lemmatizer.lemmatize(GIN8) for GIN8 in V22M]\n V22M = [GIN8.lower() for GIN8 in V22M if len(GIN8) > 1]\n V22M = [GIN8 for GIN8 in V22M if GIN8 not in di0c.words('english')]\n return V22M", "def GMXA(l5Ny, XPB5=True):\n ...
[ "0.7707672", "0.770459", "0.76523936", "0.76111734", "0.76008326", "0.7584297", "0.75804293", "0.75728863", "0.75700015", "0.75694335", "0.75684214", "0.7550853", "0.7533816", "0.75199866", "0.75199866", "0.75173384", "0.7487447", "0.74806416", "0.74806094", "0.74800706", "0....
0.8145574
0
Generate a random string of fixed length
def TJC9(FVpJ=10): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')", "def e7Tf(u54L):\n return ''.join((tuKI...
[ "0.8678995", "0.8572973", "0.85470647", "0.85287195", "0.851963", "0.84313273", "0.8431233", "0.841402", "0.8410922", "0.8388024", "0.8344134", "0.834275", "0.8339172", "0.8333347", "0.8322633", "0.8296847", "0.82919496", "0.8280664", "0.82805336", "0.8279507", "0.8263187", ...
0.0
-1
Given a place name or address, return the nearest MBTA stop and whether it is wheelchair accessible.
def tTVt(TGQZ): return L0qW(*or6K(TGQZ))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tTVt(TGQZ):\n bD7m = hKhs(TGQZ)\n nPrm = c3ht(bD7m)\n QnmL, Swre = or6K(nPrm)\n return L0qW(QnmL, Swre)", "def tTVt(UTX6):\n bEcX = or6K(UTX6)\n _UuI = bEcX[0]\n fopC = bEcX[1]\n U3z1 = L0qW(_UuI, fopC)\n return U3z1", "def b8V_():\n TGQZ = 'Arlington - Arlington St'\n prin...
[ "0.6985686", "0.68618107", "0.6019741", "0.58988124", "0.5705864", "0.56806755", "0.56109256", "0.5481884", "0.5419311", "0.54150444", "0.5391002", "0.53406155", "0.527588", "0.52701485", "0.5262836", "0.52568823", "0.5208226", "0.518009", "0.5121578", "0.50971687", "0.507987...
0.7187776
0
The month name in the date is locale independent.
def d1Qg(YKHO): suE3 = YKHO.now - 60 * 60 * 24 * 31 * 3 QmN4 = Hy7s.stat_result((0, 0, 0, 0, 0, 0, 0, 0, suE3, 0)) Hqok = NCqB.getlocale() NCqB.setlocale(NCqB.LC_ALL, 'es_AR.UTF8') YKHO.addCleanup(NCqB.setlocale, NCqB.LC_ALL, Hqok) YKHO.assertEqual(YKHO._lsInTimezone('America/New_York', QmN4), '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XMq6(YKHO):\n return YKHO.strftime('%B')", "def eXO9(YKHO, x0eS):\n if x0eS is not None:\n x0eS = YKHO.tr('MONTH.' + x0eS.upper())\n return x0eS", "def yZ3l(TMqc):\n NCqB.setlocale(NCqB.LC_TIME, 'et-EE')\n return GRk0.month_name[TMqc]", "def x0eS(YKHO) -> str:\n return YKHO._mont...
[ "0.82912135", "0.7841809", "0.7743459", "0.75963765", "0.7572452", "0.74987817", "0.7477133", "0.73944736", "0.7393924", "0.73727196", "0.73638254", "0.7349303", "0.73490644", "0.7281688", "0.718895", "0.7121844", "0.70620644", "0.6984705", "0.6968389", "0.69665706", "0.69547...
0.0
-1
Check output of cftp client for a put request.
def HkKI(YKHO, HMEH, hMU1=False): hlel = YKHO.client.transport.value() if ggxu: hlel = hlel.decode('utf-8') hlel = hlel.split('\n\r') vqoc = [] mAGc = [] for WY3t, y5Cv, aEqx in HMEH: HBuF = [] for zFiD in aEqx: HBuF.append('%s %s' % (WY3t, zFiD)) HBuF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uylk(YKHO):\n geh0 = YKHO.httpbin_4.test_requests_put_method()\n YKHO.assertEqual(geh0.request.method, 'PUT')\n YKHO.assertEqual(geh0.status_code, 200)", "def k2jk(YKHO):\n pass", "def egse(YKHO):\n pass", "def YdEn(YKHO):\n bD7m, bIwZ = YKHO.server.address\n Mkmy = YKHO.client.get('...
[ "0.7372957", "0.7071322", "0.6864271", "0.6692352", "0.6652814", "0.65083253", "0.63617593", "0.6359904", "0.6328333", "0.627699", "0.626274", "0.6194847", "0.6163164", "0.61473453", "0.61067826", "0.61067826", "0.60892206", "0.6065984", "0.6051977", "0.60482717", "0.60361814...
0.0
-1
Clear any buffered data received from stdout. Should be private.
def ahx2(YKHO): YKHO.buffer = b'' YKHO._linesReceived = [] YKHO._lineBuffer = b''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y7Bk():\n Nqlg.clear()", "def Y7Bk():\n WwfR()", "def Y7Bk():\n HwRy.stdout.write('\\x1b[2J')\n HwRy.stdout.write('\\x1b[H')\n HwRy.stdout.flush()", "def RFOL(YKHO):\n YKHO.old_stdout.flush()", "def GV0N(tA4O):\n HwRy.stderr.write('\\n')\n S0MI.warning('***** Unprocessed input b...
[ "0.7241992", "0.7154729", "0.71315646", "0.7079355", "0.70316815", "0.6996057", "0.69887835", "0.6890028", "0.6864377", "0.6841996", "0.67915666", "0.6791168", "0.67742395", "0.674487", "0.6708617", "0.67076874", "0.6606231", "0.6449104", "0.6438979", "0.6411569", "0.6400984"...
0.69614315
7
Performs ResNet style weight initialization.
def vB93(C3ST, HWKk=0.01): for r8hN in C3ST.modules(): if isinstance(r8hN, U78l.Conv3d): '\n Follow the initialization method proposed in:\n {He, Kaiming, et al.\n "Delving deep into rectifiers: Surpassing human-level\n performance on imagenet classifi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i7WW(YKHO):\n yYlq(YKHO.conv1)\n yYlq(YKHO.conv2)\n uHk4(YKHO.norm1)\n uHk4(YKHO.norm2)", "def i7WW(YKHO):\n uHk4(YKHO.norm0)", "def C0Lv(YKHO):\n pass", "def vB93(C3ST):\n ...", "def vJuA(YKHO):\n raise NotImplementedError", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights...
[ "0.79351413", "0.7916401", "0.7823506", "0.78108335", "0.7714048", "0.7659551", "0.76577944", "0.7594529", "0.7504601", "0.74236965", "0.7413026", "0.7402795", "0.73987454", "0.7344427", "0.7279701", "0.72656673", "0.723407", "0.7224479", "0.7209719", "0.7196969", "0.7178701"...
0.6587272
90
Initialize `module.weight` using the "XavierFill" implemented in Caffe2. Also initializes `module.bias` to 0.
def u9uN(yR_P: nn.Module) -> None: U78l.init.kaiming_uniform_(yR_P.weight, a=1) if yR_P.bias is not None: U78l.init.constant_(yR_P.bias, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i7WW(YKHO):\n xyz5(YKHO.output_proj, distribution='uniform', bias=0.0)", "def vB93(YKHO) -> None:\n YKHO.fc.bias.data.fill_(0)\n YKHO.fc.weight.data.uniform_(-0.1, 0.1)", "def TVzi(yR_P, oug5=0):\n knri(yR_P, a=1, mode='fan_in', nonlinearity='leaky_relu', distribution='uniform')", "def E14P(y...
[ "0.75951105", "0.7423821", "0.7191386", "0.7174671", "0.7115347", "0.7097043", "0.7097043", "0.70845324", "0.70845324", "0.70845324", "0.70255876", "0.7016449", "0.69826245", "0.69667673", "0.6906296", "0.6906296", "0.6906296", "0.6903733", "0.6851683", "0.67904353", "0.67754...
0.7507154
1
Initialize `module.weight` using the "MSRAFill" implemented in Caffe2. Also initializes `module.bias` to 0.
def ouZA(yR_P: nn.Module, Kz5H: str='relu') -> None: U78l.init.kaiming_normal_(yR_P.weight, mode='fan_out', nonlinearity=Kz5H) if yR_P.bias is not None: U78l.init.constant_(yR_P.bias, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO, yR_P):\n if isinstance(yR_P, (ht2j.nn.Linear, ht2j.nn.Embedding, ht2j.nn.LayerNorm)):\n yR_P.weight.data.normal_(mean=0.0, std=YKHO.initializer_range)\n if isinstance(yR_P, (ht2j.nn.Linear, ht2j.nn.LayerNorm)) and yR_P.bias is not None:\n yR_P.bias.data.zero_()", "def DVZr(VlDb...
[ "0.74615115", "0.7286383", "0.7228832", "0.7206778", "0.71698064", "0.71640205", "0.71540284", "0.7107511", "0.70921564", "0.70859665", "0.7061617", "0.7053088", "0.7053088", "0.7053088", "0.7045405", "0.70347714", "0.7024965", "0.70055693", "0.7002553", "0.7002553", "0.69774...
0.0
-1
Convert invalid URLs to null.
def tSye(KCHu): KCHu = (KCHu or '').strip() if KCHu and '.' in KCHu and ('notavailable' not in KCHu): kUBT = ZbWC.match('^http(s)?://', KCHu) if not kUBT: KCHu = 'http://' + KCHu return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXKa():\n assert gmoQ('') is None\n assert gmoQ('abc xyz') is None\n assert gmoQ('asb#abc') is None\n assert gmoQ('Яндекс.рф') is not None\n assert gmoQ('google.blog') is not None\n assert gmoQ('http//google.com') is None\n assert gmoQ('http://user@pass:example.com') is None", "def EGZf(...
[ "0.6218191", "0.60981", "0.6077526", "0.6054259", "0.5987629", "0.59788597", "0.596772", "0.5964328", "0.5927779", "0.59273595", "0.592279", "0.58907706", "0.58879817", "0.5882792", "0.58438003", "0.5820691", "0.57592946", "0.57508695", "0.573993", "0.56999904", "0.569808", ...
0.5357774
52
Convert a string to have title case.
def WSEy(KCHu): if not KCHu: return None KCHu = KCHu.lower() SQ3m = KCHu.split(' ') X2Fn = ('a', 'an', 'and', 'as', 'at', 'by', 'for', 'in', 'of', 'on', 'or', 'the', 'to', 'with') SQ3m[0] = SQ3m[0].title() SQ3m = map(lambda Q7me: Q7me.title() if Q7me not in X2Fn else Q7me, SQ3m) retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oYh6(KCHu):\n KCHu = ZbWC.sub(\"[A-Za-z]+('[A-Za-z]+)?\", lambda ohcp: ohcp.group(0)[0].upper() + ohcp.group(0)[1:].lower(), KCHu)\n KCHu = KCHu.split(' ')\n for YRbF in range(len(KCHu)):\n if KCHu[YRbF] in 'Ii Iii Iv Vi Vii Viii Ix Ii: Iii: Iv: Vi: Vii: Viii: Ix:':\n KCHu[YRbF] = KC...
[ "0.81671613", "0.8038356", "0.7886559", "0.75226545", "0.74147516", "0.7369529", "0.73507965", "0.7278746", "0.72776896", "0.72582453", "0.7213417", "0.71755314", "0.71708405", "0.716029", "0.71566397", "0.71303433", "0.70973873", "0.7078882", "0.7070269", "0.7057588", "0.703...
0.7907051
2
Similar to read_as_array but yields a dict instead of an array. The keyvalue pairs are created with the header entry.
def fLKR(pmON, TDw3='\t'): N5Pj = aA6_(pmON) sdCG = N5Pj.next().split(TDw3) SOyE = len(sdCG) - 1 for zFiD in N5Pj: qw7D = zFiD.split(TDw3, SOyE) yield {sdCG[YRbF]: qw7D[YRbF] for YRbF in range(SOyE)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jU0Y(MOPg, qw7D, WmM4=None):\n Aofo, bpK4 = oyNf(MOPg, qw7D, WmM4)\n return Aofo", "def XLpq(qaEx):\n map = U8Lr()\n with open(qaEx) as nUeQ:\n N5Pj = m6_J.reader(nUeQ, delimiter='\\t')\n MOPg = next(N5Pj)\n for YRbF in range(len(MOPg)):\n map[MOPg[YRbF]] = oyIN.ar...
[ "0.6183668", "0.57880944", "0.571175", "0.5681728", "0.55738896", "0.54913926", "0.5403214", "0.5400127", "0.53765696", "0.52940613", "0.5254377", "0.5203338", "0.51910007", "0.5190014", "0.51772135", "0.5174873", "0.51689136", "0.5143904", "0.51273733", "0.51211345", "0.5111...
0.53635645
9
Sets the Type subfield in the header field.
def UJHk(YKHO, wEf2): assert wEf2 == zJpI.HDR_TYPE YKHO._hdr = YKHO._hdr & ~zJpI.HDR_TYPE_MASK | wEf2 << zJpI.HDR_TYPE_SHIFT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TG_K(YKHO, type):\n YKHO.type = type", "def TG_K(YKHO, type):\n YKHO.type = type", "def Q7_x(YKHO, YsUp):\n YKHO._type = YsUp", "def TG_K(YKHO, type):\n YKHO._type = type", "def type(YKHO, type):\n YKHO._type = type", "def type(YKHO, type):\n YKHO._type = type", "def type(YKHO, ty...
[ "0.6807186", "0.6807186", "0.67427087", "0.6720869", "0.66276467", "0.66276467", "0.6600873", "0.6559807", "0.6559807", "0.6559807", "0.6559807", "0.6559807", "0.6559807", "0.6559807", "0.6559807", "0.6559807", "0.6559807", "0.6559807", "0.6559807", "0.6559807", "0.6559807", ...
0.57629234
60
Packs header attributes into a bytes object. This function is called when bytes() or len() is called on an instance of APv6Udp.
def rTZ1(YKHO): Csk6 = bytearray() if YKHO.chksum: YKHO.hdr_co = 0 if type(YKHO.chksum) is int: YKHO.chksum = BlNT.pack('!H', YKHO.chksum) Csk6.extend(YKHO.chksum) else: YKHO.hdr_co = 1 YKHO.chksum = zJpI.DEFAULT_CHKSUM if type(YKHO.src_port) is int: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aPEG(YKHO):\n WBPg = BlNT.pack(YKHO.PACKAGING_FORMAT, YKHO.cmd_length)\n return WBPg", "def aPEG(YKHO):\n WBPg = BlNT.pack(YKHO.PACKAGING_FORMAT, YKHO.qubit_id)\n return WBPg", "def aPEG(YKHO):\n if YKHO._cqc_version < 2:\n WBPg = BlNT.pack(YKHO.PACKAGING_FORMAT_V1, YKHO.remote_app_id...
[ "0.65487754", "0.6436298", "0.6379586", "0.63557494", "0.6285062", "0.62841344", "0.61860025", "0.6154496", "0.61444414", "0.6121279", "0.6103996", "0.60830086", "0.60581124", "0.60525715", "0.60164416", "0.60143644", "0.5994952", "0.59934485", "0.5992537", "0.5989716", "0.59...
0.7348816
0
Delete the specified security group.
def PTpj(YKHO, qkbz): YKHO.client.delete_security_group(qkbz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dzmC(YKHO, ANtU):\n return YKHO.delete(YKHO.security_group_path % ANtU)", "def PTpj(YKHO, fEOc: str) -> None:\n PsCT = f'{uq0F.CLOUD_SECURITY_GROUP.value}/{fEOc}'\n return YKHO._delete(route=PsCT)", "def JmUd(YKHO, qIxc):\n zn0c = qIxc['Region']\n fmL_ = qIxc['Security-group-ID']\n Ol8d =...
[ "0.85662276", "0.8210117", "0.8082436", "0.807139", "0.7824918", "0.7819024", "0.77688706", "0.77561724", "0.76489073", "0.7574855", "0.7550108", "0.7444094", "0.7314309", "0.73037905", "0.7280626", "0.7277278", "0.722124", "0.7209613", "0.7142753", "0.71279985", "0.7075681",...
0.7954625
4
Returns True if the default floating IP pool is enabled.
def cNPo(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def te56(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'BfdEnabled']]]:\n return qe4Y.get(YKHO, 'only_use_host_ips')", "def Qu_e(YKHO, QpfX, mWFP):\n CsDk = [dBuj.get('name') for dBuj in YKHO.get_floating_ip_pools(QpfX)]\n if mWFP in CsDk:\n return True\n return False", "def i6cc(YKHO) -> bool:\n re...
[ "0.64636755", "0.618417", "0.60509044", "0.5993593", "0.59571314", "0.59074587", "0.58390975", "0.5820911", "0.5782998", "0.57631683", "0.5759338", "0.5759145", "0.5723034", "0.5719549", "0.57160133", "0.5698853", "0.5682195", "0.5662753", "0.5651675", "0.56396246", "0.563745...
0.5497968
40
Create a QoS Policy.
def OQSi(QePW, **B2fa): TBsA = {'policy': B2fa} Qabx = XvQk(QePW).create_qos_policy(body=TBsA).get('policy') return P4ct(Qabx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fw11(YKHO, **B2fa):\n if not YKHO._has_neutron_extension('qos'):\n raise BQDi.OpenStackCloudUnavailableExtension('QoS extension is not available on target cloud')\n WmM4 = B2fa.pop('default', None)\n if WmM4 is not None:\n if YKHO._has_neutron_extension('qos-default'):\n B2fa[...
[ "0.68759376", "0.6242619", "0.6193559", "0.6185032", "0.60708255", "0.6062954", "0.5996479", "0.59872615", "0.5966943", "0.594414", "0.59113246", "0.588065", "0.58229667", "0.5793363", "0.576755", "0.5761384", "0.5741361", "0.57177156", "0.5717073", "0.5685106", "0.5649676", ...
0.82401085
0
Get QoS policy for a given policy id.
def OOvX(QePW, ulWc, **B2fa): Qabx = XvQk(QePW).show_qos_policy(ulWc, **B2fa).get('policy') return P4ct(Qabx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qFaa(YKHO, ulWc: PolicyID=ppxL) -> KQUU:\n return YKHO.workers.local_worker().get_policy(ulWc)", "def x8hp(YKHO, id):\n for zVa7, knan in YKHO.remote_store.get_policy_list().items():\n for Qabx in knan:\n if Qabx.id == id:\n return Qabx", "def L0Qz(YKHO, QpfX, id):\n ...
[ "0.7725503", "0.73532784", "0.72533906", "0.7127083", "0.6625672", "0.64775085", "0.6432182", "0.64184535", "0.6410658", "0.6400318", "0.6374223", "0.6330362", "0.63037026", "0.6257615", "0.6233989", "0.6224981", "0.6117491", "0.60676295", "0.6050387", "0.60480464", "0.602423...
0.81549245
0
Update a Minimum Packet Rate rule.
def zfSG(QePW, ulWc, La_l, **B2fa): TBsA = {'minimum_packet_rate_rule': B2fa} Wfka = 'minimum_packet_rate_rule' MznF = XvQk(QePW).update_minimum_packet_rate_rule(La_l, ulWc, TBsA).get(Wfka) return e39J(MznF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qvxj(QePW, ulWc, La_l, **B2fa):\n TBsA = {'minimum_bandwidth_rule': B2fa}\n Wfka = 'minimum_bandwidth_rule'\n SE0X = XvQk(QePW).update_minimum_bandwidth_rule(La_l, ulWc, TBsA).get(Wfka)\n return EPia(SE0X)", "def mlGQ(YKHO, e5kH, xwUm):\n FdWc = 1500\n OyxL = xwUm.sport\n assert OyxL in ...
[ "0.7277555", "0.61457646", "0.60345393", "0.59962577", "0.59222406", "0.58652914", "0.56720436", "0.5668259", "0.55922943", "0.5551132", "0.55434036", "0.55237395", "0.55085146", "0.55085146", "0.55007815", "0.5474096", "0.54328454", "0.5427534", "0.542707", "0.54068035", "0....
0.79486185
0
Get RBAC policy for a given policy id.
def kx7f(QePW, ulWc, **B2fa): Qabx = XvQk(QePW).show_rbac_policy(ulWc, **B2fa).get('rbac_policy') return HdcO(Qabx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x8hp(YKHO, id):\n for zVa7, knan in YKHO.remote_store.get_policy_list().items():\n for Qabx in knan:\n if Qabx.id == id:\n return Qabx", "def qFaa(YKHO, ulWc: PolicyID=ppxL) -> KQUU:\n return YKHO.workers.local_worker().get_policy(ulWc)", "def qFaa(YKHO, ulWc, **B2fa)...
[ "0.7609072", "0.75252926", "0.67593324", "0.6580893", "0.6523268", "0.6486931", "0.6456575", "0.63647413", "0.63321996", "0.6329342", "0.62911904", "0.6261756", "0.6214883", "0.6194023", "0.6179474", "0.6125511", "0.6124483", "0.6093706", "0.60242146", "0.60095215", "0.588158...
0.8068497
0
Returns how many single elements are in a list despite of possibly having nested lists. This function is used in the Instructions file.
def LGlr(Pwmu, UaJ_): JLKs(UaJ_, 'count elements of') sdCG = UaJ_[0] if not zKof(sdCG): raise Exception('Tried to get element count of non-list') def Gj4D(sdCG): if sdCG == None: return 0 if type(sdCG) == float: return 1 elif zKof(sdCG): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _cGr(yv6U):\n return sum([WKvO[1] for WKvO in yv6U])", "def szAg(YKHO):\n exwG = 1\n for rpTu in YKHO._valListOfLists:\n exwG *= len(rpTu)\n return exwG", "def brhq(yv6U):\n KCHu = 0\n for WKvO in yv6U:\n if type(WKvO) == list:\n KCHu = KCHu + brhq(WKvO)\n ...
[ "0.74498034", "0.73971194", "0.7344255", "0.72538537", "0.7176285", "0.71633637", "0.70739836", "0.7002648", "0.69440633", "0.6882341", "0.6881639", "0.68408746", "0.68025434", "0.6764661", "0.6712699", "0.66983974", "0.6696875", "0.6676838", "0.6609897", "0.66028047", "0.659...
0.7448293
1
convert a nested list of tensor to nested list of np_array.
def V6CB(QLR1): if isinstance(QLR1, llWB): return QLR1.asnumpy() if isinstance(QLR1, list): for or8S, BWXx in enumerate(QLR1): QLR1[or8S] = V6CB(BWXx) return QLR1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTDd(jzdc: List[tvm.nd.NDArray]) -> x1iM[oyIN.ndarray]:\n assert jzdc is not None, 'Empty result cannot be converted to numpy'\n return [WKvO.numpy() for WKvO in jzdc]", "def ZDc1(jzdc: List[np.ndarray]) -> x1iM[fnfy.nd.NDArray]:\n assert jzdc is not None, 'Empty result cannot be converted to TVM ND...
[ "0.68412316", "0.6749231", "0.65524775", "0.65040493", "0.63982886", "0.6367967", "0.63524485", "0.6294176", "0.6291704", "0.6198028", "0.6170006", "0.61575586", "0.61203235", "0.6119871", "0.6117636", "0.6082942", "0.60652846", "0.60474956", "0.60424167", "0.603359", "0.6027...
0.6593433
2
Get the current device (`GPU`, `CPU`, `Ascend`)
def HNbi(): return QpfX.get_context('device_target')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VeaS():\n import torch\n if torch.cuda.is_available():\n return torch.device('cuda')\n return torch.device('cpu')", "def IQ8c():\n return MTKo['device_id']", "def begE():\n return yvY1.DEVICE", "def begE(YKHO) -> ht2j.device:\n for xqoZ in YKHO.parameters():\n return xqoZ....
[ "0.79553956", "0.78293407", "0.7782082", "0.77409965", "0.7728832", "0.7690778", "0.76234984", "0.7591698", "0.7532002", "0.7526446", "0.74859667", "0.746789", "0.7392168", "0.73713374", "0.73713374", "0.73713374", "0.73713374", "0.73713374", "0.7320805", "0.7260927", "0.7234...
0.7037
31
Expand x to ndim.
def _vxO(WKvO, qC1Y, jDK_=0): while vuvg.rank(WKvO) < qC1Y: WKvO = vuvg.expand_dims(WKvO, jDK_) return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QfE2(WKvO: np.array) -> oyIN.array:\n WKvO = oyIN.expand_dims(WKvO, axis=-1)\n return WKvO", "def G9Fc(WKvO, exwG=1, h3Aq=True):\n if h3Aq:\n MPlV = tuple([oyIN.newaxis] * exwG + [...])\n else:\n MPlV = tuple([...] + [oyIN.newaxis] * exwG)\n return WKvO[MPlV]", "def SqOW(WKvO):...
[ "0.7843474", "0.698544", "0.6690795", "0.6534174", "0.650531", "0.64515316", "0.64469814", "0.6422677", "0.64072204", "0.6375917", "0.63537467", "0.6302055", "0.61996084", "0.6194479", "0.617031", "0.6166471", "0.6150439", "0.6108699", "0.61020327", "0.6064482", "0.6052254", ...
0.8140641
0
Yield successive nsized chunks from lst.
def eHxA(yv6U, exwG): for YRbF in range(0, len(yv6U), exwG): yield yv6U[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield...
[ "0.83071756", "0.81939614", "0.81910837", "0.81910837", "0.8190213", "0.81267184", "0.81218547", "0.81218547", "0.80773693", "0.80526286", "0.80526286", "0.80526286", "0.80526286", "0.80526286", "0.80042696", "0.7871678", "0.7845623", "0.7828392", "0.7827006", "0.78138447", "...
0.80533457
25
Get the top MAX_LEADERS scores for a given difficulty
def KQbM(YKHO, Ql2Z): return list(YKHO.database[Ql2Z].find().sort('time').limit(Lmcb))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ehxu(cCrA: list) -> int:\n return max(cCrA)", "def ehxu(cCrA):\n return max(cCrA)", "def ehxu(cCrA):\n return max(cCrA)", "def e1Nf(YKHO):\n if not YKHO.scores:\n return None\n return YKHO.te_list[YKHO.scores.index(max(YKHO.scores))]", "def jB5X(YKHO):\n return YKHO.lcp.get_max...
[ "0.7010317", "0.6979618", "0.6871133", "0.651442", "0.6441942", "0.64119995", "0.6371139", "0.63277775", "0.63224864", "0.63199437", "0.6284071", "0.6262318", "0.6247192", "0.6236434", "0.6236434", "0.6233733", "0.62313366", "0.6226192", "0.6218556", "0.61993873", "0.61988765...
0.71944165
0
A customized `collate_fn` intented for loading padded sequential data
def ESN8(Wc9F): or8S, Q6uT, gktT = zip(*Wc9F) or8S = ht2j.tensor(or8S) Q6uT = ht2j.stack(Q6uT) gktT = ht2j.tensor(gktT) bGrB, mG3u = ht2j.sort(gktT) mG3u = mG3u.flip(0) Ufth = gktT[mG3u] Ys30 = ht2j.max(gktT) tZht = Q6uT[mG3u, 0:Ys30, :] Zh8C = odY8(tZht, Ufth) gczH = qWBp(tZ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cu81(nPrm):\n bySB, Crrw = zip(*nPrm)\n return (BRjU(bySB, enforce_sorted=False), ht2j.tensor(Crrw))", "def STgu(Wc9F):\n u54L = [len(yAmx) for yAmx in Wc9F]\n return (gc7n([ht2j.LongTensor(KCHu) for KCHu in Wc9F], batch_first=True), ht2j.LongTensor(u54L))", "def cZGU(nPrm):\n VXjJ, FlUN, ve...
[ "0.69073904", "0.68714195", "0.68312085", "0.68078774", "0.6686843", "0.66076684", "0.6568909", "0.6485853", "0.6478409", "0.64036995", "0.61725557", "0.60923296", "0.6091442", "0.6085053", "0.60514766", "0.6000228", "0.5992807", "0.59734184", "0.5945385", "0.59385383", "0.59...
0.64473957
9
This functoin checks if a given string is a hex string and can be converted to byte array.
def VB_W(X9sb): try: bytearray.fromhex(X9sb) except ValueError: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f_5l(n_L_: str) -> bytes:\n if n_L_.startswith('0x') or n_L_.startswith('0X'):\n return bytes.fromhex(n_L_[2:])\n return bytes.fromhex(n_L_)", "def _40R(KCHu):\n try:\n int(KCHu, 16)\n return True\n except ValueError:\n return False", "def f_5l(nPrm: str) -> bytes:\n...
[ "0.7048844", "0.69426155", "0.68264014", "0.6783162", "0.6738244", "0.67089266", "0.6658886", "0.6657814", "0.66116035", "0.6565061", "0.6520991", "0.6394768", "0.6380683", "0.6357403", "0.6334347", "0.6329508", "0.6304291", "0.6218196", "0.62084115", "0.6172354", "0.61549777...
0.76455384
0
Validate that the old_password field is correct.
def XLEN(YKHO): BfIX = YKHO.cleaned_data['old_password'] if not UDXs.check_user_password(YKHO.user.username, BfIX): raise H6V6.ValidationError(YKHO.error_messages['password_incorrect'], code='password_incorrect') return BfIX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIy1(L03z, Jyyj):\n BfIX = Jyyj.data\n jTXt = c5ow.password\n Mkmy = jf1V.verify(BfIX, c5ow.password)\n if not Mkmy:\n raise _FIc.ValidationError('old password is wrong')", "def XLEN(YKHO):\n BfIX = YKHO.cleaned_data['old_password']\n if not YKHO.user.check_password(BfIX):\n r...
[ "0.8756323", "0.8665774", "0.8625098", "0.7929837", "0.7739037", "0.771848", "0.75522846", "0.7490213", "0.74407566", "0.7397287", "0.73796165", "0.73740816", "0.729492", "0.72460634", "0.72441095", "0.7230054", "0.7164203", "0.7155687", "0.71555614", "0.71264774", "0.7094459...
0.8656694
2
Filters all guides returned by Crispor down to those that have a score greater than min_score, then takes top guides by special ranking if HDR, else by score. Doench min_score = 10 is the same value used by Benchling. max_hdr_dist is based on effective limits of HDR.
def Nz8e(YKHO, o0Mw, AjsF=10, djNo=40) -> dict: qK67 = dict(((Oa1e['target'], Oa1e.get('guide_seqs')) for Oa1e in o0Mw.guide_data if _e4L.NOT_FOUND not in Oa1e.get('guide_seqs'))) kZUw = dict(((Oa1e['target'], Oa1e.get('guide_seqs')) for Oa1e in o0Mw.guide_data if _e4L.NOT_FOUND in Oa1e.get('guide_seqs'))) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w4lG(EcVT, LVAh, yU7_=8, FCI5=40, p1kx='bic'):\n assert yU7_ > 0, 'nbest must be positive'\n FCI5 = max(FCI5, yU7_)\n iMqM = dmb5(EcVT).rename(columns={'const': '(Intercept)'})\n\n def kJzY(hUI7):\n return -WHVH(LVAh, iMqM[hUI7]).fit().bic\n\n def aFZC(hUI7):\n return -WHVH(LVAh, i...
[ "0.56349045", "0.54515886", "0.54471856", "0.5407505", "0.53740907", "0.5273205", "0.5251434", "0.5238548", "0.5196233", "0.51617986", "0.5154151", "0.513857", "0.51197845", "0.5117221", "0.5099921", "0.5064455", "0.5039076", "0.50289404", "0.5006979", "0.49972126", "0.498287...
0.6755252
0
Returns encoding of file, fname.
def aG9_(IznC): nUeQ = open(IznC, 'rb') tZ2K = oXq5.detect(nUeQ.read())['encoding'] return tZ2K
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yiAv(IznC):\n with xDSY.open(IznC, 'rt', encoding='ascii', errors='ignore') as eHNT:\n for Tnh1 in range(2):\n zFiD = eHNT.readline()\n kUBT = FizA.search(zFiD)\n if kUBT:\n return kUBT.group(1)\n return 'ascii'", "def RePC(Ux0P):\n with open(Ux...
[ "0.7988358", "0.7444446", "0.7207809", "0.71370965", "0.7093451", "0.66141176", "0.65822077", "0.6516463", "0.64917636", "0.6332927", "0.6176389", "0.61531925", "0.61307967", "0.60929745", "0.59767604", "0.5945594", "0.59446853", "0.59001964", "0.58972293", "0.58306104", "0.5...
0.8020138
0
Return list of all products.
def cfQO(tvqc, QpfX): bo34.debug(tvqc) C76W = NDHJ return {'statusCode': 200, 'headers': KP2F, 'body': qQXR.dumps({'products': C76W})}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CnKV(YKHO):\n pass", "def CnKV():\n Ldyl = P4t4.session.query(FYrf.Product).all()\n return Ldyl", "def CnKV():\n nPrm = NFJ2.get_all_products()\n return nPrm", "def uQsB(YKHO):\n return YKHO._make_get_request(YKHO._urls['products'])", "def CGif():\n Ldyl = []\n x0hE = ytxd()\n ...
[ "0.8845219", "0.8657297", "0.8540142", "0.85302764", "0.8358944", "0.8319853", "0.8308576", "0.799987", "0.7984015", "0.7945628", "0.7886766", "0.78642523", "0.7745842", "0.7739095", "0.7729446", "0.7708377", "0.76693064", "0.76649344", "0.76593167", "0.7582866", "0.7565871",...
0.0
-1
Escapes or unescapes the specified field in a model or dictionary.
def pJLK(YEnM, Jyyj, EtF8): if EtF8: l3hS(YEnM, Jyyj) else: trpk(YEnM, Jyyj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l3hS(YEnM, vXX7):\n if isinstance(YEnM, wOed):\n setattr(YEnM, vXX7, S1k4.markdown_escape(getattr(YEnM, vXX7)))\n elif isinstance(YEnM, dict):\n YEnM[vXX7] = S1k4.markdown_escape(YEnM[vXX7])\n else:\n raise TypeError('Unexpected type %r passed to markdown_escape_field' % YEnM)", ...
[ "0.7146712", "0.68923646", "0.6638781", "0.6623981", "0.64805365", "0.6106077", "0.5780616", "0.57652986", "0.574764", "0.56577927", "0.5599311", "0.55628854", "0.5530404", "0.55108035", "0.549196", "0.5454453", "0.54391074", "0.5416525", "0.5404565", "0.5287084", "0.52672803...
0.6844108
2
Produces list of transition metals in order of atomic number
def _Qz8(YKHO): Tmd3 = [[21, 30], [39, 44], [46, 48], [74, 76], [78, 80]] MjmD = [] for YRbF in Tmd3: TuYE = YRbF[0] bAmE = YRbF[1] Ki8H = range(TuYE, bAmE + 1) MjmD.extend(Ki8H) UqER = [] for YRbF in MjmD: U6D_ = cFlk.from_Z(YRbF) UqER.append(U6D_) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KlbE():\n MtF0 = []\n MtF0.append(j7A7(3, 4, 2.0, 'left ejection'))\n MtF0.append(j7A7(12, 2, 2.0, 'right ejection'))\n MtF0.append(j7A7(19, 20, 200000000.0, 'downward ejection, left'))\n MtF0.append(j7A7(19, 24, 200000000.0, 'downward ejection, right'))\n MtF0.append(j7A7(28, 17, 1.0, 'upwar...
[ "0.67675257", "0.65004987", "0.6411197", "0.58470243", "0.5776502", "0.5768829", "0.5764657", "0.5713587", "0.5711093", "0.56495124", "0.5608707", "0.55893725", "0.55888236", "0.55806756", "0.5578302", "0.5572511", "0.5561699", "0.5549484", "0.55388075", "0.5537071", "0.55316...
0.0
-1
=============== GET /appraises/ =============== Get a list of all appraises for the current user. Statuses 200
def NMoC(YKHO): Q01a = a9Qj.service_locator.get_by_name(u'appraises') _ysW = Q01a.get_list(SUNr._get_current_object()) oDn_ = a9Qj.extensions['sfkit:paginator'].paginate(_ysW) return YKHO.build_response(oDn_.items).paginate_with(oDn_).serialize_with(Q0JG(many=True))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F9sO():\n CBIr = DW23.get_current_user()\n if CBIr:\n if DW23.is_current_user_admin() or aPqv():\n bUO0 = pSLI.query(ancestor=SaH1).order(-pSLI.date)\n xdTQ = bUO0.fetch()\n hlel = rPXJ('applist', appls=xdTQ, name=LAaH, log_in_out=DW23.create_logout_url('/'), opt='...
[ "0.627098", "0.610369", "0.587262", "0.58545244", "0.5829727", "0.5637076", "0.55927235", "0.55556476", "0.55413175", "0.55021656", "0.5464352", "0.544797", "0.5380183", "0.53465587", "0.5335637", "0.53316677", "0.5331494", "0.53091776", "0.52949154", "0.52809006", "0.5274341...
0.81783855
0
this function will create the speed and acceleration by changing the private values of the ship's x axis speed and y axis speed.
def sgTf(YKHO): YKHO.x_speed += epAf.cos(epAf.radians(YKHO.degrees)) YKHO.y_speed += epAf.sin(epAf.radians(YKHO.degrees))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A793(YKHO):\n _rTH = YKHO.__calc_speed(riCe._X)\n ghMe = YKHO.__calc_speed(riCe._Y)\n YKHO._speed_vect = (_rTH, ghMe)", "def QdZT(YKHO, JRYC):\n YKHO.velocity += YKHO.acceleration * JRYC\n YKHO.position += YKHO.velocity * JRYC\n YKHO.ship.rotation = vwZf(-YKHO.velocity[1], YKHO.velocity[0])...
[ "0.7879519", "0.6993986", "0.6924762", "0.6872213", "0.6817173", "0.662681", "0.65564036", "0.6556044", "0.654763", "0.6546245", "0.6526442", "0.64894724", "0.64795375", "0.64339894", "0.6422797", "0.64122105", "0.64116096", "0.6391532", "0.63882715", "0.63786954", "0.6374197...
0.6672178
5
Compute the sign of the `root` that yield the smallest weighted cut in `tree_adj` given the already revealed `nodes_sign`.
def YJab(g5tv, c_mg, sR9N, tk5Y, Vlpg=False): assert isinstance(g5tv, dict) if not (isinstance(c_mg, tuple) and len(c_mg) == 2): c_mg = (c_mg, c_mg) if tk5Y in c_mg[0]: rNgw, V1Jj = (wS0Z, 0) if c_mg[0][tk5Y] < 0 else (0, wS0Z) Mztb = c_mg[0][tk5Y] * wS0Z tNkZ, XYPG = (wS0Z, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def haY1(g5tv, Q6kx, Ii4h, c_mg, ENzM, sR9N):\n vexM = MUE7()\n jGRS = oRi_(lambda: (False, 0))\n vexM.append(Q6kx)\n jGRS[Q6kx] = (True, 0)\n __zY = {}\n ONuc, xmxs = (None, 2000000000.0)\n while vexM:\n Ty9i = vexM.popleft()\n OCLG = jGRS[Ty9i][1]\n isyW = Ii4h[Ty9i]\n ...
[ "0.60380954", "0.58173275", "0.56156844", "0.56066066", "0.5505414", "0.5458044", "0.52484727", "0.52415603", "0.52331084", "0.52293885", "0.5228589", "0.5197665", "0.5183578", "0.51605326", "0.51593035", "0.51516813", "0.5068861", "0.5022855", "0.50157493", "0.50155133", "0....
0.6511304
0