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
Test xgate circuits compiling to backend default basis_gates.
def test_x_gate_deterministic_default_basis_gates(self): shots = 100 circuits = ref_1q_clifford.x_gate_circuits_deterministic(final_measure=True) targets = ref_1q_clifford.x_gate_counts_deterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) result = job.result...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_ccx_gate_nondeterministic_default_basis_gates(self):\n shots = 2000\n circuits = ref_non_clifford.ccx_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_non_clifford.ccx_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)\...
[ "0.7554583", "0.7472248", "0.7329457", "0.72758347", "0.72613823", "0.7256315", "0.7247155", "0.7217857", "0.71961826", "0.7186331", "0.7153951", "0.71192724", "0.709676", "0.70882165", "0.70491433", "0.7041295", "0.7039779", "0.70242256", "0.7001978", "0.6986011", "0.6984957...
0.7420511
2
Test xgate gate circuits compiling to u1,u2,u3,cx
def test_x_gate_deterministic_waltz_basis_gates(self): shots = 100 circuits = ref_1q_clifford.x_gate_circuits_deterministic(final_measure=True) targets = ref_1q_clifford.x_gate_counts_deterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots, basis_gates='u1,u2,u3,cx') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_cx_gate_nondeterministic_waltz_basis_gates(self):\n shots = 2000\n circuits = ref_2q_clifford.cx_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_2q_clifford.cx_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots, basis_g...
[ "0.69041014", "0.6881165", "0.6676283", "0.66746193", "0.66634905", "0.6628583", "0.6516066", "0.6505486", "0.64624846", "0.64600927", "0.63465685", "0.6333624", "0.63310033", "0.63290864", "0.63103133", "0.6269646", "0.62488174", "0.6196327", "0.61816514", "0.617424", "0.617...
0.69452184
0
Test zgate circuits compiling to backend default basis_gates.
def test_z_gate_deterministic_default_basis_gates(self): shots = 100 circuits = ref_1q_clifford.z_gate_circuits_deterministic(final_measure=True) targets = ref_1q_clifford.z_gate_counts_deterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) result = job.result...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_cz_gate_nondeterministic_default_basis_gates(self):\n shots = 2000\n circuits = ref_2q_clifford.cz_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_2q_clifford.cz_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)\n ...
[ "0.73091984", "0.722581", "0.7166601", "0.71244437", "0.712346", "0.7121729", "0.7090531", "0.7075242", "0.7046272", "0.70444185", "0.7024592", "0.70202523", "0.6985828", "0.6965861", "0.69522005", "0.6922839", "0.6914917", "0.6905512", "0.6887581", "0.6886832", "0.68828046",...
0.7344724
0
Test ygate circuits compiling to backend default basis_gates.
def test_y_gate_deterministic_default_basis_gates(self): shots = 100 circuits = ref_1q_clifford.y_gate_circuits_deterministic(final_measure=True) targets = ref_1q_clifford.y_gate_counts_deterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) result = job.result...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_y_gate_deterministic_minimal_basis_gates(self):\n shots = 100\n circuits = ref_1q_clifford.y_gate_circuits_deterministic(final_measure=True)\n targets = ref_1q_clifford.y_gate_counts_deterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots, basis_gates='U,CX'...
[ "0.72413856", "0.7060755", "0.7053002", "0.70496523", "0.6974167", "0.6956232", "0.69382346", "0.6910151", "0.6901016", "0.6814808", "0.68124855", "0.6808401", "0.6795931", "0.6792142", "0.677961", "0.6774288", "0.67443395", "0.67240345", "0.6722375", "0.67059004", "0.6705751...
0.74641204
0
Test sgate circuits compiling to backend default basis_gates.
def test_s_gate_deterministic_default_basis_gates(self): shots = 100 circuits = ref_1q_clifford.s_gate_circuits_deterministic(final_measure=True) targets = ref_1q_clifford.s_gate_counts_deterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) result = job.result...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_s_gate_nondeterministic_default_basis_gates(self):\n shots = 2000\n circuits = ref_1q_clifford.s_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_1q_clifford.s_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)\n ...
[ "0.7473096", "0.7262041", "0.72478783", "0.7174566", "0.71536344", "0.7145444", "0.711653", "0.7106762", "0.71022815", "0.706155", "0.7054777", "0.70366704", "0.70266765", "0.70226395", "0.70162135", "0.6987787", "0.6976222", "0.69588745", "0.6950729", "0.69390666", "0.690690...
0.73177856
1
Test sgate circuits compiling to backend default basis_gates.
def test_s_gate_nondeterministic_default_basis_gates(self): shots = 2000 circuits = ref_1q_clifford.s_gate_circuits_nondeterministic(final_measure=True) targets = ref_1q_clifford.s_gate_counts_nondeterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) result = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_s_gate_deterministic_default_basis_gates(self):\n shots = 100\n circuits = ref_1q_clifford.s_gate_circuits_deterministic(final_measure=True)\n targets = ref_1q_clifford.s_gate_counts_deterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)\n result = ...
[ "0.73191", "0.7262805", "0.72496784", "0.7176379", "0.71553266", "0.7147389", "0.7118144", "0.7108325", "0.7103376", "0.706314", "0.70560884", "0.7038573", "0.70276916", "0.70241386", "0.7017534", "0.69889456", "0.69779694", "0.69602495", "0.6952364", "0.6940532", "0.6909003"...
0.74746287
0
Test sdggate circuits compiling to backend default basis_gates.
def test_sdg_gate_deterministic_default_basis_gates(self): shots = 100 circuits = ref_1q_clifford.sdg_gate_circuits_deterministic(final_measure=True) targets = ref_1q_clifford.sdg_gate_counts_deterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) result = job....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_sdg_gate_nondeterministic_minimal_basis_gates(self):\n shots = 2000\n circuits = ref_1q_clifford.sdg_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_1q_clifford.sdg_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots, ba...
[ "0.6947991", "0.6873844", "0.6861845", "0.6849735", "0.6849551", "0.6823738", "0.6817223", "0.67783517", "0.6764456", "0.67568296", "0.6750214", "0.6721248", "0.6712446", "0.67022026", "0.6687767", "0.66834927", "0.66429645", "0.6619415", "0.66049725", "0.66028315", "0.659454...
0.70140016
0
Test cxgate circuits compiling to backend default basis_gates.
def test_cx_gate_deterministic_default_basis_gates(self): shots = 100 circuits = ref_2q_clifford.cx_gate_circuits_deterministic(final_measure=True) targets = ref_2q_clifford.cx_gate_counts_deterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) result = job.res...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_ccx_gate_nondeterministic_default_basis_gates(self):\n shots = 2000\n circuits = ref_non_clifford.ccx_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_non_clifford.ccx_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)\...
[ "0.7624041", "0.75844854", "0.7518854", "0.7456591", "0.7401123", "0.7385761", "0.733946", "0.73382396", "0.73312485", "0.7301481", "0.7280853", "0.7242311", "0.7240918", "0.7239307", "0.7220641", "0.7198672", "0.71920276", "0.7172943", "0.71615034", "0.7151018", "0.7115767",...
0.7441448
4
Test cxgate circuits compiling to backend default basis_gates.
def test_cx_gate_nondeterministic_default_basis_gates(self): shots = 2000 circuits = ref_2q_clifford.cx_gate_circuits_nondeterministic(final_measure=True) targets = ref_2q_clifford.cx_gate_counts_nondeterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) result...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_ccx_gate_nondeterministic_default_basis_gates(self):\n shots = 2000\n circuits = ref_non_clifford.ccx_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_non_clifford.ccx_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)\...
[ "0.7624041", "0.7518854", "0.7456591", "0.7441448", "0.7401123", "0.7385761", "0.733946", "0.73382396", "0.73312485", "0.7301481", "0.7280853", "0.7242311", "0.7240918", "0.7239307", "0.7220641", "0.7198672", "0.71920276", "0.7172943", "0.71615034", "0.7151018", "0.7115767", ...
0.75844854
1
Test czgate circuits compiling to backend default basis_gates.
def test_cz_gate_deterministic_default_basis_gates(self): shots = 100 circuits = ref_2q_clifford.cz_gate_circuits_deterministic(final_measure=True) targets = ref_2q_clifford.cz_gate_counts_deterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) result = job.res...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_cz_gate_nondeterministic_default_basis_gates(self):\n shots = 2000\n circuits = ref_2q_clifford.cz_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_2q_clifford.cz_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)\n ...
[ "0.75798404", "0.7452414", "0.73835856", "0.72760344", "0.7256443", "0.7196268", "0.718324", "0.71134186", "0.71084696", "0.7095254", "0.70548123", "0.7007621", "0.69776237", "0.69405013", "0.6937455", "0.68746626", "0.68713784", "0.6853083", "0.684844", "0.67927", "0.6792511...
0.7372475
3
Test czgate circuits compiling to backend default basis_gates.
def test_cz_gate_nondeterministic_default_basis_gates(self): shots = 2000 circuits = ref_2q_clifford.cz_gate_circuits_nondeterministic(final_measure=True) targets = ref_2q_clifford.cz_gate_counts_nondeterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) result...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_cz_gate_nondeterministic_waltz_basis_gates(self):\n shots = 2000\n circuits = ref_2q_clifford.cz_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_2q_clifford.cz_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots, basis_g...
[ "0.74537945", "0.73844993", "0.7372994", "0.72775126", "0.7256963", "0.71972305", "0.718363", "0.71148044", "0.7110015", "0.7095822", "0.70552343", "0.70085657", "0.697843", "0.69422036", "0.693793", "0.68755335", "0.6872383", "0.6852951", "0.6848701", "0.679304", "0.67926466...
0.75803477
0
Test swapgate circuits compiling to backend default basis_gates.
def test_swap_gate_deterministic_default_basis_gates(self): shots = 100 circuits = ref_2q_clifford.swap_gate_circuits_deterministic(final_measure=True) targets = ref_2q_clifford.swap_gate_counts_deterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) result = j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_swap_gate_nondeterministic_default_basis_gates(self):\n shots = 2000\n circuits = ref_2q_clifford.swap_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_2q_clifford.swap_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)...
[ "0.74129146", "0.7218227", "0.7203989", "0.71082", "0.70861053", "0.69453865", "0.6934578", "0.6926715", "0.69079363", "0.6907454", "0.6861934", "0.6861057", "0.68249935", "0.6781398", "0.67774713", "0.6764924", "0.67644745", "0.6761588", "0.6754264", "0.6731301", "0.6710128"...
0.7295797
1
Test swapgate circuits compiling to backend default basis_gates.
def test_swap_gate_nondeterministic_default_basis_gates(self): shots = 2000 circuits = ref_2q_clifford.swap_gate_circuits_nondeterministic(final_measure=True) targets = ref_2q_clifford.swap_gate_counts_nondeterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_swap_gate_deterministic_default_basis_gates(self):\n shots = 100\n circuits = ref_2q_clifford.swap_gate_circuits_deterministic(final_measure=True)\n targets = ref_2q_clifford.swap_gate_counts_deterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)\n ...
[ "0.72951084", "0.72179615", "0.72039074", "0.71078306", "0.70859677", "0.6946293", "0.6935844", "0.6927537", "0.6908948", "0.6908239", "0.68628204", "0.6862015", "0.68255913", "0.6782068", "0.6777967", "0.6766105", "0.6765088", "0.67620885", "0.67549044", "0.67329216", "0.671...
0.74124205
0
Test tgate circuits compiling to backend default basis_gates.
def test_t_gate_deterministic_default_basis_gates(self): shots = 100 circuits = ref_non_clifford.t_gate_circuits_deterministic(final_measure=True) targets = ref_non_clifford.t_gate_counts_deterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) result = job.resu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_tdg_gate_nondeterministic_default_basis_gates(self):\n shots = 2000\n circuits = ref_non_clifford.tdg_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_non_clifford.tdg_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)\...
[ "0.75659615", "0.7494304", "0.7451148", "0.72925794", "0.7252799", "0.72128123", "0.7187104", "0.71834195", "0.7181024", "0.71792954", "0.7129409", "0.7109747", "0.7059199", "0.70582455", "0.70501983", "0.7029888", "0.6955632", "0.69546896", "0.6952948", "0.69059604", "0.6878...
0.73419005
3
Test tgate circuits compiling to backend default basis_gates.
def test_t_gate_nondeterministic_default_basis_gates(self): shots = 2000 circuits = ref_non_clifford.t_gate_circuits_nondeterministic(final_measure=True) targets = ref_non_clifford.t_gate_counts_nondeterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) result ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_tdg_gate_nondeterministic_default_basis_gates(self):\n shots = 2000\n circuits = ref_non_clifford.tdg_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_non_clifford.tdg_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)\...
[ "0.7565061", "0.74503344", "0.7341256", "0.7291918", "0.72523016", "0.7212398", "0.71867126", "0.71830916", "0.7180589", "0.7178804", "0.71291804", "0.7109538", "0.70589966", "0.70578265", "0.704987", "0.70298386", "0.6955107", "0.69543195", "0.6952758", "0.6906119", "0.68785...
0.7493583
1
Test tdggate circuits compiling to backend default basis_gates.
def test_tdg_gate_deterministic_default_basis_gates(self): shots = 100 circuits = ref_non_clifford.tdg_gate_circuits_deterministic(final_measure=True) targets = ref_non_clifford.tdg_gate_counts_deterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) result = jo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_tdg_gate_nondeterministic_default_basis_gates(self):\n shots = 2000\n circuits = ref_non_clifford.tdg_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_non_clifford.tdg_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)\...
[ "0.7215792", "0.707713", "0.7004125", "0.69749683", "0.69583803", "0.6866022", "0.68557143", "0.685312", "0.6841776", "0.682802", "0.67974174", "0.67509073", "0.6725221", "0.6715669", "0.6715013", "0.66520125", "0.66153425", "0.65972924", "0.65887433", "0.65876806", "0.658036...
0.71004343
1
Test tdggate circuits compiling to backend default basis_gates.
def test_tdg_gate_nondeterministic_default_basis_gates(self): shots = 2000 circuits = ref_non_clifford.tdg_gate_circuits_nondeterministic(final_measure=True) targets = ref_non_clifford.tdg_gate_counts_nondeterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_tdg_gate_deterministic_default_basis_gates(self):\n shots = 100\n circuits = ref_non_clifford.tdg_gate_circuits_deterministic(final_measure=True)\n targets = ref_non_clifford.tdg_gate_counts_deterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)\n r...
[ "0.7099998", "0.7077326", "0.7003313", "0.6975278", "0.69577813", "0.68653107", "0.6855672", "0.6853203", "0.6841155", "0.6828028", "0.6797369", "0.6749916", "0.6725406", "0.67157197", "0.6715024", "0.6651999", "0.6614421", "0.6596933", "0.6588902", "0.6587634", "0.6580153", ...
0.7215368
0
Test ccxgate circuits compiling to backend default basis_gates.
def test_ccx_gate_deterministic_default_basis_gates(self): shots = 100 circuits = ref_non_clifford.ccx_gate_circuits_deterministic(final_measure=True) targets = ref_non_clifford.ccx_gate_counts_deterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) result = jo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_ccx_gate_nondeterministic_default_basis_gates(self):\n shots = 2000\n circuits = ref_non_clifford.ccx_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_non_clifford.ccx_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)\...
[ "0.7583732", "0.75150275", "0.74933594", "0.737724", "0.73605704", "0.73478186", "0.7341658", "0.7324673", "0.7277147", "0.7251017", "0.7236898", "0.7222165", "0.7220899", "0.7186223", "0.711761", "0.70825535", "0.7045295", "0.7040301", "0.703214", "0.7030004", "0.70123535", ...
0.7403834
3
Test ccxgate circuits compiling to backend default basis_gates.
def test_ccx_gate_nondeterministic_default_basis_gates(self): shots = 2000 circuits = ref_non_clifford.ccx_gate_circuits_nondeterministic(final_measure=True) targets = ref_non_clifford.ccx_gate_counts_nondeterministic(shots) job = execute(circuits, QasmSimulator(), shots=shots) r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_cz_gate_nondeterministic_default_basis_gates(self):\n shots = 2000\n circuits = ref_2q_clifford.cz_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_2q_clifford.cz_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)\n ...
[ "0.75159734", "0.74939317", "0.7404426", "0.73778266", "0.73614544", "0.73483235", "0.7342168", "0.7325524", "0.727786", "0.72520715", "0.7237736", "0.7222692", "0.72213507", "0.71870315", "0.7117849", "0.7083509", "0.7046065", "0.7040522", "0.70322853", "0.7030414", "0.70129...
0.7584414
0
Test grovers circuits compiling to backend default basis_gates.
def test_grovers_default_basis_gates(self): shots = 2000 circuits = ref_algorithms.grovers_circuit(final_measure=True, allow_sampling=True) targets = ref_algorithms.grovers_counts(shots) job = execute(circuits, QasmSimulator(), shots=shot...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_ccx_gate_nondeterministic_default_basis_gates(self):\n shots = 2000\n circuits = ref_non_clifford.ccx_gate_circuits_nondeterministic(final_measure=True)\n targets = ref_non_clifford.ccx_gate_counts_nondeterministic(shots)\n job = execute(circuits, QasmSimulator(), shots=shots)\...
[ "0.7166392", "0.71529263", "0.7107727", "0.7066086", "0.70555496", "0.7039857", "0.6995578", "0.69734687", "0.694877", "0.6939183", "0.69077003", "0.6896245", "0.6882244", "0.6878938", "0.6876978", "0.68667537", "0.6866316", "0.6849606", "0.6849195", "0.6838594", "0.6836565",...
0.705475
5
Test teleport circuits compiling to backend default basis_gates.
def test_teleport_default_basis_gates(self): shots = 2000 circuits = ref_algorithms.teleport_circuit() targets = ref_algorithms.teleport_counts(shots) job = execute(circuits, QasmSimulator(), shots=shots) result = job.result() self.is_completed(result) self.compar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_teleport_minimal_basis_gates(self):\n shots = 2000\n circuits = ref_algorithms.teleport_circuit()\n targets = ref_algorithms.teleport_counts(shots)\n job = execute(circuits, QasmSimulator(), shots=shots, basis_gates='U,CX')\n result = job.result()\n self.is_comple...
[ "0.6998243", "0.6944284", "0.6515392", "0.6503163", "0.6452576", "0.6443217", "0.64260584", "0.6415085", "0.64142287", "0.64030385", "0.6400563", "0.6381445", "0.63758874", "0.63464516", "0.6343834", "0.63215", "0.6311994", "0.6303262", "0.6301055", "0.62979543", "0.62892365"...
0.7160677
0
Given any number of dicts, shallow copy and merge into a new dict, precedence goes to key value pairs in latter dicts.
def merge(*dict_args): result = {} for dictionary in dict_args: result.update(dictionary) return result
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _merge_dicts(*args):\n return reduce(lambda d, s: d.update(s) or d, args)", "def _merge_dicts(*args):\n return reduce(lambda d, s: d.update(s) or d, args)", "def merge_dict(lhs, rhs, override=True):\n if not isinstance(lhs, dict) or not isinstance(rhs, dict):\n if override:\n retur...
[ "0.76677", "0.76611084", "0.74781585", "0.7453665", "0.7453665", "0.7453665", "0.7374569", "0.7340452", "0.7307261", "0.72800887", "0.72743416", "0.72547626", "0.72529227", "0.72529227", "0.72529227", "0.72529227", "0.72529227", "0.72529227", "0.7231668", "0.72216153", "0.720...
0.7217156
20
Blur the given surface by the given 'amount'. Only values 1 and greater are valid. Value 1 = no blur.
def blurSurf(surface, amt): amt = max(1, amt) scale = 1.0/float(amt) surf_size = surface.get_size() scale_size = (int(surf_size[0]*scale), int(surf_size[1]*scale)) surf = pygame.transform.smoothscale(surface, scale_size) surf = pygame.transform.smoothscale(surf, surf_size) return surf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def blur_surf(surface, amt):\n\n scale = 1.0/float(amt)\n surf_size = surface.get_size()\n scale_size = (int(surf_size[0]*scale), int(surf_size[1]*scale))\n surf = pygame.transform.smoothscale(surface, scale_size)\n surf = pygame.transform.smoothscale(surf, surf_size)\n return surf", "def blur(...
[ "0.7359321", "0.7043764", "0.6135064", "0.6075021", "0.6052042", "0.5994675", "0.5977381", "0.5977381", "0.5963998", "0.58298075", "0.56906664", "0.5684327", "0.567248", "0.56454414", "0.5627879", "0.5610395", "0.560419", "0.5501832", "0.5474126", "0.5465758", "0.5459887", ...
0.7475007
0
Returns the maximum frame index in a dataset's `index`. This only checks "loose" frames, that aren't a part of a specific video.
def get_max_frame_index(index): max_index = 0 for f in index.get("frames", []): if f["datasetFrameId"] == f["videoMetadata"]["frameId"]: frame_index = f["videoMetadata"]["frameIndex"] max_index = max(max_index, frame_index) return max_index
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def highest_value():\n maximum_number = 0\n for i in xrange(length):\n challenger = frames[i]\n if abs(challenger) > maximum_number:\n maximum_number = abs(challenger)\n return maximum_number", "def get_max_index(a):\n return a.argmax()", "def get_max_index(a):\n return ...
[ "0.65080804", "0.6489011", "0.6489011", "0.6489011", "0.6364705", "0.6293364", "0.61644524", "0.6025325", "0.6025107", "0.60200834", "0.6012742", "0.5991195", "0.58939004", "0.58939004", "0.58939004", "0.58939004", "0.5873719", "0.58619", "0.58548445", "0.58476764", "0.584183...
0.8891691
0
Compute the area of a polygon
def poly_area(polygon,sort=True): npts = len(polygon) if npts < 3: return 0. if sort == True: (points,angles) = sort_points(*polygon) else: points = polygon # now loop through points cyclically computing # area of each polygon segment defined by the points # [0,0],[x1,y1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def area_polygon(polygon):\n o = centroid_points(polygon)\n u = subtract_vectors(polygon[-1], o)\n v = subtract_vectors(polygon[0], o)\n a = 0.5 * length_vector(cross_vectors(u, v))\n for i in range(0, len(polygon) - 1):\n u = v\n v = subtract_vectors(polygon[i + 1], o)\n a += 0...
[ "0.8632217", "0.852801", "0.8443511", "0.8342292", "0.832499", "0.8149186", "0.80133325", "0.7921722", "0.79161876", "0.79159814", "0.78349507", "0.7827047", "0.7816365", "0.7791268", "0.7786348", "0.765989", "0.76585907", "0.76298684", "0.74883795", "0.74292237", "0.7363321"...
0.77722406
15
Compute the inplane area of the polygon defined by the origin and two points (p1 and p2).
def segment_area(p1,p2): # this uses cross product # which computes the full area of # the parrallogram formed by the # two vectors. The polygon area # is half this value. #p1 = num.array([p1[0],p1[1],0.]) #p2 = num.array([p2[0],p2[1],0.]) #a = 0.5*cartesian_mag(num.cross(p1,p2)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def triangleArea(p0, p1, p2):\n return 0.5 * (\n -p1[1] * p2[0]\n + p0[1] * (-p1[0] + p2[0])\n + p0[0] * (p1[1] - p2[1])\n + p1[0] * p2[1]\n )", "def polygon_area(x, y):\n return 0.5 * np.abs(np.dot(x, np.roll(y, 1)) - np.dot(y, np.roll(x, 1)))", "de...
[ "0.70054156", "0.69299585", "0.68752515", "0.6656007", "0.663213", "0.6582727", "0.65778875", "0.657473", "0.65745634", "0.64898974", "0.64809006", "0.6435045", "0.6407505", "0.63817924", "0.63763595", "0.6339714", "0.62998766", "0.6261882", "0.6258323", "0.6245113", "0.62390...
0.7449326
0
Numerically compute the area of a polygon
def poly_area_num(polygon,diameter=None,num_int=100,plot=False): npts = len(polygon) if npts < 3: return 0. points,angles = sort_points(*polygon) polygon = num.array(points) min_y = min(polygon[:,1]) max_y = max(polygon[:,1]) min_x = min(polygon[:,0]) max_x = max(polygon[:,0])...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def area_polygon(polygon):\n o = centroid_points(polygon)\n u = subtract_vectors(polygon[-1], o)\n v = subtract_vectors(polygon[0], o)\n a = 0.5 * length_vector(cross_vectors(u, v))\n for i in range(0, len(polygon) - 1):\n u = v\n v = subtract_vectors(polygon[i + 1], o)\n a += 0...
[ "0.85451937", "0.83477163", "0.8320402", "0.8264429", "0.82386214", "0.7995667", "0.79558426", "0.78807163", "0.7855791", "0.78523636", "0.7820347", "0.78042924", "0.7798177", "0.77706087", "0.7767479", "0.769766", "0.7692609", "0.75886095", "0.7551368", "0.75114673", "0.7503...
0.7086913
51
Verifies a user's email and password combination for API access.
def _verify_password(email: str, password: str) -> bool: # Get the user information from the DB. user = User.query.filter_by(email=email).first() # If the user does not exist in the DB, return False. if not user: return False # Set flask global state. set_globals(token_used=False) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def validate_user_password(\n email: str,\n api_key: str,\n user_password: str,\n hass: core.HomeAssistant\n) -> None:\n session = async_get_clientsession(hass)\n helper = Helper(email=email, api_key=api_key, websession=session)\n\n try:\n await helper.test_user_pa...
[ "0.72844076", "0.7054011", "0.7005517", "0.7002894", "0.6979694", "0.69310135", "0.6924893", "0.68797207", "0.6821581", "0.67841464", "0.67627084", "0.6740148", "0.67219824", "0.66792446", "0.66320527", "0.6623849", "0.661813", "0.6618127", "0.6617325", "0.66152847", "0.66049...
0.7104288
1
Part of distance sensor API. Returns range in mm.
def range(self): if self.live: return self._sensor.range return self._test_state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getRangeMM(self) -> float:\n ...", "def getRangeInches(self) -> float:\n ...", "def m_to_range(self, data):\n return (data - self._min_range_m) / self._total_range", "def get_range(self):\n if self.battery_size == 75:\n range = 260\n elif self.battery_size == 100...
[ "0.75490844", "0.71251756", "0.6928797", "0.6859311", "0.6819607", "0.6819112", "0.68126774", "0.68106073", "0.67854106", "0.67734486", "0.66187674", "0.6616217", "0.6590283", "0.65873367", "0.6579068", "0.65707326", "0.65540296", "0.6546288", "0.6519169", "0.64515555", "0.63...
0.0
-1
Part of distance sensor API. Returns range status.
def range_status(self): if self.live: return self._sensor.range_status return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def detect_range(self) -> Union[int, float]:\n return self.proto.detect_range", "def range(self):\n if self.live:\n return self._sensor.range\n\n return self._test_state", "def range(self):\n\n return time_stat(self, stat=\"range\")", "def _full_value_range(self):\n min_...
[ "0.69054", "0.65399444", "0.65159625", "0.6418049", "0.63004935", "0.6289981", "0.625143", "0.61328685", "0.61160433", "0.6107731", "0.6087266", "0.60706145", "0.6027469", "0.6016415", "0.5992972", "0.5984519", "0.5976446", "0.5957277", "0.5956208", "0.5952257", "0.5952257", ...
0.7793607
0
Adds a Batch Normalization. Normalize activations of the previous layer at each batch.
def __init__(self, mode, beta=0.0, gamma=1.0, epsilon=1e-5, decay=0.9, stddev=0.002, trainable=True, restore=True, name='BatchNormalization'): super(BatchNormalization, self).__init__(mode, name) self.beta = beta self.gamma = gamma self.epsilon = epsilon self.dec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def apply_batch_normalization(self, layer):\n if type(layer) is not BatchNormalization:\n raise ValueError('The `layer` must be neoml.Dnn.BatchNormalization.')\n\n self._internal.apply_batch_normalization(layer._internal)", "def batch_normalization(input_var=None):\n\n # Hyperparamete...
[ "0.72921306", "0.6827947", "0.6563343", "0.6431296", "0.63270164", "0.6303954", "0.62736547", "0.6272584", "0.62358993", "0.621061", "0.6187382", "0.6172198", "0.61473894", "0.61267143", "0.60767174", "0.6052769", "0.60476124", "0.6041689", "0.60413814", "0.6036537", "0.60249...
0.0
-1
Adds an L2 Normalization. Normalizes along dimension `dim` using an L2 norm. For a 1D tensor with `dim = 0`, computes ```python >>> output = x / sqrt(max(sum(x2), epsilon)) ``` For `x` with more dimensions, independently normalizes each 1D slice along dimension `dim`.
def __init__(self, mode, dim, epsilon=1e-12, name='l2Normalize'): super(L2Normalization, self).__init__(mode, name) self.dim = dim self.epsilon = epsilon
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L2_norm(x, axis=-1):\n return keras.backend.l2_normalize(x, axis=axis)", "def l2norm(X, dim=-1, eps=1e-8):\r\n norm = torch.pow(X, 2).sum(dim=dim, keepdim=True).sqrt() + eps\r\n X = torch.div(X, norm)\r\n return X", "def norm_L2(u):\n return norm_l2(u)/sqrt(float(u.size))", "def normalize_...
[ "0.72732955", "0.7168745", "0.68656284", "0.681244", "0.68111324", "0.67927426", "0.6755921", "0.6699569", "0.66356444", "0.66331", "0.6569862", "0.64141715", "0.6380448", "0.634235", "0.63347673", "0.6333219", "0.6330313", "0.629968", "0.62742954", "0.62261206", "0.62229455"...
0.53774863
71
Returns True if n is prime.
def isprime(n): if n == 2: return True if n == 3: return True if n % 2 == 0: return False if n % 3 == 0: return False i = 5 w = 2 while i ** 2 <= n: if n % i == 0: return False i += w w = 6 - w return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def isprime(n):\r\n\treturn is_prime(n)", "def isprime(n):\n\treturn is_prime(n)", "def if_prime(cls, n):\n\n if (n <= 1):\n return False\n if (n <= 3):\n return True\n\n if (n % 2 == 0 or n % 3 == 0):\n return False\n\n i = 5\n while(i * i <=...
[ "0.8514553", "0.85052115", "0.8478591", "0.8415317", "0.8408101", "0.84059155", "0.8389028", "0.8350958", "0.83173066", "0.83133805", "0.8305305", "0.83034956", "0.830075", "0.82713956", "0.8248401", "0.8248108", "0.8245176", "0.82376003", "0.82293326", "0.82223743", "0.82108...
0.79483837
47
Adds expense object to User's `self.__passbook` attribute
def addExpense(self, expense) : self.__passbook.append(expense)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def expense(self, expense):\n self._expense = expense", "def save_user(self):\n User.user_list.append(self)\n\n # finding a user's credentials", "async def add_self(self, user, amount, message):\n collection = self.db['personal_data']\n doc = await collection.find_one({'id': ...
[ "0.660693", "0.62655336", "0.614418", "0.6100995", "0.6100995", "0.6073132", "0.60349154", "0.5772491", "0.57652897", "0.57534754", "0.5717764", "0.5715009", "0.57090825", "0.5684069", "0.56824523", "0.5629865", "0.55874944", "0.55042285", "0.54981625", "0.5481493", "0.546142...
0.8234116
0
Get the absolute path to the directory where this module is in.
def get_current_directory(): return os.path.dirname(os.path.abspath(__file__))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def module_path(self):\n return self.config['cwd']", "def get_path():\n return path.abspath(path.dirname(path.dirname(__file__)))", "def get_path() -> str:\n return os.path.dirname(os.path.realpath(__file__))", "def dirname(self):\n module_system = str(self.conf.module.__name__).split(\"....
[ "0.8388508", "0.8308728", "0.8259033", "0.81923693", "0.79764533", "0.7963166", "0.79422265", "0.79401124", "0.7843867", "0.78396505", "0.7830812", "0.78101563", "0.7783004", "0.77717865", "0.7763379", "0.77550703", "0.775189", "0.77454025", "0.77454025", "0.77388036", "0.773...
0.7494191
40
convert a datetime object to string in the format of yyyymmdd.
def convert_datetime_to_string(dt): return '{0}-{1}-{2}'.format(dt.year, dt.month, dt.day)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def date_to_final_str(date_obj: datetime) -> str:\n return date_obj.strftime(\"%Y-%m-%d\")", "def datetime_to_str(obj):\n return obj.strftime(\"%Y-%m-%d %H:%M:%S\")", "def date2str(datetime_object):\n if datetime_object is None:\n return 'None'\n return datetime_object.strfti...
[ "0.7771264", "0.7464672", "0.7421528", "0.73323554", "0.7323553", "0.72664", "0.7171755", "0.71283764", "0.69142103", "0.6894468", "0.6893458", "0.68137157", "0.6799213", "0.67944926", "0.6789374", "0.67727137", "0.67544985", "0.6746119", "0.6734124", "0.66943127", "0.6661523...
0.844264
1
Returns True if this temperature is OFF, False otherwise.
def is_off(self): return self.value == OFF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_off(self) -> bool:\n return not self.is_on", "def _isoff(self):\n return self.dp.state()==PyTango.DevState.OFF", "def is_on(self):\n return self._sensor_state()", "def is_not_power_onoff(self):\n return not self.is_power_onoff()", "def is_on(self):\n return self._b...
[ "0.78063226", "0.77869326", "0.72342", "0.7207234", "0.71389735", "0.7126182", "0.70759124", "0.70663697", "0.7028915", "0.7028915", "0.6969621", "0.6907821", "0.69049466", "0.6898362", "0.6859408", "0.6829458", "0.67993796", "0.67927045", "0.6786952", "0.6778573", "0.6755971...
0.8327286
0
Returns True if 'filename' is a image file.
def is_image_file(file_name): valid_extensions = ['.jpg', '.png', '.gif', '.bmp'] for extension in valid_extensions: if file_name.lower().endswith(extension): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_image_file(filename):\n return has_file_allowed_extension(filename, IMG_EXTENSIONS)", "def is_image_file(filename):\n img_types = [\".jpg\", \".jpeg\", \".png\", \".gif\"]\n ext = os.path.splitext(filename)[1].lower()\n return ext in img_types", "def IsImage(self, filename):\r\n mimetype ...
[ "0.88484037", "0.87321866", "0.86214334", "0.86148036", "0.85157573", "0.8480333", "0.8070366", "0.80243117", "0.78707534", "0.78634965", "0.76794064", "0.76491964", "0.76251507", "0.7341296", "0.7305515", "0.7223962", "0.7192889", "0.71833515", "0.7086669", "0.7075354", "0.6...
0.7824845
10
Converts a Tensor array into a numpy image array.
def tensor2im(input_image, imtype=np.uint8): if not isinstance(input_image, np.ndarray): if isinstance(input_image, torch.Tensor): # get the data from a variable image_tensor = input_image.data else: return input_image image_numpy = image_tensor[0].cpu().float().nump...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def convert_tensor_to_numpy_img(tensor_img):\n\n img = tensor_img.to('cpu').clone().detach()\n img = img.numpy().squeeze(0)\n img = img.transpose(1, 2, 0)\n img = img * np.array((0.229, 0.224, 0.225)) + np.array((0.485, 0.456, 0.406))\n img = img.clip(0, 1)\n return img", "def images_to_numpy(t...
[ "0.76706123", "0.73970133", "0.72891134", "0.70688695", "0.7039809", "0.7034062", "0.6989774", "0.68511224", "0.68485266", "0.6814767", "0.6798817", "0.6775384", "0.6773248", "0.6742704", "0.6710867", "0.6661674", "0.6646863", "0.65954083", "0.65807855", "0.65459764", "0.6499...
0.58643043
96
Get the pixel width of tiles.
def tileWidth(self): return self._tileWidth
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getNumTiles(self):\n return (self.width) * (self.height)", "def getNumTiles(self):\n return self.w * self.h", "def getNumTiles(self):\n return self.height * self.width", "def expected_width(self):\n\t\treturn self.expected_tile_width * TILE_SIZE", "def getNumTiles(self):\n r...
[ "0.8149469", "0.8141933", "0.8041941", "0.8008011", "0.79089135", "0.7903042", "0.7833502", "0.7683671", "0.7572231", "0.74172735", "0.74172735", "0.72412527", "0.72055584", "0.7156929", "0.71318746", "0.7091562", "0.7037783", "0.70284444", "0.70240474", "0.7018596", "0.69958...
0.8502367
0
Takes dataframe and returns train and test data from the dataframe
def get_train_test(df): train = df[["Sex", "Race/Ethnicity", "AgeGroup"] ].to_numpy() test = df[col_names].to_numpy() return (train, test)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prep_data(df):\n y = df.target\n X = df.drop([\"target\"], axis=1)\n X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)\n return X_train, X_test, y_train, y_test", "def train_test_data_df(train_data_file, test_data_file):\n dtype_dict = {\n \"age\": np.int32,\n ...
[ "0.75978464", "0.73986375", "0.7239598", "0.72237384", "0.72225946", "0.7212575", "0.7110886", "0.7098156", "0.7080479", "0.7075171", "0.70473653", "0.69506675", "0.69144595", "0.68766063", "0.6856756", "0.6845383", "0.6844162", "0.6827223", "0.67914355", "0.6748426", "0.6729...
0.8102431
0
The set of arguments for constructing a Workspace resource.
def __init__(__self__, *, application_insights_id: pulumi.Input[str], identity: pulumi.Input['WorkspaceIdentityArgs'], key_vault_id: pulumi.Input[str], resource_group_name: pulumi.Input[str], storage_account_id: pulumi.Input[str], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(__self__,\n resource_name: str,\n args: WorkspaceArgs,\n opts: Optional[pulumi.ResourceOptions] = None):\n ...", "def __init__(__self__,\n resource_name: str,\n args: WorkspaceAadAdminInitArgs,\n o...
[ "0.65863645", "0.592222", "0.585219", "0.5852013", "0.5743757", "0.54609865", "0.5412288", "0.540106", "0.53628975", "0.53083736", "0.5249855", "0.52486515", "0.5231247", "0.5225922", "0.5204672", "0.519696", "0.5189443", "0.5179798", "0.5157289", "0.5149991", "0.51252586", ...
0.0
-1
Specifies the name of the Resource Group in which the Machine Learning Workspace should exist. Changing this forces a new resource to be created.
def resource_group_name(self) -> pulumi.Input[str]: return pulumi.get(self, "resource_group_name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resource_group_name(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"resource_group_name\")", "def resource_group_name(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"resource_group_name\")", "def resource_group_name(self) -> Optional[pulumi.Input[str]]:\n ...
[ "0.67499083", "0.67499083", "0.67499083", "0.67499083", "0.67499083", "0.67499083", "0.67499083", "0.67499083", "0.67499083", "0.67499083", "0.67499083", "0.67499083", "0.67499083", "0.67499083", "0.67499083", "0.6655681", "0.65963894", "0.6511851", "0.6259953", "0.6244898", ...
0.69006497
11
The ID of the Storage Account associated with this Machine Learning Workspace. Changing this forces a new resource to be created.
def storage_account_id(self) -> pulumi.Input[str]: return pulumi.get(self, "storage_account_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def storage_account_id(self) -> str:\n return pulumi.get(self, \"storage_account_id\")", "def storage_account_resource_id(self) -> Optional[str]:\n return pulumi.get(self, \"storage_account_resource_id\")", "def storage_account_id(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(s...
[ "0.79043984", "0.77068806", "0.7496262", "0.7496262", "0.73522633", "0.7247313", "0.7064303", "0.7038513", "0.692687", "0.692687", "0.6804079", "0.6730519", "0.6702057", "0.6697827", "0.6653136", "0.66525614", "0.65839225", "0.65537244", "0.6526797", "0.61074173", "0.6097517"...
0.7579274
2
The description of this Machine Learning Workspace.
def description(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "description")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def description(self):\n return self.visual_desc", "def describe(self):\n print(self.description)", "def describe(self):\n print(self.description)", "def description(self):\n pass", "def description(self):\n pass", "def description(self):\n return self.definition...
[ "0.7231268", "0.7228294", "0.7228294", "0.71769756", "0.71769756", "0.7143412", "0.7063765", "0.70473576", "0.70361835", "0.70361835", "0.70361835", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017...
0.0
-1
Display name for this Machine Learning Workspace.
def friendly_name(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "friendly_name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name(self):\n return self.attributes.workspace.name", "def show_name(self):\n return self.name", "def display_name(self) -> str:\n return pulumi.get(self, \"display_name\")", "def display_name(self) -> str:\n return pulumi.get(self, \"display_name\")", "def display_name(self...
[ "0.7893078", "0.73518896", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.72599626", "0.72599626", "0.72599626", "0.72599626", "0.72599626", "0.72599626", "0.725996...
0.0
-1
Specifies the supported Azure location where the Machine Learning Workspace should exist. Changing this forces a new resource to be created.
def location(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "location")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _to_location(self, data):\n country = data.display_name\n\n if \"Asia\" in data.display_name:\n country = \"Asia\"\n\n if \"Europe\" in data.display_name:\n country = \"Europe\"\n\n if \"US\" in data.display_name:\n country = \"US\"\n\n if \"J...
[ "0.6089586", "0.5416914", "0.53188545", "0.51944834", "0.5158271", "0.50261855", "0.500499", "0.49114615", "0.48923817", "0.48693138", "0.4798992", "0.47747687", "0.47558033", "0.47506875", "0.473155", "0.4703622", "0.46906844", "0.46501434", "0.46407667", "0.46247452", "0.46...
0.43655318
76
Enable public access when this Machine Learning Workspace is behind VNet.
def public_network_access_enabled(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "public_network_access_enabled")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def allow_virtual_network_access(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"allow_virtual_network_access\")", "def allow_virtual_network_access(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"allow_virtual_network_access\")", "def allow_virtual_network_a...
[ "0.6667608", "0.6667608", "0.66377705", "0.62326974", "0.62326974", "0.6130715", "0.57199955", "0.57061034", "0.56199026", "0.56199026", "0.56091374", "0.56063724", "0.56063724", "0.5564173", "0.5544753", "0.5540895", "0.54906994", "0.54692286", "0.54602045", "0.540811", "0.5...
0.5778256
6
The description of this Machine Learning Workspace.
def description(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "description")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def description(self):\n return self.visual_desc", "def describe(self):\n print(self.description)", "def describe(self):\n print(self.description)", "def description(self):\n pass", "def description(self):\n pass", "def description(self):\n return self.definition...
[ "0.7231268", "0.7228294", "0.7228294", "0.71769756", "0.71769756", "0.7143412", "0.7063765", "0.70473576", "0.70361835", "0.70361835", "0.70361835", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017...
0.0
-1
The url for the discovery service to identify regional endpoints for machine learning experimentation services.
def discovery_url(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "discovery_url")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __discovery_url(self):\n port = self.sensor.options.agent_port\n if port == 0:\n port = AGENT_DEFAULT_PORT\n\n return \"http://%s:%s/%s\" % (self.host, port, AGENT_DISCOVERY_PATH)", "def discovery_url(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"discovery_ur...
[ "0.6993063", "0.6848002", "0.65615267", "0.6528575", "0.64888096", "0.64381987", "0.6314502", "0.6314502", "0.6234252", "0.6196161", "0.61489064", "0.6101379", "0.60786164", "0.6040177", "0.6022798", "0.6022709", "0.5953031", "0.5938806", "0.5927942", "0.59085673", "0.5896058...
0.6744326
2
Display name for this Machine Learning Workspace.
def friendly_name(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "friendly_name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name(self):\n return self.attributes.workspace.name", "def show_name(self):\n return self.name", "def display_name(self) -> str:\n return pulumi.get(self, \"display_name\")", "def display_name(self) -> str:\n return pulumi.get(self, \"display_name\")", "def display_name(self...
[ "0.7893078", "0.73518896", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.72599626", "0.72599626", "0.72599626", "0.72599626", "0.72599626", "0.72599626", "0.725996...
0.0
-1
Specifies the supported Azure location where the Machine Learning Workspace should exist. Changing this forces a new resource to be created.
def location(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "location")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _to_location(self, data):\n country = data.display_name\n\n if \"Asia\" in data.display_name:\n country = \"Asia\"\n\n if \"Europe\" in data.display_name:\n country = \"Europe\"\n\n if \"US\" in data.display_name:\n country = \"US\"\n\n if \"J...
[ "0.60899264", "0.5418458", "0.53215456", "0.51957273", "0.5162169", "0.5027408", "0.50085825", "0.49141097", "0.48960724", "0.48708886", "0.48013997", "0.4777728", "0.47539186", "0.47539", "0.47349662", "0.47045058", "0.46945158", "0.4652291", "0.46439984", "0.46272027", "0.4...
0.4368633
73
Enable public access when this Machine Learning Workspace is behind VNet.
def public_network_access_enabled(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "public_network_access_enabled")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def allow_virtual_network_access(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"allow_virtual_network_access\")", "def allow_virtual_network_access(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"allow_virtual_network_access\")", "def allow_virtual_network_a...
[ "0.666733", "0.666733", "0.66375035", "0.62313324", "0.62313324", "0.6129373", "0.5719235", "0.5704434", "0.56185323", "0.56185323", "0.56078285", "0.5604782", "0.5604782", "0.5565025", "0.5544007", "0.5539523", "0.5489506", "0.54705614", "0.5459206", "0.5408766", "0.5402727"...
0.577659
8
Specifies the name of the Resource Group in which the Machine Learning Workspace should exist. Changing this forces a new resource to be created.
def resource_group_name(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "resource_group_name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resource_group_name(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"resource_group_name\")", "def resource_group_name(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"resource_group_name\")", "def resource_group_name(self) -> pulumi.Input[str]:\n return pulumi.get(self, ...
[ "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497"...
0.67499083
46
The ID of the Storage Account associated with this Machine Learning Workspace. Changing this forces a new resource to be created.
def storage_account_id(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "storage_account_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def storage_account_id(self) -> str:\n return pulumi.get(self, \"storage_account_id\")", "def storage_account_resource_id(self) -> Optional[str]:\n return pulumi.get(self, \"storage_account_resource_id\")", "def storage_account_id(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"sto...
[ "0.79043984", "0.77068806", "0.7579274", "0.73522633", "0.7247313", "0.7064303", "0.7038513", "0.692687", "0.692687", "0.6804079", "0.6730519", "0.6702057", "0.6697827", "0.6653136", "0.66525614", "0.65839225", "0.65537244", "0.6526797", "0.61074173", "0.6097517", "0.6047319"...
0.7496262
4
The immutable id associated with this workspace.
def workspace_id(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "workspace_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def immutable_id(self) -> Optional[str]:\n return pulumi.get(self, \"immutable_id\")", "def workspace_id(self) -> str:\n return pulumi.get(self, \"workspace_id\")", "def workspace_id(self) -> str:\n return pulumi.get(self, \"workspace_id\")", "def workspace_id(self) -> pulumi.Output[str]...
[ "0.806903", "0.7272467", "0.7272467", "0.7231229", "0.7231229", "0.7037947", "0.7013313", "0.69965786", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.6...
0.0
-1
Get an existing Workspace resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, application_insights_id: Optional[pulumi.Input[str]] = None, container_registry_id: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get(resource_name: str,\n id: pulumi.Input[str],\n opts: Optional[pulumi.ResourceOptions] = None,\n arn: Optional[pulumi.Input[str]] = None,\n auth_mode: Optional[pulumi.Input[str]] = None,\n default_s3_location: Optional[pulumi.Input[str]] = None,\n ...
[ "0.6493947", "0.5828002", "0.5826889", "0.578509", "0.5782761", "0.57255435", "0.5715349", "0.56437576", "0.56319565", "0.5597493", "0.5558035", "0.5552081", "0.5509766", "0.5506831", "0.5487857", "0.5487388", "0.5466431", "0.54517853", "0.5421969", "0.53868455", "0.53385353"...
0.670579
0
The description of this Machine Learning Workspace.
def description(self) -> pulumi.Output[Optional[str]]: return pulumi.get(self, "description")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def description(self):\n return self.visual_desc", "def describe(self):\n print(self.description)", "def describe(self):\n print(self.description)", "def description(self):\n pass", "def description(self):\n pass", "def description(self):\n return self.definition...
[ "0.7231268", "0.7228294", "0.7228294", "0.71769756", "0.71769756", "0.7143412", "0.7063765", "0.70473576", "0.70361835", "0.70361835", "0.70361835", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017", "0.7034017...
0.0
-1
The url for the discovery service to identify regional endpoints for machine learning experimentation services.
def discovery_url(self) -> pulumi.Output[str]: return pulumi.get(self, "discovery_url")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __discovery_url(self):\n port = self.sensor.options.agent_port\n if port == 0:\n port = AGENT_DEFAULT_PORT\n\n return \"http://%s:%s/%s\" % (self.host, port, AGENT_DISCOVERY_PATH)", "def discovery_url(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"dis...
[ "0.6993063", "0.6744326", "0.65615267", "0.6528575", "0.64888096", "0.64381987", "0.6314502", "0.6314502", "0.6234252", "0.6196161", "0.61489064", "0.6101379", "0.60786164", "0.6040177", "0.6022798", "0.6022709", "0.5953031", "0.5938806", "0.5927942", "0.59085673", "0.5896058...
0.6848002
1
Display name for this Machine Learning Workspace.
def friendly_name(self) -> pulumi.Output[Optional[str]]: return pulumi.get(self, "friendly_name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name(self):\n return self.attributes.workspace.name", "def show_name(self):\n return self.name", "def display_name(self) -> str:\n return pulumi.get(self, \"display_name\")", "def display_name(self) -> str:\n return pulumi.get(self, \"display_name\")", "def display_name(self...
[ "0.7893078", "0.73518896", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.7301464", "0.72599626", "0.72599626", "0.72599626", "0.72599626", "0.72599626", "0.72599626", "0.725996...
0.0
-1
Specifies the supported Azure location where the Machine Learning Workspace should exist. Changing this forces a new resource to be created.
def location(self) -> pulumi.Output[str]: return pulumi.get(self, "location")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _to_location(self, data):\n country = data.display_name\n\n if \"Asia\" in data.display_name:\n country = \"Asia\"\n\n if \"Europe\" in data.display_name:\n country = \"Europe\"\n\n if \"US\" in data.display_name:\n country = \"US\"\n\n if \"J...
[ "0.60899264", "0.5418458", "0.53215456", "0.51957273", "0.5162169", "0.5027408", "0.50085825", "0.49141097", "0.48960724", "0.48708886", "0.48013997", "0.4777728", "0.47539186", "0.47539", "0.47349662", "0.47045058", "0.46945158", "0.4652291", "0.46439984", "0.46272027", "0.4...
0.0
-1
Enable public access when this Machine Learning Workspace is behind VNet.
def public_network_access_enabled(self) -> pulumi.Output[bool]: return pulumi.get(self, "public_network_access_enabled")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def allow_virtual_network_access(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"allow_virtual_network_access\")", "def allow_virtual_network_access(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"allow_virtual_network_access\")", "def allow_virtual_network_a...
[ "0.666733", "0.666733", "0.66375035", "0.62313324", "0.62313324", "0.6129373", "0.577659", "0.577659", "0.577659", "0.577659", "0.577659", "0.577659", "0.5719235", "0.56185323", "0.56185323", "0.56078285", "0.5604782", "0.5604782", "0.5565025", "0.5544007", "0.5539523", "0....
0.5704434
13
Specifies the name of the Resource Group in which the Machine Learning Workspace should exist. Changing this forces a new resource to be created.
def resource_group_name(self) -> pulumi.Output[str]: return pulumi.get(self, "resource_group_name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resource_group_name(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"resource_group_name\")", "def resource_group_name(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"resource_group_name\")", "def resource_group_name(self) -> pulumi.Input[str]:\n return pulumi.get(self, ...
[ "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497", "0.69006497"...
0.61417794
67
The ID of the Storage Account associated with this Machine Learning Workspace. Changing this forces a new resource to be created.
def storage_account_id(self) -> pulumi.Output[str]: return pulumi.get(self, "storage_account_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def storage_account_id(self) -> str:\n return pulumi.get(self, \"storage_account_id\")", "def storage_account_resource_id(self) -> Optional[str]:\n return pulumi.get(self, \"storage_account_resource_id\")", "def storage_account_id(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"sto...
[ "0.79043984", "0.77068806", "0.7579274", "0.7496262", "0.7496262", "0.7247313", "0.7064303", "0.7038513", "0.692687", "0.692687", "0.6804079", "0.6730519", "0.6702057", "0.6697827", "0.6653136", "0.66525614", "0.65839225", "0.65537244", "0.6526797", "0.61074173", "0.6097517",...
0.73522633
5
The immutable id associated with this workspace.
def workspace_id(self) -> pulumi.Output[str]: return pulumi.get(self, "workspace_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def immutable_id(self) -> Optional[str]:\n return pulumi.get(self, \"immutable_id\")", "def workspace_id(self) -> str:\n return pulumi.get(self, \"workspace_id\")", "def workspace_id(self) -> str:\n return pulumi.get(self, \"workspace_id\")", "def id(self) -> str:\n return self._i...
[ "0.806903", "0.7272467", "0.7272467", "0.7037947", "0.7013313", "0.69965786", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.69790995", "0.6944755", "0....
0.7231229
4
Set the weighted MorphNet regularization strength; periodically called to calibrate.
def adjust_params(self, inputs, target_costs, original_costs): costs = self.measure_costs(inputs) weights = [(target_costs[i] - costs[i]) / (target_costs[i] - original_costs[i]) for i in range(target_costs)] totalweights = sum(weights) for i in range(weights): self.morphnet_t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_weights(self):\n\t\tpass", "def update_weights(self):\n\n\n self.w += self.learn_rate * (self.X.T.dot(self.T - self.Y)\n - self.reg_L1 * np.sign(self.w)\n - self.reg_L2 * 2*self.w)", "def update_weights(self):\n se...
[ "0.67737126", "0.6756166", "0.67023325", "0.6611465", "0.65678513", "0.6559147", "0.65205735", "0.63285154", "0.62669945", "0.6238162", "0.62356675", "0.6227254", "0.6189105", "0.61714226", "0.61321974", "0.6128662", "0.6122255", "0.6113618", "0.6095773", "0.60709536", "0.606...
0.0
-1
Create TensorFlow summaries for TensorBoard.
def summary(self): regularization_loss_summary = tf.summary.scalar( "RegularizationLoss", self.regularizer_loss_train_instance) summaries = [regularization_loss_summary] for idx, reg_instance in enumerate(self.network_regularizer_train_instance): summaries.append(tf.summa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _make_summaries(self):\n\n self.summaries['loss'] = tf.summary.scalar('loss', self.loss)\n\n self.summaries['0_inputs_outputs'] = \\\n tf.summary.image('0_inputs_outputs', tf.concat([\n tf.expand_dims(tf.expand_dims(tf.stack(self.inputs, axis=-1), axis=0), axis=-1),\n ...
[ "0.77387625", "0.75622195", "0.75622195", "0.7544679", "0.73674", "0.7346597", "0.71428484", "0.6998984", "0.6990851", "0.68510485", "0.6848816", "0.6776078", "0.6678277", "0.6630066", "0.66065025", "0.65472585", "0.6530073", "0.652195", "0.65212005", "0.65095574", "0.6501515...
0.0
-1
Converts the verification screen step to a json serializable object.
def to_data(self, *, defaults = False): data = {} put_required_into(self.required, data, defaults) put_title_into(self.title, data, defaults) put_type_into(self.type, data, defaults) put_values_into(self.values, data, defaults) return data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def generation_step_to_dict(generation_step: GenerationStep) -> Dict[str, Any]:\n return {\n \"__type\": generation_step.__class__.__name__,\n \"model\": generation_step.model,\n \"num_trials\": generation_step.num_trials,\n \"min_trials_observed\": generation_step.min_trials_observe...
[ "0.57960844", "0.56736386", "0.55376625", "0.5260625", "0.5234087", "0.5212203", "0.5202629", "0.5196829", "0.5188676", "0.51708144", "0.51667094", "0.51641244", "0.5162355", "0.51560634", "0.51536155", "0.5146146", "0.5130345", "0.5110932", "0.50956", "0.5091316", "0.5082461...
0.0
-1
Return the path to the control socket.
def _get_control_socket_path(): info = evmapy.util.get_app_info() return os.path.join(info['config_dir'], '%s.socket' % info['name'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _getSocketPath():\n return f'{CmdSsh._getSshDir()}/soos-%r@%h-%p'", "def socket(self):\n return self.__socket", "def get_tcp_hdl_path(robot_name):\n return format_path(__TCP_HDL_PATH, robot_name)", "def get_unix_socket_path(self):\n if os.path.exists(UNIX_SOCKET_PATH):\n ...
[ "0.75711465", "0.6333674", "0.63067883", "0.6298142", "0.62401366", "0.6238842", "0.62186974", "0.616199", "0.61406165", "0.6091544", "0.6043238", "0.59908324", "0.59575343", "0.59575343", "0.587351", "0.5869603", "0.5846554", "0.5836233", "0.5836233", "0.5812906", "0.5757644...
0.8695477
0
Close the control socket and remove it from the filesystem.
def cleanup(self): self._socket.close() os.remove(_get_control_socket_path())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def shutdown(self):\r\n self.socket.close()\r\n # self.socket_video.close()\r\n self.socket_state.close()", "def shutdown(self):\n self.sock.close()", "def close(self):\n self.socket.close()", "def close(self):\n self.socket.close()", "def close(self):\n sel...
[ "0.71750045", "0.70470005", "0.70214164", "0.70214164", "0.70214164", "0.70214164", "0.70214164", "0.70214164", "0.7009153", "0.6992194", "0.69896513", "0.69896513", "0.69724095", "0.6947867", "0.6915695", "0.6905916", "0.6879066", "0.6867567", "0.6849247", "0.68421274", "0.6...
0.83474064
0
Calculates difference in centiseconds between it and timestamp
def difference_from_timestamp(self, timestamp: float) -> float: return self - round(timestamp * 100)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def time_difference(time1: Time, time2: Time) -> float:\n dsec = time1.sec - time2.sec\n dnanosec = time1.nanosec - time2.nanosec\n dt = dsec + dnanosec/(10**9)\n return dt", "def duration(self):\n return total_seconds(self.timestamp - self.start_timestamp)", "def calculate_time(start_time):...
[ "0.7036298", "0.67890215", "0.6625901", "0.6525064", "0.65170854", "0.6511191", "0.64999324", "0.64817643", "0.64741033", "0.6462506", "0.64518875", "0.6437449", "0.6434657", "0.63929343", "0.6351173", "0.6342154", "0.6322965", "0.6317534", "0.62926185", "0.62882805", "0.6266...
0.69296014
1
Return hours, minutes. seconds, centi_seconds representation of time given in centiseconds
def centi_seconds_to_hours_minutes_seconds_millis(centi: int) -> (int, int, int, int): hours = centi // Time.HOUR minutes = (centi % Time.HOUR) // Time.MINUTE seconds = (centi % Time.MINUTE) // Time.SECOND milli_secs = centi % Time.SECOND return hours, minutes, seconds, milli_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def raw_time_to_centi(raw_time: str) -> int:\n\n time = int(raw_time[2:7])\n minutes = time // (Time.SECOND * 100)\n\n time = (time % (Time.SECOND * 100)) + minutes * Time.MINUTE\n return time", "def to_seconds(hours, minutes, seconds):\n return hours*60**2 + minutes*60 + seconds",...
[ "0.65375847", "0.6516605", "0.65105444", "0.64543164", "0.6438417", "0.63402444", "0.63390064", "0.633367", "0.6280996", "0.6267437", "0.62537545", "0.6220526", "0.61959934", "0.6156747", "0.6151544", "0.61094904", "0.61071366", "0.6075525", "0.60587263", "0.604729", "0.60328...
0.7374681
0
Find bbox coordinates and exclude bad poligons
def find_bbox_coord(point_x, point_y): is_good_rect = True bottom_x, bottom_y = [], [] top_x, top_y = [], [] if len(point_x) < 4: is_good_rect = False if len(point_x) == 4: out_of_repeats_x = [] out_of_repeats_y = [] delta = 10**(-6) for j in range(l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def check_bbox(bbox):\n assert bbox.shape == (4,)\n negative_elements = [box_element for box_element in bbox if box_element < 0]\n assert not negative_elements\n assert bbox[0] + bbox[2] <= ORIGINAL_IMAGE_SIZE[0]\n assert bbox[1] + bbox[3] <= ORIGINAL_IMAGE_SIZE[1]", "def prune_bbox(receptive_box,...
[ "0.7104907", "0.69842637", "0.69538116", "0.6860895", "0.6777346", "0.67709154", "0.66852856", "0.6683115", "0.6660974", "0.6654006", "0.6646088", "0.65925884", "0.6587644", "0.6571948", "0.6560409", "0.6556892", "0.6544367", "0.6536447", "0.65123785", "0.6496731", "0.6495368...
0.6566344
14
Pulls a value from settings.
def setting(setting_name): return getattr(settings, setting_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_setting_value(self, title, setting):\r\n return self.parser.get(title, setting)", "def getValue(self, valueName):\n\t\treturn self.settings[valueName][0]", "def get(cls, user_name, s_key):\n setting = cls.get_object(user_name, s_key)\n if setting:\n return setting.s_valu...
[ "0.7730613", "0.7421293", "0.6942029", "0.69261056", "0.6860163", "0.67346996", "0.6681427", "0.65330297", "0.6496901", "0.64818245", "0.64217806", "0.6419115", "0.63500184", "0.63456196", "0.6302336", "0.6278027", "0.62711054", "0.625023", "0.6214277", "0.6206272", "0.619584...
0.686797
4
All layers have the same id 0 since there is no pretrained models used here. Returns A dictionary mapping the layer names (keys) to their ids (values).
def get_layer_ids( self, ): name_to_id = {} for n, _ in self.named_parameters(): name_to_id[n] = 0 return name_to_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_layer_ids(self, include_input = True):\n layers = self.net.blobs.keys()\n if not include_input:\n layers = layers[1:]\n return layers", "def get_ids(self):\n all_networks = []\n network_dict = {}\n for network, status in self.networks.items():\n ...
[ "0.6423621", "0.6394235", "0.6367835", "0.6307535", "0.62049496", "0.61577064", "0.6111583", "0.6050546", "0.6033229", "0.601661", "0.60001165", "0.5985173", "0.5929234", "0.59035623", "0.58965343", "0.58617586", "0.5855508", "0.5852521", "0.5817857", "0.5797973", "0.5767445"...
0.78452754
0
Fix datetime to local timezone
def datetime_to_local_timezone(dt, timezone="America/New_York", from_timezone="UTC"): from_zone = tz.gettz(from_timezone) to_zone = tz.gettz(timezone) dt = dt.replace(tzinfo=from_zone) return dt.astimezone(to_zone)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 anything, return as-is.\n return dt", "def utc_to_local_datetime(dt):\n return dt.astimezone(LOCAL)", "def make_tz_aware(local_dt):\n aware_dt = timezon...
[ "0.7418491", "0.7262507", "0.70351464", "0.70244807", "0.6989761", "0.69747996", "0.69729686", "0.696719", "0.68962747", "0.6808488", "0.6736023", "0.6726984", "0.6726984", "0.6726984", "0.66992825", "0.6685372", "0.66828865", "0.6650205", "0.66363037", "0.66075975", "0.66045...
0.68017393
10
Save a training checkpoint whereby episode, model and optimizer parameters are saved into a dictionary prior to being saved into the model file.
def save_model(file_name, ep, model, optimizer): torch.save({ 'epoch': ep, 'model_state_dict': model.state_dict(), 'optimizer_state_dict': optimizer.state_dict(), }, file_name) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def save_checkpoint(self, name):\n path = os.path.join(self.params.dump_path, '%s.pth' % name)\n logger.info(\"Saving %s to %s ...\" % (name, path))\n\n data = {\n 'epoch': self.epoch,\n 'best_metrics': self.scores\n }\n\n logger.warning(\"Saving model param...
[ "0.7858554", "0.77396894", "0.7728016", "0.76391995", "0.7630316", "0.7483532", "0.7458276", "0.7457354", "0.7448633", "0.74399763", "0.7424559", "0.7420272", "0.739607", "0.73955953", "0.737016", "0.73233485", "0.73000973", "0.72889346", "0.72722715", "0.72686136", "0.726548...
0.70601696
40
Sets up the behavior with all rates set to zero.
def __init__(self, rate): super(RandomWander, self).__init__() self.iteration = 0 self.rate = rate self.speed = 0 self.heading = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def initializeWeightsToZero(self):\n\t\t## YOUR CODE BELOW\n\t\t\n\t\tutil.raiseNotDefined()\n\t\treturn", "def reset(self):\r\n # TODO: have reset flag such that it forces all the bottom changes\r\n self.pwm_freq = self._default[\"pwm_freq\"]\r\n self.gate_logic = self._default[\"gate_logic...
[ "0.65515435", "0.6299", "0.6236806", "0.6130456", "0.61205405", "0.5965029", "0.59584683", "0.59161043", "0.59143674", "0.5876416", "0.58595955", "0.5856044", "0.58488667", "0.5831129", "0.5821278", "0.57808715", "0.5779993", "0.5777476", "0.57698154", "0.57698154", "0.576833...
0.5743206
27
Returns the (h+1)th element, w.r.t. the lexicographic ordering, among all the subsets of elements having cardinality k.
def get_subset(h, k, elements): n = len(elements) maxM = binom(n, k) - 1 ans = [0] * k a = n b = k # x is the "dual" of h. x = maxM - h for i in range(0, k): ans[i] = largestV(a, b, x) x -= binom(ans[i], b) a = ans[i] b = b - 1 ans = [elements[(n - 1) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kthSmallest(A, k):\n if k >= len(A):\n return None\n return select(A, 0, len(A) - 1, k)", "def k_smallest_sorted(a, k):\r\n k_smallest_idxs = np.argpartition(a, k)[:k]\r\n return k_smallest_idxs[np.argsort(a[k_smallest_idxs])]", "def kthsmall(v, k):\n n=len(v)\n k-=1\n if k<0 or k >= ...
[ "0.6960508", "0.68912315", "0.68525517", "0.6539575", "0.65252596", "0.6494909", "0.6487521", "0.6480101", "0.646213", "0.64362925", "0.6432127", "0.6406795", "0.6377774", "0.63668823", "0.63306403", "0.6307785", "0.62977344", "0.62773", "0.6272072", "0.6264882", "0.6219955",...
0.7095983
0
DESC Set the uncertainty value (duh)
def setUncertainty(self, uncertainty): self.uncertainty = uncertainty
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_value(self, value, uncertainty):\n self.value = value\n self.uncertainty = uncertainty", "def uncertainty(self) -> float:\n return self.__uncertainty", "def uncertainty(self) -> float:\n return self.__uncertainty", "def uncertainty(self):\n return self._uncertainty"...
[ "0.7290609", "0.7227794", "0.7227794", "0.7057207", "0.66074353", "0.6592032", "0.65673816", "0.6259187", "0.62292093", "0.58583546", "0.58482605", "0.5744844", "0.5720577", "0.5699028", "0.5601243", "0.5500995", "0.5451813", "0.5447115", "0.5431535", "0.54165447", "0.5408904...
0.8248285
0
randomly split a list into n groups
def partition(lis: list, n: int): # prevent destroying the original dataset lis_cp = copy.deepcopy(lis) random.shuffle(lis_cp) if len(lis) > n: return [lis_cp[i::n] for i in range(n)] else: return [[lis_cp[i]] for i in range(len(lis))]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def chunks(l, n):\n for i in range(0, len(l), n):\n elem = l[i:i + n]\n random.shuffle(elem)\n yield elem", "def splitList(itms, numGr):\n\ttcount = len(itms)\n\tcItems = list(itms)\n\tsz = int(len(cItems) / numGr)\n\tgroups = list()\n\tcount = 0\n\tfor i in range(numGr):\n\t\tif (i == nu...
[ "0.7923212", "0.78502256", "0.76934975", "0.76195264", "0.74420106", "0.7275371", "0.7118848", "0.70790035", "0.6977425", "0.6922881", "0.6915093", "0.6899733", "0.68983656", "0.6881899", "0.68671817", "0.6862493", "0.6862493", "0.685002", "0.6801619", "0.6790462", "0.6783843...
0.7236613
6
Test enum type support
def test_enum(self): with sphinx_build('pyexample'): with open('_build/text/docfx_yaml/example.enum_type.EnumFoo.yml') as yml_file: data = yaml.safe_load(yml_file) for item in data['items']: if item['uid'] == 'example.enum_type.EnumFoo': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_test_enum_parameters(self):\n pass", "def test_enum_datatypes(self) -> None:\n directory = os.path.join(PAYLOAD_DIRECTORY, 'enum_payloads')\n type_name = 'NULL'\n\n def get_id(type_: Dict[str, str]) -> int:\n \"\"\"A helper function to improve test case readability...
[ "0.83075106", "0.7520779", "0.75017166", "0.7429762", "0.7343746", "0.70901334", "0.70246273", "0.7020166", "0.6989194", "0.69515157", "0.6923133", "0.6907775", "0.68814224", "0.68460685", "0.6832684", "0.68261063", "0.6805491", "0.6790378", "0.6730222", "0.6729127", "0.66954...
0.7337001
5
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def __init__(self, *args, **kwds): if args or kwds: super(niut_HUMAN_LIST, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.watch_dog is None: self.watch_dog = 0 if self.num is None: self.num = 0 if self.user...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args, **kwds):\n if args or kwds:\n super(KomodoSpeechRecCommand, self).__init__(*args, **kwds)\n #message fields cannot be None, assign default values for those that are\n if self.header is None:\n self.header = std_msgs.msg.Header()\n if self.cmd is None:\n ...
[ "0.7793826", "0.77201355", "0.77201355", "0.7686007", "0.7625945", "0.7563882", "0.74392277", "0.7416804", "0.7351331", "0.7308204", "0.72800845", "0.7237885", "0.72279453", "0.7223786", "0.7223786", "0.72191316", "0.7211446", "0.7211446", "0.7211446", "0.7211446", "0.7211446...
0.0
-1
Construct a predictor configuration manager with ExtraTreesClassifier, ExtraTreesRegressor, GradientBoostingClassifier, and GradientBoostingRegressor as default predictors.
def __init__(self): constant_extratrees_kwargs = {'bootstrap': True, 'random_state': 0, 'oob_score': True, 'verbose': True} self.predictor_config( 'ExtraTreesClassifier', obj=E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def predictor_configs(self):\n if not hasattr(self, '_predictors'):\n self._predictors = {}\n\n return self._predictors", "def __init__(self,\n learner_config,\n examples_per_layer,\n label_dimension=1,\n num_trees=None,\n ...
[ "0.6815306", "0.6602121", "0.64468145", "0.6408633", "0.632432", "0.62161815", "0.61055964", "0.6101037", "0.6083086", "0.60295504", "0.5875582", "0.58620346", "0.579314", "0.57922196", "0.5701579", "0.5690053", "0.56671876", "0.56569576", "0.5646127", "0.56304157", "0.561405...
0.76383597
0
A single, initialized PredictorConfig instance
def predictor(self, name, **kwargs): predictor = self.predictor_config_manager.predictor_config(name, **kwargs) initialized = predictor(self.n_features) self.predictors[name] = initialized return initialized
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def predictor_config(self, name, **kwargs):\n predictor = self.new_predictor_config(name, **kwargs)\n if name in self.predictor_configs and \\\n self.predictor_configs[name] != predictor:\n sys.stderr.write(\n \"WARNING: over-writing predictor named: {}\".form...
[ "0.6993275", "0.67184097", "0.6520721", "0.6486932", "0.64482266", "0.63818085", "0.6209844", "0.61995673", "0.59993285", "0.59655076", "0.58966374", "0.58144575", "0.58081746", "0.5792381", "0.5770827", "0.5740092", "0.57233", "0.5698844", "0.5665594", "0.5642186", "0.561032...
0.6816839
1
Returns (rev, cfg) where cfg is a parsed SettingsCfg message. If config does not exists, returns (None, ). The config is cached in the datastore.
def _get_settings(): # store_last_good=True tells config component to update the config file # in a cron job. Here we just read from the datastore. rev, cfg = config.get_self_config( SETTINGS_CFG_FILENAME, config_pb2.SettingsCfg, store_last_good=True) cfg = cfg or config_pb2.SettingsCfg() return rev, cf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_config() -> Optional[Config]:\n return CurrentConfig.get()", "def GetTemplateSetting(decode_cfg):\n version = 0x0\n size = setting = None\n version = GetField(decode_cfg, 'version', Setting_6_2_1['version'], raw=True)\n template_version = version\n # search setting definition top-down\...
[ "0.6158815", "0.6117951", "0.60072", "0.59784985", "0.58862996", "0.58338696", "0.5823524", "0.5802297", "0.5792155", "0.5791855", "0.579062", "0.5747623", "0.5689603", "0.56864834", "0.56136084", "0.56066114", "0.5604736", "0.55902207", "0.5581987", "0.5581987", "0.5581987",...
0.7476551
0
Loads settings from an NDBbased cache or a default one if not present.
def settings(): return _get_settings()[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _load_cache(self):\n self.cache = self.cache_manager.retrieve(self.cache_file)\n if self.cache is None:\n self.cache = {}\n return", "def load_cache():\n return {}", "def getRunConfigCache(t0astDBConn = None, filename = None):\n if filename != None:\n Manager._C...
[ "0.6508995", "0.6313681", "0.62801474", "0.61762685", "0.609131", "0.60010266", "0.6000376", "0.5996508", "0.59853", "0.5784291", "0.56515443", "0.56469744", "0.5631694", "0.5564448", "0.55191773", "0.549208", "0.5489197", "0.54449505", "0.54278064", "0.54196024", "0.54118025...
0.0
-1
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected.
def recall(y_true, y_pred): true_positives = K.sum(K.round(K.clip(y_true * y_pred, 0, 1))) possible_positives = K.sum(K.round(K.clip(y_true, 0, 1))) recall = true_positives / (possible_positives + K.epsilon()) return recall
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def recall(y_true, y_pred, average, labels):\n\n y_true, y_pred = check_metric_args(y_true, y_pred, average, labels)\n\n result = None\n\n m = len(y_true)\n n = len(labels)\n\n confusion_matrix = get_confusion_matrix(y_true, y_pred, labels).T\n\n if average == \"micro\":\n numerator = np.t...
[ "0.76059914", "0.7449167", "0.7405468", "0.7281615", "0.72102433", "0.7166693", "0.7158562", "0.7146135", "0.7146135", "0.7146135", "0.7146135", "0.7146135", "0.7146135", "0.7132622", "0.71017796", "0.7097979", "0.7097979", "0.7097979", "0.7097979", "0.7097979", "0.7097979", ...
0.70636654
38
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant.
def precision(y_true, y_pred): true_positives = K.sum(K.round(K.clip(y_true * y_pred, 0, 1))) predicted_positives = K.sum(K.round(K.clip(y_pred, 0, 1))) precision = true_positives / (predicted_positives + K.epsilon()) return precision
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def precision(self):\n self.overall_precision = precision_score(\n self.y_true, self.y_pred, average = self.average_type).round(self.digits_count_fp)\n self.classes_precision = precision_score(\n self.y_true, self.y_pred, average = None).round(self.digits_count_fp)", "def comp...
[ "0.7489052", "0.7288358", "0.7159325", "0.715323", "0.7065856", "0.6984727", "0.6964892", "0.69536865", "0.6912471", "0.68334424", "0.68176156", "0.68093187", "0.6804945", "0.6804945", "0.6804945", "0.6804945", "0.6804945", "0.6804945", "0.67855513", "0.675501", "0.675501", ...
0.67575085
21
Git repository tag to be used.
def git_tag(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "git_tag")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def repo_tag(self):\n return '%s/gcloud/%s' % (constants.APPENGINE_REGISTRY, self._tag)", "def get_tag(repo: str = None) -> str:\n if not repo:\n repo = '.'\n repo=repo.replace('\\\\','/')\n cmd = ['git', 'describe']\n result = _run_git(cmd, repo=repo, expect_stderr=True)\n if not result...
[ "0.7673074", "0.7213328", "0.70335156", "0.66992086", "0.6674686", "0.65969664", "0.65457726", "0.653278", "0.6490632", "0.6475687", "0.6464774", "0.64521617", "0.6386429", "0.63831866", "0.63820714", "0.62925756", "0.6241448", "0.6200089", "0.6117654", "0.6111816", "0.603402...
0.73003423
1
Indicate if only https is allowed.
def https_only(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "https_only")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter_ssl(request):\n if request.scheme == 'https':\n return True\n else:\n return False", "def filter_nossl(request):\n if request.scheme == 'http':\n return True\n else:\n return False", "def is_https_url(value):\n url = urlparse(value)\n\n if url.scheme != ...
[ "0.7965766", "0.77154565", "0.7565724", "0.7392088", "0.7078807", "0.69868004", "0.69662243", "0.6949298", "0.6943993", "0.68764025", "0.6849603", "0.68306315", "0.6793388", "0.67595094", "0.6756962", "0.67073786", "0.66795087", "0.6645245", "0.66423917", "0.66260034", "0.650...
0.76651585
3
Indicate if only https is allowed.
def https_only(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "https_only")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter_ssl(request):\n if request.scheme == 'https':\n return True\n else:\n return False", "def filter_nossl(request):\n if request.scheme == 'http':\n return True\n else:\n return False", "def is_https_url(value):\n url = urlparse(value)\n\n if url.scheme != ...
[ "0.7965766", "0.77154565", "0.7565724", "0.7392088", "0.7078807", "0.69868004", "0.69662243", "0.6949298", "0.6943993", "0.68764025", "0.6849603", "0.68306315", "0.6793388", "0.67595094", "0.6756962", "0.67073786", "0.66795087", "0.6645245", "0.66423917", "0.66260034", "0.650...
0.76651585
2
The workload profile used for this app. Supported for Consumption + Dedicated plan.
def workload_profile_name(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "workload_profile_name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def profile(self):\n return self.__profile", "def profile(self):\n return self._profile", "def _get_profile(self):\n return self.sqlfluff_config.get_section(\n (self.templater_selector, self.name, \"profile\")\n )", "def profile(self) -> Optional[pulumi.Input[str]]:\n ...
[ "0.7052388", "0.70441353", "0.69872874", "0.69511867", "0.69511867", "0.69133526", "0.6861306", "0.67042506", "0.6637354", "0.6637354", "0.6620669", "0.65818447", "0.65818447", "0.6530042", "0.64586556", "0.63977563", "0.63201106", "0.63111293", "0.6254996", "0.61560345", "0....
0.7488287
0
The mount path of the persistent disk.
def mount_path(self) -> pulumi.Input[str]: return pulumi.get(self, "mount_path")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mount_path(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"mount_path\")", "def mount_path(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"mount_path\")", "def _get_mount(self):\n if not self._mount.endswith(os.path.sep):\n return \"%s%s\"...
[ "0.78150636", "0.78150636", "0.77916133", "0.764926", "0.755916", "0.7346433", "0.70456284", "0.6985461", "0.6984774", "0.69616896", "0.69348276", "0.6888654", "0.68752825", "0.6864274", "0.67710966", "0.67529", "0.66702974", "0.65899515", "0.65798587", "0.6563449", "0.653598...
0.8048017
0
The share name of the Azure File share.
def share_name(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "share_name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def azure_file_share_name(self) -> Optional[str]:\n return pulumi.get(self, \"azure_file_share_name\")", "def share_name(self) -> str:\n return pulumi.get(self, \"share_name\")", "def get_name(self):\n\t\treturn call_sdk_function('PrlShare_GetName', self.handle)", "def share_type(self) -> str:\...
[ "0.9039069", "0.8264396", "0.72617775", "0.646659", "0.60962874", "0.59984493", "0.5937071", "0.5894409", "0.58783764", "0.587703", "0.5844665", "0.5812987", "0.580835", "0.5797004", "0.57410485", "0.57410485", "0.57410485", "0.57410485", "0.57410485", "0.5732272", "0.5692856...
0.74682826
2
The environment variables for this build
def env(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: return pulumi.get(self, "env")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_env_vars(self):\n return _untag_env_vars(self._tagged_env_vars, build=True)", "def env_vars(self):\n return _untag_env_vars(self._tagged_env_vars, build=False)", "def environment_variables(\n self,\n ) -> typing.Optional[\n typing.Mapping[str, aws_cdk.aws_codebuild.Buil...
[ "0.8091572", "0.79918605", "0.79886943", "0.79886943", "0.79886943", "0.79886943", "0.7972348", "0.7948919", "0.76267296", "0.75794816", "0.75113744", "0.74221617", "0.731045", "0.7308937", "0.7305505", "0.7296432", "0.71862805", "0.7146802", "0.7133975", "0.7128667", "0.7106...
0.0
-1
The name of the resource group that contains the infrastructure resources
def infra_resource_group(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "infra_resource_group")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resource_group_name(self) -> str:\n return pulumi.get(self, \"resource_group_name\")", "def resource_group(self) -> str:\n return pulumi.get(self, \"resource_group\")", "def resource_group_name(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"resource_group_name\")", "def res...
[ "0.8347187", "0.8308579", "0.8012809", "0.8012809", "0.8012809", "0.8012809", "0.8012809", "0.8012809", "0.8012809", "0.8012809", "0.8012809", "0.8012809", "0.8012809", "0.8012809", "0.7967214", "0.7967214", "0.7831579", "0.77118415", "0.77118415", "0.77118415", "0.77118415",...
0.6870341
77
Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
def args(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: return pulumi.get(self, "args")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def run(args):\n docker(' '.join(args))", "def cmd_arguments():\n parser = argparse.ArgumentParser()\n parser.add_argument(\"-i\", \"--image\",\n help=\"Full image path can be optionally supplied.\")\n args = parser.parse_args()\n return args", "def _get_docker_run_cmd(nam...
[ "0.6854722", "0.6481649", "0.61455405", "0.6022112", "0.58545595", "0.5803202", "0.5775084", "0.5757553", "0.57531494", "0.57439387", "0.57303345", "0.57125044", "0.5702654", "0.56844985", "0.5657249", "0.5634082", "0.5631807", "0.562252", "0.56153786", "0.5603905", "0.559156...
0.0
-1
The bound certificate name of domain.
def cert_name(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "cert_name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def domain_dns_name(self):\n domain_dn = self.get_default_basedn()\n return domain_dn.canonical_str().split('/')[0]", "def domain_name(self) -> str:\n return pulumi.get(self, \"domain_name\")", "def domain_name(self) -> str:\n return pulumi.get(self, \"domain_name\")", "def _get_d...
[ "0.6968009", "0.68129057", "0.68129057", "0.66774845", "0.66622883", "0.6596596", "0.6596596", "0.6576398", "0.65718263", "0.65718263", "0.65718263", "0.6507224", "0.63853043", "0.6353726", "0.6327277", "0.6320103", "0.62965983", "0.62965983", "0.62932986", "0.6276389", "0.62...
0.68591535
1
Collection of environment variables
def environment_variables(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: return pulumi.get(self, "environment_variables")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def env_variables(self) -> list[\"EnvVariable\"]:\n _args: list[Arg] = []\n _ctx = self._select(\"envVariables\", _args)\n _ctx = EnvVariable(_ctx)._select_multiple(\n _name=\"name\",\n _value=\"value\",\n )\n return _ctx.execute_sync(list[EnvVariable])", ...
[ "0.794859", "0.78840125", "0.76816326", "0.76708215", "0.7669391", "0.75362927", "0.75101113", "0.74527454", "0.74064994", "0.7397468", "0.7379441", "0.7368966", "0.73521274", "0.7331978", "0.7124142", "0.71232176", "0.71015716", "0.70947325", "0.70576966", "0.70576966", "0.7...
0.6889554
26