query
stringlengths
10
2k
document
stringlengths
20
51.2k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
r""" __init__(TStrStrPrVHI self) > TStrStrPrVHI __init__(TStrStrPrVHI self, TStrStrPrVHI _HashKeyDatI) > TStrStrPrVHI
def __init__(self, *args): _snap.TStrStrPrVHI_swiginit(self, _snap.new_TStrStrPrVHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TStrStrKdVHI_swiginit(self, _snap.new_TStrStrKdVHI(*args))", "def __init__(self, *args):\n _snap.TStrStrIntKdVHI_swiginit(self, _snap.new_TStrStrIntKdVHI(*args))", "def __init__(self, *args):\n _snap.TStrVStrHI_swiginit(self, _snap.new_TStrVStrHI(*args))"...
[ "0.8030644", "0.7957048", "0.7952727", "0.7943807", "0.7923734", "0.7913507", "0.7843562", "0.78236574", "0.7796169", "0.7785036", "0.77644295", "0.7762313", "0.7757731", "0.7668875", "0.7650696", "0.76446444", "0.75780594", "0.7528972", "0.752759", "0.74909836", "0.74212116"...
0.79448783
3
r""" __init__(TStrStrKdVHI self) > TStrStrKdVHI __init__(TStrStrKdVHI self, TStrStrKdVHI _HashKeyDatI) > TStrStrKdVHI
def __init__(self, *args): _snap.TStrStrKdVHI_swiginit(self, _snap.new_TStrStrKdVHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TStrStrIntKdVHI_swiginit(self, _snap.new_TStrStrIntKdVHI(*args))", "def __init__(self, *args):\n _snap.TStrVStrHI_swiginit(self, _snap.new_TStrVStrHI(*args))", "def __init__(self, *args):\n _snap.TStrStrVHI_swiginit(self, _snap.new_TStrStrVHI(*args))", ...
[ "0.80214447", "0.76205534", "0.7611224", "0.75761455", "0.7489195", "0.7483892", "0.74655765", "0.74414855", "0.74360543", "0.7431206", "0.7429692", "0.7358148", "0.7342606", "0.7333421", "0.730779", "0.73040277", "0.72964907", "0.72583324", "0.7217627", "0.71902865", "0.7141...
0.80487883
0
r""" __init__(TStrIntFltPrHI self) > TStrIntFltPrHI __init__(TStrIntFltPrHI self, TStrIntFltPrHI _HashKeyDatI) > TStrIntFltPrHI
def __init__(self, *args): _snap.TStrIntFltPrHI_swiginit(self, _snap.new_TStrIntFltPrHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TIntPrStrHI_swiginit(self, _snap.new_TIntPrStrHI(*args))", "def __init__(self, *args):\n _snap.TStrIntHI_swiginit(self, _snap.new_TStrIntHI(*args))", "def __init__(self, *args):\n _snap.TStrStrIntKdVHI_swiginit(self, _snap.new_TStrStrIntKdVHI(*args))", ...
[ "0.76849127", "0.7630371", "0.7629008", "0.760937", "0.75934166", "0.7581862", "0.7574681", "0.7564687", "0.75524336", "0.7534482", "0.7485185", "0.7454867", "0.7436421", "0.74320704", "0.7421813", "0.7364074", "0.73320144", "0.73265284", "0.7308016", "0.7268338", "0.7265531"...
0.7812986
0
r""" __init__(TStrStrIntPrVHI self) > TStrStrIntPrVHI __init__(TStrStrIntPrVHI self, TStrStrIntPrVHI _HashKeyDatI) > TStrStrIntPrVHI
def __init__(self, *args): _snap.TStrStrIntPrVHI_swiginit(self, _snap.new_TStrStrIntPrVHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TStrStrIntKdVHI_swiginit(self, _snap.new_TStrStrIntKdVHI(*args))", "def __init__(self, *args):\n _snap.TIntStrPrVHI_swiginit(self, _snap.new_TIntStrPrVHI(*args))", "def __init__(self, *args):\n _snap.TIntPrStrVHI_swiginit(self, _snap.new_TIntPrStrVHI(*arg...
[ "0.81125915", "0.80619496", "0.8019468", "0.7929481", "0.7917015", "0.7865669", "0.7844442", "0.78419644", "0.7821511", "0.78191894", "0.7781305", "0.7766976", "0.77606475", "0.7743341", "0.77421325", "0.7742063", "0.77410907", "0.7739868", "0.7702886", "0.7700144", "0.767795...
0.79950124
3
r""" __init__(TStrStrIntKdVHI self) > TStrStrIntKdVHI __init__(TStrStrIntKdVHI self, TStrStrIntKdVHI _HashKeyDatI) > TStrStrIntKdVHI
def __init__(self, *args): _snap.TStrStrIntKdVHI_swiginit(self, _snap.new_TStrStrIntKdVHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TStrStrKdVHI_swiginit(self, _snap.new_TStrStrKdVHI(*args))", "def __init__(self, *args):\n _snap.TIntStrVHI_swiginit(self, _snap.new_TIntStrVHI(*args))", "def __init__(self, *args):\n _snap.TIntStrPrVHI_swiginit(self, _snap.new_TIntStrPrVHI(*args))", "d...
[ "0.79299426", "0.7758005", "0.7658887", "0.76283985", "0.7622436", "0.75978553", "0.7582407", "0.7577254", "0.75349015", "0.7509013", "0.750811", "0.74838305", "0.74838173", "0.74773526", "0.74148077", "0.74079067", "0.73737144", "0.7339028", "0.7336017", "0.73207235", "0.731...
0.81594294
0
r""" __init__(TStrPrBoolHI self) > TStrPrBoolHI __init__(TStrPrBoolHI self, TStrPrBoolHI _HashKeyDatI) > TStrPrBoolHI
def __init__(self, *args): _snap.TStrPrBoolHI_swiginit(self, _snap.new_TStrPrBoolHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TStrBoolHI_swiginit(self, _snap.new_TStrBoolHI(*args))", "def __init__(self, *args):\n _snap.TStrPrBoolH_swiginit(self, _snap.new_TStrPrBoolH(*args))", "def __init__(self, *args):\n _snap.TStrBoolH_swiginit(self, _snap.new_TStrBoolH(*args))", "def __ini...
[ "0.8134469", "0.7718804", "0.760365", "0.72742283", "0.71674484", "0.6654848", "0.6631336", "0.66193366", "0.65910894", "0.6584356", "0.6582417", "0.6552252", "0.65343696", "0.65199596", "0.651297", "0.65104735", "0.6506516", "0.64778644", "0.64689595", "0.6460218", "0.643351...
0.81671697
0
r""" __init__(TStrPrIntHI self) > TStrPrIntHI __init__(TStrPrIntHI self, TStrPrIntHI _HashKeyDatI) > TStrPrIntHI
def __init__(self, *args): _snap.TStrPrIntHI_swiginit(self, _snap.new_TStrPrIntHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TIntPrStrHI_swiginit(self, _snap.new_TIntPrStrHI(*args))", "def __init__(self, *args):\n _snap.TIntStrPrIntHI_swiginit(self, _snap.new_TIntStrPrIntHI(*args))", "def __init__(self, *args):\n _snap.TStrIntPrHI_swiginit(self, _snap.new_TStrIntPrHI(*args))", ...
[ "0.80124223", "0.79980206", "0.79591966", "0.7945487", "0.7883512", "0.7830256", "0.7815269", "0.779241", "0.7779661", "0.7768355", "0.77499026", "0.7704253", "0.7701972", "0.7633651", "0.7600798", "0.7523821", "0.74604833", "0.74367964", "0.74312013", "0.7394247", "0.7389720...
0.79686934
2
r""" __init__(TStrPrFltHI self) > TStrPrFltHI __init__(TStrPrFltHI self, TStrPrFltHI _HashKeyDatI) > TStrPrFltHI
def __init__(self, *args): _snap.TStrPrFltHI_swiginit(self, _snap.new_TStrPrFltHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TStrFltHI_swiginit(self, _snap.new_TStrFltHI(*args))", "def __init__(self, *args):\n _snap.TStrPrStrHI_swiginit(self, _snap.new_TStrPrStrHI(*args))", "def __init__(self, *args):\n _snap.TStrIntFltPrHI_swiginit(self, _snap.new_TStrIntFltPrHI(*args))", "d...
[ "0.7568151", "0.7484379", "0.7452953", "0.74481875", "0.7418277", "0.74103713", "0.7389269", "0.7388705", "0.73403597", "0.7300247", "0.729123", "0.7287832", "0.72438943", "0.7239785", "0.72285235", "0.7191696", "0.7178531", "0.71487755", "0.71422386", "0.7123251", "0.7111716...
0.7620438
0
r""" __init__(TStrPrStrHI self) > TStrPrStrHI __init__(TStrPrStrHI self, TStrPrStrHI _HashKeyDatI) > TStrPrStrHI
def __init__(self, *args): _snap.TStrPrStrHI_swiginit(self, _snap.new_TStrPrStrHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TStrStrHI_swiginit(self, _snap.new_TStrStrHI(*args))", "def __init__(self, *args):\n _snap.TStrStrPrHI_swiginit(self, _snap.new_TStrStrPrHI(*args))", "def __init__(self, *args):\n _snap.TStrStrKdVHI_swiginit(self, _snap.new_TStrStrKdVHI(*args))", "def _...
[ "0.79172325", "0.7912444", "0.779883", "0.7778539", "0.77297413", "0.7717638", "0.7710653", "0.76804227", "0.76740175", "0.7631058", "0.7623115", "0.76037955", "0.75326", "0.7517426", "0.74856704", "0.7479615", "0.7479073", "0.7464764", "0.74510604", "0.7420546", "0.741972", ...
0.79571253
0
r""" __init__(TStrPrStrVHI self) > TStrPrStrVHI __init__(TStrPrStrVHI self, TStrPrStrVHI _HashKeyDatI) > TStrPrStrVHI
def __init__(self, *args): _snap.TStrPrStrVHI_swiginit(self, _snap.new_TStrPrStrVHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TStrStrKdVHI_swiginit(self, _snap.new_TStrStrKdVHI(*args))", "def __init__(self, *args):\n _snap.TStrVStrHI_swiginit(self, _snap.new_TStrVStrHI(*args))", "def __init__(self, *args):\n _snap.TStrStrIntKdVHI_swiginit(self, _snap.new_TStrStrIntKdVHI(*args))"...
[ "0.8049228", "0.7980162", "0.79740757", "0.7954149", "0.7946762", "0.7931561", "0.7837939", "0.77935755", "0.7784414", "0.7778697", "0.77640265", "0.7752651", "0.7737569", "0.77028733", "0.7688203", "0.767687", "0.75748765", "0.7520251", "0.75137305", "0.7501744", "0.74524504...
0.7938998
5
r""" __init__(TStrTrIntHI self) > TStrTrIntHI __init__(TStrTrIntHI self, TStrTrIntHI _HashKeyDatI) > TStrTrIntHI
def __init__(self, *args): _snap.TStrTrIntHI_swiginit(self, _snap.new_TStrTrIntHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TStrIntHI_swiginit(self, _snap.new_TStrIntHI(*args))", "def __init__(self, *args):\n _snap.TIntPrStrHI_swiginit(self, _snap.new_TIntPrStrHI(*args))", "def __init__(self, *args):\n _snap.TIntStrHI_swiginit(self, _snap.new_TIntStrHI(*args))", "def __init_...
[ "0.80091655", "0.7883674", "0.7861811", "0.78473467", "0.78201586", "0.7814945", "0.7811636", "0.77859735", "0.77712715", "0.77291954", "0.7720474", "0.77173275", "0.7659238", "0.76320976", "0.7623965", "0.75822884", "0.75514823", "0.75341904", "0.7498216", "0.7481685", "0.74...
0.81281286
0
r""" __init__(TStrIntPrIntHI self) > TStrIntPrIntHI __init__(TStrIntPrIntHI self, TStrIntPrIntHI _HashKeyDatI) > TStrIntPrIntHI
def __init__(self, *args): _snap.TStrIntPrIntHI_swiginit(self, _snap.new_TStrIntPrIntHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TIntStrPrIntHI_swiginit(self, _snap.new_TIntStrPrIntHI(*args))", "def __init__(self, *args):\n _snap.TIntPrStrHI_swiginit(self, _snap.new_TIntPrStrHI(*args))", "def __init__(self, *args):\n _snap.TStrIntPrHI_swiginit(self, _snap.new_TStrIntPrHI(*args))", ...
[ "0.80378306", "0.7990175", "0.79511213", "0.7925523", "0.79041433", "0.78150964", "0.77816916", "0.7780069", "0.77752846", "0.7717255", "0.7711002", "0.76844203", "0.76725423", "0.7646673", "0.7610292", "0.743186", "0.7416549", "0.74122703", "0.7406101", "0.74003285", "0.7395...
0.7961358
2
r""" __init__(TStrVHI self) > TStrVHI __init__(TStrVHI self, TStrVHI _HashKeyDatI) > TStrVHI
def __init__(self, *args): _snap.TStrVHI_swiginit(self, _snap.new_TStrVHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TStrStrKdVHI_swiginit(self, _snap.new_TStrStrKdVHI(*args))", "def __init__(self, *args):\n _snap.TStrVStrVHI_swiginit(self, _snap.new_TStrVStrVHI(*args))", "def __init__(self, *args):\n _snap.TStrVStrHI_swiginit(self, _snap.new_TStrVStrHI(*args))", "def...
[ "0.8142582", "0.81149113", "0.8084571", "0.80756027", "0.8019204", "0.7969854", "0.7868447", "0.7854213", "0.781935", "0.78149444", "0.7804084", "0.7756059", "0.7721969", "0.767928", "0.7675889", "0.76189", "0.7614364", "0.7593804", "0.75366586", "0.74676996", "0.7464405", ...
0.7996369
5
r""" __init__(TStrVIntVHI self) > TStrVIntVHI __init__(TStrVIntVHI self, TStrVIntVHI _HashKeyDatI) > TStrVIntVHI
def __init__(self, *args): _snap.TStrVIntVHI_swiginit(self, _snap.new_TStrVIntVHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TStrStrIntKdVHI_swiginit(self, _snap.new_TStrStrIntKdVHI(*args))", "def __init__(self, *args):\n _snap.TIntStrVHI_swiginit(self, _snap.new_TIntStrVHI(*args))", "def __init__(self, *args):\n _snap.TStrIntVHI_swiginit(self, _snap.new_TStrIntVHI(*args))", ...
[ "0.8087238", "0.7996538", "0.7925544", "0.78995794", "0.78820616", "0.78723216", "0.784447", "0.7809902", "0.7781309", "0.77213806", "0.77160805", "0.7714646", "0.769051", "0.7627641", "0.7617672", "0.75468254", "0.7526145", "0.75011516", "0.74854624", "0.74054575", "0.736438...
0.8087544
0
r""" __init__(TStrVStrHI self) > TStrVStrHI __init__(TStrVStrHI self, TStrVStrHI _HashKeyDatI) > TStrVStrHI
def __init__(self, *args): _snap.TStrVStrHI_swiginit(self, _snap.new_TStrVStrHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TStrStrKdVHI_swiginit(self, _snap.new_TStrStrKdVHI(*args))", "def __init__(self, *args):\n _snap.TStrVStrVHI_swiginit(self, _snap.new_TStrVStrVHI(*args))", "def __init__(self, *args):\n _snap.TStrStrVHI_swiginit(self, _snap.new_TStrStrVHI(*args))", "def...
[ "0.8157752", "0.810357", "0.809617", "0.8093827", "0.7937229", "0.79061145", "0.78866136", "0.78766775", "0.78574145", "0.78482246", "0.78374904", "0.778476", "0.77288973", "0.7722126", "0.77201086", "0.7689047", "0.7664119", "0.7663867", "0.75605655", "0.75373113", "0.752619...
0.8131991
1
r""" __init__(TStrVStrVHI self) > TStrVStrVHI __init__(TStrVStrVHI self, TStrVStrVHI _HashKeyDatI) > TStrVStrVHI
def __init__(self, *args): _snap.TStrVStrVHI_swiginit(self, _snap.new_TStrVStrVHI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TStrStrKdVHI_swiginit(self, _snap.new_TStrStrKdVHI(*args))", "def __init__(self, *args):\n _snap.TStrVStrHI_swiginit(self, _snap.new_TStrVStrHI(*args))", "def __init__(self, *args):\n _snap.TStrStrVHI_swiginit(self, _snap.new_TStrStrVHI(*args))", "def _...
[ "0.8113539", "0.8078129", "0.80422896", "0.80369985", "0.7911085", "0.78472245", "0.7830771", "0.78140527", "0.77915347", "0.77875805", "0.77295697", "0.7726596", "0.7657", "0.7643887", "0.76133937", "0.75620496", "0.75512016", "0.7532357", "0.7508579", "0.7492217", "0.748869...
0.81009567
1
r""" __init__(TStrTAttrPr self) > TStrTAttrPr __init__(TStrTAttrPr self, TStrTAttrPr Pair) > TStrTAttrPr
def __init__(self, *args): _snap.TStrTAttrPr_swiginit(self, _snap.new_TStrTAttrPr(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TStrPr_swiginit(self, _snap.new_TStrPr(*args))", "def __init__(self, *args):\n _snap.TAttrPair_swiginit(self, _snap.new_TAttrPair(*args))", "def __init__(self, *args):\n _snap.TFltStrPrPr_swiginit(self, _snap.new_TFltStrPrPr(*args))", "def __init__(self...
[ "0.70779526", "0.70442665", "0.68191385", "0.6763562", "0.6760596", "0.6718884", "0.66683596", "0.6654454", "0.66352427", "0.66254103", "0.6518301", "0.6495016", "0.64922595", "0.6439359", "0.642037", "0.641976", "0.6386056", "0.63784707", "0.6354946", "0.6353212", "0.6352356...
0.80849564
0
r""" __init__(TNGraphNodeI self) > TNGraphNodeI
def __init__(self, *args): _snap.TNGraphNodeI_swiginit(self, _snap.new_TNGraphNodeI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TUNGraphNodeI_swiginit(self, _snap.new_TUNGraphNodeI(*args))", "def __init__(self, *args):\n _snap.TNGraph_swiginit(self, _snap.new_TNGraph(*args))", "def __init__(self, *args):\n _snap.TNGraphEdgeI_swiginit(self, _snap.new_TNGraphEdgeI(*args))", "def _...
[ "0.81137633", "0.75551784", "0.74138385", "0.73771703", "0.73145205", "0.72806835", "0.726851", "0.7239359", "0.71828514", "0.7168914", "0.7162854", "0.712134", "0.7061524", "0.70544463", "0.7047284", "0.7044694", "0.7019372", "0.70064956", "0.6997501", "0.6966562", "0.696159...
0.8522211
0
r""" __init__(TDirNetNodeI self) > TDirNetNodeI
def __init__(self, *args): _snap.TDirNetNodeI_swiginit(self, _snap.new_TDirNetNodeI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TDirNet_swiginit(self, _snap.new_TDirNet(*args))", "def __init__(self, *args):\n _snap.TUndirNetNodeI_swiginit(self, _snap.new_TUndirNetNodeI(*args))", "def __init__(self, *args):\n _snap.TNEANetNodeI_swiginit(self, _snap.new_TNEANetNodeI(*args))", "def...
[ "0.7777183", "0.77253735", "0.76075536", "0.75880575", "0.71555763", "0.7054878", "0.6908468", "0.68831676", "0.676289", "0.6727751", "0.67246264", "0.67072695", "0.6654173", "0.6639124", "0.6583768", "0.6571878", "0.64681196", "0.6413803", "0.6409103", "0.6380145", "0.637142...
0.8220113
0
r""" __init__(TUNGraphNodeI self) > TUNGraphNodeI
def __init__(self, *args): _snap.TUNGraphNodeI_swiginit(self, _snap.new_TUNGraphNodeI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TNGraphNodeI_swiginit(self, _snap.new_TNGraphNodeI(*args))", "def __init__(self, *args):\n _snap.TUNGraph_swiginit(self, _snap.new_TUNGraph(*args))", "def __init__(self, *args):\n _snap.TUNGraphEdgeI_swiginit(self, _snap.new_TUNGraphEdgeI(*args))", "def...
[ "0.79386485", "0.7890888", "0.7689272", "0.7454601", "0.7255246", "0.7219958", "0.7090805", "0.7020803", "0.69876546", "0.698471", "0.6974743", "0.6874306", "0.68319774", "0.68306404", "0.6788212", "0.6786821", "0.6785347", "0.670702", "0.6701799", "0.66318107", "0.661348", ...
0.8500554
0
r""" __init__(TUndirNetNodeI self) > TUndirNetNodeI
def __init__(self, *args): _snap.TUndirNetNodeI_swiginit(self, _snap.new_TUndirNetNodeI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TUndirNet_swiginit(self, _snap.new_TUndirNet(*args))", "def __init__(self, *args):\n _snap.TUndirNetEdgeI_swiginit(self, _snap.new_TUndirNetEdgeI(*args))", "def __init__(self, *args):\n _snap.TDirNetNodeI_swiginit(self, _snap.new_TDirNetNodeI(*args))", ...
[ "0.8303272", "0.77181286", "0.733544", "0.70396686", "0.6952801", "0.69062114", "0.64804465", "0.64176106", "0.63499016", "0.6310845", "0.6285403", "0.6200215", "0.61700654", "0.61622536", "0.610946", "0.6085567", "0.60717106", "0.6020965", "0.60022175", "0.5919113", "0.59048...
0.87365437
0
r""" __init__(TUndirNetEdgeI self) > TUndirNetEdgeI
def __init__(self, *args): _snap.TUndirNetEdgeI_swiginit(self, _snap.new_TUndirNetEdgeI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TUndirNetNodeI_swiginit(self, _snap.new_TUndirNetNodeI(*args))", "def __init__(self, *args):\n _snap.TUndirNet_swiginit(self, _snap.new_TUndirNet(*args))", "def __init__(self, *args):\n _snap.TDirNetEdgeI_swiginit(self, _snap.new_TDirNetEdgeI(*args))", ...
[ "0.8155775", "0.7977507", "0.7691719", "0.74496", "0.73433554", "0.7324545", "0.7282821", "0.7261182", "0.70443213", "0.6899309", "0.68655807", "0.686365", "0.68542784", "0.679314", "0.6652913", "0.65421426", "0.6509136", "0.6494478", "0.64538795", "0.63973707", "0.6362556", ...
0.86228746
0
r""" __init__(TNEANetNodeI self) > TNEANetNodeI
def __init__(self, *args): _snap.TNEANetNodeI_swiginit(self, _snap.new_TNEANetNodeI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TDirNetNodeI_swiginit(self, _snap.new_TDirNetNodeI(*args))", "def __init__(self, *args):\n _snap.TModeNetNodeI_swiginit(self, _snap.new_TModeNetNodeI(*args))", "def __init__(self, *args):\n _snap.TNEANetAIntI_swiginit(self, _snap.new_TNEANetAIntI(*args))"...
[ "0.7988549", "0.79638046", "0.7632882", "0.74962413", "0.7355838", "0.728576", "0.7240659", "0.7149384", "0.71447456", "0.7040187", "0.700127", "0.6983999", "0.6926303", "0.69003797", "0.6869007", "0.68421245", "0.681346", "0.68134534", "0.67115736", "0.66882175", "0.6672486"...
0.8511905
0
r""" __init__(TNEANetEdgeI self) > TNEANetEdgeI
def __init__(self, *args): _snap.TNEANetEdgeI_swiginit(self, _snap.new_TNEANetEdgeI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TDirNetEdgeI_swiginit(self, _snap.new_TDirNetEdgeI(*args))", "def __init__(self, *args):\n _snap.TCrossNetEdgeI_swiginit(self, _snap.new_TCrossNetEdgeI(*args))", "def __init__(self, *args):\n _snap.TNEANetNodeI_swiginit(self, _snap.new_TNEANetNodeI(*args)...
[ "0.8080499", "0.7995931", "0.78885156", "0.7870344", "0.7854815", "0.78004164", "0.7488211", "0.74526614", "0.7439003", "0.7427252", "0.7393285", "0.7322137", "0.73062134", "0.72773", "0.72302556", "0.6935018", "0.6919504", "0.68819195", "0.68369293", "0.67535746", "0.6726849...
0.84684914
0
r""" __init__(TNEANetAIntI self) > TNEANetAIntI __init__(TNEANetAIntI self, TInt HIter, TStr attribute, bool isEdgeIter, TNEANet GraphPt) > TNEANetAIntI
def __init__(self, *args): _snap.TNEANetAIntI_swiginit(self, _snap.new_TNEANetAIntI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TNEANetEdgeI_swiginit(self, _snap.new_TNEANetEdgeI(*args))", "def __init__(self, *args):\n _snap.TNEANetNodeI_swiginit(self, _snap.new_TNEANetNodeI(*args))", "def __init__(self, *args):\n _snap.TCrossNetAIntI_swiginit(self, _snap.new_TCrossNetAIntI(*args)...
[ "0.7092106", "0.7065801", "0.697895", "0.68991023", "0.6850462", "0.6752328", "0.6740105", "0.6725581", "0.65779066", "0.65486085", "0.6544245", "0.65266347", "0.65181047", "0.6496349", "0.64713967", "0.6175908", "0.6158406", "0.6149576", "0.6043867", "0.59996766", "0.5997239...
0.7447154
0
r""" __init__(TNEANetAStrI self) > TNEANetAStrI __init__(TNEANetAStrI self, TStr HIter, TStr attribute, bool isEdgeIter, TNEANet GraphPt) > TNEANetAStrI
def __init__(self, *args): _snap.TNEANetAStrI_swiginit(self, _snap.new_TNEANetAStrI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TNEANetEdgeI_swiginit(self, _snap.new_TNEANetEdgeI(*args))", "def __init__(self, *args):\n _snap.TNEANetNodeI_swiginit(self, _snap.new_TNEANetNodeI(*args))", "def __init__(self, *args):\n _snap.TNEANetAIntI_swiginit(self, _snap.new_TNEANetAIntI(*args))", ...
[ "0.71617836", "0.70294535", "0.69432807", "0.6833182", "0.6760664", "0.67205095", "0.6697564", "0.6665069", "0.6646517", "0.65440804", "0.65097135", "0.6507924", "0.6499777", "0.6461863", "0.6439035", "0.63153076", "0.61592346", "0.6116255", "0.6049029", "0.6021373", "0.59845...
0.73436636
0
r""" __init__(TNEANetAFltI self) > TNEANetAFltI __init__(TNEANetAFltI self, TFlt HIter, TStr attribute, bool isEdgeIter, TNEANet GraphPt) > TNEANetAFltI
def __init__(self, *args): _snap.TNEANetAFltI_swiginit(self, _snap.new_TNEANetAFltI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TCrossNetAFltI_swiginit(self, _snap.new_TCrossNetAFltI(*args))", "def __init__(self, *args):\n _snap.TNEANetAStrI_swiginit(self, _snap.new_TNEANetAStrI(*args))", "def __init__(self, *args):\n _snap.TNEANetEdgeI_swiginit(self, _snap.new_TNEANetEdgeI(*args)...
[ "0.68234134", "0.65786135", "0.65742445", "0.6391436", "0.6318371", "0.62319094", "0.6205145", "0.6199539", "0.61869335", "0.61794376", "0.6157771", "0.61484694", "0.6016125", "0.60149664", "0.6013297", "0.5988101", "0.5938703", "0.58654726", "0.5829375", "0.5810781", "0.5804...
0.7257379
0
r""" __init__(TModeNetNodeI self) > TModeNetNodeI
def __init__(self, *args): _snap.TModeNetNodeI_swiginit(self, _snap.new_TModeNetNodeI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TMMNetModeNetI_swiginit(self, _snap.new_TMMNetModeNetI(*args))", "def __init__(self, *args):\n _snap.TModeNet_swiginit(self, _snap.new_TModeNet(*args))", "def __init__(self, *args):\n _snap.TNEANetNodeI_swiginit(self, _snap.new_TNEANetNodeI(*args))", "d...
[ "0.81868273", "0.79179275", "0.7883174", "0.7770311", "0.76196706", "0.70498794", "0.7019833", "0.69831216", "0.6959815", "0.69386286", "0.68949515", "0.68915963", "0.68910295", "0.68788797", "0.6826283", "0.6802448", "0.67646384", "0.67494625", "0.6744187", "0.67416716", "0....
0.8697497
0
r""" __init__(TModeNetEdgeI self) > TModeNetEdgeI
def __init__(self, *args): _snap.TModeNetEdgeI_swiginit(self, _snap.new_TModeNetEdgeI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TCrossNetEdgeI_swiginit(self, _snap.new_TCrossNetEdgeI(*args))", "def __init__(self, *args):\n _snap.TNEANetEdgeI_swiginit(self, _snap.new_TNEANetEdgeI(*args))", "def __init__(self, *args):\n _snap.TDirNetEdgeI_swiginit(self, _snap.new_TDirNetEdgeI(*args)...
[ "0.78224504", "0.78183144", "0.7800831", "0.77458584", "0.7698258", "0.76610076", "0.75725496", "0.7566972", "0.72065526", "0.6815997", "0.67577934", "0.6660082", "0.66582566", "0.6612044", "0.6584173", "0.65713996", "0.6564165", "0.6533165", "0.65111244", "0.6446716", "0.642...
0.8694023
0
r""" __init__(TCrossNetAIntI self) > TCrossNetAIntI __init__(TCrossNetAIntI self, TInt HIter, TStr attribute, TCrossNet GraphPt) > TCrossNetAIntI
def __init__(self, *args): _snap.TCrossNetAIntI_swiginit(self, _snap.new_TCrossNetAIntI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TCrossNetAStrI_swiginit(self, _snap.new_TCrossNetAStrI(*args))", "def __init__(self, *args):\n _snap.TNEANetAIntI_swiginit(self, _snap.new_TNEANetAIntI(*args))", "def __init__(self, *args):\n _snap.TNEANetAStrI_swiginit(self, _snap.new_TNEANetAStrI(*args)...
[ "0.7372067", "0.7339328", "0.6978912", "0.6773228", "0.6672126", "0.6666821", "0.6630302", "0.6569805", "0.65325385", "0.6413678", "0.63969696", "0.6396223", "0.6383724", "0.6378397", "0.6372134", "0.6241055", "0.61995596", "0.6167496", "0.60198826", "0.6002", "0.5989642", ...
0.7908535
0
r""" __init__(TCrossNetAStrI self) > TCrossNetAStrI __init__(TCrossNetAStrI self, TStr HIter, TStr attribute, TCrossNet GraphPt) > TCrossNetAStrI
def __init__(self, *args): _snap.TCrossNetAStrI_swiginit(self, _snap.new_TCrossNetAStrI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TCrossNetAIntI_swiginit(self, _snap.new_TCrossNetAIntI(*args))", "def __init__(self, *args):\n _snap.TNEANetAStrI_swiginit(self, _snap.new_TNEANetAStrI(*args))", "def __init__(self, *args):\n _snap.TNEANetAIntI_swiginit(self, _snap.new_TNEANetAIntI(*args)...
[ "0.74159884", "0.73180914", "0.68992126", "0.6817959", "0.67546743", "0.6753769", "0.66704845", "0.6641167", "0.6638957", "0.6581354", "0.65034896", "0.6483416", "0.64606893", "0.64569604", "0.64310217", "0.6420589", "0.634229", "0.62140775", "0.6206515", "0.62039876", "0.612...
0.7736315
0
r""" __init__(TCrossNetAFltI self) > TCrossNetAFltI __init__(TCrossNetAFltI self, TFlt HIter, TStr attribute, TCrossNet GraphPt) > TCrossNetAFltI
def __init__(self, *args): _snap.TCrossNetAFltI_swiginit(self, _snap.new_TCrossNetAFltI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TNEANetAFltI_swiginit(self, _snap.new_TNEANetAFltI(*args))", "def __init__(self, *args):\n _snap.TCrossNetAStrI_swiginit(self, _snap.new_TCrossNetAStrI(*args))", "def __init__(self, *args):\n _snap.TCrossNetAIntI_swiginit(self, _snap.new_TCrossNetAIntI(*a...
[ "0.7060971", "0.66653717", "0.6506434", "0.63198364", "0.6214439", "0.6211949", "0.61322975", "0.6129535", "0.61156034", "0.6073974", "0.60716647", "0.60556775", "0.6049091", "0.60380083", "0.6009919", "0.60027105", "0.5991106", "0.5983586", "0.5980977", "0.59681666", "0.5928...
0.7575542
0
r""" __init__(TMMNetModeNetI self) > TMMNetModeNetI
def __init__(self, *args): _snap.TMMNetModeNetI_swiginit(self, _snap.new_TMMNetModeNetI(*args))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n _snap.TModeNet_swiginit(self, _snap.new_TModeNet(*args))", "def __init__(self, *args):\n _snap.TModeNetNodeI_swiginit(self, _snap.new_TModeNetNodeI(*args))", "def __init__(self, *args):\n _snap.TMMNet_swiginit(self, _snap.new_TMMNet(*args))", "def __init__(se...
[ "0.7946124", "0.7791344", "0.73497313", "0.71628016", "0.7158306", "0.69398296", "0.6618206", "0.6582008", "0.655239", "0.65496224", "0.6524141", "0.6446117", "0.6442395", "0.6425998", "0.63518953", "0.62643296", "0.62615436", "0.6252381", "0.62403476", "0.6240303", "0.623112...
0.8680902
0
Test if no json is found.
def test_no_db_in_folder(self): if platform.system() == "Darwin": # This test is disabled as the current path is trying to reach a # network resource on MacOS. I guess we have to deal with this at # some point later. return include_prefixes = ['-I'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_empty_json(json_object):\n try:\n obj = json.load(json_object)\n except:\n obj = json.dumps(json_object)\n print(TypeError.message)\n return len(obj) == 0", "def test_get_json_data_throw_not_found_error(self):\n response = self.app.test_client().get('/test/get_json_dat...
[ "0.7543013", "0.7087333", "0.70163447", "0.68595016", "0.68138224", "0.6748204", "0.6597916", "0.65425414", "0.6536953", "0.64721775", "0.6396562", "0.6370346", "0.63588315", "0.6353278", "0.63400286", "0.6339226", "0.63132995", "0.63086605", "0.6271989", "0.6258765", "0.6256...
0.0
-1
maps each item in tuple to a string and doesnt include parens
def _tupstr(tuple_): return ', '.join(list(map(str, tuple_)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def str_tuple(item):\n return \"{}:{}\".format(item[0], item[1])", "def tupleStrFormat(tupl):\n string = \"this is a tuple (\"\n for element in tupl:\n string += str(element) + \", \"\n string += \")\"\n return string", "def strtuple(iterable): \n string = ''\n function = type(strtu...
[ "0.74939054", "0.7226328", "0.71841437", "0.70670855", "0.7002234", "0.6921802", "0.68923545", "0.6779115", "0.6457527", "0.6439674", "0.6395729", "0.6378149", "0.63576823", "0.62445885", "0.62194616", "0.60591066", "0.6039229", "0.60262", "0.60031605", "0.5998723", "0.595537...
0.7862774
0
save json dict into file for nonascii string, output encoded string, without \\u xxxx
def saveJsonToFile(fullFilename, jsonValue, indent=2, fileEncoding="utf-8"): with codecs.open(fullFilename, 'w', encoding=fileEncoding) as jsonFp: json.dump(jsonValue, jsonFp, indent=indent, ensure_ascii=False) # logging.debug("Complete save json %s", fullFilename)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def save_json_to_file(i):\n\n import json\n import ck.strings\n\n fn = i['json_file']\n\n if i.get('safe', '') == 'yes':\n d = i['dict']\n\n sd = {}\n\n # Check main unprintable keys\n for k in d:\n try:\n json.dumps(d[k])\n except Except...
[ "0.7301709", "0.6895629", "0.668229", "0.6649329", "0.6569844", "0.6456037", "0.6403537", "0.6400995", "0.63235825", "0.6111154", "0.6091556", "0.6089186", "0.6073367", "0.6043047", "0.6029662", "0.60214883", "0.60124844", "0.5994898", "0.59907734", "0.5989212", "0.5986647", ...
0.59485453
22
load and parse json dict from file
def loadJsonFromFile(fullFilename, fileEncoding="utf-8"): with codecs.open(fullFilename, 'r', encoding=fileEncoding) as jsonFp: jsonDict = json.load(jsonFp) # logging.debug("Complete load json from %s", fullFilename) return jsonDict
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_json(file_path):\n\n \n with open(file_path, 'r') as json_file:\n # print(file_path)\n dictionary = json.loads(json_file.read())\n\n return dictionary", "def load(self):\n with io.open(self.filename, encoding='utf-8') as f:\n self.load_from_dict(json.loads(f.read...
[ "0.7839187", "0.78160346", "0.7759584", "0.77399975", "0.767855", "0.7628466", "0.76220834", "0.7601347", "0.7591499", "0.7572074", "0.7562814", "0.7546855", "0.7527726", "0.74771327", "0.746926", "0.7465812", "0.7455924", "0.74463606", "0.74425954", "0.74255586", "0.74187106...
0.0
-1
get input file's base name
def getInputFileBasename(inputFilename = None): curInputFilename = getInputFilename() if inputFilename : curInputFilename = inputFilename # print "curInputFilename=%s"%(curInputFilename) inputBasename = getBasename(curInputFilename) # print "inputBasename=%s"%(inputBasename) return in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def base_filename(self):\n return self.filename.split('.')[0]", "def base_name(path):\n return os.path.basename(path)", "def basefname(fname):\n return os.path.splitext(fname.split(\"\\\\\")[-1])[0]", "def base_name(self):\n return \".\".join(posixpath.basename(self.file_name).split(\".\"...
[ "0.8216855", "0.8097246", "0.8046766", "0.79465437", "0.77919227", "0.77208954", "0.75766116", "0.7478079", "0.73772013", "0.7245379", "0.7153693", "0.7124743", "0.7022246", "0.69495875", "0.6820439", "0.68150723", "0.68100935", "0.6805478", "0.67777616", "0.6768901", "0.6745...
0.77260494
5
get input file base name without suffix
def getInputFileBasenameNoSuffix(): inputFileBasename = getInputFileBasename() basenameRemovedSuffix = removeSuffix(inputFileBasename) return basenameRemovedSuffix
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def basefname(fname):\n return os.path.splitext(fname.split(\"\\\\\")[-1])[0]", "def base_name(path):\n return os.path.basename(path)", "def base_filename(self):\n return self.filename.split('.')[0]", "def base_name(self):\n return \".\".join(posixpath.basename(self.file_name).split(\".\"...
[ "0.8484546", "0.82555234", "0.822294", "0.8183472", "0.79055375", "0.7782926", "0.7693078", "0.7691734", "0.76718056", "0.76711744", "0.7543156", "0.74192345", "0.73872006", "0.73860157", "0.73762316", "0.7344639", "0.7344639", "0.7342692", "0.7323325", "0.73084", "0.73075813...
0.81293887
4
Recursively looks through the given molecular formula as well as all of its subformulas,
def _process_formula(self, formula): # Set remainder equal to 'None' r = None # Regular expression matching for each of the three cases: atom = re.match(MolecularParser.str_atom_re, formula) opening = re.match(MolecularParser.opening_brackets, formula) closing = re.match...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def skel_helper(formula, z_dict):\n if is_variable(formula.root) or is_constant(formula.root): # a naive base case\n return\n\n if is_unary(formula.root): # call recursivly with first\n return PropositionalFormula('~', Formula.skel_helper(formula.first, z_dict))\n\n # t...
[ "0.58427346", "0.5757976", "0.5727383", "0.5677923", "0.56660897", "0.56660897", "0.5656782", "0.56538564", "0.5603584", "0.55347437", "0.55227757", "0.53565365", "0.5353079", "0.52881587", "0.5213603", "0.5195359", "0.5184664", "0.51782584", "0.5175758", "0.51504344", "0.513...
0.69937277
0
make vocab files load cached files if exist
def _get_vocab_files(self): question_vocab, answer_vocab = {}, {} qdict_path = os.path.join(self.cache_dir, self.exp_type + '_qdict.json') adict_prefix = '_adict.json' if self.use_ocr: adict_prefix = '_ocr' + adict_prefix adict_path = os.path.join(self.cache_dir, self...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_vocab(self, fn):\n vocab = load_vocab(fn)\n self.vocab = vocab\n self.has_vocab = True", "def _load_vocab(vocab_file_name, language):\n vocab = []\n vocab_size = 0\n #with codecs.getreader(\"utf-8\")(tf.gfile.GFile(vocab_file_name), \"rb\") as f:\n with tf.gfile.GFile(vo...
[ "0.66200334", "0.64096344", "0.64035666", "0.63606405", "0.63297665", "0.6308603", "0.6288651", "0.62404585", "0.62276596", "0.6219889", "0.6212637", "0.62072366", "0.615978", "0.6120984", "0.6110493", "0.60776615", "0.6072023", "0.60677785", "0.60659724", "0.605863", "0.6039...
0.6727763
0
Returns a dictionary that maps words to indices.
def make_question_vocab(qdic, max_length): qdict = {'':0} vid = 1 for qid in qdic.keys(): # sequence to list q_str = qdic[qid]['qstr'] q_list = VQADataProvider.seq_to_list(q_str, max_length) # create dict for w in q_list: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_idx(vocab):\n word2index = {}\n index2word = {}\n\n word2index['PAD'] = 0\n index2word[0] = 'PAD'\n\n word2index['UNK'] = 1\n index2word[1] = 'UNK'\n\n for i,word in enumerate(vocab):\n word2index[word.lower()] = i+2\n index2word[i+2] = word.lower()\n\n return word2i...
[ "0.76049584", "0.74876463", "0.7403214", "0.73957384", "0.7342903", "0.7286279", "0.7154416", "0.6997122", "0.697769", "0.6954133", "0.6944008", "0.6897212", "0.6809908", "0.67921615", "0.6769237", "0.6711745", "0.6697173", "0.6694105", "0.66906625", "0.6682983", "0.6677892",...
0.0
-1
Returns a vocab_size dictionary that maps words to indices. only keep the words with highest occurrences if use_ocr, exclude the answers appeared in token lists
def make_answer_vocab(adic, qdic, vocab_size, use_ocr): counter = Counter() for qid in adic.keys(): answer_obj = adic[qid] answer_list = [ans['answer'] for ans in answer_obj] if use_ocr: ocr_tokens = qdic[qid]['ocr_tokens'] answer_list...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vocab_size():\n\n MAXSIZE = 10000\n\n ls = Language.objects.exclude(id=80).filter(vocabulary_size__gt=0, vocabulary_size__lte=MAXSIZE).conlangs()\n\n outliers = Language.objects.filter(vocabulary_size__gt=MAXSIZE).order_by('vocabulary_size')\n\n # Assumes unimodal distribution\n modes = [(mode['...
[ "0.69018096", "0.68358916", "0.68227094", "0.6804673", "0.67762697", "0.6759912", "0.6634895", "0.66334766", "0.66150683", "0.66117483", "0.65075517", "0.64898396", "0.6471589", "0.639095", "0.63820076", "0.63656545", "0.6344806", "0.6332183", "0.6331614", "0.63306993", "0.63...
0.66760015
6
slice question into token list drop the remaining tokens if exceeds max_length
def seq_to_list(s, max_length): t_str = s.lower() t_str = t_str.replace('-', ' ').replace('/', ' ') t_str = t_str.translate(str.maketrans('', '', string.punctuation)) q_list = t_str.strip().split() return q_list[:max_length]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tokenize(question, max_length=12):\n tokens = d.tokenize(question, False)\n tokens = tokens[:max_length]\n if len(tokens) < max_length:\n # Note here we pad in front of the sentence\n padding = [d.padding_idx] * (max_length - len(tokens))\n tokens = tokens + padding\n utils.ass...
[ "0.7084505", "0.6871228", "0.68379796", "0.6827489", "0.6827489", "0.6827489", "0.6827489", "0.5816811", "0.58147746", "0.58137196", "0.5637041", "0.5632766", "0.553693", "0.5491012", "0.5466924", "0.54359657", "0.54307616", "0.5405033", "0.54031646", "0.5354758", "0.5354758"...
0.5140925
36
Gets the name of this ProfessorWeek.
def name(self) -> str: return self._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_name(self) -> str:\n return self.name", "def get_name(self) -> str:\n return self.name", "def get_name(self) -> str:\n return self.name", "def get_name(self) -> str:\n\n return self.name_", "def get_name(self):\n return self._player_name", "def get_name(self):\n...
[ "0.63754433", "0.63754433", "0.63754433", "0.6374447", "0.63736314", "0.63525456", "0.6343689", "0.6343689", "0.6333391", "0.63100785", "0.63100785", "0.63100785", "0.6304656", "0.6304656", "0.62957233", "0.62957233", "0.62957233", "0.62957233", "0.62957233", "0.62957233", "0...
0.0
-1
Sets the name of this ProfessorWeek.
def name(self, name: str): if name is None: raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_name(self, name):\n self.name = name", "def set_name(self, name):\n self.name = name", "def set_name(self, name):\n self.name = name", "def set_name(self, name):\n self.name = name", "def set_name(self, name):\n self.name = name", "def SetName(self, name):\n ...
[ "0.680145", "0.680145", "0.680145", "0.680145", "0.680145", "0.67675793", "0.67548794", "0.6754491", "0.6725577", "0.6682315", "0.66411775", "0.66411775", "0.66139364", "0.6612527", "0.6612527", "0.65979046", "0.65603197", "0.6457249", "0.6421225", "0.6378129", "0.6378129", ...
0.0
-1
Gets the schedule of this ProfessorWeek.
def schedule(self) -> Week: return self._schedule
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_schedule(self, day, week):\n return self.schedule['schedule'][day][week]", "def get_schedule(self):\n\n if str(self.schedule) == \"unset\": return None\n if self.schedule: return self.schedule\n # prompt skip\n if Settings.is_prompt() and not Settings.prompt(\"schedule\...
[ "0.72362554", "0.69717115", "0.6701747", "0.6701747", "0.6701747", "0.6519184", "0.63062286", "0.6281466", "0.62060815", "0.6140419", "0.6093959", "0.60375607", "0.6034501", "0.6023528", "0.5882296", "0.586304", "0.5862591", "0.58568", "0.5830531", "0.58155155", "0.57608265",...
0.78801715
0
Sets the schedule of this ProfessorWeek.
def schedule(self, schedule: Week): if schedule is None: raise ValueError("Invalid value for `schedule`, must not be `None`") # noqa: E501 self._schedule = schedule
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_schedule(self, day, week, schedule):\n self.schedule['schedule'][day][week] = schedule", "def schedule(self, schedule):\n\n self._schedule = schedule", "def schedule(self, schedule):\n\n self._schedule = schedule", "def schedule(self, schedule):\n \n self._schedule ...
[ "0.7485041", "0.70204353", "0.70204353", "0.7005401", "0.6312719", "0.62478626", "0.6226661", "0.619656", "0.61043227", "0.5950462", "0.58985734", "0.58882487", "0.5864123", "0.5851708", "0.578896", "0.5766609", "0.5766609", "0.57405883", "0.56998277", "0.5568193", "0.5523822...
0.75479376
0
Confirm that when a name is empty, it's considered a (trivial) match against other empty names
def test_first_name_sim_empty_str(): assert nedss.first_name_similarity_scorer("", "") == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def verify_name(name):\n if name and not name.isspace(): # if it's not empty/NULL and it's not whitespace\n return True\n else:\n return False", "def exact_name_check(name_to_test, parts):\n\n if parts is None:\n return 0\n\n if type(name_to_test) is not str:\n return 0\n\n\n for p i...
[ "0.6776745", "0.6641595", "0.66413873", "0.6589317", "0.6588862", "0.6585784", "0.6571506", "0.65323627", "0.6525493", "0.650224", "0.64431334", "0.64060366", "0.6402011", "0.6305928", "0.6303753", "0.62817585", "0.6259186", "0.6259186", "0.6193378", "0.61804974", "0.61491024...
0.6810532
0
Helper decorator that treats all IndexErrors as HTTP 404 Not Found
def index_error_as_404(fun): @wraps(fun) def resource_handler(*args, **kwargs): try: return fun(*args, **kwargs) except IndexError: raise HTTPNotFound return resource_handler
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def not_found():\n return HttpError(404)", "def normal404(e):\n return jsonify({\"error\": \"Not found\"}), 404", "def handler404(request):\n response = render_to_response('404.html', {})\n response.status_code = 404 # Other errors can be similarly configured\n return response", "def index_ro...
[ "0.75607157", "0.73212755", "0.72003055", "0.71600324", "0.7088003", "0.7076632", "0.69942915", "0.6989471", "0.6968379", "0.69516855", "0.6889037", "0.68662125", "0.68493146", "0.68451166", "0.6842823", "0.6839099", "0.6801788", "0.6789066", "0.678744", "0.678744", "0.678643...
0.83212876
0
Determines whether file1 is lexigraphically 'before' file2.
def CompareFilenames(self, file1, file2): f1_segments = file1.split('/') f2_segments = file2.split('/') segment_ptr = 0 while (segment_ptr < len(f1_segments) and segment_ptr < len(f2_segments) and f1_segments[segment_ptr] == f2_segments[segment_ptr]): segment_ptr += 1 i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def comes_before(a, b):\n if a.freq < b.freq:\n return True\n elif a.freq == b.freq:\n if a.char < b.char:\n return True\n else:\n return False\n return False", "def comes_before(a, b):\r\n \r\n if a.freq < b.freq:\r\n return True \r\n elif a.freq =...
[ "0.6018774", "0.5942431", "0.5873743", "0.5836556", "0.57075584", "0.56426346", "0.56426346", "0.5613435", "0.55910456", "0.55910456", "0.556115", "0.5528841", "0.5527153", "0.5486378", "0.54560363", "0.5449903", "0.539582", "0.5356506", "0.5353701", "0.5320521", "0.5300177",...
0.54741085
15
Set caching headers for the request.
def SetCachingHeaders(self, revalidate): max_age = self.MAX_AGE #self.response.headers['Expires'] = email.Utils.formatdate( # time.time() + max_age, usegmt=True) cache_control = [] if self.PUBLIC: cache_control.append('public') cache_control.append('max-age=%d' % max_age) if revalid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SetCacheHeaders(self, response):\n headers = framework_helpers.StaticCacheHeaders()\n for name, value in headers:\n response.headers[name] = value", "def add_cache_headers(headers, cached):\n # type: (dict, dict) -> None\n if cached[\"etag\"] is not None:\n headers[\"If-None-Match\"] ...
[ "0.8172239", "0.75542694", "0.72784966", "0.7131047", "0.70837665", "0.70837665", "0.70479906", "0.70066833", "0.6995585", "0.6995585", "0.6995585", "0.6995585", "0.6995585", "0.6995585", "0.6995585", "0.6995585", "0.6995585", "0.6995585", "0.6995585", "0.6995585", "0.6995585...
0.7740348
2
This method returns now's datetime object UTC localized.
def get_now_utc(no_microseconds=True): if no_microseconds: return pytz.utc.localize(datetime.datetime.utcnow()).replace( microsecond=0 ) else: return pytz.utc.localize(datetime.datetime.utcnow())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nowUTC():\n return datetime.datetime.now(pytz.utc)", "def utc_now():\n realtime = datetime.utcnow()\n realtime = pytz.utc.localize(realtime)\n return realtime", "def utc_now():\n return datetime.now(tz=timezone.utc)", "def datetime_utc_now() -> datetime:\n return datetime.now(timezone.u...
[ "0.7938195", "0.78354627", "0.78104156", "0.77831733", "0.77421755", "0.76666653", "0.76531154", "0.75951886", "0.7574178", "0.75345874", "0.75227463", "0.7473466", "0.7462387", "0.74613583", "0.742286", "0.7420622", "0.72866446", "0.72499305", "0.7162963", "0.7162082", "0.71...
0.69837517
27
This method returns now's hour in the UTC timezone.
def get_now_hour_utc(no_microseconds=True): if no_microseconds: return datetime.datetime.utcnow().replace(microsecond=0).time() else: return datetime.datetime.utcnow().time()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_hour_today() -> str:\n return datetime.now().strftime(\"%H\")", "def get_date_hour_today() -> str:\n return datetime.now().strftime(\"%Y-%m-%dT%H\")", "def actual_hour():\n actual_hour = datetime.now()\n return str(actual_hour.hour) + ':' + str(actual_hour.minute) + ':' + str(actual...
[ "0.7967014", "0.7700835", "0.7533794", "0.7439137", "0.734648", "0.7341758", "0.7229291", "0.7191778", "0.7191778", "0.71896017", "0.71181643", "0.7044451", "0.6937091", "0.69122905", "0.6911524", "0.68786734", "0.6806478", "0.677117", "0.6708591", "0.6707662", "0.6645102", ...
0.6890612
15
This method returns today's date localized with the microseconds set to zero.
def get_today_utc(): return pytz.utc.localize(datetime.datetime.utcnow()).replace( hour=0, minute=0, second=0, microsecond=0 )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _today() -> str:\n return strftime(DATE_FORMAT, gmtime())", "def _today() -> datetime.date:\n return datetime.today().date()", "def today(self):\n return(datetime.date.today().isoformat())", "def static_now():\n return datetime.datetime(2000, 9, 4).replace(tzinfo=timezone.utc)", "def no...
[ "0.71156204", "0.7019942", "0.69802743", "0.697853", "0.69633734", "0.69095886", "0.6878136", "0.6864425", "0.68415785", "0.6835453", "0.677874", "0.67678297", "0.6763251", "0.6725535", "0.67019784", "0.6672066", "0.66553646", "0.66461927", "0.663581", "0.6629652", "0.662824"...
0.6953968
6
This method returns today's datetime 00am.
def get_next_midnight(): return pytz.utc.localize(datetime.datetime.today()).replace( hour=0, minute=0, second=0, microsecond=0 ) + datetime.timedelta(days=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_today():\n return datetime.today()", "def today():\n return datetime.today()", "def today():\n today = datetime.utcnow() \n return datetime(today.year, today.month, today.day)", "def get_date_hour_today() -> str:\n return datetime.now().strftime(\"%Y-%m-%dT%H\")", "def set_dat...
[ "0.7218911", "0.716098", "0.70452964", "0.70332086", "0.69823474", "0.6981923", "0.6933441", "0.6919651", "0.6902938", "0.68399304", "0.6836934", "0.6828776", "0.6826976", "0.6803924", "0.6798749", "0.6775222", "0.67566943", "0.67217714", "0.66926056", "0.6638394", "0.6554827...
0.0
-1
Localizes in the UTC timezone the given date object.
def localize_date_utc(date): return pytz.utc.localize( datetime.datetime.combine( date, datetime.time(hour=0, minute=0, second=0) ) )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tolocal(dateobj, timezone):\n \n utc_date_with_tz = pytz.utc.localize(dateobj) # \n user_tz = pytz.timezone(timezone)\n localdate = user_tz.normalize(utc_date_with_tz) \n \n return localdate", "def localize(dt):\n if dt.tzinfo is UTC:\n return (dt + LOCAL_UTC_OFFSET).replac...
[ "0.7094344", "0.70660865", "0.69835216", "0.6966509", "0.6966509", "0.6966509", "0.6939908", "0.6901606", "0.6633604", "0.6464719", "0.643207", "0.63970566", "0.63712436", "0.63249296", "0.6208421", "0.6186552", "0.6081063", "0.60789174", "0.606436", "0.604821", "0.604821", ...
0.7405236
1
Localizes in the UTC timezone a given Datetime object.
def localize_datetime_utc(date_time): return pytz.utc.localize(date_time)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def localize_utc(value):\n if isinstance(value, datetime):\n return value.replace(tzinfo=tzutc()).astimezone(tzlocal())\n else:\n return value", "def localize(dt):\n if dt.tzinfo is UTC:\n return (dt + LOCAL_UTC_OFFSET).replace(tzinfo=None)\n # No TZ info so not going to assume a...
[ "0.7543875", "0.7150261", "0.71189827", "0.71189827", "0.70814204", "0.69369864", "0.69369864", "0.68602073", "0.66143847", "0.65754545", "0.6540947", "0.65262794", "0.64930457", "0.6482054", "0.64238846", "0.63957834", "0.63238305", "0.6315044", "0.6294136", "0.6263853", "0....
0.76877177
2
Localizes in the UTC timezone the given time object.
def localize_time_utc(non_utc_time): return pytz.utc.localize(non_utc_time)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def localize_datetime_utc(date_time):\n return pytz.utc.localize(date_time)", "def localize_datetime_utc(date_time):\n return pytz.utc.localize(date_time)", "def localize_datetime_utc(date_time):\n return pytz.utc.localize(date_time)", "def localize_time(self, apitime):\n return self.feedzone...
[ "0.721911", "0.721911", "0.721911", "0.71019447", "0.69049937", "0.6584208", "0.64531296", "0.6183116", "0.61217636", "0.61217636", "0.6113041", "0.6087233", "0.60042715", "0.5962918", "0.5825111", "0.5756664", "0.5754511", "0.57530814", "0.57001823", "0.56924844", "0.5653468...
0.7415812
1
Returns a timestamp with the number of microseconds ellapsed since January 1st of 1970 for the given datetime object, UTC localized.
def get_utc_timestamp(utc_datetime=None): if utc_datetime is None: utc_datetime = get_now_utc() diff = utc_datetime - TIMESTAMP_0 return int(diff.total_seconds() * 10**6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def utc_millisecond_timestamp():\n return __date_to_millisecond_ts(utc())", "def _time_ms(self, dt):\n if dt.tzinfo is None:\n dt = dt.replace(tzinfo=pytz.utc)\n return int((dt - self._EPOCH).total_seconds() * 1000)", "def timestamp(self):\n if self._tzinfo is None:\n ...
[ "0.7130067", "0.69261736", "0.6919795", "0.68869436", "0.68410844", "0.68410176", "0.678571", "0.6773127", "0.6721899", "0.6680963", "0.6662088", "0.6636865", "0.66028625", "0.6587071", "0.654861", "0.6519711", "0.64572376", "0.64544225", "0.64336115", "0.64275944", "0.641644...
0.68424094
5
Get a stack symbol
def get_stack_symbol_from(self, stack_symbol): if isinstance(stack_symbol, cfg.Epsilon): return pda.Epsilon() if self._inverse_stack_symbol[stack_symbol] is None: value = str(stack_symbol.value) if isinstance(stack_symbol, cfg.Terminal): value = "#TERM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_symbol(self):\n return self.symbol", "def symbol(self): \n return self.__symbol", "def _get_symbolic_symbol(segment):\n\n bytecode_dictionary = {\n \"local\": \"LCL\",\n \"argument\": \"ARG\",\n \"this\": \"THIS\",\n \"that\": \"THAT\",\n...
[ "0.6994005", "0.6866544", "0.6754839", "0.6750561", "0.6730639", "0.66935134", "0.6564357", "0.6559117", "0.6481407", "0.64704794", "0.64399415", "0.6421515", "0.6358496", "0.62735206", "0.62688226", "0.62650114", "0.62593484", "0.62242895", "0.6214781", "0.619981", "0.618744...
0.8064959
0
Returns climate anomaly of 'x' wrt 1/1/197131/12/1980 climate normal.
def climate_anomaly(x, t): # climate normal period := January 1971 to December 1980 #d1 = dt.datetime(1971, 1, 1) d1 = dt.datetime(850, 1, 1) #d2 = dt.datetime(1980, 12, 31) d2 = dt.datetime(1850, 12, 31) idx = np.where((t >= d1) * (t <= d2))[0] x_clim = x[idx].mean() x_anom = x - x_clim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def observation(self, x):\n\t\tx = self.normalise(x)\n\t\tx_STDCT = self.stdct_analysis(x)\n\t\treturn x_STDCT, None", "def anomalyfromcircle(r, x, z, x1, z1, density):\n f = 6.67408e-11 # grav constant\n return 2 * pi * f * density * r*r * (z1-z) / ( (x-x1)**2 + (z-z1)**2 )", "def get_poisson_uncertain...
[ "0.6138426", "0.6124904", "0.58898723", "0.5866297", "0.58656347", "0.58586633", "0.58492213", "0.5846873", "0.5807993", "0.5783702", "0.57067144", "0.570169", "0.56808674", "0.5673173", "0.5652309", "0.56030774", "0.5598803", "0.5559486", "0.5554204", "0.55449754", "0.551543...
0.77654904
0
Validate that the GPIO PIN is prefixed with a D.
def validate_pin_input(value): try: int(value) return f"D{value}" except ValueError: return value.upper()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PassportIDTest(pid):\n\tif len(pid) == 9:\n\t\tif pid.isdigit():\n\t\t\treturn True\n\treturn False", "def validate_passport_id(passport_id: str) -> None:\n if RE_PID.match(passport_id) is None:\n raise ValueError(\"Passport ID is not nine decimal digits\")", "def vet_pdb_id(pdbid):\n if len(p...
[ "0.5430714", "0.5411846", "0.5388172", "0.53001624", "0.5205729", "0.51324594", "0.5131208", "0.5077932", "0.5077621", "0.50749654", "0.49887607", "0.49849257", "0.4978115", "0.49543357", "0.49538842", "0.4949723", "0.49195948", "0.49171528", "0.48988873", "0.48962787", "0.48...
0.6356284
0
Returns a neural autoencoder model
def auto_encoder(data: np.ndarray) -> np.ndarray: input_img = Input(shape=(784,)) encoded = Dense(128, activation='relu')(input_img) encoded = Dense(64, activation='relu')(encoded) encoded = Dense(32, activation='relu')(encoded) decoded = Dense(64, activation='relu')(encoded) decoded = Dense(12...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_autoencoder(self):\n # first build the encoder model\n inputs = Input(shape=(self.state_dim, ), name='state')\n feature_size = 32\n x = Dense(256, activation='relu')(inputs)\n x = Dense(128, activation='relu')(x)\n feature = Dense(feature_size, name='feature_vect...
[ "0.7335385", "0.6891696", "0.68466884", "0.6781276", "0.6740511", "0.6681825", "0.66813415", "0.6671315", "0.66432667", "0.6617569", "0.6587631", "0.6550727", "0.65498966", "0.6524114", "0.65173626", "0.64961416", "0.64794946", "0.64480376", "0.6444403", "0.6417967", "0.63738...
0.63587105
22
Get the index of each given field in the parts given.
def _get_indices(self, parts: List[str], keys: List[str]): for key in keys: yield parts.index(key)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def convert_field_name_to_indexes(field_name):\n rows = '87654321'\n columns = 'abcdefgh'\n row_index = column_index = None\n\n row_name = field_name[0]\n for i in range(8):\n if rows[i] == row_name:\n row_index = i\n\n column_name = field_name[1]\n for i in range(8):\n ...
[ "0.6726104", "0.668828", "0.6608752", "0.6174426", "0.6149963", "0.5868458", "0.57859015", "0.56774735", "0.5578237", "0.5398113", "0.53456503", "0.53453296", "0.53046834", "0.5253107", "0.5249681", "0.52051073", "0.5166276", "0.5129804", "0.5128997", "0.511905", "0.51128036"...
0.6776402
0
Return all subgroup field name paths from a group. Useful for compound fields. For example if you have the group
def _iter_field_paths(grp): field_paths = [] for field_name in grp: if isinstance(grp[field_name], h5py.Group): for subfield in grp[field_name]: # if it is a sparse field don't do the subfields since # they will be _sparse_idxs and data which are not ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_field_path_grp(self, run_idx, traj_idx, field_path):\n\n # check if it is compound\n if '/' in field_path:\n # split it\n grp_name, field_name = field_path.split('/')\n # get the hdf5 group\n grp = self.h5['{}/{}/{}/{}/{}'.format(RUNS, run_idx, TRA...
[ "0.6384744", "0.6244258", "0.6093534", "0.56780237", "0.56215", "0.56089485", "0.55997", "0.55509424", "0.55338305", "0.5490379", "0.5415887", "0.5399068", "0.53164816", "0.5279955", "0.5277562", "0.5266417", "0.5168053", "0.5150307", "0.5142042", "0.51253855", "0.5090147", ...
0.78025025
0
Creation mode constructor. Completely overwrite the data in the file. Reinitialize the values and set with the new ones if given.
def _create_init(self): assert self._topology is not None, \ "Topology must be given for a creation constructor" # initialize the runs group runs_grp = self._h5.create_group(RUNS) # initialize the settings group settings_grp = self._h5.create_group(SETTINGS) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, datafile):\n self.FILE = open(datafile, 'w')", "def __init__(self, filename, overwrite=False, autocommit=False):\n if overwrite:\n self.file = diskfile.open2(filename, \"w+b\")\n else:\n try:\n self.file = diskfile.open2(filename, \"r+b...
[ "0.67831326", "0.6426797", "0.6333315", "0.63191044", "0.63139695", "0.6307881", "0.6292905", "0.6291592", "0.62405986", "0.61818355", "0.6124825", "0.6091776", "0.6068955", "0.6068955", "0.6043519", "0.6040591", "0.60277826", "0.6026338", "0.60250145", "0.6020144", "0.601336...
0.0
-1
Sets the feature_shapes and feature_dtypes to be the default for this module. These will be used to initialize field datasets when no given during construction (i.e. for sparse values)
def _set_default_init_field_attributes(self, n_dims=None): # we use the module defaults for the datasets to initialize them field_feature_shapes = dict(FIELD_FEATURE_SHAPES) field_feature_dtypes = dict(FIELD_FEATURE_DTYPES) # get the number of coordinates of positions. If there is a ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self):\n\n self.check_nans = False\n self.debug_force_memmap = False\n\n # Implementations must initialise the dtype so that feature arrays can be created with correct type:\n self.dtype = None", "def __init__(self, feature_columns: typing.List[str] = [], model_params: di...
[ "0.6393085", "0.6229779", "0.6103153", "0.6101685", "0.5979987", "0.5916312", "0.5853663", "0.578871", "0.5725795", "0.56991804", "0.5681522", "0.5679746", "0.5668019", "0.5656974", "0.565354", "0.55830324", "0.5571635", "0.5566807", "0.5549788", "0.55000114", "0.5484176", ...
0.7035566
0
Tests whether a record group is sporadic or not.
def _is_sporadic_records(self, run_record_key): # assume it is continual and check if it is in the sporadic groups if run_record_key in SPORADIC_RECORDS: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def group_captured(self, index):\n return self.group_liberties(index) == 0", "def is_group(obj) -> bool:\n return hasattr(obj, IOConstants.GROUP_ATTR_NAME)", "def group_is_surrounded(group, board):\n if group_adjacents(group, board, filter_by=\"None\"):\n return False\n else:\n re...
[ "0.5939701", "0.5850927", "0.5805522", "0.5638762", "0.5529045", "0.5529045", "0.55210555", "0.5494465", "0.5463439", "0.5458782", "0.5453926", "0.5388688", "0.53747904", "0.5359053", "0.5349522", "0.5318507", "0.5311765", "0.5285225", "0.5254578", "0.52271926", "0.5206071", ...
0.7786033
0
Register a trajectory field as sparse in the header settings.
def _add_sparse_field_flag(self, field_path): sparse_fields_ds = self._h5['{}/{}'.format(SETTINGS, SPARSE_FIELDS)] # make sure it isn't already in the sparse_fields if field_path in sparse_fields_ds[:]: warn("sparse field {} already a sparse field, ignoring".format(field_path)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _extend_sparse_traj_field(self, run_idx, traj_idx, field_path, values, sparse_idxs):\n\n field = self.h5['{}/{}/{}/{}/{}'.format(RUNS, run_idx, TRAJECTORIES, traj_idx, field_path)]\n\n field_data = field[DATA]\n field_sparse_idxs = field[SPARSE_IDXS]\n\n # number of new frames\n ...
[ "0.63738257", "0.62910813", "0.5838134", "0.5774821", "0.5652478", "0.56193876", "0.5481109", "0.54613274", "0.5457621", "0.53754085", "0.5366045", "0.5357568", "0.53176725", "0.5310599", "0.52801174", "0.52588004", "0.51755196", "0.5163462", "0.51394224", "0.50941455", "0.50...
0.73542196
0
Generate a list of proper (nametuple) records for a record group.
def _make_records(self, run_record_key, cycle_idxs, fields): Record = self._run_record_namedtuple(run_record_key) # for each record we make a tuple and yield it records = [] for record_idx in range(len(cycle_idxs)): # make a record for this cycle record_d = {CYC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def record_fields(self):\n\n record_fields_grp = self.settings_grp[RECORD_FIELDS]\n\n record_fields_dict = {}\n for group_name, dset in record_fields_grp.items():\n record_fields_dict[group_name] = list(dset.asstr())\n\n return record_fields_dict", "def _run_record_namedtup...
[ "0.5883221", "0.58103144", "0.57897985", "0.5771867", "0.5723682", "0.5701562", "0.56957364", "0.56919324", "0.56741834", "0.56506157", "0.55981195", "0.5568266", "0.55375576", "0.55197513", "0.5488848", "0.5483353", "0.5436168", "0.5405559", "0.5404196", "0.5398701", "0.5388...
0.5724867
4
Set the starting snapshot hash identifier for a run from orchestration.
def set_run_start_snapshot_hash(self, run_idx, snaphash): if RUN_START_SNAPSHOT_HASH not in self.run_grp(run_idx).attrs: self.run_grp(run_idx).attrs[RUN_START_SNAPSHOT_HASH] = snaphash else: raise AttributeError("The snapshot has already been set.")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def run_start_snapshot_hash(self, run_idx):\n return self.run_grp(run_idx).attrs[RUN_START_SNAPSHOT_HASH]", "def set_run_end_snapshot_hash(self, run_idx, snaphash):\n if RUN_END_SNAPSHOT_HASH not in self.run_grp(run_idx).attrs:\n self.run_grp(run_idx).attrs[RUN_END_SNAPSHOT_HASH] = snaph...
[ "0.72720325", "0.6083948", "0.5884834", "0.5884834", "0.5761171", "0.5738434", "0.5715354", "0.57101905", "0.57101905", "0.57101905", "0.56001776", "0.54939634", "0.5294689", "0.5284445", "0.52557015", "0.520897", "0.5195728", "0.51809794", "0.5145471", "0.5134227", "0.512401...
0.8083605
0
Get a record group h5py.Group for a run.
def records_grp(self, run_idx, run_record_key): path = '{}/{}/{}'.format(RUNS, run_idx, run_record_key) return self.h5[path]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_group(self, group_name):\n\n return self._group[group_name]", "def group(self) -> h5py.Group:\n return self.f[self.DIGI_ROOT]", "def get_group(self):\n return self._group", "def getGroup(uniq):\n return Group(Cuebot.getStub('group').GetGroup(\n job_pb2.GroupGetGroupRequest(...
[ "0.6741362", "0.670125", "0.66742843", "0.6486559", "0.63977927", "0.6395217", "0.6380674", "0.6380674", "0.6380674", "0.63689584", "0.6283663", "0.6282172", "0.628016", "0.6279547", "0.6237965", "0.6194399", "0.6189552", "0.6186613", "0.618636", "0.6144496", "0.61100817", ...
0.7275214
0
Get this record group for a run.
def resampling_grp(self, run_idx): return self.records_grp(run_idx, RESAMPLING)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def records_grp(self, run_idx, run_record_key):\n path = '{}/{}/{}'.format(RUNS, run_idx, run_record_key)\n return self.h5[path]", "def get_group(self):\n return self._group", "def group(self):\n return self._group", "def group(self):\n return self._group", "def group(sel...
[ "0.7235972", "0.6756153", "0.66708", "0.66708", "0.66708", "0.66110986", "0.65404403", "0.6481974", "0.64688045", "0.6239992", "0.6209695", "0.61806923", "0.61656535", "0.61656535", "0.61656535", "0.61430514", "0.6141664", "0.6127927", "0.61050844", "0.60757965", "0.60465765"...
0.5583652
63
Get this record group for a run.
def resampler_grp(self, run_idx): return self.records_grp(run_idx, RESAMPLER)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def records_grp(self, run_idx, run_record_key):\n path = '{}/{}/{}'.format(RUNS, run_idx, run_record_key)\n return self.h5[path]", "def get_group(self):\n return self._group", "def group(self):\n return self._group", "def group(self):\n return self._group", "def group(sel...
[ "0.7235972", "0.6756153", "0.66708", "0.66708", "0.66708", "0.66110986", "0.65404403", "0.6481974", "0.64688045", "0.6239992", "0.6209695", "0.61806923", "0.61656535", "0.61656535", "0.61656535", "0.61430514", "0.6141664", "0.6127927", "0.61050844", "0.60757965", "0.60465765"...
0.5938626
32
Get this record group for a run.
def warping_grp(self, run_idx): return self.records_grp(run_idx, WARPING)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def records_grp(self, run_idx, run_record_key):\n path = '{}/{}/{}'.format(RUNS, run_idx, run_record_key)\n return self.h5[path]", "def get_group(self):\n return self._group", "def group(self):\n return self._group", "def group(self):\n return self._group", "def group(sel...
[ "0.7235972", "0.6756153", "0.66708", "0.66708", "0.66708", "0.66110986", "0.65404403", "0.6481974", "0.64688045", "0.6239992", "0.6209695", "0.61806923", "0.61656535", "0.61656535", "0.61656535", "0.61430514", "0.6141664", "0.6127927", "0.61050844", "0.60757965", "0.60465765"...
0.54767764
77
Get this record group for a run.
def bc_grp(self, run_idx): return self.records_grp(run_idx, BC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def records_grp(self, run_idx, run_record_key):\n path = '{}/{}/{}'.format(RUNS, run_idx, run_record_key)\n return self.h5[path]", "def get_group(self):\n return self._group", "def group(self):\n return self._group", "def group(self):\n return self._group", "def group(sel...
[ "0.7235382", "0.6758199", "0.66731846", "0.66731846", "0.66731846", "0.6612198", "0.6542206", "0.6481564", "0.64706606", "0.62421536", "0.621009", "0.6182684", "0.6167695", "0.6167695", "0.6167695", "0.6144142", "0.6143735", "0.6130316", "0.6106841", "0.60771126", "0.60495126...
0.59712756
30
Get this record group for a run.
def progress_grp(self, run_idx): return self.records_grp(run_idx, PROGRESS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def records_grp(self, run_idx, run_record_key):\n path = '{}/{}/{}'.format(RUNS, run_idx, run_record_key)\n return self.h5[path]", "def get_group(self):\n return self._group", "def group(self):\n return self._group", "def group(self):\n return self._group", "def group(sel...
[ "0.7235972", "0.6756153", "0.66708", "0.66708", "0.66708", "0.66110986", "0.65404403", "0.6481974", "0.64688045", "0.6239992", "0.6209695", "0.61806923", "0.61656535", "0.61656535", "0.61656535", "0.61430514", "0.6141664", "0.6127927", "0.61050844", "0.60757965", "0.60465765"...
0.0
-1
Mapping of decision enumerated names to their integer representations.
def decision_enum(self, run_idx): enum_grp = self.decision_grp(run_idx) enum = {} for decision_name, dset in enum_grp.items(): enum[decision_name] = dset[()] return enum
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def decision_value_names(self, run_idx):\n enum_grp = self.decision_grp(run_idx)\n rev_enum = {}\n for decision_name, dset in enum_grp.items():\n value = dset[()]\n rev_enum[value] = decision_name\n\n return rev_enum", "def mapping_for_enum(mapping):\n return ...
[ "0.6825217", "0.6592156", "0.6142857", "0.6118574", "0.5953255", "0.5792409", "0.5744584", "0.5710363", "0.57087696", "0.5686787", "0.559997", "0.5591235", "0.5576492", "0.55735457", "0.555633", "0.5492551", "0.5454745", "0.54523724", "0.5408459", "0.5407639", "0.54071635", ...
0.68410397
0
The number of atoms in the full topology representation.
def num_atoms(self): return self.h5['{}/{}'.format(SETTINGS, N_ATOMS)][()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def numAtoms(self):\n return self.nAtoms", "def total_num_atoms(self):\n return self.GetNumberOfAtoms()", "def natoms(self):\n return len(self.atoms)", "def size(self):\r\n return len(atoms)", "def get_num_atoms(self):\n\n return len(self.atoms)", "def number_of_atoms(s...
[ "0.83106863", "0.8095156", "0.80809", "0.80523205", "0.80232954", "0.801317", "0.7980828", "0.79804856", "0.79782075", "0.78486603", "0.7834318", "0.7829614", "0.782006", "0.77710414", "0.7628419", "0.7570202", "0.756733", "0.75615627", "0.75615627", "0.7461246", "0.74474096"...
0.7797931
13
The number of frames in a given trajectory.
def num_traj_frames(self, run_idx, traj_idx): return self.traj(run_idx, traj_idx)[POSITIONS].shape[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_num_frames(self):\n return self._frames.shape[0]", "def get_total_frames(self) -> int:\n return self.num_frames", "def size(self):\n if self.frames is None:\n return 0\n return self.frames.size", "def number_frames(signal_len, frame_len, frame_step):\n frames = 1...
[ "0.79485214", "0.7911246", "0.75597554", "0.74824876", "0.745649", "0.74550205", "0.72802645", "0.71958756", "0.7133606", "0.7031344", "0.7019621", "0.69941866", "0.69397753", "0.69194055", "0.6914791", "0.6899361", "0.68724704", "0.68151104", "0.6803423", "0.6776164", "0.673...
0.7044593
9
Clone the header information of this file into another file. Clones this WepyHDF5 file without any of the actual runs and run data. This includes the topology, units, sparse_fields, feature shapes and dtypes, alt_reps, and main representation information. This method will flush the buffers for this file. Does not prese...
def clone(self, path, mode='x'): assert mode in ['w', 'w-', 'x'], "must be opened in a file creation mode" # we manually construct an HDF5 and copy the groups over new_h5 = h5py.File(path, mode=mode, libver=H5PY_LIBVER) new_h5.require_group(RUNS) # flush the datasets buffers ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_header(self) -> None:\n self.header.partial_reset()\n self.header.point_format_id = self.points.point_format.id\n self.header.point_data_record_length = self.points.point_size\n\n if len(self.points) > 0:\n self.header.update(self.points)\n\n if self.header....
[ "0.6250937", "0.59135664", "0.58960545", "0.5643494", "0.56335986", "0.56028795", "0.55837166", "0.5412402", "0.541239", "0.5392899", "0.53827566", "0.53770095", "0.53475076", "0.5307447", "0.5279156", "0.5247523", "0.5233079", "0.5229903", "0.5222605", "0.5216778", "0.521575...
0.6031726
1
Get the records this record group for the contig that is formed by the run indices. This alters the cycle indices for the records so that they appear to have come from a single run. That is they are the cycle indices of the contig.
def resampling_records(self, run_idxs): return self.run_contig_records(run_idxs, RESAMPLING)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def run_contig_records(self, run_idxs, run_record_key):\n\n # if there are no fields return an empty list\n record_fields = self.record_fields[run_record_key]\n if len(record_fields) == 0:\n return []\n\n # get the iterator for the record idxs, if the group is\n # spor...
[ "0.7012176", "0.6871657", "0.67373407", "0.6350654", "0.6347994", "0.625871", "0.6196052", "0.60863477", "0.595363", "0.59109724", "0.5883437", "0.5874572", "0.57780194", "0.5676596", "0.5675032", "0.56544393", "0.55753696", "0.55510056", "0.5448218", "0.54424596", "0.5416773...
0.57308894
13
Get the records this record group for the contig that is formed by the run indices. This alters the cycle indices for the records so that they appear to have come from a single run. That is they are the cycle indices of the contig.
def resampler_records(self, run_idxs): return self.run_contig_records(run_idxs, RESAMPLER)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def run_contig_records(self, run_idxs, run_record_key):\n\n # if there are no fields return an empty list\n record_fields = self.record_fields[run_record_key]\n if len(record_fields) == 0:\n return []\n\n # get the iterator for the record idxs, if the group is\n # spor...
[ "0.7010152", "0.68710417", "0.67369825", "0.63492906", "0.634768", "0.6258491", "0.61950696", "0.60870457", "0.59540856", "0.5884283", "0.58751065", "0.57783943", "0.5730221", "0.56748515", "0.56735677", "0.56557715", "0.55757827", "0.55509895", "0.5448286", "0.5441083", "0.5...
0.59102577
9
Get the records this record group for the contig that is formed by the run indices. This alters the cycle indices for the records so that they appear to have come from a single run. That is they are the cycle indices of the contig.
def warping_records(self, run_idxs): return self.run_contig_records(run_idxs, WARPING)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def run_contig_records(self, run_idxs, run_record_key):\n\n # if there are no fields return an empty list\n record_fields = self.record_fields[run_record_key]\n if len(record_fields) == 0:\n return []\n\n # get the iterator for the record idxs, if the group is\n # spor...
[ "0.7012176", "0.6871657", "0.67373407", "0.6350654", "0.6347994", "0.625871", "0.6196052", "0.60863477", "0.595363", "0.59109724", "0.5883437", "0.5874572", "0.57780194", "0.57308894", "0.5676596", "0.5675032", "0.56544393", "0.55753696", "0.55510056", "0.5448218", "0.5442459...
0.5201743
30
Get the records this record group for the contig that is formed by the run indices. This alters the cycle indices for the records so that they appear to have come from a single run. That is they are the cycle indices of the contig.
def bc_records(self, run_idxs): return self.run_contig_records(run_idxs, BC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def run_contig_records(self, run_idxs, run_record_key):\n\n # if there are no fields return an empty list\n record_fields = self.record_fields[run_record_key]\n if len(record_fields) == 0:\n return []\n\n # get the iterator for the record idxs, if the group is\n # spor...
[ "0.7010152", "0.68710417", "0.67369825", "0.63492906", "0.634768", "0.61950696", "0.60870457", "0.59540856", "0.59102577", "0.5884283", "0.58751065", "0.57783943", "0.5730221", "0.56748515", "0.56735677", "0.56557715", "0.55757827", "0.55509895", "0.5448286", "0.5441083", "0....
0.6258491
5
Get the records this record group for the contig that is formed by the run indices. This alters the cycle indices for the records so that they appear to have come from a single run. That is they are the cycle indices of the contig.
def progress_records(self, run_idxs): return self.run_contig_records(run_idxs, PROGRESS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def run_contig_records(self, run_idxs, run_record_key):\n\n # if there are no fields return an empty list\n record_fields = self.record_fields[run_record_key]\n if len(record_fields) == 0:\n return []\n\n # get the iterator for the record idxs, if the group is\n # spor...
[ "0.7012176", "0.6871657", "0.67373407", "0.6350654", "0.6347994", "0.625871", "0.6196052", "0.60863477", "0.595363", "0.59109724", "0.5883437", "0.5874572", "0.57780194", "0.57308894", "0.5676596", "0.56544393", "0.55753696", "0.55510056", "0.5448218", "0.54424596", "0.541677...
0.5675032
15
Returns a numpy array for the given trajectory field. You can control how sparse fields are returned using the `masked` option. When True (default) a masked numpy array will be returned such that you can get which cycles it is from, when False an unmasked array of the data will be returned which has no cycle informatio...
def get_traj_field(self, run_idx, traj_idx, field_path, frames=None, masked=True): traj_path = '{}/{}/{}/{}'.format(RUNS, run_idx, TRAJECTORIES, traj_idx) # if the field doesn't exist return None if not field_path in self._h5[traj_path]: raise KeyError("key for field {} not found"....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_sparse_traj_field(self, run_idx, traj_idx, field_path, frames=None, masked=True):\n\n traj_path = '{}/{}/{}/{}'.format(RUNS, run_idx, TRAJECTORIES, traj_idx)\n traj_grp = self.h5[traj_path]\n field = traj_grp[field_path]\n\n n_frames = traj_grp[POSITIONS].shape[0]\n\n if...
[ "0.66007906", "0.5503805", "0.5444098", "0.5260677", "0.52388763", "0.5184678", "0.51321435", "0.51005036", "0.50112885", "0.5001031", "0.49255487", "0.4901437", "0.48993695", "0.4890715", "0.4831148", "0.47481462", "0.4684871", "0.46608904", "0.46582782", "0.46504432", "0.46...
0.54433763
3
Gets the object_type of this TaskModel.
def object_type(self) -> str: return self._object_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def object_type(self):\n return self._object_type", "def object_type(self):\n return self._object_type", "def object_type(self):\n return self._object_type", "def object_type(self):\n return self._object_type", "def object_type(self):\n return self._object_type", "def o...
[ "0.82942486", "0.82942486", "0.82942486", "0.82942486", "0.82942486", "0.7876494", "0.7876494", "0.7876494", "0.7876494", "0.7876494", "0.7876494", "0.7876494", "0.7876494", "0.7876494", "0.7876494", "0.7876494", "0.7876494", "0.7876494", "0.7876494", "0.7876494", "0.7876494"...
0.806358
5
Sets the object_type of this TaskModel.
def object_type(self, object_type: str): allowed_values = ["actuator", "sensor", "human", "service", "skill", "task", "action", "healthdata", "humanrole", "message", "permission", "preference", "property"] # noqa: E501 if object_type not in allowed_values: raise Va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def object_type(self, object_type):\n\n self._object_type = object_type", "def object_type(self, object_type):\n\n self._object_type = object_type", "def object_type(self, object_type):\n\n self._object_type = object_type", "def object_type(self, object_type):\n\n self._object_typ...
[ "0.80628556", "0.80628556", "0.80628556", "0.80628556", "0.80628556", "0.6882336", "0.6503512", "0.6503512", "0.6498796", "0.6242198", "0.6242198", "0.6242198", "0.6242198", "0.6242198", "0.62270427", "0.61937463", "0.6191165", "0.6191165", "0.6191165", "0.6191165", "0.619116...
0.7345705
5
Gets the name of this TaskModel.
def name(self) -> str: return self._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def task_name(self) -> str:\n return self._task_name", "def getTaskName(self):\n return self._taskName", "def name(self) -> str:\n return self._name(self.model).decode(\"utf-8\")", "def name(self) -> str:\n return self._model.name", "def getName(self):\n return _libsbml.M...
[ "0.8188308", "0.81821865", "0.7945409", "0.7936867", "0.78172475", "0.77631205", "0.7716459", "0.7660897", "0.7660897", "0.7656608", "0.7656608", "0.7651226", "0.7651226", "0.7651226", "0.7615661", "0.7602451", "0.76019627", "0.7564669", "0.7564669", "0.7564669", "0.7564669",...
0.74730575
94
Sets the name of this TaskModel.
def name(self, name: str): if name is None: raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_name(self, name: str):\n self._name = name", "def set_name(self, name):\n self.name = name", "def set_name(self, name):\n self.name = name", "def set_name(self, name):\n self.name = name", "def set_name(self, name):\n self.name = name", "def set_name(self, name)...
[ "0.7598842", "0.7595586", "0.7595586", "0.7595586", "0.7595586", "0.7595586", "0.7582686", "0.75632083", "0.75632083", "0.75550044", "0.7532821", "0.7502997", "0.74932516", "0.7463663", "0.74458164", "0.74105656", "0.7371017", "0.7368171", "0.7329577", "0.7312187", "0.7312187...
0.0
-1
Gets the uuid of this TaskModel.
def uuid(self) -> str: return self._uuid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uuid(self) -> str:\n return self.obj.uuid", "def uuid(self):\n\n return self.__uuid", "def uuid(self) -> str:\n return self.__uuid", "def uuid(self):\n return self.__uuid", "def uuid(self):\n return self.__uuid", "def uuid(self):\n return self._uuid", "def ...
[ "0.7884846", "0.7856678", "0.77835226", "0.77512234", "0.77512234", "0.7730734", "0.7730734", "0.76586854", "0.7652762", "0.7493101", "0.72812825", "0.72063845", "0.72063845", "0.709761", "0.7082265", "0.7051908", "0.698914", "0.6957231", "0.6957231", "0.6957231", "0.6957231"...
0.77795225
4
Sets the uuid of this TaskModel.
def uuid(self, uuid: str): if uuid is None: raise ValueError("Invalid value for `uuid`, must not be `None`") # noqa: E501 self._uuid = uuid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uuid(self, uuid: str):\n \n self._uuid = uuid", "def uuid(self, uuid: str):\n\n self._uuid = uuid", "def uuid(self, uuid):\n\n self._uuid = uuid", "def uuid(self, uuid):\n\n self._uuid = uuid", "def uuid(self, uuid):\n\n self._uuid = uuid", "def uuid(self, uu...
[ "0.7704234", "0.76038593", "0.7602562", "0.7602562", "0.7602562", "0.7602562", "0.7239823", "0.71011907", "0.71011907", "0.6180526", "0.61795586", "0.60404617", "0.6032652", "0.59164864", "0.59156567", "0.58456314", "0.5824106", "0.5824106", "0.5824106", "0.5823574", "0.58145...
0.72623485
6
Gets the kafka_topic of this TaskModel.
def kafka_topic(self) -> str: return self._kafka_topic
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kafka_topic(self):\n from corehq.apps.change_feed.topics import get_topic_for_doc_type\n return get_topic_for_doc_type(self.document_class().to_json()['doc_type'])", "def get_topic(self):\n return self.topic", "def topic(self):\n return self._topic_name", "def get_kafka_source...
[ "0.8125213", "0.75920796", "0.7484846", "0.74224305", "0.73892105", "0.7344232", "0.72587866", "0.68769825", "0.68633246", "0.67378104", "0.6712125", "0.6652877", "0.64558464", "0.6303588", "0.62238103", "0.62133557", "0.62005055", "0.61933774", "0.6183949", "0.61651915", "0....
0.85651463
0
Sets the kafka_topic of this TaskModel.
def kafka_topic(self, kafka_topic: str): self._kafka_topic = kafka_topic
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def topic(self, topic: str):\n if topic is None:\n raise ValueError(\"Invalid value for `topic`, must not be `None`\") # noqa: E501\n\n self._topic = topic", "def kafka_topic(self) -> str:\n return self._kafka_topic", "def topic_id(self, topic_id: TopicId):\n\n self._top...
[ "0.69153917", "0.6795536", "0.6454712", "0.6324209", "0.63158596", "0.61396825", "0.60019654", "0.5730284", "0.5724005", "0.57072926", "0.56776005", "0.561502", "0.55259293", "0.5494132", "0.5480822", "0.54794204", "0.54664534", "0.5405685", "0.5401821", "0.5363189", "0.53278...
0.847633
0
Gets the id of this TaskModel.
def id(self) -> str: return self._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def task_id(self):\n return self._task_id", "def task_id(self):\n return self._task_id", "def task_id(self):\n return self._task_id", "def task_id(self):\n return self._task_id", "def task_id(self):\n return self._mpis.task_id", "def get_id(self) -> int:\n return...
[ "0.79638904", "0.79638904", "0.79638904", "0.79638904", "0.77038246", "0.7594365", "0.7594365", "0.759055", "0.7582333", "0.7582333", "0.7582333", "0.7582333", "0.7582333", "0.7582333", "0.7582333", "0.7582333", "0.7582333", "0.7582333", "0.7582333", "0.7582333", "0.7582333",...
0.0
-1
Sets the id of this TaskModel.
def id(self, id: str): self._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_id(self, id_):\n\n self.id_ = id_", "def SetId(self, id):\n self.id = int(id)", "def set_id(self, id):\n self.__id = id", "def set_id(self, id_=None):\n if id_ is None:\n self.id = id(self)\n else:\n self.id = id_", "def set_id(self, id):\n ...
[ "0.76838064", "0.76185054", "0.75760674", "0.7406051", "0.7288236", "0.72402185", "0.72402185", "0.72402185", "0.7139584", "0.7139584", "0.7139584", "0.7139584", "0.7139584", "0.7139584", "0.7139584", "0.7139584", "0.7139584", "0.7139584", "0.7076275", "0.7076275", "0.7076275...
0.7036726
23
Returns a list of the months to be synced
def get_months(path): now = datetime.now() retval = [] month_iterator = get_start_date(path) while not (month_iterator.year == now.year and month_iterator.month == now.month): if month_iterator >= START: retval.append(month_iterator) month_iterator += relativedelta(months=1) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_months(self, cr, uid, context):\n months=[(str(n),str(n)) for n in range(1,13)]\n return months", "def get_months(self):\n return self.__months;", "def month(self):\n return self._months", "def get_months(self):\n m = []\n for post in self:\n d = \"-\"....
[ "0.6945399", "0.69300836", "0.68958724", "0.6875779", "0.6735041", "0.6389204", "0.6283045", "0.6256061", "0.61652696", "0.61389756", "0.6031838", "0.6005669", "0.5951958", "0.5927897", "0.59147006", "0.58816195", "0.58694184", "0.5865746", "0.5807138", "0.57695633", "0.57556...
0.67170155
5
Returns the start date at which to start downloading
def get_start_date(path): if not os.path.exists(path): return START years = os.listdir(path) if not years: return START most_recent_year = get_latest(years) or START.year try: months = os.listdir(os.path.join(path, str(most_recent_year))) except OSError: months = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def start_date(self) -> str:\n return pulumi.get(self, \"start_date\")", "def start_date(self) -> str:\n return pulumi.get(self, \"start_date\")", "def starting_date(self):\n return datetime.date(2016, 1, 4)", "def start_date(self) -> str:\n return self._start_date", "def start_...
[ "0.7313493", "0.7313493", "0.72827023", "0.7167054", "0.71568954", "0.71487874", "0.7120758", "0.7120758", "0.7120758", "0.7120758", "0.68655604", "0.6838073", "0.6830162", "0.6830162", "0.6778226", "0.6744281", "0.65851974", "0.6538795", "0.64623153", "0.64441985", "0.644356...
0.6221762
38