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
cast(itkLightObject obj) > itkShapePriorMAPCostFunctionID2D
def YWvJ(*qIxc): return RYuP.itkShapePriorMAPCostFunctionID2D_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LRDP(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionID2D_cast(*qIxc)", "def rwLC(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseID2D_cast(*qIxc)", "def b7Vx(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionIF2F_cast(*qIxc)", "def zaSc(*qIxc):\n return RYuP.itkShapePriorMAPCostFunct...
[ "0.73141676", "0.70673996", "0.6843274", "0.66840935", "0.6582692", "0.65562236", "0.64544374", "0.6311978", "0.62989557", "0.62106824", "0.62099963", "0.61970466", "0.617904", "0.61630714", "0.6151838", "0.6122002", "0.609543", "0.60067594", "0.5984658", "0.59663564", "0.595...
0.6689089
3
New() > itkShapePriorMAPCostFunctionID2D Create a new object of the class itkShapePriorMAPCostFunctionID2D and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter ...
def oW_4(*qIxc, **PECO): YEnM = B6yp.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = KWwv.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = T6wb.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.8137347", "0.74477273", "0.74374545", "0.7071052", "0.70291", "0.662702", "0.65856886", "0.65761375", "0.6550787", "0.6507501", "0.6442525", "0.6423178", "0.63393754", "0.6286249", "0.6276019", "0.626917", "0.6257921", "0.6208364", "0.61726797", "0.6158207", "0.6157282", ...
0.81472766
0
itkShapePriorMAPCostFunctionID2D_cast(itkLightObject obj) > itkShapePriorMAPCostFunctionID2D
def LRDP(*qIxc): return RYuP.itkShapePriorMAPCostFunctionID2D_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rwLC(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseID2D_cast(*qIxc)", "def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionID2D_cast(*qIxc)", "def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseID2D_cast(*qIxc)", "def b7Vx(*qIxc):\n return RYuP.itkShapePriorMAPCostF...
[ "0.77926093", "0.7337416", "0.7182796", "0.7125641", "0.70003897", "0.68776655", "0.6733603", "0.6476927", "0.6475587", "0.6414517", "0.63908046", "0.6361748", "0.624513", "0.6163749", "0.6070874", "0.60321444", "0.6016549", "0.59840125", "0.59824383", "0.5980934", "0.5931624...
0.8083904
0
cast(itkLightObject obj) > itkShapePriorMAPCostFunctionID3D
def YWvJ(*qIxc): return RYuP.itkShapePriorMAPCostFunctionID3D_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def axMc(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionID3D_cast(*qIxc)", "def ZHkd(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseID3D_cast(*qIxc)", "def UpmD(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionIF3F_cast(*qIxc)", "def leCT(*qIxc):\n return RYuP.itkShapePriorMAPCostFunct...
[ "0.7551205", "0.73524797", "0.7227937", "0.70457846", "0.68000954", "0.6740633", "0.6698036", "0.65933263", "0.6587317", "0.6586712", "0.6578969", "0.6570283", "0.6569771", "0.65605384", "0.65595824", "0.65149385", "0.6512188", "0.65099764", "0.6477185", "0.64730686", "0.6460...
0.6935864
4
New() > itkShapePriorMAPCostFunctionID3D Create a new object of the class itkShapePriorMAPCostFunctionID3D and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter ...
def oW_4(*qIxc, **PECO): YEnM = aF76.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = b39Q.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = veXV.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.8356859", "0.7809381", "0.7721349", "0.7109716", "0.702632", "0.68193895", "0.67663026", "0.67349565", "0.6731509", "0.6730895", "0.66711056", "0.6594008", "0.6532657", "0.65133506", "0.64967597", "0.6486613", "0.6472881", "0.64678246", "0.6455502", "0.6423704", "0.6375438...
0.8377686
0
itkShapePriorMAPCostFunctionID3D_cast(itkLightObject obj) > itkShapePriorMAPCostFunctionID3D
def axMc(*qIxc): return RYuP.itkShapePriorMAPCostFunctionID3D_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZHkd(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseID3D_cast(*qIxc)", "def UpmD(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionIF3F_cast(*qIxc)", "def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionID3D_cast(*qIxc)", "def leCT(*qIxc):\n return RYuP.itkShapePriorMAPCostFunct...
[ "0.796648", "0.7703503", "0.7478354", "0.7477841", "0.73037636", "0.69606185", "0.67794114", "0.6721123", "0.6648853", "0.6635782", "0.6615393", "0.6588962", "0.6553291", "0.65416825", "0.65231425", "0.65204686", "0.6515173", "0.65086496", "0.649258", "0.64867336", "0.6471725...
0.823055
0
cast(itkLightObject obj) > itkShapePriorMAPCostFunctionIF2F
def YWvJ(*qIxc): return RYuP.itkShapePriorMAPCostFunctionIF2F_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b7Vx(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionIF2F_cast(*qIxc)", "def zaSc(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseIF2F_cast(*qIxc)", "def UpmD(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionIF3F_cast(*qIxc)", "def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostFunct...
[ "0.76491976", "0.749238", "0.70478415", "0.6970403", "0.697026", "0.6734195", "0.6690217", "0.6632464", "0.66307944", "0.65427905", "0.6420354", "0.6400475", "0.63392985", "0.6323308", "0.6307473", "0.62990093", "0.62775564", "0.62742627", "0.62607276", "0.6236481", "0.622592...
0.7055122
2
New() > itkShapePriorMAPCostFunctionIF2F Create a new object of the class itkShapePriorMAPCostFunctionIF2F and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter ...
def oW_4(*qIxc, **PECO): YEnM = T6wb.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = xxer.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = B6yp.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.82336086", "0.78440315", "0.7786063", "0.76676893", "0.76346064", "0.7078142", "0.7002258", "0.61907375", "0.61800945", "0.6159311", "0.6153904", "0.61530274", "0.6144896", "0.6137117", "0.6136335", "0.6136335", "0.6118525", "0.6004434", "0.5981893", "0.59577686", "0.59502...
0.82542807
0
itkShapePriorMAPCostFunctionIF2F_cast(itkLightObject obj) > itkShapePriorMAPCostFunctionIF2F
def b7Vx(*qIxc): return RYuP.itkShapePriorMAPCostFunctionIF2F_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zaSc(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseIF2F_cast(*qIxc)", "def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionIF2F_cast(*qIxc)", "def UpmD(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionIF3F_cast(*qIxc)", "def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostFunct...
[ "0.80269736", "0.7589307", "0.7554484", "0.7497977", "0.7449762", "0.718812", "0.7134716", "0.71172893", "0.7004314", "0.6690077", "0.6677554", "0.6651482", "0.6579511", "0.6458726", "0.6457076", "0.64121693", "0.63438094", "0.62941116", "0.6250574", "0.62317395", "0.6193091"...
0.8209508
0
cast(itkLightObject obj) > itkShapePriorMAPCostFunctionIF3F
def YWvJ(*qIxc): return RYuP.itkShapePriorMAPCostFunctionIF3F_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UpmD(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionIF3F_cast(*qIxc)", "def leCT(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseIF3F_cast(*qIxc)", "def b7Vx(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionIF2F_cast(*qIxc)", "def zaSc(*qIxc):\n return RYuP.itkShapePriorMAPCostFunct...
[ "0.76793736", "0.75645584", "0.7273315", "0.7051506", "0.7025704", "0.70037425", "0.6899321", "0.674652", "0.6704467", "0.6616369", "0.66113853", "0.65884703", "0.65747505", "0.65468156", "0.6540885", "0.6482816", "0.6469499", "0.64639187", "0.6441915", "0.64409536", "0.64209...
0.7125982
3
New() > itkShapePriorMAPCostFunctionIF3F Create a new object of the class itkShapePriorMAPCostFunctionIF3F and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter ...
def oW_4(*qIxc, **PECO): YEnM = veXV.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = XbvU.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = aF76.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.83430517", "0.8027772", "0.7915666", "0.7616337", "0.75324714", "0.7118853", "0.7005761", "0.66301626", "0.6621981", "0.65933114", "0.6590974", "0.6532026", "0.65184873", "0.6466652", "0.6410177", "0.6404741", "0.6369389", "0.63545376", "0.63198525", "0.63130546", "0.63026...
0.84030867
0
itkShapePriorMAPCostFunctionIF3F_cast(itkLightObject obj) > itkShapePriorMAPCostFunctionIF3F
def UpmD(*qIxc): return RYuP.itkShapePriorMAPCostFunctionIF3F_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def leCT(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionBaseIF3F_cast(*qIxc)", "def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionIF3F_cast(*qIxc)", "def axMc(*qIxc):\n return RYuP.itkShapePriorMAPCostFunctionID3D_cast(*qIxc)", "def YWvJ(*qIxc):\n return RYuP.itkShapePriorMAPCostFunct...
[ "0.8169523", "0.76662076", "0.7587959", "0.7543089", "0.7516897", "0.7429383", "0.724812", "0.7096914", "0.70078087", "0.6930906", "0.67817026", "0.6700992", "0.66370654", "0.6611494", "0.65781975", "0.6522072", "0.65128714", "0.6500653", "0.6498956", "0.64919084", "0.6486791...
0.8326169
0
Transforms a sequence of words to the corresponding sequence of word indices.
def MSmO(YKHO, _dZy): def Ozdp(yzQ0): """ Checks if the word should be replaced by <NUM>. """ rmc3 = list(yzQ0) for KCHu in rmc3: if KCHu in vIwR.digits: return '<NUM>' return yzQ0 jF4J = [Ozdp(GIN8) for GIN8 in _dZy.split()] MUEG = [YKHO.vocab.wo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x5jl(YKHO, aWuw, CtWL, yKcO, Os4s, n9YZ):\n if yKcO:\n aWuw.insert(0, yKcO)\n if Os4s:\n aWuw.append(Os4s)\n return [CtWL[eOtH] if eOtH in CtWL else CtWL[n9YZ] for eOtH in aWuw]", "def JVyp(Rhv4):\n V22M = []\n for or8S, yAmx in enumerate(Rhv4):\n for GIN8, UXqs, Wswm, jI4...
[ "0.7448267", "0.71653074", "0.7153222", "0.70562774", "0.6883426", "0.6823358", "0.67950535", "0.67703414", "0.6770327", "0.6730943", "0.6711324", "0.66610646", "0.6601152", "0.65730244", "0.65699923", "0.6550655", "0.65480447", "0.65451014", "0.6474657", "0.64126396", "0.640...
0.63152647
26
Returns an iterator object.
def Vs4Q(YKHO): return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aQZ9(object):\n oHE7 = None\n try:\n oHE7 = iter(object)\n except TypeError:\n pass\n return oHE7", "def bDy6():\n return ED7W.Iterator()", "def Vs4Q(YKHO) -> bDy6[Kt_s]:\n return YKHO", "def Vs4Q(YKHO):\n return YKHO.new_generator()", "def Sjsj(YKHO, mWFP):\n retu...
[ "0.78348416", "0.7545588", "0.73436576", "0.73081166", "0.72798884", "0.7146782", "0.7064719", "0.7064719", "0.7064719", "0.7038452", "0.70342577", "0.70269006", "0.6993885", "0.6983573", "0.6953362", "0.6929482", "0.6926676", "0.6906881", "0.69067717", "0.68904996", "0.68514...
0.6731643
46
Get the current mixer master volume.
def GuhX(YKHO): import fcntl import struct ITLk = bytearray(struct.pack('III', 0, 0, 0)) try: fcntl.ioctl(YKHO.mixer_fd, 2, ITLk, True) bGrB, bGrB, BWXx = struct.unpack('III', ITLk) return BWXx except: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def akib(YKHO):\n qjHC = None\n if YKHO._mixer:\n qjHC = YKHO._mixer.getvolume()\n return qjHC", "def akib(YKHO) -> int:\n return YKHO.audio_mixer.getvolume()[0]", "def akib():\n qjHC = EVSx.volume\n return qjHC", "def akib(YKHO):\n return bMU8.reactor_volume(YKHO.__reactor_id)", ...
[ "0.79503024", "0.7706911", "0.7612505", "0.74140286", "0.7409908", "0.7378842", "0.7263637", "0.72254914", "0.72254914", "0.7212044", "0.71684396", "0.71597683", "0.70537955", "0.70537955", "0.69722515", "0.6891455", "0.6774336", "0.6721483", "0.66972864", "0.6695001", "0.659...
0.7024125
14
Validates if (valorPagado) is between 1 and 1000_000 not less, nor more 1 represents (un peso) 1_000_000 represents (1.000.000 un millon de pesos) returns True if valid
def O3Qi(BWXx): Uh6Y = 1 VWlI = 1000000 if not Uh6Y <= BWXx <= VWlI: raise IyFz.ValidationError('Valor no permitido, debe ser estar entre 1 y 1000000') return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c_GL(YKHO, vGfb):\n if YKHO.is_valid():\n return int(vGfb['valorPagado']) < 1000000", "def SGVO(YKHO, BWXx: Union[float, int]) -> bool:\n if YKHO.min is not None:\n if YKHO.include_min:\n if BWXx < YKHO.min:\n return False\n elif BWXx <= YKHO.min:\n ...
[ "0.6743427", "0.60432607", "0.5947186", "0.5939321", "0.58391595", "0.57853603", "0.57739466", "0.5750603", "0.5731449", "0.57002676", "0.56377083", "0.55994165", "0.5586822", "0.5582065", "0.5572668", "0.5566113", "0.55643237", "0.55229557", "0.5500206", "0.5496552", "0.5494...
0.6884947
0
return True if valor pagado is less than 1000000
def c_GL(YKHO, vGfb): if YKHO.is_valid(): return int(vGfb['valorPagado']) < 1000000
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhDa(BWXx, qoqK):\n return BWXx >= qoqK", "def D5g7(BWXx, qoqK):\n return BWXx < qoqK", "def LJE9(BWXx, qoqK):\n return BWXx <= qoqK", "def Uv6R(YKHO, FlUN):\n if YKHO._max_page:\n return YKHO._min_page <= FlUN.page <= YKHO._max_page\n else:\n return YKHO._min_page <= FlUN.pa...
[ "0.6691004", "0.6418565", "0.63765574", "0.6290223", "0.626006", "0.6005171", "0.59546214", "0.58383375", "0.58325917", "0.580886", "0.5736994", "0.5694589", "0.55755144", "0.55718833", "0.55695707", "0.55679595", "0.55593777", "0.54702985", "0.5464542", "0.5464129", "0.54640...
0.63934225
2
Check if requisite date or timestamp columns exist
def NYDe(YKHO): if YKHO.ad_tab is not None and 'date' not in YKHO.ad_cols: raise sJyK('date column not found in adServer table.') if YKHO.ad_tab is not None and 'impressions' not in YKHO.ad_cols: raise sJyK('impressions column not found in adServer table.') if 'timestamp' not in YKHO.log_col...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F2DV(p4qj) -> bool:\n YAg3 = i48E.inspect(p4qj)\n for iVRZ in YAg3.all_orm_descriptors:\n try:\n if isinstance(iVRZ.type, btwS) or isinstance(iVRZ.type, IQQw):\n return True\n except Exception:\n pass\n return False", "def lCW4(Emd4, zFiD):\n try...
[ "0.721589", "0.6990198", "0.66115063", "0.65613896", "0.6457431", "0.6433194", "0.6410698", "0.6399919", "0.61740154", "0.6148821", "0.6136418", "0.6041043", "0.6016009", "0.5923861", "0.5907338", "0.5893033", "0.5851846", "0.58355147", "0.5808094", "0.5798766", "0.5777566", ...
0.73802793
0
Return a string with a pretty printed value.
def AEF4(YKHO, BWXx, pWYh=False): KCHu = '%.1f' % YKHO.internal_to_friendly(BWXx) if pWYh: KCHu += ' ' + YKHO.friendly_units return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2bK(YKHO) -> str:\n ...", "def r7XA(wEf2, rhd_=2):\n if wEf2 == 0:\n return '0'\n if wEf2 == _nfm:\n return 'T'\n return ('%.' + str(rhd_) + 'f') % (wEf2,)", "def r7XA(YKHO):\n return '(%s) %s-%s' % (YKHO.number[:3], YKHO.number[3:6], YKHO.number[6:])", "def GhGj(YKHO):\n ...
[ "0.81929785", "0.7085131", "0.7053562", "0.7012292", "0.6912405", "0.68955916", "0.68771136", "0.6858008", "0.68495435", "0.67574847", "0.66988415", "0.6684732", "0.6634007", "0.6574395", "0.65711874", "0.6510566", "0.6509782", "0.6476508", "0.6468478", "0.644817", "0.6433342...
0.74328786
1
Return True if the contents of self are equal to other.
def xa14(YKHO, Elif): return YKHO.name == Elif.name and YKHO.wavelength_control == Elif.wavelength_control and (YKHO.gonio_angles == Elif.gonio_angles) and (YKHO.wl_angles == Elif.wl_angles) and (YKHO.wavelength_minimum == Elif.wavelength_minimum) and (YKHO.wavelength_maximum == Elif.wavelength_maximum) and (YKHO.w...
{ "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 if YKHO is Elif:\n return True\n if type(YKHO) != type(Elif):\n return False\n if YKHO.size() != Elif.size():\n return False\n for d6pt in range(Y...
[ "0.8457405", "0.8457405", "0.8346412", "0.8301635", "0.8301635", "0.8263393", "0.8170906", "0.81685007", "0.81321794", "0.8129613", "0.812877", "0.81199074", "0.80871046", "0.8086053", "0.80756724", "0.80567974", "0.8052752", "0.8045209", "0.80364627", "0.80249214", "0.802245...
0.0
-1
Return (wl_min, wl_max) from the list of angles, or (None, None) if not specified.
def lq1q(YKHO, bLm4): if YKHO.wavelength_control: KhxN = bLm4[len(YKHO.gonio_angles)] EuAm = KhxN - YKHO.wavelength_bandwidth / 2.0 CQDe = KhxN + YKHO.wavelength_bandwidth / 2.0 if EuAm < 0.001: EuAm = 0.001 if CQDe < 0.001: CQDe = 0.001 return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GtkT(ucH_, n_Ej, bLm4, TpWq):\n gb8_ = []\n YRzJ = []\n for YRbF in range(ucH_):\n J_zH = X_38.IncidenceAngle(n_Ej, bLm4[YRbF] + TpWq)\n jFOD = X_38.SlantRange(n_Ej, J_zH, bLm4[YRbF] + TpWq)\n gb8_.append(J_zH)\n YRzJ.append(jFOD)\n return (gb8_, YRzJ)", "def Z5dR(list...
[ "0.6077935", "0.60710114", "0.58309764", "0.5729149", "0.5708154", "0.564264", "0.56408995", "0.561172", "0.55999804", "0.55700374", "0.55608904", "0.55137265", "0.5506718", "0.5496514", "0.5489251", "0.54852027", "0.5462924", "0.54557735", "0.5445365", "0.54426765", "0.54380...
0.7613855
0
Return True if the contents of self are equal to other.
def xa14(YKHO, Elif): return aDBP.__eq__(YKHO, Elif) and oyIN.deg2rad(YKHO.chi) == Elif.chi
{ "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 if YKHO is Elif:\n return True\n if type(YKHO) != type(Elif):\n return False\n if YKHO.size() != Elif.size():\n return False\n for d6pt in range(Y...
[ "0.8456036", "0.8456036", "0.83450884", "0.8299809", "0.8299809", "0.826243", "0.8168996", "0.8167237", "0.8131265", "0.8127899", "0.8126606", "0.8117907", "0.80864465", "0.8084901", "0.80752355", "0.80563366", "0.80516183", "0.8044838", "0.8036182", "0.802412", "0.80218124",...
0.0
-1
Return True if the contents of self are equal to other.
def xa14(YKHO, Elif): return aDBP.__eq__(YKHO, Elif) and oyIN.deg2rad(YKHO.chi) == Elif.chi and (oyIN.deg2rad(YKHO.omega) == Elif.omega)
{ "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 if YKHO is Elif:\n return True\n if type(YKHO) != type(Elif):\n return False\n if YKHO.size() != Elif.size():\n return False\n for d6pt in range(Y...
[ "0.8457405", "0.8457405", "0.8346412", "0.8301635", "0.8301635", "0.8263393", "0.8170906", "0.81685007", "0.81321794", "0.8129613", "0.812877", "0.81199074", "0.80871046", "0.8086053", "0.80756724", "0.80567974", "0.8052752", "0.8045209", "0.80364627", "0.80249214", "0.802245...
0.0
-1
Return True if the contents of self are equal to other.
def xa14(YKHO, Elif): return aDBP.__eq__(YKHO, Elif) and oyIN.deg2rad(YKHO.chi) == Elif.chi
{ "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 if YKHO is Elif:\n return True\n if type(YKHO) != type(Elif):\n return False\n if YKHO.size() != Elif.size():\n return False\n for d6pt in range(Y...
[ "0.8457405", "0.8457405", "0.8346412", "0.8301635", "0.8301635", "0.8263393", "0.8170906", "0.81685007", "0.81321794", "0.8129613", "0.812877", "0.81199074", "0.80871046", "0.8086053", "0.80756724", "0.80567974", "0.8052752", "0.8045209", "0.80364627", "0.80249214", "0.802245...
0.0
-1
Return True if the contents of self are equal to other.
def xa14(YKHO, Elif): return aDBP.__eq__(YKHO, Elif) and oyIN.deg2rad(YKHO.chi) == Elif.chi
{ "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 if YKHO is Elif:\n return True\n if type(YKHO) != type(Elif):\n return False\n if YKHO.size() != Elif.size():\n return False\n for d6pt in range(Y...
[ "0.8456036", "0.8456036", "0.83450884", "0.8299809", "0.8299809", "0.826243", "0.8168996", "0.8167237", "0.8131265", "0.8127899", "0.8126606", "0.8117907", "0.80864465", "0.8084901", "0.80752355", "0.80563366", "0.80516183", "0.8044838", "0.8036182", "0.802412", "0.80218124",...
0.0
-1
Return True if the contents of self are equal to other.
def xa14(YKHO, Elif): return aDBP.__eq__(YKHO, Elif) and oyIN.deg2rad(YKHO.chi) == Elif.chi
{ "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 if YKHO is Elif:\n return True\n if type(YKHO) != type(Elif):\n return False\n if YKHO.size() != Elif.size():\n return False\n for d6pt in range(Y...
[ "0.8457405", "0.8457405", "0.8346412", "0.8301635", "0.8301635", "0.8263393", "0.8170906", "0.81685007", "0.81321794", "0.8129613", "0.812877", "0.81199074", "0.80871046", "0.8086053", "0.80756724", "0.80567974", "0.8052752", "0.8045209", "0.80364627", "0.80249214", "0.802245...
0.0
-1
Return True if the contents of self are equal to other.
def xa14(YKHO, Elif): return aDBP.__eq__(YKHO, Elif) and oyIN.deg2rad(YKHO.omega) == Elif.omega
{ "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 if YKHO is Elif:\n return True\n if type(YKHO) != type(Elif):\n return False\n if YKHO.size() != Elif.size():\n return False\n for d6pt in range(Y...
[ "0.8456036", "0.8456036", "0.83450884", "0.8299809", "0.8299809", "0.826243", "0.8168996", "0.8167237", "0.8131265", "0.8127899", "0.8126606", "0.8117907", "0.80864465", "0.8084901", "0.80752355", "0.80563366", "0.80516183", "0.8044838", "0.8036182", "0.802412", "0.80218124",...
0.0
-1
Convert seconds to frame unit.
def zDos(YKHO, CsFy): mvm2 = int(CsFy * YKHO.fs) f4IJ = int(round(mvm2 / YKHO.hop_len)) return f4IJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cuDC(BWXx, PXGI):\n if not isinstance(BWXx, int) or not isinstance(PXGI, int):\n raise dJFk('Invalid second arguments!')\n if PXGI == 1:\n return BWXx * 60\n elif PXGI == 0:\n return BWXx\n else:\n raise dJFk('Invalid Units!')", "def sccN(PXGI, BWXx):\n C6wh = 1\n ...
[ "0.7022775", "0.69818187", "0.67261535", "0.6653474", "0.6578642", "0.6578642", "0.657047", "0.64668226", "0.64486164", "0.6438943", "0.642578", "0.63026786", "0.6298996", "0.6293812", "0.6239704", "0.62366056", "0.62306076", "0.62284523", "0.6225818", "0.6193834", "0.6187888...
0.6261944
14
Converts a Tensor or numpy array into a Variable.
def TBfH(WKvO, yDqo=oyIN.float32, lDLs=True, jaHd=False, _6Ge=False): if type(WKvO) != iQnE: if isinstance(WKvO, oyIN.ndarray): WKvO = ht2j.from_numpy(WKvO.astype(yDqo)) WKvO = iQnE(WKvO, volatile=jaHd, requires_grad=_6Ge) return naO9(WKvO) if lDLs else WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ugVm(qw7D):\n if qw7D.ndim == 3:\n qw7D = qw7D.transpose((2, 0, 1))\n SRYB = iQnE(ht2j.from_numpy(qw7D))\n while len(SRYB.size()) < 4:\n SRYB = SRYB.unsqueeze(0)\n return SRYB", "def d6Vj(WKvO, cBXO=True, yDqo=ht2j.FloatTensor):\n SRYB = iQnE(ht2j.from_numpy(WKvO).type(yDqo))\n ...
[ "0.77721626", "0.74502933", "0.74213755", "0.7370797", "0.7318588", "0.7266197", "0.7241281", "0.7060068", "0.7036618", "0.7010196", "0.69413644", "0.6895195", "0.6810366", "0.6481117", "0.6417753", "0.6360432", "0.6319292", "0.6308483", "0.6262854", "0.62257695", "0.6157889"...
0.65753967
13
Converts a Variable or a Tensor into a numpy array.
def WTDd(WKvO): if isinstance(WKvO, oyIN.ndarray): return WKvO if isinstance(WKvO, iQnE): WKvO = WKvO.data return WKvO.cpu().numpy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XTiz(WKvO):\n if isinstance(WKvO, ht2j.Tensor):\n WKvO = WKvO.detach().cpu().numpy()\n elif isinstance(WKvO, ZylS.Tensor):\n WKvO = WKvO.numpy()\n return WKvO.astype(oyIN.float64)", "def WTDd(vhpA):\n raise NotImplementedError", "def WTDd(WKvO: Union[torch.Tensor, np.ndarray, Any,...
[ "0.7395024", "0.7238449", "0.7178595", "0.7160928", "0.71590775", "0.7132097", "0.7120392", "0.7102664", "0.70148325", "0.69829416", "0.67930365", "0.6758009", "0.67474186", "0.6670536", "0.666593", "0.6635416", "0.6609529", "0.6573065", "0.6570553", "0.65506107", "0.6427597"...
0.8183979
0
Returns a list of all trainable parameters in a model.
def F2lO(Zxma): return [XP5J for XP5J in Zxma.parameters() if XP5J.requires_grad]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q0Kz(C3ST):\n BhfJ = []\n for WKvO in C3ST.parameters():\n if WKvO.requires_grad:\n BhfJ.append(WKvO)\n return BhfJ", "def bjkb(YKHO):\n return [Ty9i for XP5J in YKHO.parameters for Ty9i in XP5J.trainable_variables]", "def WP3R(YKHO):\n return YKHO.model.getListOfParameters...
[ "0.82967734", "0.734262", "0.71602994", "0.7079742", "0.7009472", "0.70061034", "0.69848174", "0.6970714", "0.68420243", "0.6795479", "0.6795479", "0.67876804", "0.6775169", "0.6769371", "0.6759395", "0.6720627", "0.6704742", "0.6683944", "0.66628754", "0.6629731", "0.6598858...
0.705091
4
Gets the id of this AccountManagerColumn.
def id(YKHO) -> str: return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO):\n return YKHO._column_id", "def Z31E(YKHO):\n return YKHO._account_id", "def Z31E(YKHO):\n return YKHO._account_id", "def Z31E(YKHO) -> str:\n return YKHO._account_id", "def Z31E(YKHO):\n return YKHO.config.account_id", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'ac...
[ "0.7471514", "0.7006714", "0.70051616", "0.6926509", "0.67071867", "0.65085435", "0.65085435", "0.65085435", "0.65085435", "0.65085435", "0.65085435", "0.65085435", "0.65085435", "0.6472578", "0.6472578", "0.64357466", "0.6421473", "0.6417635", "0.6417635", "0.63839126", "0.6...
0.0
-1
Sets the id of this AccountManagerColumn.
def id(YKHO, id: str): if id is None: raise ValueError('Invalid value for `id`, must not be `None`') YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, id):\n if id is not None and (not isinstance(id, int)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: i...
[ "0.667747", "0.66465724", "0.65939194", "0.65676624", "0.627148", "0.62061906", "0.61554193", "0.6137458", "0.6137458", "0.6137458", "0.6137458", "0.6137458", "0.6137458", "0.6137458", "0.6137458", "0.6137458", "0.6137458", "0.6121585", "0.6116812", "0.6116812", "0.6116812", ...
0.0
-1
Gets the tooltip of this AccountManagerColumn.
def MWtk(YKHO) -> str: return YKHO._tooltip
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fcnA(YKHO, object):\n return YKHO.tooltip", "def S0ch(YKHO):\n return YKHO._editor.toolTip()", "def D70f(YKHO):\n return YKHO._label", "def lEY1(YKHO):\n return ''", "def aQxh(YKHO):\n return ''", "def W75t(YKHO):\n return YKHO.__button.toolTip()", "def _pp0(YKHO):\n return YKH...
[ "0.6968679", "0.6950317", "0.6662648", "0.6494173", "0.6385515", "0.63525504", "0.6331788", "0.5978866", "0.5740001", "0.57395476", "0.5335052", "0.5317046", "0.52540386", "0.50361234", "0.5023074", "0.50056267", "0.49575585", "0.49575585", "0.49575585", "0.49293143", "0.4920...
0.7512555
0
Gets the fixed_width of this AccountManagerColumn.
def fsCi(YKHO) -> bool: return YKHO._fixed_width
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TVTK(YKHO):\n return YKHO.col", "def Vn4h(YKHO):\n return YKHO._total_col_width", "def cIiC(YKHO):\n return ED7W.Table_Width(YKHO)", "def TVTK(Emd4):\n return Emd4._width", "def TVTK(YKHO):\n return YKHO['width']", "def V8C_(YKHO):\n return YKHO.__width", "def V8C_(YKHO):\n ret...
[ "0.64966404", "0.6395046", "0.6272978", "0.62030005", "0.6103017", "0.6096956", "0.608999", "0.608999", "0.608999", "0.608999", "0.6089004", "0.60867184", "0.6083742", "0.6083742", "0.6083742", "0.6083742", "0.6083742", "0.6083742", "0.6083742", "0.6083742", "0.6083742", "0...
0.6326606
2
Gets the sortable of this AccountManagerColumn.
def xeQ_(YKHO) -> bool: return YKHO._sortable
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L3Mc(YKHO):\n return YKHO._custom_sorter", "def p3l5(YKHO):\n if YKHO.column.orderable is not None:\n return YKHO.column.orderable\n return YKHO.table.orderable", "def tXd8(YKHO):\n return YKHO.__sort_by", "def mWFP(YKHO) -> W7ZS:\n return YKHO.__name", "def hHsm(YKHO):\n retur...
[ "0.6742037", "0.6181441", "0.5858873", "0.5741792", "0.5738419", "0.5671075", "0.56546056", "0.5624929", "0.5622353", "0.54563135", "0.54278386", "0.5426798", "0.5384043", "0.536925", "0.5241476", "0.5186469", "0.51562107", "0.5098109", "0.5096285", "0.50810295", "0.5045022",...
0.6460801
1
Returns the spontaneous emission rate of a given Rydberg state
def Mr5_(exwG, dy_H): if dy_H == '3S1': return 1 / O4tj(exwG) if dy_H == '3D3': return 1 / Anct(exwG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOGg(YKHO, QTBn: float) -> float:\n raise NotImplementedError", "def fr6B(WTkW, JRYC=1 * rYO3.ns):\n return eQSh.norm.sf(WTkW) / JRYC", "def VK9r(a1PO, LVAh, z1Rg):\n wHLO = LVAh[:z1Rg['N']]\n M0oR = LVAh[z1Rg['N']:2 * z1Rg['N']]\n tGFu = LVAh[2 * z1Rg['N']:3 * z1Rg['N']]\n CviF = oyIN.co...
[ "0.6204472", "0.61656445", "0.61427075", "0.5937661", "0.58525014", "0.58325064", "0.5800026", "0.5766651", "0.57430446", "0.57333356", "0.57132673", "0.56902647", "0.5683718", "0.5623881", "0.56125486", "0.559221", "0.55902225", "0.55899334", "0.5537958", "0.55305094", "0.55...
0.0
-1
Compute the qth quantile of the data along the specified axis.
def aM62(jzdc, vexM, jDK_=None, yvT9=None, FNcw=False, GoGv='linear', JsoO=False, **YSA3): qqXM = YSA3.pop('handle_non_numeric', None) if len(YSA3) > 0: raise TypeError(f"quantile() got an unexpected keyword argument '{next(iter(YSA3))}'") if not isinstance(vexM, WtXo): vexM = oyIN.asanyarra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aM62(YKHO, vexM, *, jDK_=0, **B2fa) -> 'Dataset':\n return YKHO._quantile(vexM, axis=jDK_, func=oyIN.quantile, **B2fa)", "def aM62(YKHO, jDK_: str='rows', vexM: float=0.5) -> 'DataFrame':\n if not BfDw.is_number(vexM):\n raise TypeError('`q` must be a number between 0 and 1')\n if vexM < 0 or...
[ "0.7689813", "0.72962856", "0.68138355", "0.65774137", "0.657659", "0.6541071", "0.6539727", "0.6539465", "0.64152074", "0.63444734", "0.6299189", "0.62989295", "0.6296212", "0.6255064", "0.62407386", "0.62379444", "0.6235523", "0.6235523", "0.62160426", "0.6193368", "0.61912...
0.6291817
13
Create and configure an instance of the flask application
def LUif(): P4t4 = L2w0(__name__) P4t4.config['SQLALCHEMY_DATABASE_URI'] = Hy7s.getenv('DATABASE_URI') P4t4.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False pths.init_app(P4t4) with P4t4.app_context(): pths.create_all() @P4t4.route('/', methods=['GET', 'POST']) def tk5Y(): i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif(YKHO):\n YKHO.app = L2w0(__name__, instance_relative_config=True)\n YKHO.app.config.from_mapping(SECRET_KEY='!ZNeverSayNever116Z!', MONGODB_SETTINGS={'host': 'mongodb://localhost/opc_integrity'})\n aTj0(YKHO.app)\n iAwL.init_app(YKHO.app)", "def bxQM():\n P4t4 = L2w0(import_name=__name__,...
[ "0.8487888", "0.8275142", "0.8235206", "0.81816894", "0.8150391", "0.8049686", "0.8036342", "0.80083245", "0.8007956", "0.8002108", "0.80019945", "0.79816544", "0.796986", "0.79647744", "0.79399467", "0.7938733", "0.79316556", "0.78698766", "0.78653747", "0.7855847", "0.78514...
0.0
-1
Render the homepage landing page template
def C_QL(): return TvZl('home/index.html', title='Welcome to SYCLIQ')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hXw_():\n return TvZl('index.html')", "def kZiy():\n return TvZl('homepage.html')", "def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')", "def C_QL():\n return TvZl('homepage.html')", "def bVaH():\n return TvZl('index.html')", "def XkU1():\n return TvZl('index.html')...
[ "0.8492362", "0.83183604", "0.8290816", "0.8281598", "0.82541883", "0.82277477", "0.82227284", "0.82155585", "0.81860137", "0.81860137", "0.8168229", "0.81520456", "0.81391907", "0.81175566", "0.81097895", "0.80895907", "0.8034316", "0.7956817", "0.7925025", "0.7925025", "0.7...
0.76035166
82
A string representation of the model.
def zAg0(YKHO): return YKHO.Name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def wHJl(YKHO):\n VlDb = f'{YKHO.__class__.__name__} Model'\n try:\n VlDb += f': {YKHO.filename}'\n except AttributeError:\n pass\n KCHu = [VlDb]\n for mWFP, Ty9i in YKHO.metadata.items():\n KCHu += [f'{mW...
[ "0.8567286", "0.80320746", "0.7939547", "0.78144956", "0.78115743", "0.7782607", "0.7757796", "0.7757796", "0.773894", "0.77152467", "0.7714009", "0.7679083", "0.7661709", "0.765754", "0.7645759", "0.7645759", "0.7628557", "0.762749", "0.75903344", "0.75903344", "0.7569605", ...
0.0
-1
Find the min utility from children nodes
def dgIT(J_Es): dzQX = float('inf') if m1ww(J_Es): return J_Es else: for Q6kx in J_Es: dzQX = min(dzQX, bQ6z(Q6kx)) return dzQX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rr1k(YKHO):\n ZbOB = YKHO\n while ZbOB.hasLeftChild():\n ZbOB = ZbOB.leftChild\n return ZbOB", "def XcNI(YKHO):\n return min(YKHO.nodes, key=int)", "def min(YKHO):\n KOdv = YKHO.root\n if KOdv:\n KOdv = YKHO.__search_node_min_dir(KOdv)\n if KOdv:\n return K...
[ "0.7200102", "0.7070101", "0.6939922", "0.6888341", "0.68484074", "0.684134", "0.68289566", "0.6772278", "0.6713266", "0.66093856", "0.66046596", "0.6590523", "0.65893716", "0.6580788", "0.657738", "0.6547522", "0.6543914", "0.65346396", "0.6498256", "0.6462064", "0.64420354"...
0.6818848
7
Generate a random Wilson coefficient instance for a given basis.
def qXoa(uaM7, SxVy, NXpY, ZfiU=1e-06): Od5A = lRWU.Basis[uaM7, SxVy] sZhB = {} for KCHu in Od5A.sectors.values(): for mWFP, Csk6 in KCHu.items(): sZhB[mWFP] = ZfiU * oyIN.random.rand() if not Csk6 or 'real' not in Csk6 or (not Csk6['real']): sZhB[mWFP] += 1j ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KWbD(YKHO):\n if YKHO.fit_wc_priors is None:\n return None\n fIvo = YKHO.fit_wc_priors.get_random_all()\n return oyIN.asarray([fIvo[XP5J] for XP5J in YKHO.fit_wc_names])", "def Va_P(YKHO):\n if YKHO.fit_wc_function is None:\n return None\n elif YKHO.start_wc_priors is None:\n ...
[ "0.63852865", "0.6068472", "0.594829", "0.58600795", "0.55565286", "0.55515176", "0.5547327", "0.5545818", "0.5495463", "0.54875726", "0.54836637", "0.54665875", "0.54443514", "0.5440874", "0.54266816", "0.54141426", "0.5413743", "0.5411792", "0.5398683", "0.53766716", "0.536...
0.645079
0
Ensures that field name is valid (either predictor or target variable).
def TQOf(vXX7): NDyv.assert_is_string(vXX7) if vXX7 in zBv_ + W_UL: return isRP = '\nField "{0:s}" is not valid predictor or target variable. Valid options listed below:\n{1:s}'.format(vXX7, str(zBv_ + W_UL)) raise ValueError(isRP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gw8C(YKHO):\n try:\n KCyC('_identifier')\n except sUXu:\n YKHO.fail('Field name raised ValidationError unexpectedly')", "def mO4K(YKHO, mWFP, Jyyj, zvGf):\n if len(mWFP) > 80:\n raise UKFq('ERROR: %s: %s name too long: %s' % (zvGf, Jyyj, mWFP))", "def ZQ_2(YKHO):\n with YKH...
[ "0.7149793", "0.689454", "0.68876296", "0.6558793", "0.6480937", "0.6459299", "0.63830036", "0.63593936", "0.6311762", "0.63055736", "0.6298674", "0.62819093", "0.6271651", "0.62579167", "0.62283677", "0.62101537", "0.61964136", "0.61780494", "0.6177804", "0.61764836", "0.613...
0.8394374
0
Subsets examples by standardatmosphere type.
def i_tY(cJRY, KFmf): YkMV(KFmf) uuSm = XTiz.where(cJRY[qQLy] == KFmf)[0] for fF3r in NrxD: if isinstance(cJRY[fF3r], list): cJRY[fF3r] = [cJRY[fF3r][G1Hx] for G1Hx in uuSm] else: cJRY[fF3r] = cJRY[fF3r][uuSm, ...] return (cJRY, uuSm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G_y_(YKHO, Nqlg, TG_K):\n _73Q = []\n for bGrB, nPrm in enumerate(Nqlg):\n IJv0 = '%s-%s' % (TG_K, nPrm['race_id'])\n l3QS = nPrm['article']\n for YRbF in range(len(nPrm['answers'])):\n w75t = str(ord(nPrm['answers'][YRbF]) - ord('A'))\n bAls = nPrm['questions']...
[ "0.5568173", "0.5491898", "0.5491898", "0.5491898", "0.5481069", "0.5444973", "0.5444973", "0.5444973", "0.5444973", "0.540652", "0.5395378", "0.5384594", "0.5358267", "0.53556746", "0.53370214", "0.533454", "0.53276527", "0.53244567", "0.53172475", "0.53160065", "0.53157485"...
0.49319032
92
Returns true if the tag is a link in a row with text including formtype and description
def q7H8(TZ9E, HK47, X4bP): tOd3 = ZbWC.compile(X4bP, ZbWC.I) OsIB = ZbWC.compile(HK47, ZbWC.I) try: return TZ9E.parent.name == 'td' and TZ9E.name == 'a' and (TZ9E['id'] == 'documentsbutton') and TZ9E.parent.parent.find(string=OsIB) and TZ9E.parent.parent.find(string=tOd3) except: return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AlKE(YKHO, ZfUD):\n return ZfUD.IsHyperText()", "def LSwg(YKHO, QZnA, muVm):\n qvey = QZnA['href']\n if not qvey.startswith('/wiki/') or qvey == '/wiki/Latin' or qvey.startswith('#'):\n return False\n if '<i>' in QZnA or qvey in muVm:\n return False\n leAC = qvey[6:]\n if leAC...
[ "0.6330753", "0.6326281", "0.6066449", "0.60287875", "0.59296876", "0.59296876", "0.59296876", "0.58816314", "0.5852668", "0.58284754", "0.57862777", "0.5739203", "0.5729351", "0.56820846", "0.5671082", "0.5636128", "0.5624152", "0.5621257", "0.5618365", "0.5603439", "0.56032...
0.6255833
2
Convenience function to create a tkinter button
def jHsu(YKHO): fRFN = [] for YRbF in range(9): fRFN.append(on8l.Button(YKHO.game_frame, bg='white', relief='ridge', height=1, width=3, command=YKHO.get_button_callback(YRbF), font=(YKHO.FONT, 48))) return fRFN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vVul(YKHO, esTe='default text', oUZx=None):\n mZAE = xNQ_.Button(YKHO.bottom_inner_frame, width=YKHO.button_width, height=YKHO.button_height, text=esTe)\n mZAE.grid(row=YKHO.button_row, column=YKHO.button_column)\n YKHO.button_column += 1\n if oUZx is not None:\n mZAE.config(command=oUZx)\n ...
[ "0.81224704", "0.7876855", "0.7850482", "0.765835", "0.763901", "0.7612935", "0.7580199", "0.7507256", "0.7429472", "0.7406342", "0.72745717", "0.71021247", "0.7088453", "0.69614017", "0.6913661", "0.6887658", "0.68665594", "0.68597394", "0.68346685", "0.6819517", "0.67726886...
0.5913148
89
_repr_html_ HTML table describing the Sample. For integration with Jupyter notebook.
def r0z8(YKHO): NArs = U8Lr() NArs['Name'] = YKHO.name NArs['Description'] = YKHO.description NArs['Ns'] = YKHO.Ns NArs['Ni'] = YKHO.Ni NArs['Kinetic Parameter'] = YKHO.kinetic_parameter_type NArs['Kinetic Parameter Value'] = YKHO.kinetic_parameter_value WBPg = '<table>' mRnc = '</ta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r0z8(YKHO):\n return nXPU(YKHO)", "def r0z8(YKHO):\n return '<td><b>{0}</b></td><td>{1}</td>'.format(YKHO.id, YKHO.title)", "def r0z8(YKHO):\n return u'<table>\\n <tr><th>Station Name</th><th>Station Number</th><th>State</th></tr>\\n <tr><td>{0:s}</td><td>{1:d}</td><td>{2:s}</td></tr>\\n</ta...
[ "0.73318976", "0.6842469", "0.67785317", "0.6767419", "0.67265093", "0.65692014", "0.64481044", "0.6447936", "0.63753736", "0.63327193", "0.6252019", "0.6220914", "0.62089497", "0.62042606", "0.6150762", "0.6150762", "0.6077552", "0.60303164", "0.6023693", "0.5999982", "0.598...
0.68200094
2
A method to check whether a point is above the line between two given points or not.
def dTA9(KwKv, YBrO, xMXg): Bu2M = YBrO[0] - KwKv[0] UCbH = xMXg[1] - KwKv[1] xQUU = YBrO[1] - KwKv[1] azux = xMXg[0] - KwKv[0] oeNL = Bu2M * UCbH - xQUU * azux if oeNL >= 0: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tQzj(y4fz, EBgd, HpuQ, gwAu=0.01):\n y4fz, EBgd, HpuQ = map(lambda SjLr: oyIN.array(SjLr[:2]), [y4fz, EBgd, HpuQ])\n EBgd -= y4fz\n HpuQ -= y4fz\n return abs(EBgd[0] / EBgd[1] - HpuQ[0] / HpuQ[1]) < gwAu", "def reUi(i4Va, rUTj, AU8u):\n r8hN, Fg_i, Csk6 = Fw8z.lineSpec(i4Va, rUTj)\n if Csk6...
[ "0.7660042", "0.7553229", "0.7377589", "0.7338142", "0.7243197", "0.71007204", "0.6944409", "0.69046557", "0.6819023", "0.67543", "0.66907287", "0.66396916", "0.6580069", "0.6575543", "0.6561982", "0.6506796", "0.647376", "0.64622396", "0.6460954", "0.64462125", "0.6427939", ...
0.88154113
0
Filter by whether or not the stock item has expired
def DnPa(YKHO, SR0I, mWFP, BWXx): if not BJsk.settings.stock_expiry_enabled(): return SR0I if oOc6(BWXx): return SR0I.filter(z2Ts.EXPIRED_FILTER) else: return SR0I.exclude(z2Ts.EXPIRED_FILTER)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DnPa(YKHO, SR0I, mWFP, BWXx):\n if BWXx:\n return SR0I.filter(T8ck(expiration__gte=_c1T.today()) | T8ck(auto_renew=True))\n return SR0I", "def filter(YKHO, tvqc, *qIxc, **B2fa):\n return tvqc['expiration_datetime'] <= qcWV.now()", "def NIta(YKHO, qB8Z=365):\n D0nu = qcWV.datetime.now() -...
[ "0.7297641", "0.71389735", "0.6657226", "0.656795", "0.6516044", "0.6267126", "0.61987513", "0.6050042", "0.6034353", "0.5943769", "0.5935691", "0.58813155", "0.5877097", "0.5875873", "0.586729", "0.5860001", "0.58404994", "0.5830169", "0.5829711", "0.58045095", "0.5760308", ...
0.7610734
0
Filter by if item is in stock.
def Hpat(YKHO, SR0I, mWFP, BWXx): if oOc6(BWXx): return SR0I.filter(z2Ts.IN_STOCK_FILTER) else: return SR0I.exclude(z2Ts.IN_STOCK_FILTER)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y1t3(YKHO, SR0I, mWFP, BWXx):\n if oOc6(BWXx):\n return SR0I.filter(z2Ts.IN_STOCK_FILTER).filter(T8ck(quantity__gt=vuvg('allocated')))\n else:\n return SR0I.filter(T8ck(quantity__lte=vuvg('allocated')))", "def iMNw(YKHO):\n return YKHO._is_in_stock", "def iMNw(EBx_):\n PKko = '#ap...
[ "0.69637585", "0.66029406", "0.63809305", "0.6229548", "0.612728", "0.60628104", "0.60581654", "0.6018605", "0.59439766", "0.59330475", "0.59132105", "0.5870643", "0.58599955", "0.58254504", "0.5765053", "0.5745753", "0.57311344", "0.5730713", "0.57156205", "0.5709473", "0.56...
0.7524561
0
Filter stock items by "belongs_to" field being empty.
def MaV6(YKHO, SR0I, mWFP, BWXx): if oOc6(BWXx): return SR0I.exclude(belongs_to=None) else: return SR0I.filter(belongs_to=None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0kv(ZfUD, *qIxc, **B2fa):\n return True", "def B3YN(YKHO, SR0I, mWFP, BWXx):\n if oOc6(BWXx):\n return SR0I.filter(quantity__lte=0)\n else:\n return SR0I.exclude(quantity__lte=0)", "def fRXs(YKHO, SR0I):\n NArs = YKHO.request.query_params\n SR0I = super().filter_queryset(SR0I)...
[ "0.6004197", "0.55920595", "0.55492985", "0.5501104", "0.54357976", "0.54188424", "0.5405317", "0.537139", "0.5361765", "0.5357368", "0.5340283", "0.53359526", "0.5328712", "0.5273713", "0.52641815", "0.51969504", "0.5143507", "0.5143507", "0.5122787", "0.5091048", "0.5073626...
0.5752922
1
Filter stock items by "belongs_to" field being empty.
def XPyS(YKHO, SR0I, mWFP, BWXx): if oOc6(BWXx): return SR0I.filter(installed_items__gt=0) else: return SR0I.filter(installed_items=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0kv(ZfUD, *qIxc, **B2fa):\n return True", "def MaV6(YKHO, SR0I, mWFP, BWXx):\n if oOc6(BWXx):\n return SR0I.exclude(belongs_to=None)\n else:\n return SR0I.filter(belongs_to=None)", "def B3YN(YKHO, SR0I, mWFP, BWXx):\n if oOc6(BWXx):\n return SR0I.filter(quantity__lte=0)\n ...
[ "0.6005334", "0.5753073", "0.55929744", "0.55495685", "0.55029976", "0.54379857", "0.5420631", "0.54073215", "0.53723717", "0.53618985", "0.5357204", "0.5341877", "0.53361857", "0.53287303", "0.52744114", "0.5264252", "0.51966304", "0.5143399", "0.5143399", "0.51228213", "0.5...
0.0
-1
Initialize the LightningModule with a model and loss function.
def FIMM(YKHO, **B2fa: Any) -> None: super().__init__() YKHO.save_hyperparameters() YKHO.hyperparams = YWvJ(dict[str, ImMB], YKHO.hparams) if not isinstance(B2fa['ignore_index'], (int, type(None))): raise ValueError('ignore_index must be an int or None') if B2fa['ignore_index'] is not None a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, C3ST, Pa1c, o7Up, Rsif=None, BdFm=None, e8Hs=None):\n YKHO.model = C3ST\n YKHO.init_loss_history(e8Hs)\n YKHO.init_loss_meter(BdFm)\n YKHO.train_loader = Pa1c\n YKHO.val_loader = o7Up\n YKHO.plot_func = Rsif\n YKHO.execution_arg_history = []\n YKHO.runtimes = []", "def FIMM...
[ "0.66203725", "0.64867115", "0.6428751", "0.64224476", "0.625673", "0.6245068", "0.6242763", "0.6242185", "0.620464", "0.617476", "0.617476", "0.61666864", "0.6147512", "0.61470425", "0.6142953", "0.61283267", "0.6122388", "0.61154646", "0.60933894", "0.6084957", "0.60702825"...
0.0
-1
Get future date after adding no. of days
def CChB(gOIA, dmki): Csk6 = (gOIA + qcWV.timedelta(days=dmki - 1)).strftime('%d-%m') return str(Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0H_(kepv, Sm0u=0, X_bn=0, ulWt=0, x8us=qhSz.DATE_FORMAT):\n kepv = lVIr(date_time=kepv, datetime_format=x8us)\n return kepv + enlf(days=Sm0u, months=X_bn, years=ulWt)", "def PLae(wxrT=1):\n W8SD = qcWV.today() + fCoM(days=wxrT)\n lPJF = qcWV(W8SD.year, W8SD.month, W8SD.day).date()\n return lP...
[ "0.75117326", "0.73482925", "0.6876353", "0.6876353", "0.6682104", "0.65931815", "0.6585408", "0.65804034", "0.6413974", "0.63006276", "0.62898356", "0.6259354", "0.6251029", "0.61531603", "0.6073424", "0.6063315", "0.6035235", "0.5997385", "0.5990072", "0.59751356", "0.59544...
0.71827954
2
Put a string in lower case and remove punctuation between words. >>> sentence_to_words("Today, they aren't uptodate any more.") ['today', 'they', "aren't", 'uptodate', 'any', 'more']
def bb19(yAmx: str) -> x1iM[str]: return list(map(wm2H, yAmx.split(' ')))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def coXY(_dZy: str) -> x1iM[str]:\n return [GIN8 for GIN8 in _dZy.split() if GIN8 not in vIwR.punctuation]", "def KK_S(yAmx):\n return list(filter(lambda GIN8: GIN8 != '', [ZbWC.sub('[^A-Za-z0-9]+', '', GIN8).lower() for GIN8 in yAmx.replace(\"' \", \"'\").split(' ')]))", "def Htwi(yAmx):\n RLKa = ZbW...
[ "0.79048526", "0.78433096", "0.7803452", "0.7433612", "0.7354469", "0.73309225", "0.7322376", "0.7200862", "0.71246165", "0.71246165", "0.710914", "0.7093647", "0.70924526", "0.70651555", "0.7049197", "0.70055544", "0.69828856", "0.6974297", "0.6974297", "0.6932027", "0.69200...
0.8471187
0
Invoke 'callback(frame,name,value,old_locals)' on next assign in 'frame' The frame monitored is determined by the 'depth' argument, which gets passed to 'sys._getframe()'. When 'callback' is invoked, 'old_locals' contains a copy of the frame's local variables as they were before the assignment took place, allowing the ...
def u0uu(db6b, rb7a=2, f4IJ=None): f4IJ = erGk(f4IJ, rb7a + 1) ZXCP = [f4IJ.f_trace] WoTS = f4IJ.f_locals.copy() def ko3c(L5qP, tvqc, d7pR): if tvqc == 'call': if ZXCP[0]: return ZXCP[0](L5qP, tvqc, d7pR) else: return None try: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AuU4(*QRtk):\n if len(QRtk) > 1:\n QRtk = list(QRtk)\n QRtk.reverse()\n\n def db6b(f4IJ, G1Hx, Ty9i, WoTS):\n for Csk6 in QRtk:\n Ty9i = Csk6(Ty9i)\n return Ty9i\n return u0uu(db6b)", "def s6kT(rFV1, Cndl):\n DMIq = ()\n HLwP = jKi7.get_function_code(Cndl...
[ "0.55058223", "0.50472826", "0.48795882", "0.47743753", "0.46793133", "0.4618423", "0.45946157", "0.45428437", "0.44986165", "0.4486725", "0.44774422", "0.44619703", "0.4459399", "0.445587", "0.44409385", "0.44137523", "0.43975252", "0.4393957", "0.43420666", "0.43357918", "0...
0.7502854
0
Given a list of claims, return only the earliest claim based on date_column. In the case where two claims have the earliest date, returns all claims from that date.
def mkk5(RZVq, Nl3a='clm_from_dt'): bo34.debug('Get claims from earliest data using date_column - {}'.format(Nl3a)) if not RZVq: return [] odUu = min(RZVq, key=lambda WKvO: WKvO.clm_from_dt).clm_from_dt N82d = [jFZy for jFZy in RZVq if jFZy[Nl3a] == odUu] return N82d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mFQo(YKHO, usx6: List[Row], iVRZ: DateColumn) -> Qrp8:\n mQEc = [rdlD.values[iVRZ.name] for rdlD in usx6 if rdlD.values[iVRZ.name] is not None]\n if not mQEc:\n return Qrp8(-1, -1, -1)\n if not all([isinstance(BWXx, Qrp8) for BWXx in mQEc]):\n raise z1P8(f'Invalid values for date selecti...
[ "0.5762738", "0.5490605", "0.5469911", "0.5418699", "0.5346733", "0.5338688", "0.532422", "0.5244245", "0.5092411", "0.5088298", "0.5047943", "0.50157046", "0.49775702", "0.49495167", "0.49105057", "0.48976403", "0.48877728", "0.48780733", "0.48629734", "0.48522598", "0.48470...
0.89572775
0
Group claims together into eligible instances. Returns a list of eligible instances, which are themselves lists of claims.
def MT8K(YKHO, RZVq, Nl3a='clm_from_dt', XfQO=30): bo34.debug('Get eligible instances using date_column - {}, window_length - {}'.format(Nl3a, XfQO)) LhrW = [] fus2 = YKHO.group_claims_by_field_values(YKHO.fields_to_group_by, RZVq) for cOq_ in fus2: FfrN = YKHO.group_claims_by_date(cOq_, date_co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uOe2(YKHO):\n bUWH = YKHO.instances\n moMn = []\n for YRbF in range(len(YKHO.labels)):\n moMn.append([KAOR for KAOR in bUWH if KAOR[-1] == YKHO.labels[YRbF]])\n return moMn", "def bUWH(YKHO):\n bUWH = []\n H0q3 = YKHO.connection.get_all_instances()\n for StGp in H0q3:\n n3C...
[ "0.5597567", "0.5512977", "0.5476534", "0.5289702", "0.51839954", "0.5100008", "0.5057129", "0.5009177", "0.49126115", "0.48998424", "0.48997602", "0.4895895", "0.48468807", "0.48080602", "0.4786781", "0.4775315", "0.47697338", "0.47630087", "0.47540894", "0.4715613", "0.4708...
0.6434869
0
Creating an instance of the specific type from the data passed in the dictionary `data_dict`.
def jG8h(Emd4, cuiw: 'FigoSession', Mjw9: dict) -> 'ModelBase': return Emd4(cuiw, **Mjw9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, nPrm):\n return Emd4(**nPrm)", "def HZHS(Emd4, nPrm):\n return object.__new__(Emd4)", "def jG8h(Emd4, nPrm: Dict[str, any]):\n return Emd4(**nPrm)", "def jG8h(Emd4, nPrm):\n KAOR = Emd4()\n KAOR._set_data(nPrm)\n return KAOR", "def jG8h(Emd4, nPrm):\n KAOR = Emd4()\n ...
[ "0.73074365", "0.7268067", "0.71198195", "0.6986825", "0.69784653", "0.6940016", "0.68623775", "0.67726564", "0.67612404", "0.6722939", "0.6629707", "0.66250813", "0.66180676", "0.66175634", "0.648683", "0.6478032", "0.6478032", "0.6478032", "0.6478032", "0.6478032", "0.64780...
0.63361514
71
Serialize the ModelBase object to a dictionary.
def ChRH(YKHO) -> dict: Aofo = {} for xC3W in YKHO.__dump_attributes__: BWXx = getattr(YKHO, xC3W) if BWXx is not None: Aofo[xC3W] = BWXx return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO):\n nPrm = {}\n for G1Hx, Ty9i in YKHO.__dict__.items():\n if not G1Hx.startswith('__'):\n nPrm[G1Hx] = Ty9i\n return nPrm", "def MNRr(YKHO):\n raise NotImplementedError('To be implemented in subclass.')", "def Napc(YKHO):\n return {'name': YKHO.name, 'id': YKHO.i...
[ "0.73165214", "0.72675526", "0.7209445", "0.72065246", "0.72065246", "0.7171559", "0.7155951", "0.71222454", "0.7112498", "0.71088403", "0.71088403", "0.71088403", "0.7103855", "0.7089422", "0.70802945", "0.70802945", "0.70802945", "0.70802945", "0.70802945", "0.70802945", "0...
0.0
-1
Get an array of `Transaction` objects, one for each transaction of the user.
def HkQT(YKHO, pw_q: Optional[date]=None, UHFx: int=1000, vgXP: int=0, wSAN: bool=False) -> x1iM[T74E]: return YKHO.session.get_transactions(YKHO.account_id, options={'since': pw_q, 'count': UHFx, 'offset': vgXP, 'include_pending': wSAN})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kiSh(YKHO, QePW):\n uJjO = QePW.data['user']\n CBIr = mv1M.objects.get(id=uJjO)\n OFy4 = CBIr.transactions.all()\n ZMzz = bNap(OFy4, many=True)\n return oGir(ZMzz.data)", "def gQVK(YKHO):\n return UShr.AccountTransactions(YKHO)", "def HkQT(YKHO):\n DpUl = YKHO.get_cursor()\n DpUl.ex...
[ "0.7472036", "0.7164495", "0.7066086", "0.70586306", "0.6995129", "0.6977443", "0.69446105", "0.6917769", "0.6902334", "0.6862924", "0.6828298", "0.6770607", "0.66173804", "0.65946376", "0.64367515", "0.63251233", "0.6220455", "0.61784315", "0.61700004", "0.61613107", "0.6123...
0.5953479
26
An array of `Security` objects, one for each security on the account.
def pFGU(YKHO) -> x1iM[LvNm]: return YKHO.session.get_securities(YKHO.account_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P8dz(YKHO):\n return YKHO._security_entries", "def eH9H(YKHO, pw_q: Optional[date]=None, UHFx: int=1000, vgXP: int=0) -> x1iM[LvNm]:\n return YKHO.session.get_securities(YKHO.account_id, since=pw_q, count=UHFx, offset=vgXP)", "def z4L4(YKHO):\n return YKHO.client.get(YKHO.name + '/_security').getB...
[ "0.65226287", "0.6496715", "0.62567973", "0.60445726", "0.5897037", "0.57641405", "0.562759", "0.5601113", "0.55976653", "0.5522327", "0.5521604", "0.5515054", "0.5456484", "0.54538465", "0.5419", "0.5369743", "0.5368674", "0.5317451", "0.53026223", "0.5263922", "0.5198616", ...
0.74608564
0
A method force input to a square matrix in order to make invertible matrix functions callable. This function calls `refit` to update the estimates for H, W and E. `reshape_to_square` will determine the axis with the larger dimensionality and DOWNSAMPLE that axis to the same number of cols/rows as the smaller axis.
def MLt3(YKHO, r0DR=True): dnFJ = YKHO.I.shape[0] Ldql = YKHO.I.shape[1] if dnFJ < Ldql: print(f'Reshaping from {YKHO.I.shape} to {(dnFJ, dnFJ)} with `in_place={r0DR}`') A0Hf = oyIN.apply_along_axis(Gaon.resample, axis=1, arr=YKHO.I, num=dnFJ) else: print(f'Reshaping from {YKHO.I...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bXPI(ezWE):\n assert ezWE.ndim == 1 or ezWE.ndim == 2, 'array must be 1 or 2-D'\n if ezWE.ndim == 2:\n assert ezWE.shape[1] == 1, 'If array is 2d then second dimension must be 1'\n ezWE = ezWE.reshape(ezWE.shape[0])\n assert ezWE.shape[0] ** 0.5 == int(ezWE.shape[0] ** 0.5), 'array shape...
[ "0.5706672", "0.53156036", "0.53156036", "0.5243944", "0.52262706", "0.5201737", "0.5197664", "0.515727", "0.5057486", "0.49696854", "0.49077186", "0.48950228", "0.4875591", "0.48582372", "0.484066", "0.48276943", "0.48259157", "0.48225158", "0.47956923", "0.47914183", "0.476...
0.65743166
0
check if an object is an array
def PFXX(YKHO, ezWE): return isinstance(ezWE, oyIN.ndarray)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c8Fz(YEnM):\n return isinstance(YEnM, (list, tuple))", "def qJca(YEnM):\n if isinstance(YEnM, list):\n return True\n elif isinstance(YEnM, oyIN.ndarray):\n return True\n elif isinstance(YEnM, rLdf.Series):\n return True\n elif isinstance(YEnM, rLdf.DataFrame):\n ret...
[ "0.85911", "0.81373", "0.77970093", "0.77923864", "0.7679099", "0.7648898", "0.75110435", "0.7435121", "0.7374332", "0.72466815", "0.7200344", "0.71270746", "0.70624727", "0.702911", "0.6971996", "0.6876856", "0.6841297", "0.6829045", "0.68233836", "0.6820877", "0.68065083", ...
0.75714236
6
Resets all settings of guild to default values. Does not clear member data (use forceclear)
async def reset(YKHO, OaeV): await YKHO.config.clear_all_guilds() await OaeV.send('Reset all settings to default values.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def _reset_settings(YKHO, OaeV):\n nPrm = await YKHO.get_data(OaeV)\n await nPrm.Settings.clear()\n tO9_ = '{0.name} ({0.id}) reset all casino settings.'.format(OaeV.author)\n await OaeV.send(tO9_)", "def SiRx(YKHO):\n YKHO.manager.delete_all()\n for mWFP, wEf2 in QhLw.items():\n w...
[ "0.75078434", "0.73965174", "0.7391806", "0.72937673", "0.708105", "0.6944976", "0.6803023", "0.66074216", "0.65506864", "0.6495808", "0.646107", "0.64591414", "0.6425749", "0.64253896", "0.6380298", "0.63676643", "0.6337305", "0.62990415", "0.6234431", "0.62271917", "0.62100...
0.84176004
0
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(H96n, aMgO, KndY, NkkI=True, leAC='Average accuracy \n', iMGt=QrM1.cm.Blues, PJWX=0, rhd_=0): from sklearn.metrics import confusion_matrix import itertools Bcwd = confusion_matrix(H96n, aMgO) vjyh = oyIN.sum(oyIN.diag(Bcwd)) / oyIN.sum(Bcwd) * 100.0 if NkkI: Bcwd = Bcwd.astype('floa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.81922984", "0.80933887", "0.80272716", "0.8016492", "0.79913706", "0.79885876", "0.79777396", "0.7958926", "0.7954523", "0.79347897", "0.7931899", "0.7931772", "0.7928666", "0.7923684", "0.7921764", "0.79213995", "0.7920191", "0.792016", "0.7919876", "0.7915303", "0.791363...
0.79729784
7
Compute the distance between the image of the two walkers.
def P8nd(YKHO, Z6UH, mqsI): return oyIN.average(oyIN.abs(Z6UH - mqsI))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AUp_(XdvW: Asteroid, GhiN: Asteroid) -> float:\n eUWA = GhiN.y - XdvW.y\n Jw7X = GhiN.x - XdvW.x\n return epAf.sqrt(eUWA * eUWA + Jw7X * Jw7X)", "def AUp_(YKHO, Elif):\n return epAf.sqrt((YKHO.center[0] - Elif.center[0]) ** 2 + (YKHO.center[1] - Elif.center[1]) ** 2)", "def jDSb(YKHO, LFlW, _tI...
[ "0.6956604", "0.68596464", "0.68018985", "0.6801206", "0.67524415", "0.6715289", "0.6694984", "0.66926044", "0.6672271", "0.6669403", "0.66688395", "0.6663224", "0.66104704", "0.66072506", "0.6587042", "0.6578706", "0.656639", "0.6556694", "0.65498847", "0.654426", "0.6511978...
0.72036994
0
Returns the total amount donated. Note that this cannot be set directly
def FwZK(YKHO): return sum(YKHO.donations)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a94m(YKHO):\n if not hasattr(YKHO, 'dynamic_total'):\n waEm = YKHO.donations.aggregate(zphJ('amount'))\n YKHO.dynamic_total = waEm['amount__sum']\n return YKHO.current + (YKHO.dynamic_total or 0)", "def zgYA(YKHO):\n return YKHO._total_donation", "def ZIZf(YKHO):\n return sum(YKHO...
[ "0.84859663", "0.8416094", "0.79917395", "0.7884996", "0.76701033", "0.74372333", "0.7431798", "0.739323", "0.73892415", "0.72756535", "0.72078335", "0.72069716", "0.71650785", "0.7123221", "0.7105591", "0.7105591", "0.71040183", "0.7099738", "0.70558643", "0.7053128", "0.704...
0.77891296
5
Returns total number of donations. Note that this cannot be set directly
def Nl5z(YKHO): return len(YKHO.donations)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FwZK(YKHO):\n return sum(YKHO.donations)", "def FwZK(YKHO):\n return sum(YKHO.donations)", "def ZIZf(YKHO):\n return sum(YKHO.donationList)", "def zgYA(YKHO):\n return YKHO._total_donation", "def wbKG(YKHO):\n return len(YKHO.donationList)", "def bZ_n(YKHO):\n return len(YKHO.donati...
[ "0.8589657", "0.8589657", "0.8561676", "0.8109917", "0.7765514", "0.77646714", "0.756193", "0.7560437", "0.7162402", "0.6887679", "0.684835", "0.6672206", "0.6661667", "0.6592879", "0.6580284", "0.6519815", "0.6514637", "0.6445778", "0.6420979", "0.6418378", "0.6355728", "0...
0.77409375
6
Returns average value of donations. Note that this cannot be set directly
def lC63(YKHO): try: return YKHO.total_donations / YKHO.number_of_donations except ZeroDivisionError: return 0.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cYAP(YKHO):\n return YKHO.tot_donations / YKHO.num_donations", "def cYAP(YKHO):\n return YKHO.tot_donations / YKHO.num_donations", "def qj9E(YKHO):\n return YKHO.total_donations() / YKHO.num_donations() if YKHO.donations else 0", "def cYAP(YKHO):\n return YKHO._total_donation / YKHO.num_of_do...
[ "0.84927326", "0.84927326", "0.84867", "0.84058607", "0.82880247", "0.7492105", "0.72723633", "0.69723827", "0.6849497", "0.6823963", "0.6792132", "0.677094", "0.6732328", "0.6652337", "0.6647455", "0.664182", "0.66305345", "0.66209406", "0.65918636", "0.6548326", "0.6541297"...
0.79894733
5
Given a name string, returns a donor object. If donor name is not found, raises error
def fB50(YKHO, mWFP): for dgtG in YKHO.donors: if dgtG.name == mWFP: return dgtG raise NameError(f'{mWFP} not found in existing donors')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w_eU(mWFP):\n for dgtG in ZYJv.Donor.donor_db:\n if mWFP.strip().lower() == dgtG[0].lower():\n return dgtG\n return None", "def EG21(YKHO, mWFP):\n return YKHO.donors.get(mWFP, nh4x(mWFP))", "def hoW5(YKHO, mWFP, OOWi=None):\n if ',' in mWFP:\n print('Warning: Comma wil...
[ "0.7633779", "0.75219125", "0.6728453", "0.63222396", "0.62105775", "0.61620086", "0.6037884", "0.59867156", "0.5873492", "0.5735956", "0.57154506", "0.5705273", "0.5687284", "0.5677311", "0.56625533", "0.56200784", "0.55826783", "0.5555458", "0.55243987", "0.55236936", "0.55...
0.807479
0
Builds a string representation of the board.
def zAg0(YKHO): KCHu = '' for YRbF in range(13, 25): if YKHO.p1vec[YRbF] > 0: KCHu += '|W{0:02}|'.format(YKHO.p1vec[YRbF]) elif YKHO.p2vec[25 - YRbF] > 0: KCHu += '|B{0:02}|'.format(YKHO.p2vec[25 - YRbF]) else: KCHu += '| |' KCHu += '\n' for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n iBIi = ''\n for rdlD in range(YKHO.height):\n if rdlD > 0:\n iBIi += '\\n'\n for fvDH in range(YKHO.width):\n if YKHO.board[rdlD][fvDH] == '':\n iBIi += '| '\n else:\n iBIi += '|' + YKHO.board[rdlD][fvDH]\n ...
[ "0.8320923", "0.8180966", "0.8119885", "0.8070673", "0.79848176", "0.7885029", "0.7873301", "0.78707016", "0.78653884", "0.78302664", "0.7789334", "0.77801037", "0.77403796", "0.7709853", "0.7686702", "0.7685174", "0.7643388", "0.7600637", "0.75896055", "0.75737107", "0.75179...
0.0
-1
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.7815877", "0.77556044", "0.77441615", "0.7731815", "0.77288336", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.76458347", "0.764...
0.77655786
6
compute the learning rate for the current epoch using stepbased decay function accept current epoch number return alpha, float type
def nrOS(YKHO, qtWj): kLQb = oyIN.floor((1 + qtWj) / YKHO.dropEvery) Cwt5 = ELQ0 * YKHO.factor ** kLQb return float(Cwt5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0Ix(qtWj):\n return Cwt5 / (1 + f9Ey * qtWj)", "def b0Ix(qtWj):\n return Cwt5 / (1 + f9Ey * qtWj)", "def TfYV(Cwt5, f9Ey, Aak1, BkRq):\n SMht = int(Aak1 / BkRq)\n Cwt5 /= 1 + f9Ey * SMht\n return Cwt5", "def nrOS(YKHO, qtWj):\n WMj5 = (1 - qtWj / float(YKHO.maxEpochs)) ** YKHO.power\n ...
[ "0.8758059", "0.8758059", "0.83477026", "0.8009185", "0.7997305", "0.79574716", "0.7826597", "0.7772954", "0.77721894", "0.76825863", "0.76820046", "0.7618414", "0.7615923", "0.7547335", "0.75228083", "0.7486968", "0.74644834", "0.7374739", "0.73511374", "0.73485696", "0.7305...
0.75532085
13
compute the learning rate for the current epoch based polynomical decay function accept current epoch number return alpha, float type
def nrOS(YKHO, qtWj): WMj5 = (1 - qtWj / float(YKHO.maxEpochs)) ** YKHO.power Cwt5 = YKHO.initAlpha * WMj5 return float(Cwt5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0Ix(qtWj):\n return Cwt5 / (1 + f9Ey * qtWj)", "def b0Ix(qtWj):\n return Cwt5 / (1 + f9Ey * qtWj)", "def TfYV(Cwt5, f9Ey, Aak1, BkRq):\n SMht = int(Aak1 / BkRq)\n Cwt5 /= 1 + f9Ey * SMht\n return Cwt5", "def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.00000001\n return YKHO.lr", "def cBsx...
[ "0.86319965", "0.86319965", "0.7959209", "0.7467585", "0.7454682", "0.7447842", "0.7407634", "0.73450756", "0.73330855", "0.7325286", "0.7319644", "0.7210983", "0.7183398", "0.71546346", "0.7076139", "0.7057818", "0.70495206", "0.7008298", "0.6985129", "0.6909909", "0.6901958...
0.80301523
2
Return a list of template names that have to be present in a theme. Not just a constant because maybe it's possible to calculate this dynamically in the future.
def hldm() -> list[str]: return ['blog_list_of_posts.html', 'post.html', 'post_body.html', 'episode.html']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dxoe(YKHO):\n return [w7QH.get('name', 'Error') for w7QH in YKHO.themes]", "def lC7K():\n GmB3 = W52U()\n C1hi = list()\n for w7QH in GmB3:\n C1hi.extend(w7QH.template_dirs)\n return C1hi", "def Q6po(YKHO):\n Lx3t = YKHO.get_object()\n ZWCE = ['%s/detail-for-upc-%s.html' % (YKHO...
[ "0.6731229", "0.6408916", "0.6401485", "0.6391858", "0.63730115", "0.63392", "0.62435174", "0.62070566", "0.6190701", "0.6169154", "0.6099229", "0.6091006", "0.608577", "0.6076122", "0.60121536", "0.6007308", "0.60067195", "0.59931135", "0.59731764", "0.594328", "0.5937756", ...
0.7397725
0
Convert the column name to a better formatted name
def SU6Z(mWFP): NKcn = ['AV', 'RV', 'EBV', 'CAV1', 'CAV2', 'CAV3', 'CAV4', 'C1', 'C2', 'C3', 'C4', 'x_o', 'gamma', 'bump_area', 'fh2', 'nhtot', 'nh2', 'nhi', 'NH_AV', 'NH_EBV'] b8nU = ['$A(V)$', '$R(V)$', '$E(B-V)$', '$C^{A(V)}_1$', '$C^{A(V)}_2$', '$C^{A(V)}_3$', '$C^{A(V)}_4$', '$C_1$', '$C_2$', '$C_3$', '$C_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AAHb(fvDH):\n if isinstance(fvDH, str):\n return fvDH\n return fvDH.__name__", "def ihMR(mWFP):\n if ':' in mWFP:\n return mWFP.split(':')[-1]\n else:\n return mWFP", "def _6D6(mWFP: str) -> str:\n return mWFP.split('-')[1]", "def Ds6u(YKHO, fvDH):\n try:\n r...
[ "0.76860934", "0.74084234", "0.73931223", "0.73651046", "0.73651046", "0.72613406", "0.7124355", "0.7118157", "0.71164984", "0.6944369", "0.6933407", "0.68166155", "0.67752206", "0.6679174", "0.66615736", "0.66067", "0.6604551", "0.6562995", "0.65421194", "0.65103257", "0.648...
0.72542715
6
Get provider of the record.
def AZla(YKHO, AIu6): """Get an import provider of a given document.""" i9LJ = AIu6['created_by']['type'] == 'import' if i9LJ: return AIu6['created_by']['value']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MFBN(YKHO):\n return YKHO.provider", "def kT1P(YKHO):\n try:\n return YKHO._db.providers[YKHO._dbattr('provider')]\n except KeyError:\n return tuple(YKHO._db.providers.values())[0]", "def kT1P(YKHO) -> uBwj:\n return YKHO._provider", "def kT1P(YKHO) -> str:\n return qe4Y.get(...
[ "0.82146305", "0.8005788", "0.78996366", "0.7670486", "0.7670486", "0.766938", "0.76554674", "0.7628194", "0.7616897", "0.7230712", "0.7177769", "0.7141914", "0.69666195", "0.68655115", "0.6838292", "0.6827448", "0.6827448", "0.6760789", "0.6658919", "0.66349775", "0.6603673"...
0.7105691
12
Remove the first component from a path and return it as a string.
def UPOx(pmON): return JRNQ(TtVT(pmON)[1:])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def afPa(pmON):\n return pmON.split('/')[0]", "def KN0L(pmON):\n return vIwR.join(filter(None, vIwR.split(pmON, '/')), '/')", "def jXPH(YKHO):\n return YKHO.path.replace('/', '')", "def jXPH(pmON):\n rnHI = ZbWC.compile('[^/]*\\\\.([a-z]+)$')\n return rnHI.search(pmON).group(0)", "def I7WW(p...
[ "0.7686441", "0.74526405", "0.73586035", "0.73570913", "0.735528", "0.73191434", "0.7178518", "0.7159617", "0.7150616", "0.71197957", "0.70986533", "0.7051172", "0.69395244", "0.6932388", "0.6917461", "0.6913279", "0.67789423", "0.6764077", "0.67176086", "0.66866", "0.6658276...
0.64807355
28
Returns a list of paths of the input nodes of this module.
def uvt8(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HBsD(YKHO):\n return [YRbF for YRbF in range(YKHO.n_inputs)]", "def g4y1(YKHO) -> x1iM[str]:\n return YKHO._model.inputs", "def QRiV():\n Ziit = []\n with open('input') as eZ_W:\n for zFiD in eZ_W:\n Ziit = zFiD.split(',')\n return Ziit", "def hb14(YKHO) -> x1iM[X6a0]:\n ...
[ "0.70373017", "0.702412", "0.6849438", "0.68439394", "0.67668396", "0.6565062", "0.6558921", "0.6525297", "0.6521266", "0.6521266", "0.6521266", "0.6486809", "0.6486809", "0.64483863", "0.64383316", "0.6372665", "0.6363827", "0.63455766", "0.63289434", "0.6328486", "0.6287727...
0.7313676
0
Returns a list of modules that have no upstream connections from other modules in this Tube.
def OSCT(YKHO): return [G1Hx for G1Hx, Ty9i in YKHO.graph.in_degree().iteritems() if Ty9i == 0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YK4t(YKHO):\n return YKHO._no_coupons", "def D5LO():\n global index\n z6XB = set()\n for wOb_ in XLHT.values():\n z6XB = z6XB.union(wOb_.get_rpm_artifacts())\n gJnT = set()\n for mWFP in d6pt.get_module_names():\n yR_P = d6pt.get_module(mWFP)\n for wOb_ in yR_P.get_all_...
[ "0.6188808", "0.600324", "0.58423984", "0.5724906", "0.5679772", "0.56591433", "0.5636009", "0.56307167", "0.5559666", "0.55543625", "0.554125", "0.5483249", "0.5478587", "0.54764676", "0.5458931", "0.5458249", "0.5430471", "0.5421711", "0.5416513", "0.5404595", "0.5404567", ...
0.54316
16
Close all the socket and close the connection with the database
def DDI8(YKHO): YKHO.Log.log('Server Closed') for mv1M in YKHO.Users.values(): mv1M.getSocket.shutdown(GGmw.SHUT_RDWR) mv1M.getSocket.close() YKHO.DB.close_connection() YKHO.Log.closeFile() Hy7s._exit(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO):\n YKHO.conn.close()\n YKHO.theSocket.close()", "def CvfT(YKHO):\n YKHO.db_connection.close_connections()", "def DDI8(YKHO):\n YKHO.clean()\n for w2B8 in YKHO.conn__.values():\n try:\n w2B8.commit()\n w2B8.close()\n except iHv3.ProgrammingError:...
[ "0.78052187", "0.7776122", "0.7766642", "0.7722363", "0.7544545", "0.7521178", "0.7492628", "0.74777365", "0.7450598", "0.74460244", "0.74344546", "0.74237347", "0.73988765", "0.73916584", "0.7390649", "0.7372357", "0.736095", "0.73101974", "0.7301682", "0.7300117", "0.730011...
0.73687905
16
Is the character Asian?
def vYai(hcXw): return ord(hcXw) > SRBd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bseI(WKvO):\n if WKvO == 'a' or WKvO == 'A' or WKvO == 'e' or (WKvO == 'E') or (WKvO == 'i') or (WKvO == 'I') or (WKvO == 'o') or (WKvO == 'O') or (WKvO == 'u') or (WKvO == 'U'):\n return 'True'\n else:\n return 'False'", "def Hb7V(KCHu):\n return KCHu.isascii()", "def zTjG(Npgh):\n ...
[ "0.7009953", "0.6419129", "0.6399396", "0.6329977", "0.6275846", "0.625407", "0.6245205", "0.6240923", "0.623599", "0.6215488", "0.6210089", "0.62028307", "0.6173283", "0.6169663", "0.616851", "0.6146252", "0.6144196", "0.6144137", "0.61239976", "0.6121634", "0.61169237", "...
0.7950206
0
Filters Asian characters to spaces
def ppkk(Z9rn): if vYai(Z9rn): return ' ' return Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(vIwR):\n return hYRG.sub(' ', vIwR)", "def VmuU(Emd4, yAmx: str) -> str:\n yAmx = ZbWC.sub('([\\\\u4e00-\\\\u9fff\\\\u3400-\\\\u4dbf])', ' \\\\1 ', yAmx)\n yAmx = ZbWC.sub('([\\\\u31c0-\\\\u31ef\\\\u2e80-\\\\u2eff])', ' \\\\1 ', yAmx)\n yAmx = ZbWC.sub('([\\\\u3300-\\\\u33ff\\\\uf900-\\\\u...
[ "0.6703567", "0.66590214", "0.6559933", "0.6559029", "0.6530787", "0.6530787", "0.647398", "0.6464624", "0.6428735", "0.6393514", "0.63887304", "0.6383884", "0.63280165", "0.63105804", "0.6304482", "0.6294817", "0.6281393", "0.6263451", "0.6263451", "0.62509906", "0.6250818",...
0.7080732
0
Transform a dictionary into an object
def rn8k(cmPJ): class Obj(object): def FIMM(YKHO, cmPJ): YKHO.__dict__.update(cmPJ) return ZRQR(cmPJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, Csk6):\n return Emd4(**Csk6)", "def jG8h(Emd4, pKvt):\n return Emd4(**{G1Hx: Ty9i for G1Hx, Ty9i in pKvt.items() if G1Hx != '__class__'})", "def jG8h(Emd4, ahNg):\n return Emd4(**ahNg)", "def jG8h(Emd4, YEnM):\n raise NotImplementedError", "def CCiu(Emd4, tbx9):\n return Emd4....
[ "0.7295608", "0.72149307", "0.71449685", "0.7142519", "0.7108952", "0.7108952", "0.7108952", "0.7108952", "0.7108952", "0.7108952", "0.7108952", "0.7108952", "0.7108952", "0.7108952", "0.7108952", "0.7108952", "0.7108952", "0.7108952", "0.7108952", "0.7108952", "0.7108952", ...
0.7792454
0
Get the wordcount as an object rather than a dictionary
def i5hy(l5Ny): return rn8k(YHsk(l5Ny))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t7hl(YKHO):\n return mBkc(YKHO._normalize(YKHO._raw_phrase_str))", "def t7hl(YKHO):\n V22M = YKHO.phrase.split()\n bOlZ = [YKHO.normalize_word(yzQ0) for yzQ0 in V22M]\n mroi = [yzQ0 for yzQ0 in bOlZ if yzQ0]\n po2l = g760.defaultdict(int)\n\n def pvcq(cmPJ, GIN8):\n cmPJ[GIN8] = cmPJ...
[ "0.7559499", "0.73307925", "0.7225375", "0.7196283", "0.7188003", "0.71567154", "0.7147245", "0.71105605", "0.70899516", "0.7089896", "0.7077979", "0.7075651", "0.70657235", "0.7003955", "0.69946426", "0.69123805", "0.6886816", "0.6870346", "0.68686366", "0.686018", "0.681107...
0.8658675
0
Function to let the user decide if he wants to search by habitat in csv file, search by habitat in database or search by coordinates. The function prints a string in the console to ask the user if he wants to search by putting in coordinates or the name of the habitat, furthermore it is asking the user if he wants to s...
def bAls(): print('Enter 1 to search database by habitat with detailed information\nEnter 2 to search database by coordinates \nEnter 3 to search by habitat in csv file for a quick overview without detail') print('habitat search options so far:\n Alpenvorland, Niederrheinisches Tiefland, Oberrheinisches Tieflan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XRFv():\n UYQY = input('Enter name of habitat\\n')\n Egw3('habitat', UYQY)\n print('Status 1 equals nativ')", "def HIXu(p9bx):\n print('How do you want to search for a user\\n1.name\\n2.field\\n3.year of study\\n4.areas of interest\\n5.Quit')\n Acvy = int(input('Your choice :'))\n if Acvy =...
[ "0.6695713", "0.6568012", "0.64201796", "0.6034079", "0.6018641", "0.5883209", "0.58117354", "0.5711111", "0.5684533", "0.565291", "0.55881894", "0.5575604", "0.55151117", "0.55100626", "0.54991347", "0.5486393", "0.54664874", "0.54324114", "0.5428779", "0.54240894", "0.53955...
0.7823244
0
Create a color based on an boolable value color.
def FIMM(YKHO, bzde): super(qpm7, YKHO).__init__(1) YKHO.boolee = bool(bzde)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qfpW(BWXx):\n return 'RGB({}, {}, {})'.format(BWXx.red(), BWXx.blue(), BWXx.green())", "def PICn(YKHO, BWXx):\n BWXx = min(max(0, BWXx), 1) * 510\n if BWXx < 255:\n s11o = 255\n dCNl = epAf.sqrt(BWXx) * 16\n dCNl = int(dCNl)\n else:\n dCNl = 255\n BWXx = BWXx - ...
[ "0.7262096", "0.70305943", "0.6920897", "0.6737177", "0.6608812", "0.6401132", "0.63389426", "0.6324899", "0.6316891", "0.63068956", "0.62482524", "0.6229737", "0.62275225", "0.622272", "0.6172676", "0.6157154", "0.6151304", "0.61472166", "0.61363906", "0.6115662", "0.6089663...
0.0
-1
Centers the digit image
def hSyQ(Xn71): try: a1PO = ILbh(Xn71) except ValueError: return Xn71 japo = Xn71 > a1PO olVC = oyIN.where(japo == True) cviu = (oyIN.min(olVC[0]) - 1, oyIN.max(olVC[0]) + 1, oyIN.min(olVC[1]) - 1, oyIN.max(olVC[1]) + 1) oOiW = Xn71[cviu[0]:cviu[1], cviu[2]:cviu[3]] ZzDD = oy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qm02(LNo8):\n LNo8.anchor_x = LNo8.width / 2\n LNo8.anchor_y = LNo8.height / 2", "def qm02(LNo8):\n LNo8.anchor_x = LNo8.width / 2\n LNo8.anchor_y = LNo8.height / 2", "def qm02(LNo8):\n LNo8.anchor_x = LNo8.width / 2\n LNo8.anchor_y = LNo8.height / 2", "def DZIb(Nqqb):\n uB2Q = SC2F(...
[ "0.7154526", "0.7154526", "0.70408756", "0.66592675", "0.65745294", "0.65240353", "0.6490536", "0.6484243", "0.6352781", "0.63326603", "0.63240963", "0.62739795", "0.6246467", "0.624072", "0.6185471", "0.6183427", "0.615685", "0.6128446", "0.61228245", "0.6099227", "0.6099012...
0.0
-1
Testing _fetch_law with mock 404 request to raise exception
def loW4(YKHO, jqSP): jqSP.get.return_value.status_code = 404 setattr(YKHO.law, 'silent', True) with YKHO.assertRaises(SystemExit): YKHO.law._fetch_law(('test', 'test'), FM6F())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lQpe():\n with Po4F('cheddar.index.remote.get') as _xNI:\n _xNI.return_value = CFMy()\n _xNI.return_value.status_code = cwhV.bad_request\n with DQkc(mgaz):\n K2qG('http://example.com', D2fq, fhOf())", "def i6pl(YKHO):\n Z9rn = i9zE()\n geh0 = Z9rn.get('/apimock/mocked...
[ "0.77940136", "0.755831", "0.7542466", "0.7425588", "0.7409825", "0.7313014", "0.7280403", "0.72166383", "0.71769875", "0.7176118", "0.71625316", "0.70512754", "0.7023003", "0.70183665", "0.6997072", "0.6961579", "0.6927141", "0.69259065", "0.691707", "0.6910862", "0.6894505"...
0.82069445
0
Fan out the bullets based upon a constant. Is polymorphic
def rv3w(YKHO, ABDL): evq0 = float(ABDL * 2 + 1) ABDL = float(ABDL) for YRbF in range(1, int(evq0)): if YKHO.b_offset + 1 == YRbF: if evq0 / YRbF >= evq0 / ABDL: YKHO.x -= 2 * (evq0 - YRbF * 2) else: YKHO.x += 2 * (evq0 - (YRbF - 2) * 2) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hy9P(gCuF, Vjhr, C7MP, WFC2):\n if len(WFC2) < gCuF.bullets_allowed:\n jbub = GBVa(gCuF, Vjhr, C7MP.rect.centerx, C7MP.rect.top)\n WFC2.add(jbub)\n wzkt = a9eO.time.get_ticks()\n if wzkt - C7MP.last_shot > 150:\n C7MP.last_shot = wzkt\n if C7MP.power == 1:\n YBnT...
[ "0.6686318", "0.6556954", "0.64881104", "0.6374172", "0.6297407", "0.6270749", "0.62501615", "0.62385374", "0.6175637", "0.61585927", "0.6147215", "0.6147215", "0.6147215", "0.61386454", "0.60985845", "0.60983014", "0.6086863", "0.6072307", "0.6066225", "0.6059452", "0.605293...
0.499261
99
Initialize the test media player.
def FIMM(YKHO, ajET): YKHO.hass = ajET YKHO._volume = 0 YKHO._state = iKVK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.player = mVZ4()", "def C8h7(YKHO):\n pass", "def FCbF(YKHO):\n YKHO.music_name = 'Test Music'\n YKHO.music = vpph(name=YKHO.music_name)", "def FCbF(YKHO):\n YKHO.mod = Tknz(FM6F(), xK1W(), r1mR({'data': YKHO.sample_xml, 'sourceUrl': YKHO.sample_sourceurl}), Wnge(None, No...
[ "0.7239926", "0.69533795", "0.65919566", "0.6359524", "0.634036", "0.62335837", "0.6194969", "0.6190293", "0.6169195", "0.6124055", "0.6056517", "0.6047785", "0.59821033", "0.5973933", "0.59624577", "0.5956652", "0.594816", "0.59361875", "0.5916558", "0.5912665", "0.58650625"...
0.0
-1
Play the media player.
def AUDn(YKHO): YKHO._state = mocT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_media_play(YKHO) -> None:\n await YKHO._projector.send_command(DnLY)", "async def async_media_play(YKHO) -> None:\n await YKHO._volumio.play()", "def eIGz(YKHO) -> None:\n YKHO.system.notify('Jarvis::Play')\n YKHO.media.play()", "def eIGz(YKHO):\n YKHO.playing = True", "def Y...
[ "0.8326583", "0.793886", "0.7929608", "0.7863994", "0.7801968", "0.7642925", "0.7631622", "0.76120746", "0.7280757", "0.72618544", "0.72616374", "0.7247842", "0.7232999", "0.72322017", "0.7196845", "0.71684426", "0.71096843", "0.709751", "0.7067208", "0.70544285", "0.7022998"...
0.7916762
4
Toggle the power on the media player.
def xe2L(YKHO): if YKHO._state in [iKVK, h34t, ZPQk]: YKHO._state = _rDc else: YKHO._state = iKVK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def naF9():\n pyJd(tv_command=Lle2.power)", "async def async_toggle(YKHO):\n await YKHO.async_mute_volume(not YKHO._muted)", "def I26K(YKHO, naF9: bool):\n if not YKHO.backlight:\n return\n YKHO.backlight.power = naF9", "async def power_on(YKHO):\n ...", "def jY15(YKHO) -> None:\n ...
[ "0.76578224", "0.7010895", "0.69639224", "0.6952935", "0.6932181", "0.6907897", "0.68941844", "0.6891331", "0.68472993", "0.68458134", "0.6830424", "0.68268526", "0.68005884", "0.66966873", "0.6670634", "0.6644918", "0.66332847", "0.6625038", "0.6616644", "0.6534432", "0.6519...
0.0
-1
Initialize the test media player.
def FIMM(YKHO, ajET): YKHO.hass = ajET YKHO._volume = 0 YKHO._state = iKVK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.player = mVZ4()", "def C8h7(YKHO):\n pass", "def FCbF(YKHO):\n YKHO.music_name = 'Test Music'\n YKHO.music = vpph(name=YKHO.music_name)", "def FCbF(YKHO):\n YKHO.mod = Tknz(FM6F(), xK1W(), r1mR({'data': YKHO.sample_xml, 'sourceUrl': YKHO.sample_sourceurl}), Wnge(None, No...
[ "0.7239926", "0.69533795", "0.65919566", "0.6359524", "0.634036", "0.62335837", "0.6194969", "0.6190293", "0.6169195", "0.6124055", "0.6056517", "0.6047785", "0.59821033", "0.5973933", "0.59624577", "0.5956652", "0.594816", "0.59361875", "0.5916558", "0.5912665", "0.58650625"...
0.0
-1
Play the media player.
def AUDn(YKHO): YKHO._state = mocT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_media_play(YKHO) -> None:\n await YKHO._projector.send_command(DnLY)", "async def async_media_play(YKHO) -> None:\n await YKHO._volumio.play()", "def eIGz(YKHO) -> None:\n YKHO.system.notify('Jarvis::Play')\n YKHO.media.play()", "def eIGz(YKHO):\n YKHO.playing = True", "def Y...
[ "0.8326583", "0.793886", "0.7929608", "0.7863994", "0.7801968", "0.7642925", "0.7631622", "0.76120746", "0.7280757", "0.72618544", "0.72616374", "0.7247842", "0.7232999", "0.72322017", "0.7196845", "0.71684426", "0.71096843", "0.709751", "0.7067208", "0.70544285", "0.7022998"...
0.7916762
3
Given a row or column, returns whether it is considered in or out of the chessboard using a naive algorithm.
def w8XC(wmHU): waS5, = wmHU.nonzero() y4m8 = 0 for YRbF, r845 in zip(waS5, waS5[1:]): if r845 - YRbF >= CJgv: y4m8 += 1 return y4m8 >= 8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GfdN(c7is, rdlD, fvDH, exwG):\n for YRbF in range(fvDH):\n if c7is[rdlD][YRbF] == 1:\n return False\n for r845, YRbF in zip(range(rdlD, -1, -1), range(fvDH, -1, -1)):\n if c7is[r845][YRbF] == 1:\n return False\n for r845, YRbF in zip(range(rdlD, exwG, 1), range(fvDH...
[ "0.7970713", "0.79626644", "0.7676941", "0.7563215", "0.7474851", "0.741597", "0.7372989", "0.73546726", "0.72765434", "0.72020245", "0.72004414", "0.71695024", "0.7136769", "0.7130269", "0.71214074", "0.7116217", "0.7114132", "0.7105124", "0.70965815", "0.709435", "0.7093464...
0.7881398
2
Convenience wrapper to find chessboard squares directly.
def TDwx(LNo8, CJgv): return UCX1(PwJG(LNo8, CJgv))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wy8B(YKHO):\n YKHO.squares = [WKvO for WKvO in range(YKHO.low, YKHO.high + 1) if PZyS(WKvO) == int(PZyS(WKvO))]", "def did4(YKHO, HuIE):\n for rdlD in range(P5Bq):\n for fvDH in range(P5Bq):\n if YKHO.board[rdlD][fvDH] is HuIE:\n return _UKz.at(rdlD, fvDH)\n raise Ex...
[ "0.680012", "0.63850665", "0.63850665", "0.6288601", "0.621816", "0.61594605", "0.6061391", "0.6039117", "0.60352516", "0.59699297", "0.5933631", "0.5932371", "0.5918066", "0.5914272", "0.58865654", "0.58426106", "0.58349353", "0.5826552", "0.58201206", "0.58185494", "0.58146...
0.6956288
0
Given the edge matrix and V component in the HSV space of the chessboard image, as well as the list of chessboard squares, returns a list whose elements are either "W", when the corresponding square contains a white piece, "B", when the piece is black, or None, when it contains no pieces.
def DZvh(mC4V, Ty9i, y4m8): Zoh6 = [] Ty9i = XC5k.equalizeHist(Ty9i) for EBgd, HpuQ in y4m8: Q_ge = sum((mC4V[LVAh][WKvO] for WKvO in range(EBgd.x + 5, HpuQ.x - 5) for LVAh in range(EBgd.y + 5, HpuQ.y - 5))) if Q_ge > 70 * 255: HjHK = (Ty9i[EBgd.y][EBgd.x], Ty9i[EBgd.y][HpuQ.x], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDwx(LNo8, CJgv):\n return UCX1(PwJG(LNo8, CJgv))", "def NEYy(iBIi):\n for YRbF in range(len(iBIi)):\n for r845 in range(len(iBIi[0])):\n if iBIi[YRbF][r845] == 0:\n return (YRbF, r845)\n return None", "def bHVe(iBIi):\n if iBIi[0][0] == iBIi[1][0] and iBIi[1][0...
[ "0.60228205", "0.5887753", "0.5884547", "0.58834785", "0.58476514", "0.58331096", "0.5732005", "0.57127607", "0.57116115", "0.5710834", "0.5691793", "0.5652056", "0.5597705", "0.5587437", "0.5583285", "0.55695784", "0.55605954", "0.55177444", "0.551634", "0.5506915", "0.54989...
0.7327032
0