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 |
|---|---|---|---|---|---|---|
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
QV4T = jQ3Z['month'].value_counts().index[0]
print('Most common month : ', QV4T)
rxSt = jQ3Z['weekday'].value_counts().index[0]
print('Most common weekday : ', rxSt)
jQ3Z['hour'] = jQ3Z['Start Ti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.8000844",
"0.7921982",
"0.7892428",
"0.78627133",
"0.7859783",
"0.7839671",
"0.7801052",
"0.7785909",
"0.7736335",
"0.7724394",
"0.7714449",
"0.77094305",
"0.77053905",
"0.7702663",
"0.76906323",
"0.7686918",
"0.76811683",
"0.7679932",
"0.76733255",
"0.7662347",
"0.7661214... | 0.7438202 | 91 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
Ay9u = jQ3Z['Start Station'].value_counts().index[0]
print('Most commonly used start station : ', Ay9u)
AHUw = jQ3Z['End Station'].value_counts().index[0]
print('Most commonly used end station : ', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.76654726",
"0.76264316",
"0.76100993",
"0.75849444",
"0.7576263",
"0.75670516",
"0.7557652",
"0.75378203",
"0.7529607",
"0.750169",
"0.7499543",
"0.74961287",
"0.748713",
"0.74839073",
"0.747546",
"0.7473013",
"0.74376714",
"0.74364847",
"0.74328995",
"0.7428165",
"0.74270... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
UcxD = jQ3Z['Trip Duration'].sum()
print('Total travel time : ', (UcxD / 86400).round(2), 'Days')
RB_u = jQ3Z['Trip Duration'].mean()
print('Mean travel time : ', (RB_u / 60).round(2), 'Minutes')
print('\nThis took ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8252095",
"0.8146775",
"0.8097095",
"0.80126446",
"0.79879653",
"0.79831284",
"0.7978518",
"0.7970333",
"0.7965546",
"0.7963726",
"0.7961668",
"0.79615265",
"0.79524153",
"0.7949122",
"0.7944759",
"0.7938008",
"0.7923721",
"0.79203206",
"0.7919978",
"0.79188186",
"0.791769... | 0.0 | -1 |
Returns a dictionary of stations, by the river they are next to | def v7H6(Oj45):
klvD = dict()
for gnAD in Oj45:
if gnAD.river not in klvD:
klvD[gnAD.river] = []
klvD[gnAD.river].append(gnAD)
return klvD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v7H6(Oj45):\n iQ1M = {}\n k735 = list(pFsM(Oj45))\n for YNhE in k735:\n ycBG = []\n for gnAD in Oj45:\n if YNhE == gnAD.river:\n ycBG.append(gnAD.name)\n ycBG = sorted(ycBG)\n iQ1M.update({YNhE: ycBG})\n return iQ1M",
"def v7H6(Oj45):\n PTu... | [
"0.8054444",
"0.802953",
"0.71973306",
"0.7051003",
"0.66355467",
"0.661303",
"0.6545502",
"0.6529998",
"0.6514839",
"0.63236344",
"0.6278443",
"0.6260525",
"0.62526536",
"0.6243832",
"0.6231796",
"0.61721134",
"0.6167379",
"0.6157487",
"0.6126987",
"0.60734797",
"0.6001",
... | 0.80237824 | 2 |
This method list alarms | def Omm1(YKHO):
return YKHO.ceilometer_client.alarms.list() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H4Oh(YKHO):\n return BfDw.run_vitrage_command_as_admin('vitrage alarms list')",
"def SNex(YKHO, wHgH=False):\n bD7m = f'{gykA}/alarms'\n nPrm = YKHO.query(bD7m, method=ZJnF)\n return nPrm.json()",
"def sMhQ(YKHO):\n try:\n na1r.debug('get_alarms region %s' % YKHO.region_name)\n ... | [
"0.78642666",
"0.7447806",
"0.7413581",
"0.73417103",
"0.7335148",
"0.72538906",
"0.7198951",
"0.71671855",
"0.7150141",
"0.70873654",
"0.70733523",
"0.70675343",
"0.7042155",
"0.6976937",
"0.69513744",
"0.6945528",
"0.6921227",
"0.6921227",
"0.6860851",
"0.68552375",
"0.6848... | 0.78977436 | 0 |
Returns the ion index corresponding to the given global matrix index. | def RCiX(YKHO, d6pt):
if YKHO.nions is None:
return None
or8S = int((d6pt - YKHO.offset) / (YKHO.size / YKHO.nions))
return or8S | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BroU(sEAN, rNYq):\n for YRbF in range(sEAN.all_states.shape[0]):\n if oyIN.array_equal(rNYq, sEAN.all_states[YRbF]):\n return YRbF",
"def z9H6(exwG, vC9B, YRbF, r845):\n return sum([(exwG - Mkmy + 1) * (exwG - Mkmy + 2) / 2 for Mkmy in range(vC9B)]) + sum([exwG - vC9B + 1 - G1Hx for G... | [
"0.7141702",
"0.65068436",
"0.6415938",
"0.6396111",
"0.6393889",
"0.638445",
"0.6318511",
"0.63064426",
"0.6306272",
"0.6293661",
"0.62593895",
"0.624813",
"0.6230586",
"0.62268853",
"0.61894023",
"0.6102292",
"0.6101828",
"0.60466087",
"0.6028863",
"0.5996152",
"0.5986094",... | 0.5744894 | 42 |
returns the list of City instances with state_id | def gysO(YKHO):
amCq = FYrf.storage.all(cKBo)
ZaR8 = []
for H5ew, BWXx in amCq.items():
if BWXx.state_id == YKHO.id:
ZaR8.append(BWXx)
return ZaR8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KzhB(ZuB6):\n if not S8SU.get('State', ZuB6):\n eTsH(404)\n OBYI = []\n for j5sA in S8SU.all('City').values():\n if j5sA.state_id == ZuB6:\n OBYI.append(j5sA.to_dict())\n return pz3A(OBYI)",
"def SKzE(ZuB6):\n print('lc!')\n iGay = S8SU.get('State', ZuB6)\n if no... | [
"0.8415744",
"0.8247345",
"0.8244185",
"0.82135946",
"0.813663",
"0.8130694",
"0.8129141",
"0.8090672",
"0.8059752",
"0.80421877",
"0.8034825",
"0.798943",
"0.798756",
"0.7981636",
"0.7979856",
"0.7968625",
"0.7949651",
"0.7932663",
"0.79193205",
"0.79146755",
"0.7891663",
... | 0.82885027 | 1 |
>>> StripComments('abc ; comment\\n; another\\nfoo') 'abc\\nfoo' | def VuKm(KCHu):
return fUJd.sub('', KCHu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bSLV(KCHu, mh5P):\n RI88 = ZbWC.sub(';[^\\n]*\\n', '\\n', KCHu)\n return RI88",
"def dEzM(vIwR):\n aM_I = ZbWC.compile('(^|[^\\\\\\\\])#.*')\n vIwR = ZbWC.sub(aM_I, '', vIwR)\n return vIwR",
"def lvfG(ZOAS):\n return dYo_.sub('', ZOAS)",
"def QDjs(vIwR):\n return ZbWC.sub('//(.*?)\\n... | [
"0.74081826",
"0.7378573",
"0.70085555",
"0.6978653",
"0.6971612",
"0.6949394",
"0.6889062",
"0.6855472",
"0.68306154",
"0.6807301",
"0.6778121",
"0.675484",
"0.6736197",
"0.6659105",
"0.6646827",
"0.6630555",
"0.6610216",
"0.6575336",
"0.65728253",
"0.65709704",
"0.6569481",... | 0.7552797 | 0 |
Convert a string into a list of tokens. >>> tokenize('(x) ; comment\\n; another\\nfoo') ['(', 'x', ')', 'foo'] | def wr3U(KCHu):
KCHu = VuKm(KCHu)
KCHu = Ur3s.sub(' \\1 ', KCHu)
return KCHu.split() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NInT(vIwR):\n return list(reversed(ZbWC.findall('\\\\(|\\\\)|[^ \\\\n\\\\t()]+', vIwR)))",
"def wr3U(JZXy):\n\n class State(bHD7):\n UxMK = (0,)\n Jyb9 = (1,)\n _md_ = 2\n s2mk = []\n QTBn = wHLO.NORMAL\n cpm3 = 0\n for YRbF, Z9rn in enumerate(JZXy):\n if QTBn ==... | [
"0.75879645",
"0.7335459",
"0.7288272",
"0.721896",
"0.7163816",
"0.71051586",
"0.7088198",
"0.7058088",
"0.7055501",
"0.70432115",
"0.7016645",
"0.695981",
"0.69596374",
"0.69591796",
"0.6924814",
"0.68893015",
"0.6867125",
"0.6851875",
"0.68437463",
"0.6835897",
"0.68212557... | 0.7812815 | 0 |
Inserts a word into the trie. | def JPHp(YKHO, GIN8: str) -> None:
jvSB = YKHO.node
for YRbF in GIN8:
if YRbF not in jvSB.char:
jvSB.char[YRbF] = ep_x()
jvSB = jvSB.char[YRbF]
if jvSB.isword is False:
jvSB.isword = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, GIN8):\n TI1B = YKHO.root\n for Z9rn in GIN8:\n if TI1B.children[ord(Z9rn) - ord('a')] is None:\n TI1B.children[ord(Z9rn) - ord('a')] = ep_x()\n TI1B.children[ord(Z9rn) - ord('a')].char = Z9rn\n TI1B = TI1B.children[ord(Z9rn) - ord('a')]\n TI1B.isword = T... | [
"0.8875859",
"0.8875839",
"0.8866457",
"0.88459",
"0.88351417",
"0.88295466",
"0.8824274",
"0.88217384",
"0.8802255",
"0.87969035",
"0.879141",
"0.8786824",
"0.8786531",
"0.87857324",
"0.8780107",
"0.87797034",
"0.8776233",
"0.8770881",
"0.876743",
"0.87575495",
"0.87574315",... | 0.8935237 | 0 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8: str) -> bool:
jvSB = YKHO.node
for YRbF in GIN8:
if YRbF not in jvSB.char:
return False
jvSB = jvSB.char[YRbF]
return jvSB.isword | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n return False\n tk5Y = tk5Y[Z9rn]\n return tk5Y.end_of_word",
"def DUe0(YKHO, ZOCz, GIN8):\n if type(GIN8) != str:\n raise TypeError('Trie only works on str!')... | [
"0.82732886",
"0.8269756",
"0.8265927",
"0.82159066",
"0.81913596",
"0.8175614",
"0.8170605",
"0.81337255",
"0.79828525",
"0.79744655",
"0.79670703",
"0.79551655",
"0.78822225",
"0.7877647",
"0.7867255",
"0.78359324",
"0.7821025",
"0.78136903",
"0.78122884",
"0.77957994",
"0.... | 0.765357 | 34 |
Returns if there is any word in the trie that starts with the given prefix. | def BYxH(YKHO, y0cW: str) -> bool:
jvSB = YKHO.node
for YRbF in y0cW:
if YRbF not in jvSB.char:
return False
jvSB = jvSB.char[YRbF]
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BYxH(YKHO, y0cW):\n GIN8 = y0cW\n if not GIN8:\n return True\n nsYX = GIN8[0]\n if nsYX not in YKHO.trie_map:\n return False\n Tifd = YKHO.trie_map[nsYX]\n for YRbF in range(1, len(GIN8)):\n LihS = GIN8[YRbF]\n if LihS not in Tifd.childMap:\n return Fals... | [
"0.8641952",
"0.84563696",
"0.84399694",
"0.84150636",
"0.8414782",
"0.84063053",
"0.83811784",
"0.8369809",
"0.83353144",
"0.8326854",
"0.8326482",
"0.8239882",
"0.8228825",
"0.8172376",
"0.8160297",
"0.815282",
"0.8146294",
"0.8115559",
"0.8012817",
"0.79831886",
"0.7983188... | 0.7732735 | 65 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
if len(jQ3Z['Start Month'].unique()) > 1:
X_bn = ['january', 'february', 'march', 'april', 'may', 'june']
uwR8 = jQ3Z['Start Month'].mode()[0] - 1
sz_R = jQ3Z['End Month'].mode()[0] - 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.8000332",
"0.7921482",
"0.7892307",
"0.7861927",
"0.7859716",
"0.7840609",
"0.7800332",
"0.7784904",
"0.7735937",
"0.7723446",
"0.771458",
"0.77088034",
"0.7704811",
"0.7702586",
"0.76903397",
"0.7686547",
"0.76810247",
"0.76793665",
"0.76728475",
"0.7662267",
"0.76608855"... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
print('The most common starting station is', jQ3Z['Start Station'].mode()[0])
print('The most common ending station is', jQ3Z['End Station'].mode()[0])
jQ3Z['Combination'] = jQ3Z['Start Station'] + ' to... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.76654726",
"0.76264316",
"0.76100993",
"0.75849444",
"0.7576263",
"0.75670516",
"0.7557652",
"0.75378203",
"0.7529607",
"0.750169",
"0.7499543",
"0.74961287",
"0.748713",
"0.74839073",
"0.747546",
"0.7473013",
"0.74376714",
"0.74364847",
"0.74328995",
"0.7428165",
"0.74270... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def z6Jb(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
print('Total rental time was {:.{prec}f} hours and {:.{prec}f} minutes'.format(jQ3Z['Trip Duration'].sum() / 3600, jQ3Z['Trip Duration'].sum() % 3600 / 60, prec=0))
print('The mean trip duration was {:.{prec}f} minutes and {:.{... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.79176366",
"0.791... | 0.79834235 | 5 |
take 1D float array of rewards and compute discounted reward | def AC1_(Mkmy, KMvS):
g2lU = oyIN.zeros(Mkmy.shape, dtype=float)
S8qo = 0
for a1PO in reversed(range(0, Mkmy.size)):
if Mkmy[a1PO] != 0:
S8qo = 0
S8qo = S8qo * KMvS + Mkmy[a1PO]
g2lU[a1PO] = S8qo
if oyIN.count_nonzero(g2lU) == 0:
print('reward is all zero!!!!!... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AC1_(cAvO):\n g2lU = oyIN.zeros_like(cAvO)\n S8qo = 0\n for d6pt in reversed(range(cAvO.size)):\n S8qo = S8qo * BR4e + cAvO[d6pt]\n g2lU[d6pt] = S8qo\n return g2lU",
"def AC1_(ezWE):\n bnZy = oyIN.zeros_like(ezWE)\n vOGg = 0\n for YRbF in reversed(range(ezWE.size)):\n ... | [
"0.822718",
"0.8100493",
"0.7945981",
"0.79111964",
"0.78905135",
"0.7852662",
"0.784608",
"0.7795074",
"0.77393186",
"0.77326906",
"0.77285117",
"0.7693254",
"0.7656317",
"0.75766927",
"0.75766927",
"0.7554026",
"0.7541124",
"0.75084126",
"0.7497733",
"0.74688345",
"0.746680... | 0.6849941 | 52 |
Whether this marked path has a special node. Returns bool | def DHKF(YKHO) -> bool:
return YKHO.specialNodes is not None and len(YKHO.specialNodes) > 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HlvU(YKHO, Q6kx):\n return Q6kx.id in YKHO.special.flat()",
"def jBdd(YKHO) -> bool:\n return bool(YKHO.is_node_set() and ccKF.ls(YKHO.node_name()))",
"def MrGg(YKHO):\n return YKHO.auxNode != None",
"def Ierk(YKHO, Q6kx: str) -> bool:\n pass",
"def LceY(YKHO) -> bool:\n return bool(YKHO... | [
"0.7291004",
"0.69950557",
"0.69453174",
"0.69378513",
"0.68831766",
"0.6788905",
"0.67443717",
"0.67443717",
"0.6742915",
"0.67222136",
"0.667802",
"0.6658808",
"0.66461855",
"0.66308224",
"0.66133523",
"0.6606986",
"0.6606986",
"0.6605175",
"0.65989107",
"0.65941143",
"0.65... | 0.8559991 | 0 |
Add a node to the graph. | def aZVs(YKHO, Q6kx: Elements.Element):
if YKHO.__class__.implementationGraph == YKoi:
YKHO.underlyingRawGraph.add_node(Q6kx)
else:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5gD(YKHO, Q6kx):\n YKHO.graph[Q6kx]",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.add(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO._nodes.add(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6... | [
"0.8967683",
"0.8517912",
"0.84549797",
"0.84225863",
"0.84225863",
"0.8396895",
"0.8340417",
"0.83027583",
"0.82941276",
"0.8261973",
"0.8252783",
"0.8230664",
"0.81434995",
"0.81109834",
"0.81015366",
"0.80946535",
"0.8065727",
"0.80565745",
"0.7941597",
"0.7941597",
"0.792... | 0.7521736 | 51 |
Add an edge to the graph. | def F1KG(YKHO, i4Va: Elements.Element, rUTj: Elements.Element, H5ew: Elements.Element, fS7N: bool=False):
if YKHO.__class__.implementationGraph == YKoi:
YKHO.underlyingRawGraph.add_edge(i4Va, rUTj, H5ew)
if fS7N == True:
YKHO.underlyingRawGraph.add_edge(rUTj, i4Va, H5ew)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, D70y):\n YKHO.edges.append(D70y)",
"def rz7z(YKHO, D70y):\n YKHO.edges.append(D70y)",
"def rz7z(YKHO, D70y):\n aF0O, Br5Q = D70y\n YKHO.add_node(aF0O)\n YKHO.add_node(Br5Q)\n YKHO.graph[aF0O].append(Br5Q)",
"def rz7z(YKHO, D70y: Edge) -> 'Graph':\n if YKHO.__vgraph:\n ... | [
"0.86834764",
"0.86834764",
"0.853061",
"0.83652663",
"0.829922",
"0.8196954",
"0.819554",
"0.8193767",
"0.8191463",
"0.81614625",
"0.81433433",
"0.8088375",
"0.8080143",
"0.8079387",
"0.8070499",
"0.8063699",
"0.8062001",
"0.8058352",
"0.8050682",
"0.80021197",
"0.7977014",
... | 0.0 | -1 |
Add edges to the graph. | def s35m(YKHO, mC4V: Iterable[Tuple[Elements.Element, Elements.Element, Elements.Element]]):
if YKHO.__class__.implementationLib == HuE0:
YKHO.underlyingRawGraph.add_edges_from(mC4V)
else:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vt3M(YKHO, mC4V):\n for YRbF, r845 in mC4V:\n YKHO.add_edge(YRbF, r845)",
"def Vt3M(YKHO, mC4V):\n for YRbF, r845 in mC4V:\n YKHO.add_edge(YRbF, r845)",
"def uLca(YKHO, mC4V):\n for WKvO, LVAh in mC4V:\n if WKvO not in YKHO._graph or LVAh not in YKHO._graph:\n raise... | [
"0.8469618",
"0.8469618",
"0.83218396",
"0.8203242",
"0.8155063",
"0.8119327",
"0.81055903",
"0.8046983",
"0.79174745",
"0.77175367",
"0.7664907",
"0.76173365",
"0.75681186",
"0.75627023",
"0.7533606",
"0.75207937",
"0.7395467",
"0.7323749",
"0.7316925",
"0.73161036",
"0.7313... | 0.787335 | 9 |
Remove an edge from the graph. | def Eik1(YKHO, i4Va: Elements.Element, rUTj: Elements.Element, H5ew: Elements.Element, pljb: bool=False):
if YKHO.__class__.implementationGraph == YKoi:
YKHO.underlyingRawGraph.remove_edge(i4Va, rUTj, H5ew)
if pljb == True:
YKHO.underlyingRawGraph.remove_edge(rUTj, i4Va, H5ew)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eik1(YKHO, D70y):\n if YKHO.edgeExists(D70y):\n del YKHO.graph[YKHO.EDGES_KEY][D70y]\n return\n raise Exception('Edge not Found in Graph!')",
"def Qmvo(YKHO, D70y):\n YKHO.nodes[D70y[0]].neighbors.discard(D70y[1])\n YKHO.nodes[D70y[1]].neighbors.discard(D70y[0])",
"def iyca(YKHO, ... | [
"0.8435257",
"0.8354143",
"0.8191892",
"0.8145241",
"0.806328",
"0.80327606",
"0.8013087",
"0.7983889",
"0.7916677",
"0.7887798",
"0.7881929",
"0.7849634",
"0.7839232",
"0.7798673",
"0.77817875",
"0.77712256",
"0.77539986",
"0.7735794",
"0.773159",
"0.771293",
"0.76731837",
... | 0.0 | -1 |
Get the largest component. Returns CommonGraphApi Copy of this graph, reduced to the largest component. Raises NotImplementedError | def viaW(YKHO) -> 'CommonGraphApi':
return YKHO.getSubgraph(YKHO.getLargestComponentNodes()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YO5w(YKHO):\n YKHO.connected_components()\n if YKHO.number_of_components == 1:\n return YKHO\n else:\n kPi5 = []\n ewCu = wbK3.Counter(YKHO.components)\n J6pM = ewCu.most_common(1)[0][0]\n for YRbF in range(YKHO._num_vertices):\n if J6pM == YKHO.components... | [
"0.83068293",
"0.7493745",
"0.73850423",
"0.6738022",
"0.6693928",
"0.6663765",
"0.6620926",
"0.65850556",
"0.63846976",
"0.6376084",
"0.6263248",
"0.6248738",
"0.6234371",
"0.6225519",
"0.62218755",
"0.62073934",
"0.6190815",
"0.6168346",
"0.615646",
"0.61554116",
"0.6087380... | 0.85643345 | 0 |
Shallow copy of the whole graph. | def jth9(YKHO, OEni=None) -> 'CommonGraphApi':
jth9 = YKHO.__class__(underlyingRawGraph=OEni)
if OEni is None:
jth9.underlyingRawGraph = YKHO.underlyingRawGraph.copy()
if YKHO.nodeCounts is not None:
jth9.nodeCounts = YKHO.nodeCounts.copy()
if YKHO.edgeCounts is not None:
jth9.ed... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_yX(YKHO, pNZh):\n return jth9.deepcopy(pNZh)",
"def j7TX(YKHO) -> ziRQ.Graph:\n return YKHO.__graph.copy()",
"def jth9(YKHO):\n Oa1e = SwZj()\n Oa1e.node = YKHO.node.copy()\n Oa1e.adj = YKHO.adj.copy()\n return Oa1e",
"def jth9(YKHO):\n pNZh = Q1Kq(entities=YKHO.entities.copy(), tr... | [
"0.85537714",
"0.8530311",
"0.8344352",
"0.82488704",
"0.82284355",
"0.8146432",
"0.8074773",
"0.789795",
"0.78631604",
"0.78146416",
"0.7566615",
"0.7510578",
"0.75011235",
"0.74699086",
"0.7458173",
"0.73513114",
"0.72582746",
"0.7232408",
"0.7213936",
"0.71770626",
"0.7154... | 0.71768177 | 20 |
Get the edge key elements of all edges which are unidirectional only. Returns Set[Element] | def Bifw(YKHO) -> fHNa[ZTWe.Element]:
QG0T = YKHO.getUnidirectionalEdges()
dn8Z = set()
for D70y in QG0T:
bGrB, bGrB, U6D_ = D70y
dn8Z.add(U6D_)
return dn8Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f9Km(YKHO) -> fHNa[ZTWe.Element]:\n mC4V = YKHO.getEdges()\n dn8Z = set()\n for D70y in mC4V:\n bGrB, bGrB, U6D_ = D70y\n dn8Z.add(U6D_)\n return dn8Z",
"def mC4V(YKHO):\n WrwW = set()\n for YRbF in YKHO.keys():\n for r845 in YKHO[YRbF].keys():\n WrwW.add(YKH... | [
"0.8586737",
"0.750414",
"0.7271873",
"0.71816486",
"0.7119871",
"0.71130234",
"0.7112564",
"0.705259",
"0.69862616",
"0.6977043",
"0.697547",
"0.6921121",
"0.68980825",
"0.6857359",
"0.6851593",
"0.6782946",
"0.67453736",
"0.6699224",
"0.669789",
"0.66680515",
"0.6653191",
... | 0.7993096 | 1 |
Return unique ID based on Sinope device ID. | def ShR8(YKHO):
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO) -> str:\n return YKHO._device.device_id",
"def ShR8(YKHO):\n return YKHO.device.id",
"def DJw5() -> str:\n pass",
"def ShR8(YKHO):\n return YKHO._innogy_device.id",
"def ShR8(YKHO):\n Hx9D = YKHO._device.getId()\n return f'{Hx9D}'",
"def ShR8(YKHO):\n return YKHO._devi... | [
"0.8235167",
"0.8166548",
"0.81619036",
"0.815095",
"0.81400144",
"0.8130808",
"0.8130808",
"0.81135815",
"0.810922",
"0.810535",
"0.8065627",
"0.80581003",
"0.80061775",
"0.79773694",
"0.7976534",
"0.79466325",
"0.79466325",
"0.7895922",
"0.7895922",
"0.789528",
"0.78751826"... | 0.0 | -1 |
Return the state attributes. | def R1i3(YKHO):
nPrm = {}
if YKHO._is_dimmable:
nPrm = {mRNu: YKHO._brightness_pct}
nPrm.update({'alarm': YKHO._alarm, 'operation_mode': YKHO.operation_mode, 'rssi': YKHO._rssi, 'wattage_override': YKHO._wattage_override, 'id': YKHO._id, 'timer': YKHO._timer})
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._state_attrs",
"def upgy(YKHO):\n nPrm = {}\n return nPrm",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat... | [
"0.9143806",
"0.8802095",
"0.8796065",
"0.85617536",
"0.84979665",
"0.84979665",
"0.84034306",
"0.838496",
"0.8384177",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.8365354",
"0.8365354",
"0.8365354",
"0.83578205",
"0.8335189",
"0.8335189",
"0.8335189",
"0... | 0.0 | -1 |
Convert dictionary of float arrays to tf.train.Example proto. | def tO1c(ghNA):
return ZylS.train.Example(features=ZylS.train.Features(feature={G1Hx: ZylS.train.Feature(float_list=ZylS.train.FloatList(value=Ty9i)) for G1Hx, Ty9i in ghNA.items()})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U7Mr(cmPJ):\n bySB = {}\n for G1Hx, Ty9i in cmPJ.items():\n bySB[G1Hx] = ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=Ty9i))\n return ZylS.train.Example(features=ZylS.train.Features(feature=bySB))",
"def XNLL(wFVV):\n\n def lSdu(hkxX):\n eHNT = ZylS.train.Feature(int64_l... | [
"0.7161169",
"0.6752723",
"0.67411405",
"0.66124904",
"0.6574894",
"0.65099347",
"0.65076405",
"0.6506735",
"0.6497426",
"0.6473721",
"0.64546096",
"0.64507335",
"0.6401381",
"0.6396491",
"0.636934",
"0.6356793",
"0.6355767",
"0.63478035",
"0.6344257",
"0.6322775",
"0.6299940... | 0.7588668 | 0 |
Normalize a key by making sure it has a .html extension, and convert any '.'s to '_'s. | def jG5n(H5ew):
if H5ew.endswith('.html'):
H5ew = H5ew[:-5]
lt8V = H5ew.replace('.', '_')
return lt8V + '.html' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gEST(H5ew):\n return H5ew.lower().replace(' ', '_').replace('-', '_').replace('=', '')",
"def uPA0(YKHO, H5ew):\n g8rx = ['_', '.']\n for VWe_ in g8rx:\n if H5ew.find(VWe_) != -1:\n KG9w = H5ew.split(VWe_)\n H5ew = KG9w[0]\n for KCHu in KG9w[1:]:\n ... | [
"0.74634576",
"0.73083454",
"0.7298872",
"0.68485427",
"0.6751441",
"0.66746885",
"0.66391456",
"0.6589868",
"0.65814936",
"0.6512103",
"0.64968",
"0.6436416",
"0.6431243",
"0.63916045",
"0.6333032",
"0.6301871",
"0.62366605",
"0.62359023",
"0.61867356",
"0.61706865",
"0.6159... | 0.8043788 | 0 |
Checks if all executions have either succeeded or failed yet. Failed executions are skipped. | def nZ0U(rDWF):
for I2ab in rDWF:
TzOC = Y01w.get_execution_history(executionArn=I2ab, maxResults=1, reverseOrder=True)['events'][0]
if TzOC['type'] == 'ExecutionFailed':
PurT('[ERROR] Execution {} failed.'.format(I2ab))
pass
elif TzOC['type'] != 'ExecutionSucceeded':... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EXyi(YKHO):\n h5hN = iqRo(YKHO.pav_cfg, 'test_all_passed1', ['pass_fail'] * 2)\n h5hN.make()\n h5hN.build()\n h5hN.kickoff()\n h5hN.wait(wait_for_all=True)\n YKHO.assertFalse(h5hN.all_passed)\n Ycpy = iqRo(YKHO.pav_cfg, 'test_all_passed2', ['pass_fail.pass'] * 2)\n Ycpy.make()\n Ycpy... | [
"0.6960485",
"0.68553233",
"0.6754038",
"0.6719004",
"0.6719",
"0.6704219",
"0.66879106",
"0.666729",
"0.66611797",
"0.6659157",
"0.66526395",
"0.6621062",
"0.6602562",
"0.65555227",
"0.6537266",
"0.6532032",
"0.64769745",
"0.6462304",
"0.6435599",
"0.643518",
"0.6377214",
... | 0.75349736 | 0 |
given a vector of parameters and volumes, return a vector of energies. equation From Wikipedia | def oiqB(SGPK, qjHC):
jKZG = SGPK[0]
klZU = SGPK[1]
y8zM = SGPK[2]
Zu6A = SGPK[3]
q4T2 = (Zu6A / qjHC) ** (2.0 / 3.0) - 1.0
s404 = 6.0 - 4.0 * (Zu6A / qjHC) ** (2.0 / 3.0)
ut5U = jKZG + 9.0 * Zu6A * klZU / 16.0 * (q4T2 ** 3.0 * y8zM + q4T2 ** 2.0 * s404)
return ut5U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYvU(eeYG, Vlb9):\n hbUd, IrOQ = eeYG\n r8hN, Oa1e, vC9B, Fg_i = Vlb9\n dg7v = YhSR(hbUd)\n PYpn = r8hN * vC9B ** 2 * IrOQ ** 2 / 2\n Wmjn = Oa1e * vC9B * r8hN * (1 - dg7v)\n return [PYpn, Wmjn]",
"def fc0Z(zTvC, YtJp, tYeL, bMbF):\n return 0.5 * bMbF * (zTvC ** 2 + YtJp ** 2 + tYeL ** 2... | [
"0.6937271",
"0.67659336",
"0.63957095",
"0.63697803",
"0.62996393",
"0.6282347",
"0.6268656",
"0.6248552",
"0.61914104",
"0.6168858",
"0.61499715",
"0.6140305",
"0.61291784",
"0.6110181",
"0.6099365",
"0.6076212",
"0.60760033",
"0.60645074",
"0.60635394",
"0.6036721",
"0.603... | 0.58779156 | 32 |
Check if the content in question (self.context) allows questions. | def EhYu(YKHO):
npjt = getattr(YKHO.context, 'allowQuestions', False)
return npjt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zB2c(YKHO):\n return YKHO.kind == YKHO.STUDENT_QUESTION and YKHO.title and YKHO.text",
"def aNCP(om6U) -> bool:\n hkS8 = om6U.attributes_manager.session_attributes\n TFlq = hkS8.get('num_questions', None)\n I2Tq = hkS8.get('questions_answered', 0)\n if not TFlq:\n return False\n bo34... | [
"0.68737894",
"0.6815537",
"0.6768741",
"0.6715391",
"0.6713841",
"0.6641918",
"0.65197295",
"0.6518914",
"0.6513699",
"0.64481366",
"0.64430887",
"0.64289427",
"0.64034",
"0.63781714",
"0.63702327",
"0.6325807",
"0.6324032",
"0.6287338",
"0.62592477",
"0.62429297",
"0.620833... | 0.8263404 | 0 |
Ensure that the PredictIt API hasn't changed. This test goes through the various attributes of a market and makes sure they were created. | def bOGV(fkJo):
o8Kj = {'predictit': sX3o.PredictIt, 'api_url': str, 'id': int, 'name': str, 'shortName': str, 'image': str, 'url': str, 'status': str, 'timeStamp': qcWV.datetime}
for GT8I in fkJo:
for hkS8 in o8Kj.items():
assert type(getattr(GT8I, hkS8[0])) is hkS8[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hS6m(YKHO):\n pass",
"def JJDT(fkJo):\n o8Kj = {'market': sX3o.PredictItMarket, 'id': int, 'name': str, 'shortName': str, 'image': str, 'status': str, 'displayOrder': int}\n for GT8I in fkJo:\n for bAls in GT8I.questions:\n for hkS8 in o8Kj.items():\n assert type(get... | [
"0.6604578",
"0.6299145",
"0.62612337",
"0.6253409",
"0.612073",
"0.6084862",
"0.60776407",
"0.60675883",
"0.5969813",
"0.59202254",
"0.5906064",
"0.5900678",
"0.5897435",
"0.5896188",
"0.58540237",
"0.5841873",
"0.5840678",
"0.58292764",
"0.5819899",
"0.5806047",
"0.5775863"... | 0.681201 | 0 |
Ensure that the PredictIt API hasn't changed. This test goes through the various attributes of a question and makes sure they were created. | def JJDT(fkJo):
o8Kj = {'market': sX3o.PredictItMarket, 'id': int, 'name': str, 'shortName': str, 'image': str, 'status': str, 'displayOrder': int}
for GT8I in fkJo:
for bAls in GT8I.questions:
for hkS8 in o8Kj.items():
assert type(getattr(bAls, hkS8[0])) is hkS8[1]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SusY(YKHO):\n pass",
"def oK7W(YKHO):\n CBIr, VsZH = iCKn(return_json=False, return_plain_password=True)\n bReh = II0Q(question_text='Some question.', days=30, created_by=CBIr)\n XkHx = {'question_text', 'pub_date', 'created_by'}\n Ps4Z = {'question_text': 'some question', 'pub_date': '2021-04... | [
"0.7163346",
"0.6739418",
"0.6540346",
"0.6504606",
"0.6498427",
"0.6486094",
"0.64124036",
"0.64036417",
"0.6381639",
"0.6364932",
"0.6342633",
"0.63296866",
"0.63231623",
"0.6319457",
"0.6305965",
"0.629162",
"0.62873656",
"0.62862086",
"0.624335",
"0.6232421",
"0.6231265",... | 0.6570181 | 2 |
Takes a string and returns a list of ASCII values. | def iNxS(l5Ny):
xYvp = []
return xYvp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NHHC(KCHu):\n return list(map(ord, KCHu))",
"def NO6u(NPoT):\n dfOq = [ord(Tgop) for Tgop in NPoT]\n return dfOq",
"def dmPm(KCHu):\n return [ord(WKvO) for WKvO in list(KCHu)]",
"def a8Pe(KCHu):\n return [ord(Z9rn) for Z9rn in KCHu]",
"def QbDE(vIwR):\n return [ord(WKvO) - 33 for WKvO... | [
"0.83290917",
"0.7587005",
"0.75363827",
"0.7204026",
"0.6980219",
"0.6960704",
"0.6924547",
"0.6835174",
"0.67813385",
"0.6684972",
"0.66566885",
"0.6572281",
"0.6496639",
"0.645792",
"0.6451988",
"0.6443268",
"0.64159423",
"0.63682306",
"0.633061",
"0.6288639",
"0.62702864"... | 0.0 | -1 |
OCR text from an image. | def LkPQ(LNo8, IbeW=None):
with stkY:
nNXP = None
EP8O = NCqB.getlocale()
try:
NCqB.setlocale(NCqB.LC_CTYPE, 'C')
nNXP = Qhy3()
if nNXP is None or LNo8 is None:
return ''
nNXP.SetImage(LNo8)
return nNXP.GetUTF8Text()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FLau(LNo8):\n l5Ny = Z537.image_to_string(LNo8)\n return l5Ny",
"def FLau(YKHO, LNo8):\n l5Ny = Z537.image_to_string(LNo8)\n return l5Ny",
"def Bolb(E41I):\n try:\n SZry = WR89.b64decode(E41I)\n LNo8 = SnBA.Image(content=SZry)\n geh0 = x0hE.text_detection(image=LNo8)\n ... | [
"0.81968826",
"0.80521065",
"0.75590104",
"0.75583136",
"0.751487",
"0.74931884",
"0.74815387",
"0.7476993",
"0.7474385",
"0.7473947",
"0.74730814",
"0.74325114",
"0.7409284",
"0.7394726",
"0.7393699",
"0.7386175",
"0.73737335",
"0.73737335",
"0.73737335",
"0.73737335",
"0.73... | 0.66758865 | 76 |
OCR a word from an image. Useful for captchas. Image should be preprocessed to remove noise etc. | def vy9x(LNo8, IbeW=None, oi6k=False):
mxlQ = LkPQ(LNo8, languages=IbeW)
if not oi6k:
mxlQ = ''.join([Z9rn for Z9rn in mxlQ if Z9rn != ' '])
mxlQ = mxlQ.strip()
return mxlQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fNaI(YKHO, VXjJ, w_kN=True):\n try:\n VXjJ = XC5k.imread(VXjJ)\n except Exception as e:\n print(tTpl)\n try:\n oUSw = Z537.image_to_data(VXjJ)\n for WKvO, Fg_i in enumerate(oUSw.splitlines()):\n if WKvO != 0:\n Fg_i = Fg_i.split()\n ... | [
"0.7388392",
"0.6968503",
"0.6952504",
"0.69288313",
"0.68316454",
"0.6700859",
"0.6694586",
"0.6617888",
"0.65560466",
"0.6470797",
"0.6469474",
"0.6459964",
"0.6446401",
"0.6443639",
"0.64407295",
"0.6423979",
"0.6381826",
"0.63765943",
"0.63625616",
"0.6353733",
"0.6353733... | 0.62684506 | 27 |
True, as all users are active. | def ksfB(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksfB(YKHO):\n return True",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO, NCls: Session, *, CBIr: User) -> bool:\n if CBI... | [
"0.75308377",
"0.7392309",
"0.7392309",
"0.7392309",
"0.7392309",
"0.73852575",
"0.73056287",
"0.7290842",
"0.7230901",
"0.72114825",
"0.71813864",
"0.714781",
"0.714781",
"0.7117796",
"0.7107901",
"0.70613724",
"0.7053262",
"0.7051632",
"0.70370287",
"0.70316494",
"0.7010118... | 0.71019155 | 18 |
False, as anonymous users aren't supported. | def wDqn(YKHO):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return True",
"def ... | [
"0.84041584",
"0.84041584",
"0.8380213",
"0.8380213",
"0.8380213",
"0.8377405",
"0.83305264",
"0.82501274",
"0.8244858",
"0.81436765",
"0.8103119",
"0.80954605",
"0.807159",
"0.7877262",
"0.7874819",
"0.7860086",
"0.7859498",
"0.77627987",
"0.7724922",
"0.76033795",
"0.757673... | 0.8359979 | 9 |
Returns the GPU device if available else CPU. | def VeaS() -> ht2j.device:
return ht2j.device('cuda:0' if ht2j.cuda.is_available() else 'cpu') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vxYq():\n return ht2j.device('cuda' if ht2j.cuda.is_available() else 'cpu')",
"def VeaS():\n return ht2j.device('cuda') if ht2j.cuda.is_available() else ht2j.device('cpu')",
"def VeaS(wqL3=True):\n return ht2j.device('cuda:0' if ht2j.cuda.is_available() and wqL3 else 'cpu')",
"def VeaS() -> ht2j... | [
"0.85814995",
"0.8420242",
"0.8347457",
"0.8340255",
"0.82839924",
"0.8266617",
"0.8265638",
"0.8262953",
"0.8153296",
"0.8099775",
"0.8080835",
"0.80245143",
"0.79898393",
"0.79387295",
"0.7934414",
"0.79072917",
"0.7904478",
"0.7888087",
"0.787048",
"0.78605974",
"0.7830314... | 0.8345621 | 3 |
Checks if a file is an allowed extension. | def DVFM(Ux0P, CBZq):
GzHq = Ux0P.lower()
return any((GzHq.endswith(YBcr) for YBcr in CBZq)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XT0o(Va2z):\n return Va2z.strip('.') in UWr8",
"def kqN1(Ux0P):\n wEf2 = False\n if pmON.splitext(Ux0P)[-1].lower() in UWr8:\n wEf2 = True\n return wEf2",
"def papa(Emd4, Ux0P: str) -> bool:\n if Hy7s.path.splitext(Ux0P)[1] in Emd4.extensions:\n return True\n return False",
... | [
"0.8831758",
"0.8758661",
"0.87586457",
"0.868581",
"0.8672696",
"0.8669193",
"0.86638623",
"0.8613395",
"0.86122054",
"0.86122054",
"0.86122054",
"0.85927296",
"0.85927296",
"0.85927296",
"0.85927296",
"0.85927296",
"0.8591256",
"0.8558584",
"0.8552848",
"0.8534351",
"0.8534... | 0.8113061 | 58 |
Create a temporary yaml file and return the path | def SFUd():
qaEx = './my.yaml'
with open(qaEx, 'w') as eHNT:
eHNT.write(eJb6.dump({'test': 'from my yaml!'}))
yield qaEx
Hy7s.remove(qaEx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SFUd():\n qaEx = './my.yaml'\n with open(qaEx, 'w') as eHNT:\n eHNT.write(eJb6.dump({'test': 'from my yaml!'}))\n yield qaEx\n Hy7s.remove(qaEx)",
"def jR8V(nPrm):\n FYKK = DPva.mktemp('mktmpfile')\n LbUx = str(FYKK) + '/file'\n with open(LbUx, 'w') as TAzs:\n TAzs.write(nP... | [
"0.6672265",
"0.6464789",
"0.64461684",
"0.64005834",
"0.6286248",
"0.62726754",
"0.6271979",
"0.62269056",
"0.6214126",
"0.62061787",
"0.6190275",
"0.6140218",
"0.6133258",
"0.6105554",
"0.6105125",
"0.61050963",
"0.6100766",
"0.6100567",
"0.6079554",
"0.6078158",
"0.6065734... | 0.66576904 | 1 |
Calculate Relative Strength Index(RSI) for given data. | def zQy5(jQ3Z, exwG):
YRbF = 0
e03F = [0]
ZYvj = [0]
while YRbF + 1 <= jQ3Z.index[-1]:
MjUY = jQ3Z.loc[YRbF + 1, 'high'] - jQ3Z.loc[YRbF, 'high']
KRZk = jQ3Z.loc[YRbF, 'low'] - jQ3Z.loc[YRbF + 1, 'low']
if MjUY > KRZk and MjUY > 0:
rBOZ = MjUY
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wS4F(jQ3Z, w4Sv=14):\n jQ3Z = jQ3Z.diff()\n yv6U = []\n for YRbF in range(len(jQ3Z)):\n if YRbF < w4Sv:\n yv6U.append(oyIN.nan)\n else:\n mI95 = sum([WKvO for WKvO in jQ3Z[YRbF:w4Sv + YRbF] if WKvO >= 0]) / w4Sv\n wIZE = sum([abs(WKvO) for WKvO in jQ3Z[YR... | [
"0.70618606",
"0.70267785",
"0.68324745",
"0.6803011",
"0.6631334",
"0.6513943",
"0.650082",
"0.64885825",
"0.64302593",
"0.6374504",
"0.6372506",
"0.63607264",
"0.6346705",
"0.6339016",
"0.62853",
"0.627748",
"0.6208865",
"0.617887",
"0.617887",
"0.61648774",
"0.61543685",
... | 0.6284833 | 15 |
Inserts `x` into this `RBT`. This operation is similar to the `insert` operation of a classical `BST`, but, in this case, the redblack tree property must be maintained, so addional work is needed. | def JPHp(YKHO, WKvO, BWXx=None) -> None:
if WKvO is None:
raise ValueError('x cannot be None.')
if not isinstance(WKvO, nKl3):
WKvO = nKl3(WKvO, BWXx)
if WKvO.left or WKvO.right or WKvO.parent:
raise ValueError('x cannot have left or right children, or parent.')
Z9rn = YKHO.root
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, WKvO):\n if not YKHO.root:\n YKHO.root = YKHO.Node(WKvO)\n return\n\n def y4ha(kMLo, WKvO):\n if kMLo.value == WKvO:\n raise ValueError('No duplicates allowed!')\n if WKvO < kMLo.value:\n if kMLo.left:\n y4ha(kMLo.left, WKvO)\n ... | [
"0.8247503",
"0.7557331",
"0.6758559",
"0.67437565",
"0.664153",
"0.66404283",
"0.6638893",
"0.6573998",
"0.6505279",
"0.64700675",
"0.6401626",
"0.6356046",
"0.6342442",
"0.634211",
"0.6319102",
"0.63097084",
"0.63059324",
"0.6293094",
"0.6262852",
"0.6252412",
"0.62375534",... | 0.8192188 | 1 |
Returns `True` if the root is `BLACK` (or it is `None`), `False` otherwise. | def IzgX(a1PO):
if a1PO.root:
return a1PO.root.color == XDQs
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ByNG(Q6kx: Optional[RBNode]) -> bool:\n return Q6kx is None or Q6kx.color is HRmL.black",
"def XzWl(Q6kx):\n return False if Q6kx is None else Q6kx.color == bDkR.BLACK",
"def kFcs(YKHO):\n return YKHO.root is True",
"def kFcs(YKHO):\n return YKHO is YKHO.root",
"def eRwN(YKHO) -> bool:\n ... | [
"0.7629865",
"0.7089068",
"0.6713965",
"0.66686064",
"0.6572431",
"0.6572431",
"0.6505967",
"0.6416041",
"0.641175",
"0.6408396",
"0.63917273",
"0.63280475",
"0.63280475",
"0.6325224",
"0.63003576",
"0.6292728",
"0.6292728",
"0.6275525",
"0.6257805",
"0.6248833",
"0.6216557",... | 0.66382873 | 4 |
Return HTTP Token Auth header. | def E_hp(eOtH):
return {'x-rh-identity': eOtH} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bIrX(QePW):\n Jpbe = QePW.META.get('HTTP_AUTHORIZATION', None)\n SQ3m = Jpbe.split()\n eOtH = SQ3m[1]\n return eOtH",
"def bIrX(QePW):\n Jpbe = QePW.META.get('HTTP_AUTHORIZATION', None)\n SQ3m = Jpbe.split()\n eOtH = SQ3m[1]\n return eOtH",
"def bIrX():\n if 'Authorization' not i... | [
"0.8456416",
"0.8456416",
"0.826963",
"0.82289475",
"0.8176505",
"0.8162293",
"0.81341964",
"0.80654943",
"0.80342674",
"0.80315405",
"0.8003775",
"0.8003775",
"0.8003775",
"0.798449",
"0.79739285",
"0.79405975",
"0.7906147",
"0.78678703",
"0.7866352",
"0.7787861",
"0.7637025... | 0.70174575 | 65 |
Returns the `dtype` of elements in the tensor. | def yDqo(YKHO):
return ZylS.string | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PlZ8(EcVT):\n if f_8k.is_scalar(EcVT):\n return type(EcVT)\n elif f_8k.is_tensor(EcVT):\n return EcVT.dtype\n else:\n raise AssertionError('X must be of type scalar or tensor but %s' % type(EcVT))",
"def kHVp(QLR1):\n if isinstance(QLR1, llWB):\n return QLR1.dtype\n ... | [
"0.8093202",
"0.781397",
"0.7426472",
"0.7157797",
"0.71241045",
"0.71014816",
"0.7069609",
"0.70344037",
"0.702169",
"0.70124906",
"0.7011905",
"0.69478965",
"0.6925397",
"0.68978703",
"0.68914765",
"0.68385106",
"0.68139",
"0.6795104",
"0.6791562",
"0.6789064",
"0.6764142",... | 0.0 | -1 |
Implements the List endpoint returns authentication tokens for current user. | def list(YKHO, QePW, *qIxc, **B2fa):
return _q7K(QePW, jGRS.HTTP_200_OK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AjWR(YKHO):\n return YKHO.tokens['{}.list_tokens'.format(YKHO.opts['eauth_tokens'])](YKHO.opts)",
"def tXtR(YKHO) -> None:\n s2mk = YKHO.client.access_tokens_list()\n LAOT = ['expiry_time', 'token_prefix', 'description', 'max_age_seconds', 'extend_when_used', 'last_used_time', 'last_ip', 'last_user_... | [
"0.7620724",
"0.76158744",
"0.74037117",
"0.7222303",
"0.70362496",
"0.69377",
"0.6932265",
"0.6890945",
"0.68386644",
"0.67508733",
"0.67504376",
"0.66767395",
"0.66767395",
"0.6672706",
"0.6663111",
"0.664665",
"0.66378397",
"0.66298956",
"0.6602079",
"0.6601845",
"0.654400... | 0.7225374 | 3 |
the constructor for objects of type Board | def FIMM(YKHO, TVTK, H2v2):
YKHO.width = TVTK
YKHO.height = H2v2
XcU5 = YKHO.width
C7Ls = YKHO.height
YKHO.data = [[' '] * XcU5 for rdlD in range(C7Ls)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, BrEt):\n YKHO.board = yELo(BrEt)",
"def FIMM(YKHO, iBIi):\n YKHO.board = iBIi",
"def FIMM(YKHO, iBIi):\n YKHO.__board = iBIi",
"def FIMM(YKHO):\n YKHO._board = yELo()",
"def FIMM(YKHO):\n YKHO.__board = YKHO.create_board()",
"def FIMM(YKHO, iBIi):\n YKHO._piece_type = Non... | [
"0.8402303",
"0.8231841",
"0.8177474",
"0.8088208",
"0.80312073",
"0.8012425",
"0.78985524",
"0.78512543",
"0.78227216",
"0.7737061",
"0.7727084",
"0.76885796",
"0.7664596",
"0.7644397",
"0.76298165",
"0.76245004",
"0.7605453",
"0.75919425",
"0.7582999",
"0.757764",
"0.757277... | 0.0 | -1 |
The nonce that was provided during the request. | def bEAa(YKHO, BWXx):
if not isinstance(BWXx, GOII):
raise TypeError(UkQH('\n nonce must be a byte string, not %s\n ', cCRh(BWXx)))
YKHO._nonce = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bEAa(YKHO):\n return YKHO._nonce",
"def bEAa(YKHO):\n return YKHO.__nonce",
"def LecC(YKHO):\n return YKHO.nonce",
"def bEAa(YKHO):\n return int(YKHO._nonce[::-1].encode('hex'), 16)",
"def mpgn(YKHO):\n return str(int(1000 * ITS7.time()))",
"def EQ7A(YKHO):\n return YKHO.__nonce_str... | [
"0.88973755",
"0.88701767",
"0.8512464",
"0.84040964",
"0.81709284",
"0.81596303",
"0.79990816",
"0.79910976",
"0.79775935",
"0.79541945",
"0.7943168",
"0.7850957",
"0.7850957",
"0.7310216",
"0.7241592",
"0.7231459",
"0.7180425",
"0.70662344",
"0.70336324",
"0.6963683",
"0.69... | 0.6239423 | 39 |
Analyze text for sentiment, returning its score. | def JybI(YKHO, l5Ny):
q_nW = 0
D0n1 = 0
CfKp = 0
b0j5 = Dhdw.tokenize.TweetTokenizer()
s2mk = b0j5.tokenize(l5Ny)
for eOtH in s2mk:
eOtH = eOtH.lower()
if eOtH in YKHO.positive_set:
q_nW += 1
elif eOtH in YKHO.negative_set:
D0n1 += 1
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JybI(YKHO, l5Ny):\n p1kx = 0\n b0j5 = Dhdw.tokenize.TweetTokenizer()\n s2mk = b0j5.tokenize(l5Ny)\n for zFiD in YKHO.positives:\n if zFiD == s2mk[0]:\n p1kx += 1\n else:\n p1kx += 0\n for zFiD in YKHO.negatives:\n if zFiD == s2mk[0]:\n p1kx -... | [
"0.87208176",
"0.85311913",
"0.82421094",
"0.81936306",
"0.8187723",
"0.81874937",
"0.8126702",
"0.8122368",
"0.80681616",
"0.8063584",
"0.8044609",
"0.80404395",
"0.802662",
"0.80199224",
"0.7970823",
"0.79697996",
"0.7925178",
"0.79161304",
"0.79069155",
"0.787933",
"0.7875... | 0.7052774 | 69 |
Wrapper for stringify with "None" as the none string. | async def nonify(fZOT: Any, **bGrB) -> h8nf[str]:
return await ddrW(fZOT, 'none') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def im3y(BWXx):\n if BWXx is None:\n return 'None'\n else:\n return \"'{0}'\".format(BWXx)",
"def VuC5(BWXx: str or None) -> str:\n return str(BWXx) if BWXx is not None else ''",
"def YYHj(BWXx: str) -> str or None:\n return None if BWXx == '' else BWXx",
"def oX2I(BWXx: str) -> str... | [
"0.796738",
"0.7829072",
"0.7429777",
"0.73244923",
"0.7259365",
"0.725386",
"0.7173897",
"0.7165992",
"0.7148324",
"0.6995574",
"0.6985055",
"0.69029254",
"0.6855403",
"0.6850915",
"0.6835251",
"0.67985505",
"0.67626417",
"0.6757737",
"0.6744606",
"0.6708858",
"0.66802037",
... | 0.6759934 | 17 |
Replaces characters that might confuse json with escaped characters. | def eYyy(l5Ny: str) -> str:
return l5Ny.replace('\\', '\\\\').replace('"', '\\"') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DzpM(l5Ny):\n return IguF(l5Ny).replace('\\\\', '\\\\\\\\').replace('<br/>', '<br/>').expandtabs(1)",
"def npHv(KCHu):\n return qQXR.dumps(KCHu)",
"def bdYK(JF3C):\n EtF8 = JF3C\n EtF8 = EtF8.replace('\\\\', '\\\\\\\\')\n EtF8 = EtF8.replace('\"', '\\\\\"')\n EtF8 = EtF8.replace(\"'... | [
"0.74462605",
"0.74448454",
"0.73492706",
"0.70816034",
"0.7052024",
"0.7020766",
"0.6984053",
"0.6841163",
"0.68328494",
"0.67708653",
"0.6763906",
"0.6763906",
"0.67191607",
"0.670877",
"0.6704754",
"0.6652221",
"0.664266",
"0.66123146",
"0.65984935",
"0.6593069",
"0.656013... | 0.74685633 | 0 |
Gets requested error value. | def Yas0(YKHO, HEhK: str) -> float:
if HEhK in YKHO.errors:
return YKHO.errors[HEhK]
else:
G9jH.error('Invalid error name: {0}'.format(HEhK))
raise ValueError('Invalid error name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yas0(YKHO):\n return YKHO.get_struct_value()",
"def VYV0(YKHO):\n KCHu = YKHO.get_status()\n return YKHO.search_field(KCHu, 'ErrorVal')",
"def EkHl(YKHO):\n return YKHO._error",
"def Ihip(YKHO):\n return YKHO.error",
"def P1dF(YKHO):\n return YKHO._data.get('error')",
"def TbCE(YKHO... | [
"0.84729564",
"0.8110161",
"0.8055467",
"0.7991221",
"0.78743476",
"0.7872361",
"0.7872361",
"0.78261876",
"0.77902013",
"0.7738922",
"0.77047336",
"0.7584815",
"0.74818176",
"0.74818176",
"0.74818176",
"0.74818176",
"0.74818176",
"0.74818176",
"0.74818176",
"0.7435036",
"0.7... | 0.7296214 | 27 |
Gets requested error value. | def Yas0(YKHO, HEhK: str) -> float:
if HEhK in YKHO.errors:
return YKHO.errors[HEhK]
else:
G9jH.error('Invalid error name: {0}'.format(HEhK))
raise ValueError('Invalid error name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yas0(YKHO):\n return YKHO.get_struct_value()",
"def VYV0(YKHO):\n KCHu = YKHO.get_status()\n return YKHO.search_field(KCHu, 'ErrorVal')",
"def EkHl(YKHO):\n return YKHO._error",
"def Ihip(YKHO):\n return YKHO.error",
"def P1dF(YKHO):\n return YKHO._data.get('error')",
"def TbCE(YKHO... | [
"0.8472757",
"0.8109881",
"0.80550116",
"0.7990908",
"0.78740793",
"0.78720987",
"0.78720987",
"0.7826622",
"0.77898085",
"0.7738929",
"0.7703599",
"0.758431",
"0.748101",
"0.748101",
"0.748101",
"0.748101",
"0.748101",
"0.748101",
"0.748101",
"0.7435055",
"0.7421051",
"0.7... | 0.7296269 | 28 |
Read requirements from a pipcompatible requirements file. | def VnMZ(IznC):
with open(IznC):
Nqlg = (zFiD.strip() for zFiD in open(IznC))
return [zFiD for zFiD in Nqlg if zFiD and (not zFiD.startswith('#'))] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ks_v():\n VGiD = Hy7s.path.join('.', 'requirements.txt')\n with open(VGiD, 'r') as eHNT:\n fA3L = [zFiD.rstrip() for zFiD in eHNT]\n return fA3L",
"def Ks_v():\n VGiD = Hy7s.path.join('.', 'requirements.txt')\n with open(VGiD, 'r') as eHNT:\n fA3L = [zFiD.rstrip() for zFiD in eHN... | [
"0.8080265",
"0.8073164",
"0.7990924",
"0.7853496",
"0.78270406",
"0.7795699",
"0.7768764",
"0.7744117",
"0.76810724",
"0.759939",
"0.75648016",
"0.7556381",
"0.7538464",
"0.7537252",
"0.75128746",
"0.7467499",
"0.7432207",
"0.74321485",
"0.7405836",
"0.74044526",
"0.7317391"... | 0.64911455 | 78 |
Returns a cookie expiry date in the required format. | def GW2E(V_GC):
from datetime import date, timedelta
BdN0 = date.today() + timedelta(days=V_GC)
return BdN0.strftime('%a, %d-%b-%Y 23:59:59 GMT') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jd3d(YKHO):\n iWzb = YKHO.get('_session_expiry')\n if isinstance(iWzb, qcWV):\n return iWzb\n if not iWzb:\n iWzb = gCuF.SESSION_COOKIE_AGE\n return qcWV.now() + fCoM(seconds=iWzb)",
"def iWzb(YKHO) -> str:\n return qe4Y.get(YKHO, 'expiry')",
"def ad72(YKHO):\n return YKHO._... | [
"0.76697236",
"0.7491519",
"0.731151",
"0.72421765",
"0.72421765",
"0.72421765",
"0.71961623",
"0.71961623",
"0.71921426",
"0.7130338",
"0.712349",
"0.70964324",
"0.7041616",
"0.7041616",
"0.70159",
"0.69516855",
"0.69516855",
"0.69516855",
"0.6945985",
"0.6919222",
"0.689011... | 0.8014416 | 0 |
Get the first found model with the specified name. Returns a ModelData instance. Raises a ValueError if no model with the given name is found. | def YrZb(YKHO, mWFP, tZ2K='utf-8'):
raise NotImplementedError('ModelLocator.get_model') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YrZb(mWFP):\n return vJaZ(mWFP)[0]",
"def DILm(YKHO, mWFP):\n for C3ST in YKHO.models:\n if mWFP == C3ST.name:\n return C3ST\n raise n6lj(\"Manifest does not contain model '%s'\" % mWFP)",
"def YrZb(YKHO, mWFP):\n return YKHO._models.get(mWFP, None)",
"def v_Xm(YKHO, bNKA: T... | [
"0.7687965",
"0.7620947",
"0.7473692",
"0.7450351",
"0.7236294",
"0.7102997",
"0.70683384",
"0.69882625",
"0.6798679",
"0.67966163",
"0.6748211",
"0.6620336",
"0.65986913",
"0.65969527",
"0.6532149",
"0.6532149",
"0.64693224",
"0.6438437",
"0.6438309",
"0.64380944",
"0.643676... | 0.626285 | 28 |
Initialize using a ResourceProvider. | def FIMM(YKHO, oYaK):
YKHO.resource_provider = oYaK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, oYaK):\n YKHO.res_provider = oYaK",
"def FIMM(Ro_8, kFeU: str, qIxc: Optional[ProviderArgs]=None, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, qIxc: Optional[ProviderArgs]=None, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, *... | [
"0.8121487",
"0.74652797",
"0.74652797",
"0.7118197",
"0.70550704",
"0.6776154",
"0.6712731",
"0.6696826",
"0.66116947",
"0.6581245",
"0.6581245",
"0.6503037",
"0.648276",
"0.6476258",
"0.6476258",
"0.6476258",
"0.6472034",
"0.6453796",
"0.6452274",
"0.64460856",
"0.6436639",... | 0.83100057 | 0 |
Bypass robjectlevel conversion. Bypass robjectlevel conversion, casting the object down to rinterfacelevel rpy2 objects. | def W2Of(YEnM):
if isinstance(YEnM, HT8V.rinterface_lib.sexp.Sexp):
Ylbp = HT8V.rinterface_lib.conversion._sexpcapsule_to_rinterface(YEnM.__sexp__)
else:
Ylbp = YEnM
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3l9(YEnM):\n raise NotImplementedError(\"Conversion 'rpy2py' not defined for objects of type '%s'\" % str(type(YEnM)))",
"def mAsG(YEnM):\n if isinstance(YEnM, Dpi4.SupportsSEXP):\n return YEnM\n raise NotImplementedError(\"Conversion 'py2rpy' not defined for objects of type '%s'\" % str(typ... | [
"0.7522353",
"0.7459203",
"0.62346846",
"0.6154641",
"0.60474515",
"0.6042185",
"0.6015415",
"0.6005434",
"0.600063",
"0.59653986",
"0.5914195",
"0.59094",
"0.59012806",
"0.58910483",
"0.5880727",
"0.5876122",
"0.58704877",
"0.5863937",
"0.5850597",
"0.58295584",
"0.58033717"... | 0.6571225 | 2 |
Return the next line of the text contents. | def c0y5(YKHO) -> Yrvv.Union[str, None]:
return YKHO._read_line() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RqT4(YKHO):\n if YKHO._peek_line_buffer is not None:\n zFiD = YKHO._peek_line_buffer\n YKHO._peek_line_buffer = None\n return zFiD\n return next(YKHO.source)",
"def kSRL(Mkmy):\n return Mkmy.readline().rstrip()",
"def next(YKHO):\n nb5u = None\n try:\n nb5u = YKHO... | [
"0.7637982",
"0.7608126",
"0.75998974",
"0.75781304",
"0.74975425",
"0.73064435",
"0.7271997",
"0.7266831",
"0.7149366",
"0.7148602",
"0.7000003",
"0.6974418",
"0.6974418",
"0.69594735",
"0.69285405",
"0.69129086",
"0.69089305",
"0.68877447",
"0.68566257",
"0.68417597",
"0.68... | 0.0 | -1 |
Return the next line of the string. | def OPUW(YKHO) -> str:
try:
return YKHO.strings.pop(0)
except IndexError:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kSRL(Mkmy):\n return Mkmy.readline().rstrip()",
"def RqT4(YKHO) -> str:\n YKHO.current_line += 1\n return next(YKHO.fh).rstrip('\\n')",
"def next(YKHO):\n nb5u = None\n try:\n nb5u = YKHO._get_next_line()\n except StopIteration:\n raise\n return nb5u",
"def RqT4(YKHO):\... | [
"0.77920705",
"0.7460758",
"0.72976977",
"0.7264434",
"0.71291536",
"0.71048295",
"0.7043161",
"0.7039836",
"0.70071024",
"0.6842918",
"0.6817939",
"0.68094385",
"0.66985685",
"0.66549873",
"0.6652026",
"0.6649562",
"0.6649562",
"0.66247183",
"0.661827",
"0.66059947",
"0.6604... | 0.0 | -1 |
Get arguments and kwargs expected by a function. | def Yceh(JfyU, **B2fa):
Ol8d = B2fa.pop('message', 'function introspection received a string instead of a function indicating that we have gleaned the function without importing it. this indicates an error which requires careful debugging.')
if HwRy.version_info < (3, 3):
if isinstance(JfyU, mJ_l):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qElm(m2Zb: tp.Callable, *qIxc, **B2fa) -> HRJ_.Dict[str, HRJ_.Any]:\n return tfI5(m2Zb, False, *qIxc, **B2fa)",
"def vU9u(JfyU):\n try:\n return tq_1.getfullargspec(JfyU)[0]\n except AttributeError:\n return tq_1.getargspec(JfyU)[0]",
"def NEWD(JfyU):\n return Gv0t.inspect_getfull... | [
"0.78218997",
"0.7296301",
"0.7261138",
"0.72129065",
"0.72030133",
"0.7199464",
"0.71792173",
"0.7144585",
"0.7110974",
"0.7081791",
"0.70208585",
"0.6985489",
"0.69625235",
"0.69507486",
"0.6918908",
"0.6885211",
"0.68532586",
"0.68353885",
"0.6831432",
"0.67968583",
"0.673... | 0.0 | -1 |
Compute the maximum integer representable by a given number of bits. | def LGze(i1fZ: bool, oCS_: bool, uSI6: Tensor) -> llWB:
if not i1fZ and (not oCS_):
BWXx = 2 ** uSI6 - 1
elif not i1fZ and oCS_:
BWXx = 2 ** uSI6 - 2
else:
BWXx = 2 ** (uSI6 - 1) - 1
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RT0q(UOVU):\n return 2 ** (UOVU - 1) - 1",
"def TO88(YKHO: FixedPointType) -> int:\n return int(2 ** (YKHO._m + YKHO._n - bool(YKHO._signed)) - 1)",
"def VTfo(jzdc: int, Fg_i: long) -> Swre:\n ...",
"def VTfo(jzdc: long, Fg_i: int) -> Swre:\n ...",
"def e2UA(YKHO, i1fZ, hkxX):\n Fg_i = 0... | [
"0.7390534",
"0.73708427",
"0.7353504",
"0.73467237",
"0.7310522",
"0.7304085",
"0.728991",
"0.7083104",
"0.69115",
"0.68991375",
"0.6872306",
"0.6810895",
"0.68008035",
"0.6784109",
"0.67408246",
"0.6703774",
"0.6668055",
"0.66489214",
"0.66095024",
"0.657197",
"0.656798",
... | 0.7261167 | 7 |
Creates a dataset export task with the given params and returns the task. >>> dataset = client.get_dataset(DATASET_ID) >>> task = dataset.export_v2( >>> filters={ | def kaxX(YKHO, VsgD: Optional[str]=None, KUnM: Optional[DatasetExportFilters]=None, NArs: Optional[CatalogExportParams]=None) -> o2Vr:
Vlb9 = NArs or QiK4({'attachments': False, 'metadata_fields': False, 'data_row_details': False, 'project_details': False, 'performance_details': False, 'label_details': False, 'medi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g75F(bNKA, _63S, h_xa, n1lB, L9Qv, mwXN):\n DNrn({'type_task': 'export', 'project': bNKA, 'namespace': _63S, 'data_dir': h_xa, 'project_placeholder': n1lB, 'namespace_placeholder': L9Qv, 'kinds': mwXN, 'chunk': None, 'target': kFbJ})",
"def kaxX(x0hE: 'Client', SpLS: List[Union[str, 'DataRow']]=None, rofV... | [
"0.60419637",
"0.5924436",
"0.58112305",
"0.56338644",
"0.56070274",
"0.55565727",
"0.55263656",
"0.5463132",
"0.54306424",
"0.53830713",
"0.5350048",
"0.5350048",
"0.5336352",
"0.5332623",
"0.529094",
"0.5283884",
"0.5275714",
"0.5275714",
"0.5261159",
"0.5247363",
"0.524065... | 0.7374164 | 0 |
(str) > int finds the main root of the binary operator '' or '+' | def mbf0(l9Ur, xEly):
jqh9 = l9Ur[:xEly + 1].count('(')
wJpl = l9Ur[:xEly + 1].count(')')
if wJpl != jqh9 - 1:
while wJpl != -1:
jqh9 = l9Ur[xEly + 1:l9Ur.index(')', xEly + 1)].count('(')
wJpl = l9Ur[xEly + 1:l9Ur.index(')', xEly + 1)].count(')')
if wJpl == jqh9 -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tpts(Lf_p):\n Zm9E = 1\n if ord(Lf_p) == 42:\n Zm9E = 0\n if ord(Lf_p) == 43:\n Zm9E = 0\n if ord(Lf_p) == 45:\n Zm9E = 0\n if ord(Lf_p) == 47:\n Zm9E = 0\n return Zm9E",
"def hKPq(Z9rn):\n return Z9rn.isdigit()",
"def PWxZ(lsX7):\n Maem = '+-*/'\n for... | [
"0.67804515",
"0.6547743",
"0.65441334",
"0.6449131",
"0.6365013",
"0.6364642",
"0.6324236",
"0.62843233",
"0.627717",
"0.6215597",
"0.61459744",
"0.61428684",
"0.613696",
"0.6110491",
"0.60931635",
"0.6076685",
"0.6046276",
"0.6039925",
"0.599718",
"0.59866834",
"0.59719956"... | 0.0 | -1 |
(FormulaTree, str, str, str) > int Used only for the last possible best move for the current player | def TW8w(tk5Y, hbH1, kc1W, hkxX):
if hbH1[len(hkxX)] == 'A':
if b7La(tk5Y, kc1W, hkxX + '1') == 0:
Ylbp = 1
else:
Ylbp = 0
elif b7La(tk5Y, kc1W, hkxX + '0') == 1:
Ylbp = 0
else:
Ylbp = 1
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s_vv(YKHO):\n DQoW = None\n v9yM = float('-inf')\n for BZN_ in YKHO._board.legal_moves():\n YKHO._board.move(BZN_[0], BZN_[1])\n if YKHO._board.game_over():\n V172 = YKHO._board.utility()\n else:\n YKHO._move_to, V172 = YKHO._minMove()\n YKHO._board.un... | [
"0.7237947",
"0.7140752",
"0.7124397",
"0.7090373",
"0.6982654",
"0.68632543",
"0.68581814",
"0.68426836",
"0.68278074",
"0.68207896",
"0.6819852",
"0.681734",
"0.68003577",
"0.6785994",
"0.677593",
"0.6768461",
"0.6761696",
"0.67573035",
"0.6734128",
"0.6725386",
"0.6724465"... | 0.6320847 | 83 |
Return a dictionary containing fileobjs with the fileid as key. | def RRlC(YKHO):
return {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zjv5(YKHO) -> dict[str, str]:\n return YKHO._file_dict",
"def sdA_(YKHO, iumf):\n N1p7 = YKHO.connection.cursor()\n A07C = dict()\n for Ux0P in iumf:\n N1p7.execute('SELECT files.id FROM files, paths\\n WHERE paths.id = files.path AND\\n paths.name = ?... | [
"0.69661885",
"0.68360555",
"0.6736927",
"0.6608383",
"0.6564695",
"0.65390337",
"0.6529535",
"0.65246654",
"0.6384178",
"0.63148946",
"0.62933046",
"0.6280017",
"0.62706",
"0.6269893",
"0.6220209",
"0.62139946",
"0.6211303",
"0.620542",
"0.6181943",
"0.6180057",
"0.6176502",... | 0.68727905 | 1 |
Return a dictionary containing speakerobjs with the speakerid as key. | def AwTT(YKHO):
return {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ekjT(YKHO):\n fKYi = g760.defaultdict(list)\n for V4kk in YKHO.utterances.values():\n Gfmo = YKHO.speakers[V4kk.speaker_idx]\n fKYi[Gfmo].append(V4kk)\n return fKYi",
"def ye3v(id):\n return tXNr(id, xp4L())",
"def Fzma(YKHO, dvBM: Union[Speaker, str]) -> tTte:\n return YKHO",
... | [
"0.6478173",
"0.6346961",
"0.62615544",
"0.6090305",
"0.6011057",
"0.59092736",
"0.5618597",
"0.5542358",
"0.552913",
"0.5518361",
"0.54986066",
"0.5475502",
"0.5454412",
"0.54479647",
"0.5445564",
"0.54364455",
"0.5402803",
"0.5365894",
"0.53263426",
"0.5304729",
"0.52991617... | 0.6477581 | 1 |
Creates new feature container with features generated with the given pipeline. If source_feature_name is not given the pipeline needs an extraction stage. | def gbu6(YKHO, tuJZ, znZm, fvQz=None):
iOKQ = YKHO.create_feature_container(znZm)
iOKQ.open()
fZU0 = None
if fvQz is not None:
fZU0 = YKHO.features[fvQz]
fZU0.open()
for xddk in YKHO.utterances.keys():
if fvQz is not None:
hlel = tuJZ.process(fZU0.get(xddk))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HHxn(YKHO, mWFP, pmON=None):\n if mWFP in YKHO.features.keys():\n raise ValueError('Feature container with name {} already exists.'.format(mWFP))\n if pmON is None:\n pmON = 'features_{}'.format(mWFP)\n if Hy7s.path.isabs(pmON):\n ubwl = pmON\n else:\n ubwl = Hy7s.path.j... | [
"0.6164895",
"0.5948306",
"0.5765227",
"0.5679369",
"0.5671924",
"0.5621785",
"0.56170076",
"0.5615066",
"0.55411273",
"0.5539133",
"0.5512348",
"0.5503347",
"0.5500171",
"0.54786325",
"0.5460121",
"0.54513675",
"0.54512215",
"0.54487085",
"0.5422495",
"0.5417613",
"0.5415476... | 0.73520815 | 0 |
Initializes the TransformMixin instance. | def FIMM(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO):\n super(vTGI, YKHO).initialize()\n YKHO._apply_transform()",
"def FIMM(YKHO, SZFh):\n YKHO.transform = SZFh",
"def FIMM(YKHO, Ymkf):\n YKHO.transforms = Ymkf",
"def FIMM(YKHO):\n super(YyWH, YKHO).__init__()\n YKHO._orientation = slpS.create_identity()\n YKHO._translation... | [
"0.7664027",
"0.73545647",
"0.7215427",
"0.70950377",
"0.6859521",
"0.67861664",
"0.66658646",
"0.6652897",
"0.66314703",
"0.6549442",
"0.6498445",
"0.64530987",
"0.6426007",
"0.64250755",
"0.6397864",
"0.6396574",
"0.6364867",
"0.63177216",
"0.63107073",
"0.62818396",
"0.624... | 0.0 | -1 |
Initializes the ZScoreNormalizer instance. The mean and standard deviation are initialized to None. They will be computed when fit method is called. | def FIMM(YKHO):
YKHO.mean = None
YKHO.std = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l9RK(YKHO):\n YKHO._norm_data = qX3H(YKHO.data, axis=1)",
"def FIMM(YKHO, Wz_y, _rWv, mHCL, auqE, *qIxc, Vy_W=True, **B2fa):\n SGPK = {'update_prior': Vy_W}\n SGPK.update(B2fa)\n super(G_ri, YKHO).__init__(**SGPK)\n lCXE = jUMZ(None, None, _rWv)\n lCXE.alpha = auqE\n lCXE.beta = lCXE.get... | [
"0.6955957",
"0.61156803",
"0.60593545",
"0.6027519",
"0.5843964",
"0.58424807",
"0.5809974",
"0.575433",
"0.5753909",
"0.5738062",
"0.5718319",
"0.56999797",
"0.5648379",
"0.5634215",
"0.5618228",
"0.56111",
"0.5564601",
"0.55644286",
"0.55528",
"0.55479115",
"0.55456084",
... | 0.556875 | 16 |
Fits the normalizer to the data. This method computes and stores the mean and standard deviation of the data. | def WgYu(YKHO, nPrm: torch.Tensor):
YKHO.mean = ht2j.mean(nPrm, dim=0)
YKHO.std = ht2j.std(nPrm, dim=0)
YKHO.std = ht2j.where(YKHO.std != 0, YKHO.std, ht2j.ones_like(YKHO.std)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OEry(YKHO):\n YKHO.mean = oyIN.mean(YKHO.x_train)\n YKHO.std = oyIN.std(YKHO.x_train)\n YKHO.max = oyIN.max(YKHO.x_train)\n YKHO.min = oyIN.min(YKHO.x_train)\n YKHO.x_train = (YKHO.x_train - YKHO.mean) / YKHO.std\n YKHO.x_test = (YKHO.x_test - YKHO.mean) / YKHO.std\n YKHO.mean = oyIN.mean(... | [
"0.8042858",
"0.7986515",
"0.7967952",
"0.794649",
"0.77800614",
"0.7579639",
"0.747895",
"0.7474998",
"0.73640007",
"0.73357874",
"0.73349",
"0.72734696",
"0.7201763",
"0.7144322",
"0.71413654",
"0.71378165",
"0.71181965",
"0.70923966",
"0.7086024",
"0.7081583",
"0.7069078",... | 0.7329032 | 11 |
Applies the normalizer to the data. This method transforms the data by subtracting the mean and dividing by the standard deviation. The fit method must be called before this method. | def SZFh(YKHO, nPrm: torch.Tensor):
if YKHO.mean is None or YKHO.std is None:
raise RuntimeError('Must fit normalizer before transforming data.')
return (nPrm - YKHO.mean) / YKHO.std | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO):\n JBMS = YKHO.data.mean()\n NVEz = YKHO.data.std()\n pSfY = oyIN.ones(YKHO.data.shape, dtype=YKHO.data.dtype)\n YKHO.data = YKHO.data - JBMS * pSfY / NVEz\n return YKHO",
"def WuUW(nPrm, JBMS, M1Jx):\n return (nPrm - JBMS) / M1Jx",
"def OEry(YKHO):\n YKHO.mean = oyIN.mean(Y... | [
"0.80164206",
"0.79243124",
"0.78958505",
"0.7798065",
"0.76977825",
"0.7693531",
"0.76560664",
"0.75821555",
"0.7546174",
"0.7486223",
"0.74548703",
"0.7422075",
"0.7399842",
"0.72968614",
"0.72624606",
"0.72149765",
"0.72031975",
"0.71798265",
"0.71608317",
"0.71461576",
"0... | 0.7576477 | 8 |
Applies the inverse normalizer to the data. This method transforms the data by multiplying by the standard deviation and adding the mean. The fit and transform methods must be called before this method. | def hKRt(YKHO, nPrm: torch.Tensor):
if YKHO.mean is None or YKHO.std is None:
raise RuntimeError('Must fit normalizer before inverse transforming data.')
return nPrm * YKHO.std + YKHO.mean | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO):\n JBMS = YKHO.data.mean()\n NVEz = YKHO.data.std()\n pSfY = oyIN.ones(YKHO.data.shape, dtype=YKHO.data.dtype)\n YKHO.data = YKHO.data - JBMS * pSfY / NVEz\n return YKHO",
"def WuUW(nPrm, JBMS, M1Jx):\n return (nPrm - JBMS) / M1Jx",
"def NkkI(YKHO):\n YKHO.data_mean = oyIN.m... | [
"0.76367635",
"0.75949967",
"0.75078213",
"0.7390998",
"0.73356676",
"0.7326278",
"0.72176456",
"0.7209144",
"0.7132127",
"0.712983",
"0.71202964",
"0.70899427",
"0.7082419",
"0.707591",
"0.7066268",
"0.70519567",
"0.7046259",
"0.69536066",
"0.69408184",
"0.69314635",
"0.6915... | 0.82426333 | 0 |
Initializes the MinMaxNormalizer instance. The minimum and maximum values are initialized to None. They will be computed when fit method is called. | def FIMM(YKHO):
YKHO.min = None
YKHO.max = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, yn9T=None, dwfR=None):\n YKHO.minBound = yn9T\n YKHO.maxBound = dwfR\n if yn9T is not None:\n YKHO.minBound = yn9T.clone()\n if dwfR is not None:\n YKHO.maxBound = dwfR.clone()\n if YKHO.minBound is not None and YKHO.maxBound is None:\n YKHO.minBound.scale(-1.0)\n... | [
"0.6922012",
"0.6879292",
"0.6528699",
"0.64354664",
"0.64253247",
"0.6378984",
"0.6362671",
"0.6279505",
"0.6242436",
"0.6158335",
"0.6143481",
"0.6136813",
"0.6091141",
"0.60747284",
"0.60619825",
"0.60602665",
"0.6038952",
"0.60357136",
"0.6011605",
"0.6010645",
"0.5989377... | 0.6408528 | 5 |
Initializes the RobustScaler instance. The median and interquartile range are initialized to None. They will be computed when fit method is called. | def FIMM(YKHO):
YKHO.median = None
YKHO.iqr = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO):\n YKHO._mu.data.uniform_(-YKHO.init_mu_range, YKHO.init_mu_range)\n if YKHO.gauss_type != 'full':\n YKHO.sigma.data.fill_(YKHO.init_sigma)\n else:\n YKHO.sigma.data.uniform_(-YKHO.init_sigma, YKHO.init_sigma)\n YKHO._features.data.fill_(1 / YKHO.in_shape[0])\n if YKHO.b... | [
"0.69567394",
"0.6720453",
"0.63697547",
"0.626706",
"0.6187637",
"0.61681616",
"0.6088824",
"0.6081595",
"0.6029432",
"0.5947031",
"0.59344554",
"0.5930973",
"0.59300786",
"0.5850887",
"0.58273",
"0.5822241",
"0.581182",
"0.5802676",
"0.5788911",
"0.5775278",
"0.575967",
"... | 0.5977089 | 9 |
Applies the inverse scaler to the data. This method transforms the data by multiplying by the interquartile range and adding the median. The fit and transform methods must be called before this method. | def hKRt(YKHO, nPrm: torch.Tensor):
if YKHO.median is None or YKHO.iqr is None:
raise RuntimeError('Must fit scaler before inverse transforming data.')
return nPrm * YKHO.iqr + YKHO.median | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SZFh(YKHO, nPrm: torch.Tensor):\n if YKHO.median is None or YKHO.iqr is None:\n raise RuntimeError('Must fit scaler before transforming data.')\n return (nPrm - YKHO.median) / YKHO.iqr",
"def WgYu(YKHO, nPrm: torch.Tensor):\n YKHO.median = ht2j.median(nPrm, dim=0).values\n YKHO.iqr = ht2j.... | [
"0.7064538",
"0.7009134",
"0.6711381",
"0.6690016",
"0.6546354",
"0.6513252",
"0.62921107",
"0.6287171",
"0.6166068",
"0.6049996",
"0.6039625",
"0.6022564",
"0.601798",
"0.5997472",
"0.599481",
"0.59607416",
"0.5951234",
"0.59473073",
"0.59227014",
"0.5911789",
"0.58898515",
... | 0.7687824 | 0 |
Get the option value. | def BWXx(YKHO):
if type(YKHO._value) is None:
YKHO._value = llJG()
mWFP, S_Bd, npMr, muwo = KSo6.options[YKHO._number]
if S_Bd == KSo6.INTEGER:
if YKHO._value.len > 0:
return YKHO._value.uint
else:
return muwo
return YKHO._value.tobytes() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWXx(YKHO):\n return YKHO.opts['value']",
"def xdKy(YKHO, wEf2):\n BWXx = YKHO._opts.get_option_by_name(wEf2)\n if BWXx:\n return BWXx.get_value()\n else:\n False",
"def VBzb(YKHO, nudR):\n try:\n return KowT(nudR).GetValue(YKHO.parameters)\n except xxyF:\n ret... | [
"0.8118657",
"0.80271626",
"0.7950879",
"0.7945092",
"0.7909725",
"0.77642506",
"0.7726253",
"0.7596014",
"0.74954075",
"0.7470395",
"0.7422633",
"0.73924035",
"0.73894644",
"0.73435855",
"0.7340258",
"0.7337085",
"0.7325801",
"0.7323057",
"0.72369003",
"0.7236529",
"0.723265... | 0.0 | -1 |
Get the option value. | def JF3C(YKHO):
if type(YKHO._value) is None:
YKHO._value = llJG()
return YKHO._value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWXx(YKHO):\n return YKHO.opts['value']",
"def xdKy(YKHO, wEf2):\n BWXx = YKHO._opts.get_option_by_name(wEf2)\n if BWXx:\n return BWXx.get_value()\n else:\n False",
"def VBzb(YKHO, nudR):\n try:\n return KowT(nudR).GetValue(YKHO.parameters)\n except xxyF:\n ret... | [
"0.8118657",
"0.80271626",
"0.7950879",
"0.7945092",
"0.7909725",
"0.77642506",
"0.7726253",
"0.7596014",
"0.74954075",
"0.7470395",
"0.7422633",
"0.73924035",
"0.73894644",
"0.73435855",
"0.7340258",
"0.7337085",
"0.7325801",
"0.7323057",
"0.72369003",
"0.7236529",
"0.723265... | 0.0 | -1 |
Show or hide the colourmap, depending on what view is selected. Also ensures that the right base image is shown (this is necessary when switching views). | def Tf6c(YKHO, G3WP):
if YKHO.view() == 'us':
if G3WP:
for oD_N in YKHO.background_group.buttons():
oD_N.setEnabled(False)
YKHO.toggle_image(YKHO.colormap_applied_btn)
else:
for oD_N in YKHO.background_group.buttons():
oD_N.setEnabl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vNMv(YKHO, tvqc):\n if tvqc:\n YKHO.pyslip.ShowLayer(YKHO.image_view_layer)\n if YKHO.sel_image_view_layer:\n YKHO.pyslip.ShowLayer(YKHO.sel_image_view_layer)\n if YKHO.sel_imagepoint_view_layer:\n YKHO.pyslip.ShowLayer(YKHO.sel_imagepoint_view_layer)\n else:\n ... | [
"0.64687943",
"0.62428075",
"0.599634",
"0.59290737",
"0.5921697",
"0.5865029",
"0.5854961",
"0.58137316",
"0.57770485",
"0.56480104",
"0.56181663",
"0.5585415",
"0.55777043",
"0.5576365",
"0.5575262",
"0.5558723",
"0.55485946",
"0.5543734",
"0.54989076",
"0.54852194",
"0.548... | 0.69382906 | 0 |
Load a CT model from a file. | def KzV9(YKHO):
YKHO.ct_node = ZZSa.load_data_from_file('CT')
if YKHO.ct_node:
YKHO.status_text.append('Loaded CT from file') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(Ux0P):\n pass",
"def J2u4(YKHO, pmON):\n YKHO._model = uyMl(pmON)\n print('Loaded model from file.')",
"def uyMl(Ux0P):\n raise NotImplementedError()",
"def tyeH(YKHO, VqRE):\n YKHO.model = tyeH(VqRE)",
"def uyMl(Ux0P: str):\n return tyeH(Ux0P)",
"def tyeH(YKHO, SkYi: Path) -> ... | [
"0.8163992",
"0.7939494",
"0.79340136",
"0.7873258",
"0.7871114",
"0.7866422",
"0.78398734",
"0.77069205",
"0.7704601",
"0.7704601",
"0.7704601",
"0.76714003",
"0.76291543",
"0.75057083",
"0.750061",
"0.74561346",
"0.7452954",
"0.7447043",
"0.7382331",
"0.7382331",
"0.7358494... | 0.7248792 | 32 |
Sets the last_updated_date of this NodeInfo. | def BspL(YKHO, BspL):
YKHO._last_updated_date = BspL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BspL(YKHO, BspL):\n YKHO._last_updated_date = BspL",
"def mn17(YKHO, mn17):\n YKHO._last_updated = mn17",
"def mn17(YKHO, mn17):\n YKHO._last_updated = mn17",
"def mn17(YKHO, mn17):\n YKHO._last_updated = mn17",
"def mn17(YKHO, mn17):\n YKHO._last_updated = mn17",
"def mn17(YKHO, mn17)... | [
"0.78602964",
"0.73278034",
"0.73278034",
"0.73278034",
"0.73278034",
"0.73278034",
"0.7217941",
"0.7217941",
"0.7217941",
"0.7217941",
"0.7217941",
"0.7098146",
"0.7098146",
"0.7098146",
"0.7098146",
"0.7076459",
"0.70471585",
"0.6987437",
"0.6987437",
"0.6961382",
"0.670842... | 0.79053736 | 0 |
Sets the api_version of this NodeInfo. | def clva(YKHO, clva):
YKHO._api_version = clva | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def clva(YKHO, BWXx: str):\n YKHO._properties['apiVersion'] = BWXx",
"def cBgm(DpZH):\n if not isinstance(DpZH, jUrF) and DpZH is not None:\n raise Bx6I.ConfigurationError('Expected string value for API version.')\n GPtr.api_version = DpZH",
"def clva(YKHO, clva: str):\n if clva is None:\n ... | [
"0.7439564",
"0.71639997",
"0.7126023",
"0.7126023",
"0.699644",
"0.694227",
"0.6778875",
"0.6724852",
"0.6719741",
"0.66620815",
"0.65640473",
"0.6536309",
"0.6496771",
"0.64871836",
"0.64832246",
"0.6453884",
"0.63934445",
"0.6306522",
"0.62810653",
"0.62810653",
"0.6273484... | 0.78599715 | 0 |
Sets the common_version of this NodeInfo. | def DVlp(YKHO, DVlp):
YKHO._common_version = DVlp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lXHd(YKHO, lXHd):\n YKHO._hcl_os_version = lXHd",
"def _0kA(YKHO, *qIxc):\n return PZpo.PTable_SetCommonNodeAttrs(YKHO, *qIxc)",
"def _0kA(YKHO, *qIxc):\n return PZpo.TTable_SetCommonNodeAttrs(YKHO, *qIxc)",
"def BJsk(YKHO, BJsk: CommonConfig):\n YKHO._common = BJsk",
"def fvEA(YKHO):\n ... | [
"0.60264206",
"0.5962018",
"0.5955696",
"0.59262264",
"0.59160435",
"0.5912639",
"0.5699612",
"0.5688735",
"0.56804013",
"0.5674969",
"0.567002",
"0.56617236",
"0.56465155",
"0.56260955",
"0.56253964",
"0.5554625",
"0.55513525",
"0.5525421",
"0.5492292",
"0.5492292",
"0.54922... | 0.81135154 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.864179",
"0.85105866",
"0.7853924",
"0.77452",
"0.7712474",
"0.76976854",
"0.76601666",
"0.7638181",
"0.7621996",
"0.76074743",
"0.76074743",
"0.76074743",
"0.7607432",
"0.7599404",
"0.75858897",
"0.7582702",
"0.75715727",
"0.75683635",
"0.7539386",
"0.7539386",
"0.7528709... | 0.0 | -1 |
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 return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
returns the version of the client for this service | def tkZE(YKHO):
return YKHO.client_version | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WKwY(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_version')",
"def WKwY(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_version')",
"def WKwY(YKHO):\n return BtDU",
"def WKwY(YKHO):\n return YKHO.__class__.__name__",
"def WKwY(YKHO):\n if YKHO._client_version_present:\n return YKHO... | [
"0.85724515",
"0.85724515",
"0.85312915",
"0.83064926",
"0.81851494",
"0.79603165",
"0.7862793",
"0.77258337",
"0.7624966",
"0.759191",
"0.7588142",
"0.75840056",
"0.75475305",
"0.7460215",
"0.74453294",
"0.74153453",
"0.73828167",
"0.7378316",
"0.73689234",
"0.7294803",
"0.7... | 0.879871 | 0 |
returns a list of all service types in this catalog. | def S8gO(YKHO):
return YKHO.endpoints.keys() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E4fl(YKHO):\n return ['/'.join([KCHu.name, KCHu.type]) for KCHu in YKHO.services]",
"def E4fl(YKHO):\n return ['.'.join([KCHu.serviceName, KCHu.type]) for KCHu in YKHO.services]",
"def SnBA(YKHO):\n return YKHO.request(YKHO._servicesURL + '/types')",
"def kdki(YKHO) -> dict:\n if 'service_typ... | [
"0.7991755",
"0.7704554",
"0.747359",
"0.7458163",
"0.74233484",
"0.74156564",
"0.7369552",
"0.735736",
"0.73429966",
"0.72379637",
"0.72118235",
"0.7196558",
"0.7160082",
"0.7154832",
"0.7134092",
"0.7089038",
"0.706919",
"0.7044996",
"0.7005683",
"0.70039314",
"0.69682646",... | 0.73189014 | 9 |
Compute the Discrete Fourier Transform of the 1D array x | def NbaI(WKvO):
ywwl = len(WKvO)
exwG = oyIN.arange(ywwl)
G1Hx = exwG.reshape((ywwl, 1))
E3D9 = oyIN.exp(-2j * oyIN.pi * G1Hx * exwG / ywwl)
return oyIN.dot(E3D9, WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kzPM(WKvO):\n exwG = len(WKvO)\n if exwG == 1:\n return WKvO\n mKKX = WKvO[0::2]\n XGDG = WKvO[1::2]\n si3g = oyIN.fft.fft(mKKX)\n skBL = oyIN.fft.fft(XGDG)\n LVAh = oyIN.zeros(exwG, dtype=complex)\n for G1Hx in range(exwG // 2 - 1):\n yzQ0 = oyIN.exp(-2j * oyIN.pi * G1Hx ... | [
"0.7512088",
"0.7422932",
"0.7361866",
"0.72992593",
"0.72261053",
"0.72261053",
"0.71804136",
"0.71590596",
"0.70361793",
"0.70312023",
"0.7011367",
"0.6997156",
"0.69218355",
"0.6916847",
"0.68882865",
"0.6884035",
"0.68744177",
"0.6869443",
"0.6826461",
"0.6800782",
"0.678... | 0.7379561 | 2 |
Starts the Rasa application. | def nPOL(qIxc: argparse.Namespace, wnQ_: 'AvailableEndpoints', WRCE: Optional[Text]=None):
from rasa.core.run import serve_application
G9jH.basicConfig(level=qIxc.loglevel)
S2Ir.configure_colored_logging(qIxc.loglevel)
G9jH.getLogger('apscheduler').setLevel(G9jH.WARNING)
t9ux = af7i(qIxc.credentials... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXC1():\n P4t4.run()",
"def iXC1():\n P4t4.run()",
"def xymA(qIxc: argparse.Namespace, Bdoc: Text):\n from rasa.core.utils import AvailableEndpoints\n qIxc.endpoints = UpGC(qIxc.endpoints, 'endpoints', Hfic, True)\n wnQ_ = AvailableEndpoints.read_endpoints(qIxc.endpoints)\n WRCE = 'http:/... | [
"0.646288",
"0.646288",
"0.6249427",
"0.6220582",
"0.61882967",
"0.61882967",
"0.6177828",
"0.6173596",
"0.6161089",
"0.6154518",
"0.6148615",
"0.61063457",
"0.6074995",
"0.60632634",
"0.6059065",
"0.60301197",
"0.5984346",
"0.5944864",
"0.58582073",
"0.58538043",
"0.58424884... | 0.6467268 | 0 |
Do a right rotation on given parent node. Example of right rotation (Height of left 3 and height of right 1) 5 / \ / \ (parent_node) 4 7 / 3 / 2 End result 5 / \ / \ (return_node) 3 7 / \ 2 4 | def Cfpj(xGoe):
if not xGoe:
raise Exception('Invalid parent node')
nkt6 = xGoe.left
xGoe.left = nkt6.right
nkt6.right = xGoe
return nkt6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qUN0(xGoe):\n xGoe = fg9Z._right_rotation(xGoe)\n return fg9Z._left_rotation(xGoe)",
"def Yvjh(xGoe):\n xGoe = fg9Z._left_rotation(xGoe)\n return fg9Z._right_rotation(xGoe)",
"def d1sg(YKHO, Q6kx):\n bmxC = Q6kx.left.right\n if Q6kx.parent is not None:\n YKHO.replace_child(Q6kx.par... | [
"0.8008",
"0.79710126",
"0.78722584",
"0.7847207",
"0.7800495",
"0.7732482",
"0.7634977",
"0.7499236",
"0.7478776",
"0.7465029",
"0.745311",
"0.7425352",
"0.7395946",
"0.7353614",
"0.73534787",
"0.734562",
"0.72956175",
"0.7257405",
"0.7244605",
"0.72349006",
"0.7230051",
"... | 0.858216 | 0 |
Do a left rotation on given parent node. Example of left rotation (Height of left 3 and height of right 1) 5 / \ / \ (parent_node) 2 7 \ 3 \ 4 End result 5 / \ / \ (return node) 3 7 / \ 2 4 | def um_p(xGoe):
if not xGoe:
raise Exception('Invalid parent node')
DzdB = xGoe.right
xGoe.right = DzdB.left
DzdB.left = xGoe
return DzdB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZOQ5(YKHO, Q6kx):\n QIY6 = Q6kx.right.left\n if Q6kx.parent is not None:\n YKHO.replace_child(Q6kx.parent, Q6kx, Q6kx.right)\n else:\n YKHO.root = Q6kx.right\n YKHO.root.parent = None\n YKHO.set_child(Q6kx.right, Q6kx, True)\n YKHO.set_child(Q6kx, QIY6, False)\n return Q6... | [
"0.82303584",
"0.8167164",
"0.8107651",
"0.810416",
"0.8017007",
"0.8003824",
"0.7978331",
"0.7864537",
"0.7830857",
"0.778448",
"0.7783222",
"0.77591336",
"0.7751124",
"0.77335405",
"0.7716822",
"0.7657403",
"0.76490307",
"0.76447517",
"0.76334697",
"0.7618823",
"0.76116985"... | 0.8780208 | 0 |
Do a left right rotation on given parent node. Example of left right rotation (Height of left 3 and height of right 1) 5 / \ / \ (parent_node) 2 7 \ 4 / 3 After First rotation 5 / \ / \ (return node) 2 7 \ 3 \ 4 End result 5 / \ / \ (return node) 3 7 / \ 2 4 | def Yvjh(xGoe):
xGoe = fg9Z._left_rotation(xGoe)
return fg9Z._right_rotation(xGoe) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qUN0(xGoe):\n xGoe = fg9Z._right_rotation(xGoe)\n return fg9Z._left_rotation(xGoe)",
"def um_p(xGoe):\n if not xGoe:\n raise Exception('Invalid parent node')\n DzdB = xGoe.right\n xGoe.right = DzdB.left\n DzdB.left = xGoe\n return DzdB",
"def Cfpj(xGoe):\n if not xGoe:\n ... | [
"0.86397123",
"0.8552982",
"0.8511977",
"0.7912269",
"0.78518385",
"0.7761098",
"0.77509934",
"0.77264285",
"0.7688995",
"0.7593641",
"0.75870353",
"0.75861067",
"0.7570939",
"0.75702745",
"0.7499302",
"0.7479839",
"0.7464805",
"0.7413276",
"0.7409315",
"0.74055934",
"0.73904... | 0.8619141 | 1 |
Do a left right rotation on given parent node. Example of left right rotation (Height of left 3 and height of right 1) 5 / \ / \ (parent_node) 4 7 / 2 \ 3 After First rotation 5 / \ / \ (return node) 4 7 / 3 / 2 End result 5 / \ / \ (return node) 3 7 / \ 2 4 | def qUN0(xGoe):
xGoe = fg9Z._right_rotation(xGoe)
return fg9Z._left_rotation(xGoe) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yvjh(xGoe):\n xGoe = fg9Z._left_rotation(xGoe)\n return fg9Z._right_rotation(xGoe)",
"def um_p(xGoe):\n if not xGoe:\n raise Exception('Invalid parent node')\n DzdB = xGoe.right\n xGoe.right = DzdB.left\n DzdB.left = xGoe\n return DzdB",
"def Cfpj(xGoe):\n if not xGoe:\n ... | [
"0.86205417",
"0.85592127",
"0.8509005",
"0.7922763",
"0.78347236",
"0.7756409",
"0.77353245",
"0.771429",
"0.76889837",
"0.75923604",
"0.75724876",
"0.7570531",
"0.7566621",
"0.75442034",
"0.74841017",
"0.74780333",
"0.7465396",
"0.74232244",
"0.7409534",
"0.7407715",
"0.737... | 0.8642138 | 0 |
Get balance factor of parent node. | def piUh(xGoe):
dM2d = fg9Z._heightBst(xGoe.left)
qg8a = fg9Z._heightBst(xGoe.right)
return dM2d - qg8a | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rCkj(YKHO, Q6kx):\n return YKHO.AVLTreeGetBalance(Q6kx)",
"def BxwR(YKHO, Q6kx: Node) -> int:\n if not Q6kx:\n return 0\n uu_g, EV81 = (0, 0)\n if Q6kx.left:\n uu_g = Q6kx.left.height\n if Q6kx.right:\n EV81 = Q6kx.right.height\n return uu_g - EV81",
"def rCkj(YKHO, Q... | [
"0.6824254",
"0.67730886",
"0.67709804",
"0.67622685",
"0.67489964",
"0.67443484",
"0.6701294",
"0.6685263",
"0.66453457",
"0.6637873",
"0.6637873",
"0.6637873",
"0.6624677",
"0.6616677",
"0.6598706",
"0.6567624",
"0.6556822",
"0.65495646",
"0.65495646",
"0.6537045",
"0.64999... | 0.8637932 | 0 |
Get the height of this binary tree. | def bAiv(YKHO):
return fg9Z._heightBst(YKHO.root) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v2(YKHO):\n if YKHO.root is None:\n return -1\n return YKHO.root.height",
"def H2v2(YKHO: 'BST') -> int:\n return x8h4(YKHO._root)",
"def H2v2(YKHO):\n\n def Uk87(tlxW):\n \"\"\"\n Helper function\n :param top: BSTNode\n :return: int\n ... | [
"0.8722309",
"0.8653112",
"0.8431226",
"0.8399511",
"0.838573",
"0.8372949",
"0.836239",
"0.830907",
"0.82796746",
"0.82680684",
"0.8252952",
"0.8208811",
"0.8170158",
"0.8167188",
"0.8163727",
"0.81105435",
"0.79707414",
"0.79309046",
"0.78181714",
"0.78137237",
"0.7800279",... | 0.87863076 | 0 |
Get the height of the binary tree. | def kqUi(hm3W):
if not hm3W:
return 0
H2v2 = max(fg9Z._heightBst(hm3W.left), fg9Z._heightBst(hm3W.right))
H2v2 = H2v2 + 1
return H2v2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bAiv(YKHO):\n return fg9Z._heightBst(YKHO.root)",
"def H2v2(YKHO: 'BST') -> int:\n return x8h4(YKHO._root)",
"def H2v2(YKHO):\n if YKHO.root is None:\n return -1\n return YKHO.root.height",
"def H2v2(YKHO):\n\n def Uk87(tlxW):\n \"\"\"\n Helper function\n ... | [
"0.88114476",
"0.8719764",
"0.8684126",
"0.86209303",
"0.86166817",
"0.8510226",
"0.8475475",
"0.8324437",
"0.82762486",
"0.8218063",
"0.82077837",
"0.8200151",
"0.8142158",
"0.8137968",
"0.80741185",
"0.80588377",
"0.8021375",
"0.80197364",
"0.80012923",
"0.79842186",
"0.797... | 0.72928977 | 83 |
Get Project's Merge Request | def CV8B(Fd7m, ekCf, gTi_):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rFSF(YKHO, Rp06):\n geh0 = YKHO.__get(url=f'merge_requests/{Rp06}')\n GtGV = geh0.json()\n if geh0.ok:\n return GtGV\n else:\n rhwM = GtGV.get('message', geh0.reason)\n G9jH.error(f'Unable to get merge request: {rhwM}')\n raise ctFK(rhwM)",
"def Vho_(QePW):\n return... | [
"0.692207",
"0.62567574",
"0.60026646",
"0.59930843",
"0.595966",
"0.5884697",
"0.58555526",
"0.5847854",
"0.5829838",
"0.5778522",
"0.57335514",
"0.5703057",
"0.5697968",
"0.5697968",
"0.56780934",
"0.5674323",
"0.56611717",
"0.5657445",
"0.5644354",
"0.5581108",
"0.55757207... | 0.62500346 | 2 |
Given an array of N binary values (e.g. jet IDs), return the bit value at bit_index in [0, N1]. | def aQvk(qw7D, gEXz):
return (qw7D & 2 ** gEXz) >> 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SMHM(YKHO, d6pt):\n P8oC = int(d6pt // 8)\n DkWr = int(d6pt % 8)\n return (YKHO.bytes[P8oC] & 1 << DkWr) >> DkWr",
"def SMHM(exwG, Fg_i):\n return (1 << Fg_i & exwG) >> Fg_i",
"def VYA4(aPd6, exwG):\n KCHu = 0\n for YRbF in aPd6:\n KCHu |= 1 << YRbF\n return KCHu",
"def faNJ(Y... | [
"0.7206011",
"0.7098872",
"0.6997569",
"0.69673127",
"0.6962849",
"0.6955654",
"0.690262",
"0.682143",
"0.68201697",
"0.67900294",
"0.67496896",
"0.6722119",
"0.67134374",
"0.6686804",
"0.663011",
"0.65648633",
"0.6561384",
"0.65527654",
"0.65408885",
"0.65150493",
"0.6497542... | 0.82446814 | 0 |
Creats a dataframe from an SQL server. If there is a database error it returns None. | def P1Oc(Pe9W, HUgJ, MOPg=None):
XWka = 'Driver={SQL Server};'
UCUY = 'Trusted_Connection=yes'
Sk1l = XWka + HUgJ + UCUY
eOzK = zvWx(Sk1l)
try:
nPrm = rLdf.read_sql_query(Pe9W, eOzK)
except rLdf.io.sql.DatabaseError:
print('SQL DataBase Error')
print(Pe9W)
print('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yEvQ(lZxL):\n jQ3Z = rLdf.read_sql(lZxL, con=oVdd)\n return jQ3Z",
"def bhfD(xDcj):\n try:\n hAVj = OLKY()\n f4IJ = GqeY(xDcj, hAVj)\n except ValueError as e:\n print(tTpl)\n except UnboundLocalError as e:\n print(tTpl)\n finally:\n ngVb(hAVj)\n ret... | [
"0.7512733",
"0.7456448",
"0.7407908",
"0.7407237",
"0.73659086",
"0.73242",
"0.71657145",
"0.70435685",
"0.7027055",
"0.6933038",
"0.69243133",
"0.68981665",
"0.68909514",
"0.68895334",
"0.68889415",
"0.6874972",
"0.68597466",
"0.68273294",
"0.68077517",
"0.68077517",
"0.678... | 0.71692497 | 6 |