query
stringlengths
7
3.85k
document
stringlengths
11
430k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Delete from the current cursor position to the end of the line.
func (ls *linestate) deleteToEnd() { ls.buf = ls.buf[:ls.pos] ls.refreshLine() }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Store) DeleteLine(line int) (string, error) {\n\tif line < 0 || line >= len(s.lines) {\n\t\treturn \"\", fmt.Errorf(\"newLine: Invalid line %v\", line)\n\t}\n\toriginal := s.lines[line].String()\n\tif line < len(s.lines)-1 {\n\t\tcopy(s.lines[line:], s.lines[line+1:])\n\t}\n\ts.lines[len(s.lines)-1] = nil...
[ "0.66155714", "0.65606886", "0.63854927", "0.63315856", "0.62901354", "0.625224", "0.616739", "0.6117216", "0.61087084", "0.5982817", "0.59359884", "0.58969957", "0.5829305", "0.5829305", "0.5826632", "0.58040184", "0.5768449", "0.5768401", "0.57607937", "0.5759273", "0.57546...
0.7210541
0
Delete the previous space delimited word.
func (ls *linestate) deletePrevWord() { oldPos := ls.pos // remove spaces for ls.pos > 0 && ls.buf[ls.pos-1] == ' ' { ls.pos-- } // remove word for ls.pos > 0 && ls.buf[ls.pos-1] != ' ' { ls.pos-- } ls.buf = append(ls.buf[:ls.pos], ls.buf[oldPos:]...) ls.refreshLine() }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *Model) deleteWordLeft() bool {\n\tif m.pos == 0 || len(m.value) == 0 {\n\t\treturn false\n\t}\n\n\tif m.EchoMode != EchoNormal {\n\t\treturn m.deleteBeforeCursor()\n\t}\n\n\t// Linter note: it's critical that we acquire the initial cursor position\n\t// here prior to altering it via SetCursor() below. As ...
[ "0.6380284", "0.60116595", "0.587871", "0.5683424", "0.5532775", "0.5530384", "0.54660577", "0.53705055", "0.5324776", "0.52727824", "0.52578044", "0.52554303", "0.5165702", "0.51439315", "0.51089376", "0.5071629", "0.5062739", "0.50529975", "0.50131184", "0.5012857", "0.5009...
0.78003573
0
Show completions for the current line.
func (ls *linestate) completeLine() rune { // get a list of line completions lc := ls.ts.completionCallback(ls.String()) if len(lc) == 0 { // no line completions beep() return KeycodeNull } // navigate and display the line completions stop := false idx := 0 u := utf8{} var r rune for !stop { if idx < ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *SoracomCompleter) Complete(d prompt.Document) []prompt.Suggest {\n\tline := d.CurrentLine()\n\n\t// return from hard corded Commands as atm don't have a way to find top-level commands from API definition\n\tif isFirstCommand(line) {\n\t\ts := filterFunc(Commands, line, prompt.FilterFuzzy)\n\t\tsort.Slice(...
[ "0.577039", "0.5513616", "0.54690325", "0.535265", "0.5350186", "0.5346948", "0.53078324", "0.52985865", "0.52985865", "0.52361923", "0.5227993", "0.5221723", "0.5212293", "0.5185051", "0.51619595", "0.51104", "0.5102009", "0.5090584", "0.50661045", "0.5064182", "0.50274915",...
0.6026927
0
Return a string for the current line buffer.
func (ls *linestate) String() string { return string(ls.buf) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Buffer() string {\n\treturn C.GoString(C.rl_line_buffer)\n}", "func (cl *charLine) string() string {\n\treturn string(*cl)\n}", "func (l Line) String() string {\n\treturn *(*string)(unsafe.Pointer(&l.line))\n}", "func (s *Buffer) String() string {\n\ts.mutex.Lock()\n\tdefer s.mutex.Unlock()\n\treturn s....
[ "0.76548827", "0.65308124", "0.6421607", "0.63664526", "0.63140243", "0.627917", "0.62193185", "0.61950177", "0.6194839", "0.6048672", "0.60193306", "0.5938888", "0.59302855", "0.59241825", "0.5886821", "0.58820885", "0.5872686", "0.5866819", "0.58072776", "0.5759639", "0.569...
0.7019718
1
NewLineNoise returns a new line editor.
func NewLineNoise() *Linenoise { l := Linenoise{} l.historyMaxlen = 32 return &l }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewLineEditor() *LineEditor {\n\treturn &LineEditor{\n\t\tCx: 0,\n\t\tRow: ERow{},\n\t}\n}", "func (s *Store) NewLine(ln int, st string) {\n\tif ln <= 0 {\n\t\ts.lines = append([]*line{newLine(st)}, s.lines...)\n\t\treturn\n\t}\n\tif ln >= len(s.lines) {\n\t\ts.lines = append(s.lines, newLine(st))\n\t\tret...
[ "0.69335365", "0.61699903", "0.61023545", "0.60246354", "0.5971946", "0.59482497", "0.5906088", "0.5841152", "0.58139503", "0.57714456", "0.5633337", "0.54948366", "0.54569215", "0.53570414", "0.5312351", "0.5303593", "0.52962285", "0.5134063", "0.5115456", "0.50289315", "0.4...
0.5784365
9
edit a line in raw mode
func (l *Linenoise) edit(ifd, ofd int, prompt, init string) (string, error) { // create the line state ls := newLineState(ifd, ofd, prompt, l) // set and output the initial line ls.editSet(init) // The latest history entry is always our current buffer l.HistoryAdd(ls.String()) u := utf8{} for { r := u.getRu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func edit(c *cli.Context) {\n\tlines := content()\n\n\targLen := len(c.Args())\n\n\tvar ind int\n\n\tswitch argLen {\n\tcase 0:\n\t\tind = 0\n\tcase 1:\n\t\tind, _ = strconv.Atoi(c.Args()[0])\n\tdefault:\n\t\tpanic(1)\n\t}\n\n\tselectedLine := lines[ind]\n\tlineArr := strings.Split(selectedLine, \" \")\n\n\tenv :=...
[ "0.6424451", "0.6130265", "0.6083213", "0.6079566", "0.6034267", "0.59695214", "0.59529984", "0.5872752", "0.57283735", "0.566307", "0.5634535", "0.56293267", "0.5463461", "0.53729963", "0.53414446", "0.53303015", "0.53051203", "0.5292393", "0.52825755", "0.5277974", "0.52654...
0.6575632
0
Read a line from stdin in raw mode.
func (l *Linenoise) readRaw(prompt, init string) (string, error) { // set rawmode for stdin l.enableRawMode(syscall.Stdin) defer l.disableRawMode(syscall.Stdin) // edit the line s, err := l.edit(syscall.Stdin, syscall.Stdout, prompt, init) fmt.Printf("\r\n") return s, err }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (c *Config) readLineRaw(prompt string) (string, error) {\n\t_, err := c.stdout.Write([]byte(prompt))\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tif c.bufioReader == nil {\n\t\tc.bufioReader = bufio.NewReader(c.stdin)\n\t}\n\tline, err := c.bufioReader.ReadString('\\n')\n\tif err != nil {\n\t\treturn \"\"...
[ "0.7045951", "0.6221766", "0.612136", "0.61189127", "0.6105609", "0.6082193", "0.60020673", "0.5822638", "0.5813698", "0.5802452", "0.5756891", "0.5702212", "0.56775093", "0.5662662", "0.56328225", "0.5623556", "0.5589195", "0.55323553", "0.55314094", "0.55254173", "0.5520291...
0.69025856
1
Read a line using basic buffered IO.
func (l *Linenoise) readBasic() (string, error) { if l.scanner == nil { l.scanner = bufio.NewScanner(os.Stdin) } // scan a line if !l.scanner.Scan() { // EOF - return quit return "", ErrQuit } // check for unexpected errors err := l.scanner.Err() if err != nil { return "", err } // get the line string...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (r *lineReader) readLine(ctx context.Context) ([]byte, error) {\n\tvar buf []byte\n\tfor ctx.Err() == nil {\n\t\tline, err := r.r.ReadSlice('\\n')\n\t\tline = utils.BytesCopy(line)\n\t\tif err == nil {\n\t\t\treturn concatBufs(buf, line), err\n\t\t}\n\n\t\tif err == io.EOF {\n\t\t\tbuf = concatBufs(buf, line)...
[ "0.6840311", "0.68149805", "0.67247534", "0.66606617", "0.66584694", "0.6630793", "0.6623467", "0.64705783", "0.6389367", "0.6387104", "0.6332178", "0.63149166", "0.62792665", "0.62560844", "0.6244909", "0.6233652", "0.6214558", "0.6213266", "0.6182509", "0.6165949", "0.61411...
0.0
-1
Read a line. Return nil on EOF/quit.
func (l *Linenoise) Read(prompt, init string) (string, error) { if !isatty.IsTerminal(uintptr(syscall.Stdin)) { // Not a tty, read from a file or pipe. return l.readBasic() } else if unsupportedTerm() { // Not a terminal we know about, so basic line reading. fmt.Printf(prompt) s, err := l.readBasic() if e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func readLine(s *bufio.Scanner) (string, error) {\n\tif !s.Scan() {\n\t\tif err := s.Err(); err != nil {\n\t\t\treturn \"\", fmt.Errorf(\"error reading line: %s\", err)\n\t\t} else {\n\t\t\treturn \"\", fmt.Errorf(\"unexpected EOF\")\n\t\t}\n\t}\n\tline := s.Text()\n\tif err := checkLine(line); err != nil {\n\t\tr...
[ "0.6570686", "0.6451235", "0.638333", "0.628676", "0.6238831", "0.6168656", "0.61130947", "0.60420555", "0.60133535", "0.5990853", "0.5951626", "0.59446377", "0.59429616", "0.5906366", "0.58516145", "0.5850762", "0.5813327", "0.5811245", "0.577608", "0.57625437", "0.5760141",...
0.5112507
56
Loop calls the provided function in a loop. Exit when the function returns true or when the exit key is pressed. Returns true when the loop function completes, false for early exit.
func (l *Linenoise) Loop(fn func() bool, exitKey rune) bool { // set rawmode for stdin err := l.enableRawMode(syscall.Stdin) if err != nil { log.Printf("enable rawmode error %s\n", err) return false } u := utf8{} rc := false looping := true for looping { // get a rune r := u.getRune(syscall.Stdin, &t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func loop() bool {\n\tfmt.Printf(\"loop index %d/%d\\r\\n\", loopIndex, maxLoops)\n\ttime.Sleep(500 * time.Millisecond)\n\tloopIndex++\n\treturn loopIndex > maxLoops\n}", "func (c *Coordinator) loop(fn loopFunc, interval time.Duration, reason string) chan struct{} {\n\tdone := make(chan struct{})\n\tgo func() {\...
[ "0.6949295", "0.6442794", "0.62186843", "0.6109389", "0.6025708", "0.5983033", "0.59712213", "0.59504193", "0.58755404", "0.5874324", "0.5786895", "0.57853717", "0.57385105", "0.5727201", "0.5709851", "0.5637353", "0.56257826", "0.55741024", "0.5458363", "0.5448975", "0.54237...
0.80397373
0
Key Code Debugging PrintKeycodes prints scan codes on the screen for debugging/development purposes.
func (l *Linenoise) PrintKeycodes() { fmt.Printf("Linenoise key codes debugging mode.\n") fmt.Printf("Press keys to see scan codes. Type 'quit' at any time to exit.\n") // set rawmode for stdin err := l.enableRawMode(syscall.Stdin) if err != nil { log.Printf("enable rawmode error %s\n", err) return } u :=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (scode Scancode) Code() Code {\n\treturn Code(C.SDL_GetKeyFromScancode(C.SDL_Scancode(scode)))\n}", "func wdekeyFromCode(e *sdl.KeyboardEvent) string {\n\t//TODO Implement this\n\treturn \"\"\n}", "func loadPrintable(keys map[rune]kb.Key, keycodeConverterMap, domKeyMap map[string][]string, layoutBuf []byt...
[ "0.5734756", "0.5661743", "0.5619345", "0.55390036", "0.5255597", "0.52267355", "0.5218144", "0.52071184", "0.5201189", "0.51946056", "0.5191891", "0.51840925", "0.51568466", "0.5144059", "0.51070255", "0.5100881", "0.5098705", "0.50601155", "0.5047249", "0.50467867", "0.5042...
0.8194317
0
SetCompletionCallback sets the completion callback function.
func (l *Linenoise) SetCompletionCallback(fn func(string) []string) { l.completionCallback = fn }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (client *SyncClient) SetCompletionListener(callback syncCompletionListener) error {\n\tif callback == nil {\n\t\tC.obx_sync_listener_complete(client.cClient, nil, nil)\n\t\tcCallbackUnregister(client.cCallbacks[cCallbackIndexCompletion])\n\t} else {\n\t\tif cbId, err := cCallbackRegister(cVoidCallback(func() ...
[ "0.7559254", "0.68985003", "0.6753321", "0.6613184", "0.64593345", "0.611201", "0.6071126", "0.59966904", "0.5947144", "0.590608", "0.5787208", "0.5714929", "0.5710185", "0.56814975", "0.56087536", "0.56087536", "0.55971366", "0.5591729", "0.55124784", "0.55124784", "0.540154...
0.8331443
0
SetHintsCallback sets the hints callback function.
func (l *Linenoise) SetHintsCallback(fn func(string) *Hint) { l.hintsCallback = fn }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (w *Window) SetHints(hints hints) {\n\tw.hints |= hints\n}", "func (v *TextView) SetInputHints(hints InputHints) {\n\tC.gtk_text_view_set_input_hints(v.native(), C.GtkInputHints(hints))\n}", "func (f *Font) SetHinting(hinting int) {\n\tC.TTF_SetFontHinting(f.f, C.int(hinting))\n}", "func InitHint(hint H...
[ "0.6655771", "0.5874338", "0.5531722", "0.53638446", "0.5362723", "0.53541845", "0.52623695", "0.523914", "0.52245545", "0.52127707", "0.5178566", "0.51380336", "0.5067138", "0.504538", "0.50408465", "0.5038447", "0.49948537", "0.4993341", "0.4972689", "0.4966621", "0.4943043...
0.8803182
0
SetMultiline sets multiline editing mode.
func (l *Linenoise) SetMultiline(mode bool) { l.mlmode = mode }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *Discord) SupportsMultiline() bool {\n\treturn true\n}", "func (d *Discord) SupportsMultiline() bool {\n\treturn true\n}", "func (f *StandardFormatter) SetAppendNewLine(appendNewLine bool) {\n\tf.mutex.Lock()\n\tdefer f.mutex.Unlock()\n\tf.appendNewLine = appendNewLine\n}", "func SetLines(l []string)...
[ "0.5475919", "0.5475919", "0.5170859", "0.4870367", "0.4799137", "0.478739", "0.47782564", "0.47514302", "0.4702174", "0.46572047", "0.46277925", "0.46055743", "0.45961565", "0.45706195", "0.45657697", "0.4545953", "0.453209", "0.4527019", "0.44969025", "0.44902694", "0.44465...
0.79778475
0
SetHotkey sets the hotkey that causes line editing to exit. The hotkey will be appended to the line buffer but not displayed.
func (l *Linenoise) SetHotkey(key rune) { l.hotkey = key }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (g *Gui) SetKeybinding(viewname string, key tcell.Key, ch rune, mod tcell.ModMask, handler func(*Gui, *View) error) error {\n\t// var kb *eventBinding\n\n\t// k, ch, err := getKey(key)\n\t// if err != nil {\n\t// \treturn err\n\t// }\n\t// TODO: get rid of this ugly mess\n\t//switch key {\n\t//case termbox.Mo...
[ "0.5973567", "0.4932849", "0.49110886", "0.4889821", "0.48842877", "0.48081532", "0.48081532", "0.47633767", "0.47557762", "0.47259524", "0.47226557", "0.471854", "0.46006963", "0.46006963", "0.45853287", "0.45676532", "0.45553032", "0.45468715", "0.45246252", "0.45215952", "...
0.80387086
0
Command History pop an entry from the history list
func (l *Linenoise) historyPop(idx int) string { if idx < 0 { // pop the last entry idx = len(l.history) - 1 } if idx >= 0 && idx < len(l.history) { s := l.history[idx] l.history = append(l.history[:idx], l.history[idx+1:]...) return s } // nothing to pop return "" }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (z *zpoolctl) History(ctx context.Context, options string, pool string) *execute {\n\targs := []string{\"history\"}\n\tif len(options) > 0 {\n\t\targs = append(args, options)\n\t}\n\tif len(pool) > 0 {\n\t\targs = append(args, pool)\n\t}\n\treturn &execute{ctx: ctx, name: z.cmd, args: args}\n}", "func histo...
[ "0.63282084", "0.5945465", "0.5863756", "0.5819657", "0.58017015", "0.5801636", "0.5786378", "0.5783973", "0.57822776", "0.57009435", "0.5689128", "0.56723243", "0.563348", "0.5607726", "0.5600586", "0.5591681", "0.5548713", "0.553627", "0.5528185", "0.5520647", "0.5512427", ...
0.74988085
0
Set a history entry by index number.
func (l *Linenoise) historySet(idx int, line string) { l.history[len(l.history)-1-idx] = line }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (n Nodes) SetIndex(i int, node *Node)", "func (lo *LuaObject) Set(idx interface{}, val interface{}) interface{} {\n L := lo.L\n lo.Push() // the table\n GoToLua(L, nil, valueOf(idx))\n GoToLua(L, nil, valueOf(val))\n L.SetTable(-3)\n L.Pop(1) // the table\n return val\n}", "func (sa *SnapshotArray...
[ "0.6136136", "0.60229445", "0.59669566", "0.58444846", "0.58164537", "0.5784874", "0.5704292", "0.56925535", "0.56398296", "0.5635676", "0.5568834", "0.5554014", "0.5502249", "0.54614896", "0.5451086", "0.5443747", "0.544068", "0.5435106", "0.5402735", "0.53784984", "0.537725...
0.6641271
0
Get a history entry by index number.
func (l *Linenoise) historyGet(idx int) string { return l.history[len(l.history)-1-idx] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (l *LevelDBLog) Get(index int) (*Entry, error) {\n\tl.RLock()\n\tdefer l.RUnlock()\n\n\tif l.db == nil {\n\t\treturn nil, errors.New(\"log database has been closed \")\n\t}\n\n\tdata, err := l.db.Get(l.makeKey(index), nil)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tentry := new(Entry)\n\tif err = entry...
[ "0.69890547", "0.6931922", "0.68567276", "0.6717915", "0.6651019", "0.6597902", "0.6479551", "0.602872", "0.5932064", "0.5927579", "0.58827543", "0.58690596", "0.57837945", "0.5757964", "0.56649727", "0.56580347", "0.5641616", "0.5640364", "0.56182176", "0.5607699", "0.559656...
0.67635894
3
Return the full history list.
func (l *Linenoise) historyList() []string { return l.history }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (f *ReleaseStoreHandleFunc) History() []ReleaseStoreHandleFuncCall {\n\tf.mutex.Lock()\n\thistory := make([]ReleaseStoreHandleFuncCall, len(f.history))\n\tcopy(history, f.history)\n\tf.mutex.Unlock()\n\n\treturn history\n}", "func (f *DBStoreHandleFunc) History() []DBStoreHandleFuncCall {\n\tf.mutex.Lock()\...
[ "0.7481514", "0.7468895", "0.7468895", "0.7467521", "0.7467521", "0.745048", "0.74211055", "0.7408736", "0.7403688", "0.73958266", "0.7388008", "0.7362413", "0.7357153", "0.7351966", "0.7335992", "0.73349196", "0.73349196", "0.73216414", "0.7314814", "0.7314499", "0.7290348",...
0.78417665
0
Return next history item.
func (l *Linenoise) historyNext(ls *linestate) string { if len(l.history) == 0 { return "" } // update the current history entry with the line buffer l.historySet(ls.historyIndex, ls.String()) ls.historyIndex-- // next history item if ls.historyIndex < 0 { ls.historyIndex = 0 } return l.historyGet(ls.histo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (scanner *HistoryScanner) Next() (commonledger.QueryResult, error) {\n\tlogger.Debugf(\"Entered HistoryScanner.Next\")\n\n\tblockAndTxNum, err := scanner.couchdbScanner.Next()\n\tif blockAndTxNum == nil {\n\t\treturn nil, err\n\t}\n\n\tlogger.Debugf(\"[HistoryScanner.Next] blockAndTxNum=%v\", blockAndTxNum)\n...
[ "0.6240852", "0.6158178", "0.6149909", "0.61473864", "0.61101425", "0.6086889", "0.6012917", "0.58869714", "0.58832574", "0.5821239", "0.5730625", "0.57183653", "0.56548566", "0.56508684", "0.5626105", "0.56022394", "0.55524296", "0.5536614", "0.5530655", "0.5525143", "0.5524...
0.6385678
0
Return previous history item.
func (l *Linenoise) historyPrev(ls *linestate) string { if len(l.history) == 0 { return "" } // update the current history entry with the line buffer l.historySet(ls.historyIndex, ls.String()) ls.historyIndex++ // previous history item if ls.historyIndex >= len(l.history) { ls.historyIndex = len(l.history) -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (h *History) Previous() {\n\tload := h.Load()\n\n\tif len(load) <= 1 {\n\t\tfmt.Println(\"history empty\")\n\t\tos.Exit(0)\n\t}\n\n\titem := make([]string, 1)\n\tcopy(item, load[len(load)-2:len(load)-1])\n\n\tprompt := promptui.Select{\n\t\tLabel: \"Prvious\",\n\t\tItems: item,\n\t}\n\n\t_, result, err := pro...
[ "0.7453633", "0.71359205", "0.7092377", "0.70064306", "0.66395694", "0.6634504", "0.66225123", "0.65715575", "0.6396531", "0.6357935", "0.63571906", "0.6289258", "0.62834173", "0.62746674", "0.62656605", "0.6253417", "0.6253129", "0.6231659", "0.6221888", "0.62133807", "0.621...
0.7345694
1
HistoryAdd adds a new entry to the history.
func (l *Linenoise) HistoryAdd(line string) { if l.historyMaxlen == 0 { return } // don't re-add the last entry if len(l.history) != 0 && line == l.history[len(l.history)-1] { return } // add the line to the history if len(l.history) == l.historyMaxlen { // remove the first entry l.historyPop(0) } l.hi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (h *History) Add(input string) {\n\th.histories = append(h.histories, input)\n\th.Clear()\n}", "func (h *History) Add(entry string) {\n\th.lock.Lock()\n\tdefer h.lock.Unlock()\n\n\tmax := cap(h.entries)\n\th.head = (h.head + 1) % max\n\th.entries[h.head] = entry\n\tif h.size < max {\n\t\th.size++\n\t}\n}", ...
[ "0.779259", "0.76407737", "0.74760807", "0.7376757", "0.7210713", "0.7104174", "0.7063229", "0.70470685", "0.6975838", "0.69305986", "0.67309284", "0.66359496", "0.66359496", "0.6457", "0.64496887", "0.637711", "0.6339429", "0.63130957", "0.62378895", "0.6207263", "0.6129786"...
0.7841567
0
HistorySetMaxlen sets the maximum length for the history. Truncate the current history if needed.
func (l *Linenoise) HistorySetMaxlen(n int) { if n < 0 { return } l.historyMaxlen = n currentLength := len(l.history) if currentLength > l.historyMaxlen { // truncate and retain the latest history l.history = l.history[currentLength-l.historyMaxlen:] } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *RedisStore) SetMaxLength(l int) {\n\tif l >= 0 {\n\t\ts.maxLength = l\n\t}\n}", "func (store *RedisStore) SetMaxLength(l int) {\r\n\tif l >= 0 {\r\n\t\tstore.maxLength = l\r\n\t}\r\n}", "func (r *Release) getMaxHistory() []string {\n\tif r.MaxHistory != 0 {\n\t\treturn []string{\"--history-max\", strc...
[ "0.69493216", "0.68986493", "0.6644048", "0.639017", "0.6385586", "0.6376215", "0.63593084", "0.6263625", "0.6263625", "0.62625104", "0.6247249", "0.6193528", "0.61780846", "0.60929585", "0.6009808", "0.58496416", "0.5797404", "0.5773891", "0.5693024", "0.5578844", "0.5536943...
0.875326
0
HistorySave saves the history to a file.
func (l *Linenoise) HistorySave(fname string) { if len(l.history) == 0 { return } f, err := os.Create(fname) if err != nil { log.Printf("error opening %s\n", fname) return } _, err = f.WriteString(strings.Join(l.history, "\n")) if err != nil { log.Printf("%s error writing %s\n", fname, err) } f.Close()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (n *nameHistory) Save() error {\n\tif !n.isChanged {\n\t\treturn nil\n\t}\n\n\tfp, err := os.OpenFile(n.filepath, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, os.ModePerm)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"could not open %q file: %v\", n.filepath, err)\n\t}\n\tdefer fp.Close()\n\n\tif err := yaml.NewEncoder(...
[ "0.7479056", "0.73361117", "0.6937678", "0.6906065", "0.6509149", "0.6318169", "0.6227113", "0.6177289", "0.6128826", "0.6128826", "0.6123193", "0.6010694", "0.6007696", "0.5999719", "0.5982161", "0.5959738", "0.5958745", "0.5958745", "0.5958745", "0.5958745", "0.59560835", ...
0.8345424
0
HistoryLoad loads history from a file.
func (l *Linenoise) HistoryLoad(fname string) { info, err := os.Stat(fname) if err != nil { return } if !info.Mode().IsRegular() { log.Printf("%s is not a regular file\n", fname) return } f, err := os.Open(fname) if err != nil { log.Printf("%s error on open %s\n", fname, err) return } b := bufio.NewR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (n *nameHistory) Load() error {\n\tfp, err := os.OpenFile(n.filepath, os.O_RDONLY, os.ModePerm)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"could not open %q file: %v\", n.filepath, err)\n\t}\n\tdefer fp.Close()\n\n\tif err := yaml.NewDecoder(fp).Decode(&n.entries); err != nil {\n\t\treturn fmt.Errorf(\"could...
[ "0.76143396", "0.72454363", "0.6414545", "0.6244711", "0.6017665", "0.60162413", "0.59475034", "0.58671105", "0.58197594", "0.5788585", "0.57839835", "0.57262886", "0.56704795", "0.56589526", "0.5641737", "0.56177145", "0.55798924", "0.5569823", "0.5554513", "0.55464244", "0....
0.8224901
0
/ 'DSP' API Frees a DSP object. This will free the DSP object. NOTE: If DSP is not removed from the Channel, ChannelGroup or System object with "Channel.RemoveDSP" or "ChannelGroup.RemoveDSP", after being added with "Channel.AddDSP" or "ChannelGroup.AddDSP", it will not release and will instead return FMOD_ERR_DSP_INUS...
func (d *DSP) Release() error { res := C.FMOD_DSP_Release(d.cptr) return errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (ctx *Context) Free() {\n\tC.avfilter_free((*C.struct_AVFilterContext)(ctx))\n}", "func (x *FzCmmEngine) Free() {\n\tif x != nil {\n\t\tC.free(unsafe.Pointer(x))\n\t}\n}", "func (x *FzTuningContext) Free() {\n\tif x != nil {\n\t\tC.free(unsafe.Pointer(x))\n\t}\n}", "func (x *FzBandWriter) Free() {\n\tif...
[ "0.6244145", "0.6076277", "0.59757036", "0.59755033", "0.59550095", "0.58852667", "0.5861734", "0.58615553", "0.58599514", "0.58489096", "0.58043706", "0.57926124", "0.57796425", "0.5775345", "0.5768878", "0.57495904", "0.5746939", "0.57458496", "0.57294965", "0.5725634", "0....
0.7037547
0
Retrieves the parent System object that was used to create this object.
func (d *DSP) SystemObject() (*System, error) { var system System res := C.FMOD_DSP_GetSystemObject(d.cptr, &system.cptr) return &system, errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (sc *BaseSmartContract) GetParent() object.Parent {\n\treturn sc.Parent\n}", "func (m *Drive) GetSystem()(SystemFacetable) {\n return m.system\n}", "func (m *List) GetSystem()(SystemFacetable) {\n return m.system\n}", "func (o *RoleWithAccess) GetSystem() bool {\n\tif o == nil || o.System == nil {...
[ "0.6080718", "0.6048367", "0.6017261", "0.60082644", "0.597957", "0.5912714", "0.5888304", "0.58516985", "0.57922125", "0.57917666", "0.5775844", "0.5716228", "0.57021713", "0.5666899", "0.5662998", "0.56621414", "0.56485397", "0.56330633", "0.5619349", "0.5618898", "0.559675...
0.58831245
7
/ Connection / disconnection / input and output enumeration. Adds the specified DSP unit as an input of the DSP object. input: The DSP unit to add as an input of the current unit. connection: The connection between the 2 units. Optional. Specify 0 or NULL to ignore. typ: The type of connection between the 2 units. See ...
func (d *DSP) AddInput(input DSP, typ DSPConnectionType) (DspConnection, error) { var dspConn DspConnection res := C.FMOD_DSP_AddInput(d.cptr, input.cptr, &dspConn.cptr, C.FMOD_DSPCONNECTION_TYPE(typ)) return dspConn, errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) Input(index int) (DSP, DspConnection, error) {\n\tvar input DSP\n\tvar inputconnection DspConnection\n\tres := C.FMOD_DSP_GetInput(d.cptr, C.int(index), &input.cptr, &inputconnection.cptr)\n\treturn input, inputconnection, errs[res]\n}", "func (a *acssImpl) Input(input gpa.Input) gpa.OutMessages {\...
[ "0.5624008", "0.4930372", "0.49055094", "0.48159757", "0.47735038", "0.4769872", "0.45192832", "0.45080334", "0.44526583", "0.445226", "0.44361445", "0.44183317", "0.4409027", "0.4395565", "0.43943202", "0.43803808", "0.43727273", "0.43714926", "0.43645203", "0.43591833", "0....
0.73367494
0
Disconnect the DSP unit from the specified target. target: The unit that this unit is to be removed from. Specify 0 or NULL to disconnect the unit from all outputs and inputs. connection: If there is more than one connection between 2 dsp units, this can be used to define which of the connections should be disconnected...
func (d *DSP) DisconnectFrom(target DSP, connection DspConnection) error { res := C.FMOD_DSP_DisconnectFrom(d.cptr, target.cptr, connection.cptr) return errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (c *MockConnection) Disconnect() {\n\tif other := c.Target.(*MockConnection); other == nil {\n\t\tpanic(\"Source connection not connected.\")\n\t} else if other.Target != c {\n\t\tpanic(\"Target connection not connected to source connection.\")\n\t} else {\n\t\tc.Target, other.Target = nil, nil\n\t}\n}", "f...
[ "0.57582474", "0.5404482", "0.52955854", "0.5107216", "0.50436527", "0.49388117", "0.48889676", "0.48836368", "0.48642766", "0.48550525", "0.48419273", "0.483969", "0.47666347", "0.47615525", "0.47527686", "0.47031555", "0.46745664", "0.46656075", "0.46656075", "0.4643877", "...
0.58859473
0
Helper function to disconnect either all inputs or all outputs of a dsp unit. inputs: true = disconnect all inputs to this DSP unit. false = leave input connections alone. outputs: true = disconnect all outputs to this DSP unit. false = leave output connections alone. This function is optimized to be faster than discon...
func (d *DSP) DisconnectAll(inputs, outputs bool) error { res := C.FMOD_DSP_DisconnectAll(d.cptr, getBool(inputs), getBool(outputs)) return errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (w *Wire) DisconnectOutputs() {\n\tw.SetNumOutputs(0)\n\tw.outputs = w.outputs[0:0]\n}", "func (s *Signal) DisconnectAll() {\n\ts.Mu.Lock()\n\ts.Cons = make(map[Ki]RecvFunc)\n\ts.Mu.Unlock()\n}", "func (o *Output) Disconnect(c Connection) bool {\n\to.Lock()\n\tok := o.Remove(c)\n\to.Unlock()\n\treturn ok\...
[ "0.6069437", "0.5197452", "0.49850973", "0.47833794", "0.47574034", "0.47144872", "0.46668392", "0.46572712", "0.4615023", "0.45892963", "0.45662084", "0.45424485", "0.45418474", "0.45253637", "0.4495936", "0.44708145", "0.4461583", "0.44280642", "0.43790534", "0.43696007", "...
0.66034466
0
Retrieves the number of inputs connected to the DSP unit. Inputs are units that feed data to this unit. When there are multiple inputs, they are mixed together. Performance warning! Because this function needs to flush the dsp queue before it can determine how many units are available, this function may block significa...
func (d *DSP) NumInputs() (int, error) { var numinputs C.int res := C.FMOD_DSP_GetNumInputs(d.cptr, &numinputs) return int(numinputs), errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (tx *Tx) InputCount() int {\r\n\treturn len(tx.Inputs)\r\n}", "func (x *MetricsWorkload) GetNumInputs() int32 {\n\tif x != nil {\n\t\treturn x.NumInputs\n\t}\n\treturn 0\n}", "func (dev *PMX) OutputCount() int {\n\treturn len(dev.Channels)\n}", "func (p Plexer) NumChannels() int {\n\treturn len(p.channe...
[ "0.5830321", "0.5769346", "0.5714112", "0.5667743", "0.56345236", "0.56075567", "0.55987066", "0.5582188", "0.5524571", "0.54868436", "0.547775", "0.54391843", "0.53569084", "0.5351818", "0.5319162", "0.5289214", "0.5280871", "0.5266696", "0.5263865", "0.5246616", "0.5207028"...
0.690844
0
Retrieves the number of outputs connected to the DSP unit. Outputs are units that this unit feeds data to. When there are multiple outputs, the data is split and sent to each unit individually. Performance warning! Because this function needs to flush the dsp queue before it can determine how many units are available, ...
func (d *DSP) NumOutputs() (int, error) { var numoutputs C.int res := C.FMOD_DSP_GetNumOutputs(d.cptr, &numoutputs) return int(numoutputs), errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (a *DS345) OutputCount() int {\n\treturn len(a.Channels)\n}", "func (dev *E36xx) OutputCount() int {\n\treturn len(dev.Channels)\n}", "func (dev *PMX) OutputCount() int {\n\treturn len(dev.Channels)\n}", "func (o GroupContainerGpuOutput) Count() pulumi.IntPtrOutput {\n\treturn o.ApplyT(func(v GroupConta...
[ "0.7081156", "0.7014924", "0.6916046", "0.55712736", "0.55679405", "0.5543376", "0.54933316", "0.54702884", "0.5448055", "0.5412375", "0.5366185", "0.5353234", "0.5335579", "0.53230476", "0.53093386", "0.5305061", "0.53026456", "0.5299839", "0.52460974", "0.5220774", "0.52178...
0.6333659
3
Retrieves a pointer to a DSP unit which is acting as an input to this unit. index: Index of the input unit to retrieve. An input is a unit which feeds audio data to this unit. If there are more than 1 input to this unit, the inputs will be mixed, and the current unit processes the mixed result. Find out the number of i...
func (d *DSP) Input(index int) (DSP, DspConnection, error) { var input DSP var inputconnection DspConnection res := C.FMOD_DSP_GetInput(d.cptr, C.int(index), &input.cptr, &inputconnection.cptr) return input, inputconnection, errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) Output(index int) (DSP, DspConnection, error) {\n\tvar output DSP\n\tvar outputconnection DspConnection\n\tres := C.FMOD_DSP_GetOutput(d.cptr, C.int(index), &output.cptr, &outputconnection.cptr)\n\treturn output, outputconnection, errs[res]\n}", "func (p *program) doReadInput(i *instruction) {\n ...
[ "0.554022", "0.49184617", "0.4911302", "0.48565173", "0.48452535", "0.4843511", "0.48085755", "0.47639212", "0.46928218", "0.45798331", "0.45692715", "0.45388374", "0.45336694", "0.45282397", "0.45144767", "0.45136064", "0.44995886", "0.449156", "0.44863084", "0.44710955", "0...
0.7636755
0
Retrieves a pointer to a DSP unit which is acting as an output to this unit. index: Index of the output unit to retrieve. An output is a unit which this unit will feed data too once it has processed its data. Find out the number of output units to this unit by calling "DSP.NumOutputs". Performance warning! Because this...
func (d *DSP) Output(index int) (DSP, DspConnection, error) { var output DSP var outputconnection DspConnection res := C.FMOD_DSP_GetOutput(d.cptr, C.int(index), &output.cptr, &outputconnection.cptr) return output, outputconnection, errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) Input(index int) (DSP, DspConnection, error) {\n\tvar input DSP\n\tvar inputconnection DspConnection\n\tres := C.FMOD_DSP_GetInput(d.cptr, C.int(index), &input.cptr, &inputconnection.cptr)\n\treturn input, inputconnection, errs[res]\n}", "func (a *DS345) OutputCount() int {\n\treturn len(a.Channels...
[ "0.5448426", "0.5216238", "0.51698977", "0.51465654", "0.5072772", "0.49458998", "0.4847666", "0.48280278", "0.47968405", "0.47689453", "0.47689453", "0.47063503", "0.46706727", "0.46692526", "0.46689245", "0.4657443", "0.46326956", "0.45541793", "0.45270175", "0.45129877", "...
0.71421915
0
/ DSP unit control. Enables or disables a unit for being processed. active: true = unit is activated, false = unit is deactivated. This does not connect or disconnect a unit in any way, it just disables it so that it is not processed. If a unit is disabled, and has inputs, they will also cease to be processed. To disab...
func (d *DSP) SetActive(active bool) error { res := C.FMOD_DSP_SetActive(d.cptr, getBool(active)) return errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (c *CmdBuff) SetActive(b bool) {\n\tc.mx.Lock()\n\t{\n\t\tc.active = b\n\t}\n\tc.mx.Unlock()\n\n\tc.fireActive(c.active)\n}", "func DUTActive(ctx context.Context, servoInst *servo.Servo) (bool, error) {\n\tstate, err := servoInst.GetECSystemPowerState(ctx)\n\tif err != nil {\n\t\treturn false, errors.Wrap(e...
[ "0.53334343", "0.51506", "0.502237", "0.49990132", "0.49359998", "0.49289322", "0.4865619", "0.4845351", "0.48290035", "0.47790095", "0.47710362", "0.47578385", "0.47541368", "0.4745318", "0.4735954", "0.46489817", "0.4642632", "0.46341166", "0.46273163", "0.4612431", "0.4591...
0.6280715
0
Retrieves the active state of a DSP unit.
func (d *DSP) IsActive() (bool, error) { var active C.FMOD_BOOL res := C.FMOD_DSP_GetActive(d.cptr, &active) return setBool(active), errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o *Swapspace) GetActive(ctx context.Context) (active bool, err error) {\n\terr = o.object.CallWithContext(ctx, \"org.freedesktop.DBus.Properties.Get\", 0, InterfaceSwapspace, \"Active\").Store(&active)\n\treturn\n}", "func (sv *Unit) Active() unit.Activation {\n\tlog.WithField(\"sv\", sv).Debugf(\"sv.Activ...
[ "0.6023611", "0.5778541", "0.57009274", "0.55964816", "0.5577327", "0.5517794", "0.5509092", "0.550754", "0.5505832", "0.5490959", "0.5471798", "0.5457392", "0.5457392", "0.5454368", "0.543068", "0.5400681", "0.53836554", "0.5362608", "0.535319", "0.52928674", "0.52850723", ...
0.5368361
17
Enables or disables the read callback of a DSP unit so that it does or doesn't process the data coming into it. A DSP unit that is disabled still processes its inputs, it will just be 'dry'. bypass: Boolean to cause the read callback of the DSP unit to be bypassed or not. Default = false. If a unit is bypassed, it will...
func (d *DSP) SetBypass(bypass bool) error { res := C.FMOD_DSP_SetBypass(d.cptr, getBool(bypass)) return errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) Bypass() (bool, error) {\n\tvar bypass C.FMOD_BOOL\n\tres := C.FMOD_DSP_GetBypass(d.cptr, &bypass)\n\treturn setBool(bypass), errs[res]\n}", "func SPIDelayRead(v bool) func(*options) error {\n\treturn func(o *options) error { return o.setSPIDelayRead(v) }\n}", "func (d *dependencySleepAfterInitia...
[ "0.6178922", "0.46326694", "0.45607126", "0.45432112", "0.45374885", "0.44673994", "0.4408282", "0.4354577", "0.4323177", "0.43193677", "0.43165877", "0.43164214", "0.42729017", "0.4270603", "0.4266582", "0.42603517", "0.4227956", "0.4212063", "0.4193692", "0.41775048", "0.41...
0.63306314
0
Retrieves the bypass state of the DSP unit. If a unit is bypassed, it will still process its inputs, unlike "DSP.SetActive" (when set to false) which causes inputs to stop processing as well.
func (d *DSP) Bypass() (bool, error) { var bypass C.FMOD_BOOL res := C.FMOD_DSP_GetBypass(d.cptr, &bypass) return setBool(bypass), errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) SetBypass(bypass bool) error {\n\tres := C.FMOD_DSP_SetBypass(d.cptr, getBool(bypass))\n\treturn errs[res]\n}", "func (o NetworkRuleSetResponseOutput) Bypass() pulumi.StringPtrOutput {\n\treturn o.ApplyT(func(v NetworkRuleSetResponse) *string { return v.Bypass }).(pulumi.StringPtrOutput)\n}", "fu...
[ "0.5498904", "0.5114599", "0.511114", "0.5076523", "0.5017003", "0.49804524", "0.4573164", "0.44703326", "0.4407118", "0.4379531", "0.43793228", "0.43538514", "0.43259448", "0.42959827", "0.42699644", "0.42666838", "0.42413324", "0.42413324", "0.42408648", "0.42398065", "0.42...
0.69877833
0
Allows the user to scale the affect of a DSP effect, through control of the 'wet' mix, which is the postprocessed signal and the 'dry' which is the preprocessed signal. prewet: Floating point value from 0 to 1, describing a linear scale of the 'wet' (preprocessed signal) mix of the effect. Default = 1.0. Scale can be l...
func (d *DSP) SetWetDryMix(prewet, postwet, dry float64) error { res := C.FMOD_DSP_SetWetDryMix(d.cptr, C.float(prewet), C.float(postwet), C.float(dry)) return errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (b *Base) Scale(w http.ResponseWriter, r *http.Request) {\n\tb.log.Printf(\"%s %s -> %s\", r.Method, r.URL.Path, r.RemoteAddr)\n\n\tsOptions, pOptions, kOptions, oOptions := render.SetDefaultScaleOptions()\n\n\tpv := render.PageVars{\n\t\tTitle: \"Practice Scales and Arpeggios\", // default scale init...
[ "0.58391404", "0.5583572", "0.5322332", "0.5293805", "0.52633417", "0.5142366", "0.5142163", "0.5118127", "0.50875956", "0.50541645", "0.5047431", "0.4986008", "0.49298394", "0.49247116", "0.4922239", "0.48938483", "0.48694026", "0.48514295", "0.48286203", "0.4815054", "0.476...
0.5086322
9
Retrieves the wet/dry scale of a DSP effect, through the 'wet' mix, which is the postprocessed signal and the 'dry' mix which is the preprocessed signal. The dry signal path is silent by default, because dsp effects transform the input and pass the newly processed result to the output. It does not add to the input.
func (d *DSP) WetDryMix() (float64, float64, float64, error) { var prewet, postwet, dry C.float res := C.FMOD_DSP_GetWetDryMix(d.cptr, &prewet, &postwet, &dry) return float64(prewet), float64(postwet), float64(dry), errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) SetWetDryMix(prewet, postwet, dry float64) error {\n\tres := C.FMOD_DSP_SetWetDryMix(d.cptr, C.float(prewet), C.float(postwet), C.float(dry))\n\treturn errs[res]\n}", "func wate(freq float64, fx, wtx []float64, lband int, filterType FilterType) float64 {\n\tif filterType != Differentiator {\n\t\tre...
[ "0.6021038", "0.50523424", "0.44711807", "0.42859626", "0.42424402", "0.42091733", "0.4189023", "0.41564986", "0.41545135", "0.41147637", "0.4106844", "0.4106844", "0.40757304", "0.4045652", "0.40456426", "0.4031883", "0.4024371", "0.4006875", "0.40053827", "0.39639735", "0.3...
0.7108342
0
Sets the signal format of a dsp unit so that the signal is processed on the speakers specified. Also defines the number of channels in the unit that a read callback will process, and the output signal of the unit. channelmask: A series of bits specified by "ChannelMask" to determine which speakers are represented by th...
func (d *DSP) SetChannelFormat(channelmask ChannelMask, numchannels int, source_speakermode SpeakerMode) error { res := C.FMOD_DSP_SetChannelFormat(d.cptr, C.FMOD_CHANNELMASK(channelmask), C.int(numchannels), C.FMOD_SPEAKERMODE(source_speakermode)) return errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) ChannelFormat() (ChannelMask, int, SpeakerMode, error) {\n\tvar channelmask C.FMOD_CHANNELMASK\n\tvar numchannels C.int\n\tvar source_speakermode C.FMOD_SPEAKERMODE\n\tres := C.FMOD_DSP_GetChannelFormat(d.cptr, &channelmask, &numchannels, &source_speakermode)\n\treturn ChannelMask(channelmask), int(n...
[ "0.5295923", "0.5125696", "0.5005388", "0.47287038", "0.4358399", "0.4321472", "0.42238", "0.42012027", "0.41856876", "0.4119033", "0.41061252", "0.40895164", "0.40395626", "0.4019459", "0.40040785", "0.39999402", "0.39751828", "0.396199", "0.39446145", "0.3919544", "0.389188...
0.6834549
0
Gets the input signal format for a dsp units read/process callback, to determine which speakers the signal will be processed on and how many channels will be processed. source_speakermode is informational, when channelmask describes what bits are active, and numchannels describes how many channels are in a buffer, sour...
func (d *DSP) ChannelFormat() (ChannelMask, int, SpeakerMode, error) { var channelmask C.FMOD_CHANNELMASK var numchannels C.int var source_speakermode C.FMOD_SPEAKERMODE res := C.FMOD_DSP_GetChannelFormat(d.cptr, &channelmask, &numchannels, &source_speakermode) return ChannelMask(channelmask), int(numchannels), Sp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (f *Format) Channels() int {\n\treturn f.channels\n}", "func (d *DSP) OutputChannelFormat(inmask ChannelMask, inchannels int, inspeakermode SpeakerMode) (ChannelMask, int, SpeakerMode, error) {\n\tvar outmask C.FMOD_CHANNELMASK\n\tvar outchannels C.int\n\tvar outspeakermode C.FMOD_SPEAKERMODE\n\tres := C.FM...
[ "0.48352265", "0.48280677", "0.4459511", "0.42831096", "0.42622006", "0.4255585", "0.42393675", "0.42374885", "0.42180178", "0.41943738", "0.41906402", "0.41728717", "0.41143495", "0.40816045", "0.40525606", "0.40086615", "0.40031055", "0.3980295", "0.39530417", "0.39446703", ...
0.55644387
0
Call the DSP process function to retrieve the output signal format for a DSP based on input values. inmask: Channel bitmask representing the speakers enabled for the incoming signal. For example a 5.1 signal could have inchannels 2 that represent CHANNELMASK_SURROUND_LEFT and CHANNELMASK_SURROUND_RIGHT. inchannels: Num...
func (d *DSP) OutputChannelFormat(inmask ChannelMask, inchannels int, inspeakermode SpeakerMode) (ChannelMask, int, SpeakerMode, error) { var outmask C.FMOD_CHANNELMASK var outchannels C.int var outspeakermode C.FMOD_SPEAKERMODE res := C.FMOD_DSP_GetOutputChannelFormat(d.cptr, C.FMOD_CHANNELMASK(inmask), C.int(inch...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (this *signalGenerator) Process(in []float64, out []float64, sampleRate uint32) {\n\tthis.mutex.RLock()\n\tinputAmplitude, _ := this.getNumericValue(\"input_amplitude\")\n\tinputGain, _ := this.getNumericValue(\"input_gain\")\n\tsignalType, _ := this.getDiscreteValue(\"signal_type\")\n\tsignalFrequency, _ := ...
[ "0.50638205", "0.44060135", "0.42906445", "0.4268434", "0.4255104", "0.41529015", "0.4103482", "0.40764487", "0.40747222", "0.4050626", "0.4050197", "0.40423712", "0.4041674", "0.40154868", "0.39812818", "0.39705202", "0.39572638", "0.39440972", "0.393307", "0.38762024", "0.3...
0.5386741
0
Calls the DSP unit's reset function, which will clear internal buffers and reset the unit back to an initial state. Calling this function is useful if the DSP unit relies on a history to process itself (ie an echo filter). If you disconnected the unit and reconnected it to a different part of the network with a differe...
func (d *DSP) Reset() error { res := C.FMOD_DSP_Reset(d.cptr) return errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (arg1 *UConverter) Reset()", "func (self *SinglePad) Reset() {\n self.Object.Call(\"reset\")\n}", "func (sm3 *SM3) Reset() {\n\t// Reset digest\n\tsm3.digest[0] = 0x7380166f\n\tsm3.digest[1] = 0x4914b2b9\n\tsm3.digest[2] = 0x172442d7\n\tsm3.digest[3] = 0xda8a0600\n\tsm3.digest[4] = 0xa96f30bc\n\tsm3.di...
[ "0.6649226", "0.65367544", "0.6495995", "0.6388265", "0.637604", "0.6363151", "0.6282432", "0.62760276", "0.62608284", "0.6229693", "0.62016773", "0.6187488", "0.6187488", "0.6184149", "0.6158358", "0.61490536", "0.61389786", "0.61118644", "0.6105895", "0.6100138", "0.6091898...
0.6552612
1
/ DSP parameter control. Sets a DSP unit's floating point parameter by index. To find out the parameter names and range, see the see also field. index: Parameter index for this unit. Find the number of parameters with "DSP.NumParameters". value: Floating point parameter value to be passed to the DSP unit. The parameter...
func (d *DSP) SetParameterFloat(index int, value float64) error { res := C.FMOD_DSP_SetParameterFloat(d.cptr, C.int(index), C.float(value)) return errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) ParameterFloat(index C.int, value *C.float, valuestr *C.char, valuestrlen C.int) error {\n\t//FMOD_RESULT F_API FMOD_DSP_GetParameterFloat(FMOD_DSP *dsp, int index, float *value, char *valuestr, int valuestrlen);\n\treturn ErrNoImpl\n}", "func (d *DSP) DataParameterIndex(datatype C.int, index *C.in...
[ "0.730031", "0.63892376", "0.61994886", "0.616037", "0.60324955", "0.60086614", "0.59501296", "0.59367436", "0.56427574", "0.54124695", "0.53410953", "0.530274", "0.52750516", "0.52205086", "0.51486", "0.5143942", "0.51195776", "0.5106912", "0.5082823", "0.50812966", "0.50726...
0.67198724
1
Sets a DSP unit's integer parameter by index. To find out the parameter names and range, see the see also field. index: Parameter index for this unit. Find the number of parameters with "DSP.NumParameters". value: Integer parameter value to be passed to the DSP unit. The parameter properties (such as min/max values) ca...
func (d *DSP) SetParameterInt(index, value int) error { res := C.FMOD_DSP_SetParameterInt(d.cptr, C.int(index), C.int(value)) return errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) ParameterInt(index C.int, value *C.int, valuestr *C.char, valuestrlen C.int) error {\n\t//FMOD_RESULT F_API FMOD_DSP_GetParameterInt(FMOD_DSP *dsp, int index, int *value, char *valuestr, int valuestrlen);\n\treturn ErrNoImpl\n}", "func (d *DSP) DataParameterIndex(datatype C.int, index *C.int) error...
[ "0.7169632", "0.6071059", "0.58062094", "0.5665194", "0.55637103", "0.5485978", "0.5457712", "0.543184", "0.5402546", "0.5304153", "0.52988124", "0.5242471", "0.5222786", "0.5219914", "0.5194405", "0.5133261", "0.5110956", "0.5038237", "0.5031877", "0.50287044", "0.5028011", ...
0.6759115
1
Sets a DSP unit's boolean parameter by index. To find out the parameter names and range, see the see also field. index: Parameter index for this unit. Find the number of parameters with "DSP.NumParameters". value: Boolean parameter value to be passed to the DSP unit. Should be TRUE or FALSE. The parameter properties (s...
func (d *DSP) SetParameterBool(index int, value bool) error { res := C.FMOD_DSP_SetParameterBool(d.cptr, C.int(index), getBool(value)) return errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) ParameterBool(index C.int, value *C.FMOD_BOOL, valuestr *C.char, valuestrlen C.int) error {\n\t//FMOD_RESULT F_API FMOD_DSP_GetParameterBool(FMOD_DSP *dsp, int index, FMOD_BOOL *value, char *valuestr, int valuestrlen);\n\treturn ErrNoImpl\n}", "func (b *BoolMatrixLinear) SetBool(i, j int, value boo...
[ "0.7692853", "0.60610425", "0.6013715", "0.5884806", "0.58234805", "0.57855713", "0.56893903", "0.56847155", "0.56807125", "0.5648212", "0.56343883", "0.560381", "0.55438143", "0.5524273", "0.5446539", "0.54162705", "0.53735465", "0.53634995", "0.5360937", "0.5355041", "0.535...
0.7395472
1
NOTE: Not implement yet Sets a DSP unit's binary data parameter by index. To find out the parameter names and range, see the see also field. The parameter properties (such as min/max values) can be retrieved with "DSP.ParameterInfo".
func (d *DSP) SetParameterData(index C.int, data *interface{}, length C.uint) error { //FMOD_RESULT F_API FMOD_DSP_SetParameterData(FMOD_DSP *dsp, int index, void *data, unsigned int length); return ErrNoImpl }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) ParameterData(index C.int, data **interface{}, length *C.uint, valuestr *C.char, valuestrlen C.int) error {\n\t//FMOD_RESULT F_API FMOD_DSP_GetParameterData(FMOD_DSP *dsp, int index, void **data, unsigned int *length, char *valuestr, int valuestrlen);\n\treturn ErrNoImpl\n}", "func (d *DSP) DataPar...
[ "0.6344773", "0.6249034", "0.6028529", "0.5725853", "0.5420507", "0.54057163", "0.52792674", "0.52589864", "0.5167751", "0.5121044", "0.5097041", "0.50767267", "0.50513506", "0.50232834", "0.5014348", "0.5014157", "0.49709666", "0.494074", "0.49014142", "0.4868088", "0.486053...
0.6611978
0
NOTE: Not implement yet Retrieves a DSP unit's floating point parameter by index. To find out the parameter names and range, see the see also field. The parameter properties (such as min/max values) can be retrieved with "DSP.ParameterInfo".
func (d *DSP) ParameterFloat(index C.int, value *C.float, valuestr *C.char, valuestrlen C.int) error { //FMOD_RESULT F_API FMOD_DSP_GetParameterFloat(FMOD_DSP *dsp, int index, float *value, char *valuestr, int valuestrlen); return ErrNoImpl }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) ParameterInfo(index C.int, desc **C.FMOD_DSP_PARAMETER_DESC) error {\n\t//FMOD_RESULT F_API FMOD_DSP_GetParameterInfo (FMOD_DSP *dsp, int index, FMOD_DSP_PARAMETER_DESC **desc);\n\treturn ErrNoImpl\n}", "func GetMultisamplefv(pname uint32, index uint32, val *float32) {\n\tsyscall.Syscal...
[ "0.6544512", "0.6089265", "0.5905936", "0.5897812", "0.5773538", "0.57044613", "0.56934804", "0.5658616", "0.5386246", "0.53801095", "0.53801095", "0.51362926", "0.5113154", "0.5106956", "0.503388", "0.5023903", "0.5014192", "0.4998702", "0.49777007", "0.49754697", "0.4916510...
0.73844755
0
NOTE: Not implement yet Retrieves a DSP unit's integer parameter by index. To find out the parameter names and range, see the see also field. The parameter properties (such as min/max values) can be retrieved with "DSP.ParameterInfo".
func (d *DSP) ParameterInt(index C.int, value *C.int, valuestr *C.char, valuestrlen C.int) error { //FMOD_RESULT F_API FMOD_DSP_GetParameterInt(FMOD_DSP *dsp, int index, int *value, char *valuestr, int valuestrlen); return ErrNoImpl }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) ParameterInfo(index C.int, desc **C.FMOD_DSP_PARAMETER_DESC) error {\n\t//FMOD_RESULT F_API FMOD_DSP_GetParameterInfo (FMOD_DSP *dsp, int index, FMOD_DSP_PARAMETER_DESC **desc);\n\treturn ErrNoImpl\n}", "func (d *DSP) DataParameterIndex(datatype C.int, index *C.int) error {\n\t//FMOD_RE...
[ "0.6683479", "0.60687375", "0.5905783", "0.57343125", "0.56214726", "0.5300076", "0.52585703", "0.52482766", "0.5227167", "0.52154946", "0.51989967", "0.5133527", "0.51179343", "0.5113958", "0.50895095", "0.5055208", "0.502526", "0.50174165", "0.4969394", "0.49634928", "0.495...
0.7570433
0
NOTE: Not implement yet Retrieves a DSP unit's boolean parameter by index. To find out the parameter names and range, see the see also field. The parameter properties (such as min/max values) can be retrieved with "DSP.ParameterInfo".
func (d *DSP) ParameterBool(index C.int, value *C.FMOD_BOOL, valuestr *C.char, valuestrlen C.int) error { //FMOD_RESULT F_API FMOD_DSP_GetParameterBool(FMOD_DSP *dsp, int index, FMOD_BOOL *value, char *valuestr, int valuestrlen); return ErrNoImpl }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) SetParameterBool(index int, value bool) error {\n\tres := C.FMOD_DSP_SetParameterBool(d.cptr, C.int(index), getBool(value))\n\treturn errs[res]\n}", "func (p Parameters) GetBool(key string) (val bool) {\n\tif p != nil {\n\t\tval, _ = p[key].(bool)\n\t}\n\treturn\n}", "func (this *parameter) Bool(...
[ "0.59388584", "0.59239125", "0.5891305", "0.56941694", "0.53808606", "0.53508043", "0.53500885", "0.53307074", "0.5278743", "0.5264969", "0.52161", "0.5175539", "0.5129567", "0.5119758", "0.51162565", "0.5091159", "0.5084478", "0.50487745", "0.50438625", "0.50364995", "0.5017...
0.77068895
0
NOTE: Not implement yet Retrieves a DSP unit's data block parameter by index. To find out the parameter names and range, see the see also field. The parameter properties (such as min/max values) can be retrieved with "DSP.ParameterInfo".
func (d *DSP) ParameterData(index C.int, data **interface{}, length *C.uint, valuestr *C.char, valuestrlen C.int) error { //FMOD_RESULT F_API FMOD_DSP_GetParameterData(FMOD_DSP *dsp, int index, void **data, unsigned int *length, char *valuestr, int valuestrlen); return ErrNoImpl }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) ParameterInfo(index C.int, desc **C.FMOD_DSP_PARAMETER_DESC) error {\n\t//FMOD_RESULT F_API FMOD_DSP_GetParameterInfo (FMOD_DSP *dsp, int index, FMOD_DSP_PARAMETER_DESC **desc);\n\treturn ErrNoImpl\n}", "func (d *DSP) DataParameterIndex(datatype C.int, index *C.int) error {\n\t//FMOD_RE...
[ "0.6603123", "0.6373271", "0.56036365", "0.52326775", "0.50494623", "0.502724", "0.49873933", "0.49083984", "0.4878963", "0.4816053", "0.47980267", "0.4796334", "0.47890034", "0.477631", "0.47721228", "0.47642902", "0.47169486", "0.47114068", "0.4669271", "0.46572283", "0.459...
0.65771335
1
Retrieves the number of parameters a DSP unit has to control its behaviour. Use this to enumerate all parameters of a DSP unit with "DSP.ParameterInfo".
func (d *DSP) NumParameters() (int, error) { var numparams C.int res := C.FMOD_DSP_GetNumParameters(d.cptr, &numparams) return int(numparams), errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Trainer) NumParameters() int {\n\treturn s.outputDim * s.nFeatures\n}", "func (p Pareto) NumParameters() int {\n\treturn 2\n}", "func (a AlphaStable) NumParameters() int {\n\treturn 4\n}", "func (Binomial) NumParameters() int {\n\treturn 2\n}", "func (f F) NumParameters() int {\n\treturn 2\n}", ...
[ "0.6459628", "0.63830197", "0.6268999", "0.62101907", "0.6169887", "0.6065322", "0.59820825", "0.5900332", "0.58650327", "0.5860217", "0.5820561", "0.5777419", "0.5672821", "0.5621701", "0.56176215", "0.55777013", "0.55626154", "0.5529533", "0.5521496", "0.541845", "0.5406642...
0.69617003
0
NOTE: Not implement yet Retrieve information about a specified parameter within the DSP unit. Use "DSP.NumParameters" to find out the number of parameters for this DSP unit.
func (d *DSP) ParameterInfo(index C.int, desc **C.FMOD_DSP_PARAMETER_DESC) error { //FMOD_RESULT F_API FMOD_DSP_GetParameterInfo (FMOD_DSP *dsp, int index, FMOD_DSP_PARAMETER_DESC **desc); return ErrNoImpl }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) ParameterData(index C.int, data **interface{}, length *C.uint, valuestr *C.char, valuestrlen C.int) error {\n\t//FMOD_RESULT F_API FMOD_DSP_GetParameterData(FMOD_DSP *dsp, int index, void **data, unsigned int *length, char *valuestr, int valuestrlen);\n\treturn ErrNoImpl\n}", "func (d *DSP) Info(na...
[ "0.6727691", "0.6196759", "0.5887389", "0.58802027", "0.57353175", "0.5718226", "0.5701319", "0.57007605", "0.56526715", "0.5644817", "0.5642984", "0.56409687", "0.5614138", "0.5611334", "0.56032884", "0.55377084", "0.5532125", "0.5519996", "0.55129033", "0.55052924", "0.5502...
0.75489753
0
NOTE: Not implement yet Retrieve the index of the first data parameter of a particular data type. The return code can therefore be used to check whether the DSP supports specific functionality through data parameters of certain types without the need to pass in 'index'.
func (d *DSP) DataParameterIndex(datatype C.int, index *C.int) error { //FMOD_RESULT F_API FMOD_DSP_GetDataParameterIndex (FMOD_DSP *dsp, int datatype, int *index); return ErrNoImpl }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) ParameterData(index C.int, data **interface{}, length *C.uint, valuestr *C.char, valuestrlen C.int) error {\n\t//FMOD_RESULT F_API FMOD_DSP_GetParameterData(FMOD_DSP *dsp, int index, void **data, unsigned int *length, char *valuestr, int valuestrlen);\n\treturn ErrNoImpl\n}", "func (*System_Cpu_Ind...
[ "0.61002547", "0.56935805", "0.56436086", "0.5518017", "0.53062433", "0.5280237", "0.5259598", "0.52571326", "0.5215286", "0.51848507", "0.51287943", "0.5111558", "0.51069194", "0.5055307", "0.50197893", "0.50162286", "0.5011006", "0.49753526", "0.49401036", "0.49217778", "0....
0.639183
0
NOTE: Not implement yet Display or hide a DSP unit configuration dialog box inside the target window. Dialog boxes are used by DSP plugins that prefer to use a graphical user interface to modify their parameters rather than using the other method of enumerating the parameters and using "DSP.SetParameterFloat" / "DSP.Se...
func (d *DSP) ShowConfigDialog(hwnd *interface{}, show C.FMOD_BOOL) error { //FMOD_RESULT F_API FMOD_DSP_ShowConfigDialog (FMOD_DSP *dsp, void *hwnd, FMOD_BOOL show); return ErrNoImpl }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func windowsShowSettingsUI(_ *cagent.Cagent, _ bool) {\n\n}", "func (syn *Synth) ConfigGui() *gi.Window {\n\twidth := 1600\n\theight := 1200\n\n\tgi.SetAppName(\"Synth\")\n\tgi.SetAppAbout(`This demonstrates synthesizing a sound (phone or word)`)\n\n\twin := gi.NewMainWindow(\"one\", \"Auditory ...\", width, hei...
[ "0.6001489", "0.5772772", "0.56969374", "0.5690174", "0.5652094", "0.5509766", "0.54795647", "0.5317228", "0.52441", "0.5234786", "0.5104025", "0.51008934", "0.50893235", "0.50009257", "0.49380773", "0.49087965", "0.4873878", "0.48338032", "0.4814243", "0.47754005", "0.477025...
0.7078683
0
/ DSP attributes. NOTE: Not implement yet TODO: add more docs Retrieves information about the current DSP unit, including name, version, default channels and width and height of configuration dialog box if it exists.
func (d *DSP) Info(name *C.char, version *C.uint, channels, configwidth, configheight *C.int) error { //FMOD_RESULT F_API FMOD_DSP_GetInfo(FMOD_DSP *dsp, char *name, unsigned int *version, int *channels, int *configwidth, int *configheight); return ErrNoImpl }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (c *FwGeneral) Show() (Config, error) {\n c.con.LogQuery(\"(show) general settings\")\n return c.details(c.con.Show)\n}", "func (d *DSP) ParameterInfo(index C.int, desc **C.FMOD_DSP_PARAMETER_DESC) error {\n\t//FMOD_RESULT F_API FMOD_DSP_GetParameterInfo (FMOD_DSP *dsp, int index, FMOD_DSP...
[ "0.5147057", "0.49287525", "0.4910068", "0.48899913", "0.47973734", "0.47837022", "0.47504675", "0.47305447", "0.47194964", "0.47093368", "0.4672182", "0.4603544", "0.4598562", "0.45500627", "0.4516141", "0.4483894", "0.44713327", "0.44680083", "0.4465377", "0.44537315", "0.4...
0.62397474
0
Retrieves the predefined type of a FMOD registered DSP unit. This is only valid for built in FMOD effects. Any user plugins will simply return "DSP_TYPE_UNKNOWN".
func (d *DSP) Type() (DSPType, error) { var typ C.FMOD_DSP_TYPE res := C.FMOD_DSP_GetType(d.cptr, &typ) return DSPType(typ), errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func getMetricType(short string) (int, error) {\n\tswitch {\n\tcase \"c\" == short:\n\t\treturn MetricTypeCounter, nil\n\tcase \"g\" == short:\n\t\treturn MetricTypeGauge, nil\n\tcase \"s\" == short:\n\t\treturn MetricTypeSet, nil\n\tcase \"ms\" == short:\n\t\treturn MetricTypeTimer, nil\n\t}\n\treturn MetricTypeU...
[ "0.5548259", "0.5395189", "0.5375581", "0.53314674", "0.5309829", "0.5291026", "0.5245516", "0.52000815", "0.5149595", "0.5131474", "0.51293916", "0.5127297", "0.5116281", "0.509483", "0.50922245", "0.5064179", "0.5018902", "0.5002624", "0.49894", "0.49836275", "0.4964918", ...
0.67880154
0
Retrieves the idle state of a DSP. A DSP is idle when no signal is coming into it. This can be a useful method of determining if a DSP sub branch is finished processing, so it can be disconnected for example. The idle state takes into account things like tails of echo filters, even if a wavetable or dsp has finished ge...
func (d *DSP) Idle() (bool, error) { var idle C.FMOD_BOOL res := C.FMOD_DSP_GetIdle(d.cptr, &idle) return setBool(idle), errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func idle() State_t {\n\t\n}", "func (pool *Pool) Idle() int {\n\treturn int(atomic.LoadInt32(&pool.numIdle))\n}", "func (cp *Pool) IdleClosed() int64 {\n\tp := cp.pool()\n\tif p == nil {\n\t\treturn 0\n\t}\n\treturn p.IdleClosed()\n}", "func (s *Stream) idleTick() {\n\tif len(s.workCh) == 0 && s.sessST.CAS(...
[ "0.663045", "0.5780748", "0.5675647", "0.5623482", "0.562016", "0.5557798", "0.5474286", "0.54616606", "0.5169588", "0.51223713", "0.5080805", "0.5037334", "0.49907482", "0.4984945", "0.49232996", "0.49159414", "0.48989785", "0.48699948", "0.48219734", "0.47114727", "0.469492...
0.70104456
0
/ Userdata set/get. Sets a user value that the DSP object will store internally. Can be retrieved with "DSP.UserData". This function is primarily used in case the user wishes to 'attach' data to an FMOD object. It can be useful if an FMOD callback passes an object of this type as a parameter, and the user does not know...
func (d *DSP) SetUserData(userdata interface{}) error { data := *(*[]*C.char)(unsafe.Pointer(&userdata)) res := C.FMOD_DSP_SetUserData(d.cptr, unsafe.Pointer(&data)) return errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *SoundGroup) SetUserData(userdata interface{}) error {\n\tdata := *(*[]*C.char)(unsafe.Pointer(&userdata))\n\tres := C.FMOD_SoundGroup_SetUserData(s.cptr, unsafe.Pointer(&data))\n\treturn errs[res]\n}", "func (c *wagonContext) SetUserData(key string, value interface{}) {\n\tc.userData[key] = value\n}", ...
[ "0.67778385", "0.6660982", "0.64165705", "0.6365807", "0.62359315", "0.6204318", "0.61297154", "0.60952216", "0.6065654", "0.6030655", "0.59105045", "0.59067404", "0.5891905", "0.5882205", "0.5876744", "0.5866614", "0.5865278", "0.58043444", "0.5793301", "0.576205", "0.572734...
0.7467645
0
Retrieves the user value that that was set by calling the "DSP.SetUserData" function.
func (d *DSP) UserData() (interface{}, error) { var userdata *interface{} cUserdata := unsafe.Pointer(userdata) res := C.FMOD_DSP_GetUserData(d.cptr, &cUserdata) return *(*interface{})(cUserdata), errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *Param) GetUserData() error {\n\treturn errors.New(\"Param.GetUserData() has not been implemented yet.\")\n}", "func (c *wagonContext) GetUserData(key string) interface{} {\n\treturn c.userData[key]\n}", "func (s *SoundGroup) UserData() (interface{}, error) {\n\tvar userdata *interface{}\n\tcUserdata :...
[ "0.6483064", "0.6465429", "0.643284", "0.6355805", "0.62308776", "0.6169278", "0.61169446", "0.61165094", "0.6091875", "0.6071054", "0.60605794", "0.59515584", "0.59476525", "0.5886042", "0.5807458", "0.5727947", "0.5686936", "0.5685083", "0.56633145", "0.5563138", "0.5507332...
0.7204786
0
/ Metering. Enable metering for a DSP unit so that "DSP.MeteringInfo" will return metering information, and so that FMOD Studio profiler tool can visualize the levels. inputEnabled: Enable metering for the input signal (preprocessing). Specify true to turn on input level metering, false to turn it off. outputEnabled: E...
func (d *DSP) SetMeteringEnabled(inputEnabled, outputEnabled bool) error { res := C.FMOD_DSP_SetMeteringEnabled(d.cptr, getBool(inputEnabled), getBool(outputEnabled)) return errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (d *DSP) MeteringEnabled() (bool, bool, error) {\n\tvar inputEnabled, outputEnabled C.FMOD_BOOL\n\tres := C.FMOD_DSP_GetMeteringEnabled(d.cptr, &inputEnabled, &outputEnabled)\n\treturn setBool(inputEnabled), setBool(outputEnabled), errs[res]\n}", "func Meter(component interface{}, sampleRate signal.SampleRa...
[ "0.6174791", "0.55225664", "0.5347806", "0.530505", "0.530505", "0.530505", "0.52688307", "0.52661425", "0.5246003", "0.5190838", "0.5162985", "0.51319885", "0.50423974", "0.5034071", "0.5016491", "0.49761972", "0.4873128", "0.4872541", "0.47567642", "0.4741281", "0.4702456",...
0.55552506
1
Retrieve the information about metering for a particular DSP to see if it is enabled or not. "INIT_PROFILE_METER_ALL" with "System.Init" will automatically turn on metering for all DSP units inside the FMOD mixer graph.
func (d *DSP) MeteringEnabled() (bool, bool, error) { var inputEnabled, outputEnabled C.FMOD_BOOL res := C.FMOD_DSP_GetMeteringEnabled(d.cptr, &inputEnabled, &outputEnabled) return setBool(inputEnabled), setBool(outputEnabled), errs[res] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func InitGameProfilers() {\r\n\tupdateProfiler = system.NewProfiler(\"update\")\r\n\tcollisionProfiler = system.NewProfiler(\"collision\")\r\n\tmusicProfiler = system.NewProfiler(\"music\")\r\n\tweatherProfiler = system.NewProfiler(\"weather\")\r\n\tgameModeProfiler = system.NewProfiler(\"gameMode\")\r\n\tdrawProf...
[ "0.539896", "0.53067774", "0.5249441", "0.5143005", "0.51400584", "0.51064706", "0.5102786", "0.5036036", "0.5020601", "0.4920699", "0.48788077", "0.4765713", "0.47069648", "0.46974233", "0.4680174", "0.4599874", "0.4551892", "0.45465773", "0.45447186", "0.45283294", "0.45269...
0.46326983
15
Retrieve the metering information for a particular DSP. "INIT_PROFILE_METER_ALL" with "System.Init" will automatically turn on metering for all DSP units inside the FMOD mixer graph.
func (d *DSP) MeteringInfo() (DSPMeteringInfo, DSPMeteringInfo, error) { var cinputInfo, coutputInfo C.FMOD_DSP_METERING_INFO var inputInfo, outputInfo DSPMeteringInfo res := C.FMOD_DSP_GetMeteringInfo(d.cptr, &cinputInfo, &coutputInfo) inputInfo.fromC(cinputInfo) outputInfo.fromC(coutputInfo) return inputInfo, o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func InitMeter(db persistence.Conn) func() {\n\tcleanupFunc := func() {}\n\n\tmetricProvider := os.Getenv(\"METRIC_PROVIDER\")\n\tif metricProvider == \"\" {\n\t\tlog(nil, nil).Info(\"METRIC_PROVIDER not set, metrics will not be generated.\")\n\t\treturn cleanupFunc\n\t}\n\n\tvar err error\n\tswitch metricProvider...
[ "0.5548705", "0.5365467", "0.52287626", "0.512273", "0.51192206", "0.5082145", "0.507905", "0.5076003", "0.5016304", "0.48349252", "0.48149756", "0.48085475", "0.47920698", "0.4763496", "0.4738158", "0.47250092", "0.46923137", "0.4688703", "0.46473172", "0.4640834", "0.463059...
0.55421275
1
TestGetMgmtPortsSortedCost covers both GetMgmtPortsSortedCost and GetAllPortsSortedCost.
func TestGetMgmtPortsSortedCost(t *testing.T) { testMatrix := map[string]struct { deviceNetworkStatus DeviceNetworkStatus rotate int expectedMgmtValue []string expectedAllValue []string }{ "Test single": { deviceNetworkStatus: DeviceNetworkStatus{ Version: DPCIsMgmt, Ports: []Ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockTCPRuleDao) GetUsedPortsByIP(ip string) ([]*model.TCPRule, error) {\n\tret := m.ctrl.Call(m, \"GetUsedPortsByIP\", ip)\n\tret0, _ := ret[0].([]*model.TCPRule)\n\tret1, _ := ret[1].(error)\n\treturn ret0, ret1\n}", "func (no *NetworkOverhead) sortNetworkTopologyCosts(networkTopology *ntv1alpha1.Netwo...
[ "0.519822", "0.49126178", "0.48835254", "0.48608983", "0.48415226", "0.47969556", "0.4731509", "0.47084606", "0.4685272", "0.46802023", "0.4675119", "0.46535274", "0.4619654", "0.46005216", "0.45628616", "0.45617744", "0.45382494", "0.45167297", "0.4492512", "0.4472494", "0.4...
0.7060136
0
NewBuildClient creates a new BuildClient instance that is set to the initial state (i.e., being idle).
func NewBuildClient(scheduler remoteworker.OperationQueueClient, buildExecutor BuildExecutor, filePool filesystem.FilePool, clock clock.Clock, workerID map[string]string, instanceNamePrefix digest.InstanceName, platform *remoteexecution.Platform, sizeClass uint32) *BuildClient { return &BuildClient{ scheduler: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewBuild(state *builder.Dispatcher, log logrus.FieldLogger, ghIntClient *ghIntegr.Client) *Build {\n\treturn &Build{\n\t\tstate: state,\n\t\tlog: log,\n\t\tgithubIntegrationClient: ghIntClient,\n\t}\n}", "func (bc Client) Build(id string) types.BuildClientV1 {\n\treturn newBuildClient(bc.client, id)\n}", ...
[ "0.66642916", "0.65855694", "0.6529739", "0.6344639", "0.62326384", "0.6230642", "0.6222423", "0.61396587", "0.61195105", "0.60379076", "0.6036955", "0.59917134", "0.59914863", "0.5910789", "0.5893504", "0.5862307", "0.58469456", "0.58261406", "0.5815292", "0.5815292", "0.572...
0.6985224
0
Run a iteration of the Remote Worker client, by performing a single synchronization against the scheduler.
func (bc *BuildClient) Run() error { // When executing an action, see if there are any updates on the // execution state. if bc.executionCancellation != nil { timer, timerChannel := bc.clock.NewTimer(bc.nextSynchronizationAt.Sub(bc.clock.Now())) select { case <-timerChannel: // No meaningful updates. Send t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (sc *SchedulerController) runWorker() {\n\tfor sc.processNextWorkItem() {\n\t}\n}", "func (c *DedicatedGameServerCollectionController) runWorker() {\n\t// hot loop until we're told to stop. processNextWorkItem will\n\t// automatically wait until there's work available, so we don't worry\n\t// about seconda...
[ "0.65198463", "0.6371653", "0.63588005", "0.6302773", "0.62866783", "0.6262516", "0.62587476", "0.6237947", "0.6237947", "0.6237947", "0.6237947", "0.6237947", "0.6237947", "0.6237947", "0.6237947", "0.6237947", "0.6237947", "0.6237947", "0.6237947", "0.6237947", "0.6237947",...
0.58920133
43
InExecutingState returns true if the worker is executing an action, or still needs to successfully synchronize against the scheduler to communicate the completion of an action. If this function returns false, it is safe for the worker to stop synchronizing against the scheduler without causing any operations to fail.
func (bc *BuildClient) InExecutingState() bool { return bc.inExecutingState }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (i *invocation) isActive() bool {\n\treturn i.queuedOperations.Len() > 0 || i.executingWorkersCount > 0\n}", "func (state *State) Running() bool {\n\treturn *(*uint32)(state) == 1\n}", "func (s *Scheduler) Running() bool {\n\ts.mutex.RLock()\n\tdefer s.mutex.RUnlock()\n\treturn s.running\n}", "func (co ...
[ "0.5905961", "0.5734211", "0.56579614", "0.5495739", "0.5458313", "0.53582", "0.53134084", "0.5310453", "0.53033215", "0.52937394", "0.52794194", "0.5269087", "0.5233215", "0.5215061", "0.5157463", "0.5146507", "0.5138153", "0.5115511", "0.5109179", "0.50924224", "0.5081532",...
0.76145965
0
NewGetDeviceHealthParams creates a new GetDeviceHealthParams object with the default values initialized.
func NewGetDeviceHealthParams() *GetDeviceHealthParams { var () return &GetDeviceHealthParams{ timeout: cr.DefaultTimeout, } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewDeviceHealth()(*DeviceHealth) {\n m := &DeviceHealth{\n }\n m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance();\n m.SetAdditionalData(make(map[string]any))\n return m\n}", "func MockDeviceHealth(ctrlr *Controller) DeviceHealth {...
[ "0.6771214", "0.56535894", "0.5605594", "0.5478605", "0.5244152", "0.522956", "0.5224426", "0.5197208", "0.5125405", "0.50955284", "0.50763583", "0.5020125", "0.49859306", "0.49729276", "0.49534455", "0.49006212", "0.48718244", "0.47930813", "0.47829595", "0.47705016", "0.476...
0.84631157
0
WithDeviceID adds the deviceID to the get device status params
func (o *GetDeviceHealthParams) WithDeviceID(deviceID string) *GetDeviceHealthParams { o.SetDeviceID(deviceID) return o }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o *GetParams) SetDeviceID(deviceID string) {\n\to.DeviceID = deviceID\n}", "func (p Params) SetDeviceID(id string) {\n\tp[\"image_request[device_id]\"] = id\n}", "func (o *GetOutagesParams) SetDeviceID(deviceID *string) {\n\to.DeviceID = deviceID\n}", "func (o *GetDeviceHealthParams) SetDeviceID(device...
[ "0.6687366", "0.64014286", "0.6308419", "0.62866277", "0.6286201", "0.6244915", "0.6240715", "0.6218305", "0.6179623", "0.61361784", "0.61109793", "0.6053119", "0.60001737", "0.5988572", "0.5915154", "0.5914226", "0.58787405", "0.58656484", "0.58461535", "0.58336484", "0.5816...
0.63288224
2
SetDeviceID adds the deviceId to the get device status params
func (o *GetDeviceHealthParams) SetDeviceID(deviceID string) { o.DeviceID = deviceID }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (rb *ResourceBuilder) SetDeviceID(val string) {\n\tif rb.config.DeviceID.Enabled {\n\t\trb.res.Attributes().PutStr(\"device.id\", val)\n\t}\n}", "func (p Params) SetDeviceID(id string) {\n\tp[\"image_request[device_id]\"] = id\n}", "func (o *GetParams) SetDeviceID(deviceID string) {\n\to.DeviceID = device...
[ "0.7785044", "0.77081025", "0.7526304", "0.745228", "0.7379186", "0.73099244", "0.72466093", "0.7216257", "0.7153561", "0.7121655", "0.70497", "0.7043483", "0.6979578", "0.68810636", "0.68505144", "0.68119067", "0.6803687", "0.6719926", "0.6678612", "0.6663735", "0.6542931", ...
0.7332639
5
WriteToRequest writes these params to a swagger request
func (o *GetDeviceHealthParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // header param Authorization if err := r.SetHeaderParam("Authorization", o.Authorization); err != nil { return err } // path pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (o *FileInfoCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {\n\n\tif err := r.SetTimeout(o.timeout); err != nil {\n\t\treturn err\n\t}\n\tvar res []error\n\n\tif o.ByteOffset != nil {\n\n\t\t// query param byte_offset\n\t\tvar qrByteOffset int64\n\n\t\tif o.ByteOffset != nil ...
[ "0.7198161", "0.714435", "0.70471495", "0.7021836", "0.69967365", "0.69959503", "0.6979433", "0.6979074", "0.69695425", "0.6966308", "0.69242847", "0.6908102", "0.69045216", "0.6871055", "0.68575305", "0.68564737", "0.6851862", "0.6845359", "0.6844677", "0.684266", "0.6830004...
0.659942
82
palindromeIndex returns the index whose deletion would cause in s becoming a palindrome. 1 is returned if s is already a palindrome.
func palindromeIndex(s string) int { n := len(s) for i := 0; i < n/2; i++ { // problem, find which index // is at fault. if s[i] != s[n-i-1] { if palindrome(s[:i] + s[i+1:]) { return i } else { return n - i - 1 } } } return -1 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func palindromeIndex(s string) int32 {\n\tl := len(s) - 1\n\tfor i := 0; i <= l; i, l = i+1, l-1 {\n\t\tif s[i] == s[l] {\n\t\t\tcontinue\n\t\t}\n\t\tif palindrome(s[i+1 : l+1]) {\n\t\t\treturn int32(i)\n\t\t}\n\t\tif palindrome(s[i:l]) {\n\t\t\treturn int32(l)\n\t\t}\n\t\treturn -1\n\t}\n\treturn -1\n}", "func ...
[ "0.8369605", "0.6754832", "0.6696241", "0.66374886", "0.6629554", "0.6629554", "0.6499939", "0.6495809", "0.64007354", "0.63392174", "0.63289094", "0.6284339", "0.62753356", "0.62350863", "0.6212849", "0.62006426", "0.6193667", "0.6182231", "0.61615044", "0.61486727", "0.6148...
0.8492687
0
Register for registry user
func Register(ctx *gin.Context) { DB := common.GetDB() //获取数据 name := ctx.PostForm("name") telephone := ctx.PostForm("tel") password := ctx.PostForm("password") email := ctx.PostForm("email") //判断数据 if len(name) == 0 { name = utils.RandString(9) } if len(telephone) != 11 { response.Response(ctx, http...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Register(w http.ResponseWriter, r *http.Request, opt router.UrlOptions, sm session.ISessionManager, s store.IStore) {\n\tswitch r.Method {\n\tcase \"GET\":\n\t\tparams := make(map[string]interface{})\n\t\tutils.RenderTemplate(w, r, \"register\", sm, s, params)\n\n\tcase \"POST\":\n\t\tvar newUser *user.User\n...
[ "0.72883993", "0.71666837", "0.71462506", "0.71057427", "0.69729733", "0.69685984", "0.6945182", "0.69212025", "0.6830543", "0.6798756", "0.6792368", "0.6765708", "0.6701783", "0.6697231", "0.66623825", "0.6650259", "0.6645481", "0.6643656", "0.65893173", "0.65791863", "0.657...
0.6089221
91
Login is for login
func Login(ctx *gin.Context) { DB := common.GetDB() //获取数据 telephone := ctx.PostForm("tel") password := ctx.PostForm("password") //判断数据 if len(telephone) != 11 { response.Response(ctx, http.StatusUnprocessableEntity, 4221, gin.H{}, "手机号必须为11位") return } if len(password) < 6 { response.Response(ctx, ht...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Login(res http.ResponseWriter, req *http.Request) (bool, string) {\n\tname := req.FormValue(NameParameter)\n\tname = html.EscapeString(name)\n\tlog.Debugf(\"Log in user. Name: %s\", name)\n\tif name != \"\" {\n\t\tuuid := generateRandomUUID()\n\t\tsuccess := authClient.SetRequest(uuid, name)\n\t\tif success {...
[ "0.73077303", "0.7229709", "0.7197757", "0.7168224", "0.71016484", "0.7033968", "0.70187724", "0.70122725", "0.68568146", "0.6856606", "0.6847522", "0.68418276", "0.68363535", "0.6835318", "0.6834115", "0.68271935", "0.6787701", "0.67714876", "0.67577237", "0.6736543", "0.672...
0.0
-1
Info return user info
func Info(ctx *gin.Context) { user, _ := ctx.Get("user") response.Success(ctx, gin.H{ "user": dto.UserToDto(user.(model.User)), }, "ok") }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (u User) Info() {\n\tfmt.Printf(\"Username : %v\\n\", u.Username)\n\tfmt.Printf(\"FullName : %v\\n\", u.FullName)\n\tfmt.Printf(\"ProfilePictureUtl : %v\\n\", u.ProfilePictureUtl)\n}", "func UserInfo(session *req.Req) (string, string) {\n\n\turl := \"https://www.makeschool.com/graphql\"\n\tquery := \"{ curr...
[ "0.81300217", "0.80130154", "0.79929495", "0.7749624", "0.7628281", "0.7620686", "0.7594106", "0.7543463", "0.74675536", "0.7466975", "0.74561185", "0.74452555", "0.7443553", "0.7443248", "0.7388844", "0.73823124", "0.7374704", "0.73674333", "0.7340772", "0.7333306", "0.73159...
0.7441929
14
UserExist is a function to determine if the user exist
func UserExist(db *gorm.DB, tel string) bool { var user model.User db.First(&user, "telephone = ?", tel) if user.ID != 0 { return true } return false }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func TestCheckUserIsExist_InputExistUser_ReturnTrue(t *testing.T) {\n\tassert.Equal(t, true, CheckUserIsExist(\"jane\"))\n}", "func IsUserExist(qr db.Queryer, email string) bool {\n\tstr := \"SELECT count(*) as cnt FROM users WHERE email = ?\"\n\tuid := int64(0)\n\terr := qr.Get(&uid, str, email)\n\tif err != ni...
[ "0.7928232", "0.79041976", "0.7796969", "0.778185", "0.7749316", "0.7744056", "0.76738787", "0.75605464", "0.75600684", "0.7509767", "0.74954253", "0.74861073", "0.74597824", "0.74088776", "0.73887086", "0.73445886", "0.73408675", "0.73260677", "0.7318323", "0.72938967", "0.7...
0.775092
4
ToggleBluetoothFromBluetoothSettings tests that a user can successfully toggle the Bluetooth state using the Bluetooth toggle within the Bluetooth Settings subpage.
func ToggleBluetoothFromBluetoothSettings(ctx context.Context, s *testing.State) { cr := s.FixtValue().(*bluetooth.ChromeLoggedInWithBluetoothEnabled).Chrome tconn, err := cr.TestAPIConn(ctx) if err != nil { s.Fatal("Failed to create Test API connection: ", err) } // Reserve ten seconds for cleanup. cleanupCt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func testBackupToggle(ctx context.Context, arcDevice *androidui.Device) error {\n\tconst backupID = \"android:id/switch_widget\"\n\tconst oldBackupID = \"com.google.android.gms:id/switchWidget\"\n\tbackupToggle := arcDevice.Object(androidui.ID(backupID))\n\n\t// Turn on backup in case if it is off which is the exp...
[ "0.5695747", "0.5552069", "0.55088377", "0.5350359", "0.5199173", "0.49642628", "0.49262956", "0.4868401", "0.48637766", "0.48339373", "0.48244256", "0.479344", "0.47463658", "0.468271", "0.46184593", "0.45439374", "0.45363155", "0.45159185", "0.4514827", "0.45020643", "0.447...
0.8733043
0
testParentSelection uses special event name format: :
func testParentSelection(t *testing.T, dsc, schema string) { t.Run(dsc, func(t *testing.T) { assertar := assert.New(t) ctrl := gomock.NewController(t) defer ctrl.Finish() consensus := NewMockConsensus(ctrl) store := NewMemStore() node := NewForTests(dsc, store, consensus) node.initParents() defer nod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func maybePressSelectParentOption(ctx context.Context, tconn *chrome.TestConn, selectParentOption, parentPasswordField *nodewith.Finder, parentUser string) error {\n\tui := uiauto.New(tconn).WithTimeout(20 * time.Second)\n\n\tif err := ui.Exists(selectParentOption)(ctx); err != nil {\n\t\treturn nil\n\t}\n\n\ttest...
[ "0.5836752", "0.583201", "0.5514476", "0.54162264", "0.5318818", "0.50823635", "0.50718504", "0.5049756", "0.5037811", "0.50187963", "0.4999445", "0.49585482", "0.49191308", "0.48787627", "0.48148394", "0.4807482", "0.4791354", "0.47718757", "0.47449547", "0.47041127", "0.469...
0.5746677
2
Creates a flow from a single node This is useful for scenaries when usage of a single node is desired, manually feeding and processing packets on the node's ports.
func NewSingleFlowNode(nodeName string, nodeType FlowNodeType, inputPorts, outputPorts []uint16, options map[string]string, cb SingleFlowProcessCallback, data interface{}) *SingleFlowNode { cname := C.CString(nodeName) defer C.free(unsafe.Pointer(cname)) var coptions *C.struct_sol_flow_node_options strvOptions :=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (s *Service) CreateFlowNode(ctx context.Context, req *pb.CreateFlowNodeRequest) (*pb.CreateFlowNodeResponse, error) {\n\tissue, err := s.p.Issue.GetIssue(int64(req.IssueID), &commonpb.IdentityInfo{\n\t\tUserID: apis.GetUserID(ctx),\n\t})\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tapp, err := s.p.bdl.Ge...
[ "0.62484795", "0.57474536", "0.5399327", "0.52980113", "0.52744055", "0.5231995", "0.5180516", "0.5168897", "0.49417356", "0.49270824", "0.49097803", "0.48688847", "0.48667073", "0.48091704", "0.48059434", "0.48043534", "0.47937524", "0.47925735", "0.47856003", "0.47848862", ...
0.6233093
1
Connects (enables) the specified port
func (sf *SingleFlowNode) ConnectPort(portIndex uint16, direction int) { switch direction { case FlowPortInput: C.sol_flow_single_connect_port_in(sf.FlowNode.cnode, C.uint16_t(portIndex)) case FlowPortOutput: C.sol_flow_single_connect_port_out(sf.FlowNode.cnode, C.uint16_t(portIndex)) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Connect(port string) {\n\tif EchoCon == nil {\n\t\tlog.Fatal(common.ErrorEchoServerInit)\n\t\treturn\n\t}\n\tEchoCon.Logger.Fatal(EchoCon.Start(\":\" + port))\n}", "func StartWithPort(port int) {\n\tstartWithPortVerbose(port, false)\n}", "func (mb *serialPort) connect() error {\n\tif mb.port == nil {\n\t\...
[ "0.6753614", "0.65101886", "0.6489948", "0.6419193", "0.6363244", "0.6244633", "0.62063265", "0.61901814", "0.6126926", "0.6104171", "0.6032252", "0.59713644", "0.59468466", "0.5938887", "0.58270514", "0.58182085", "0.578832", "0.5769424", "0.5764073", "0.5748341", "0.5739284...
0.52329874
98
Disconnects (disables) the specified port
func (sf *SingleFlowNode) DisconnectPort(portIndex uint16, direction int) { switch direction { case FlowPortInput: C.sol_flow_single_disconnect_port_in(sf.FlowNode.cnode, C.uint16_t(portIndex)) case FlowPortOutput: C.sol_flow_single_disconnect_port_out(sf.FlowNode.cnode, C.uint16_t(portIndex)) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func TurnOffPort(client CommandRunner, port int) error {\n\t_, err := client.ExecCmds([]string{\n\t\t\"configure\",\n\t\t\"interface \" + fmt.Sprintf(\"0/%d\", port),\n\t\t\"poe opmode shutdown\",\n\t\t\"exit\", // leave the interface config mode (entered via 'interface ...')\n\t\t\"exit\", // leave the global con...
[ "0.6607121", "0.6092157", "0.60442424", "0.5949453", "0.5942605", "0.59195167", "0.5909002", "0.58473146", "0.5748115", "0.56331027", "0.558823", "0.55736804", "0.55128163", "0.5509054", "0.55060875", "0.5464148", "0.5428966", "0.5420689", "0.53987837", "0.5368974", "0.532968...
0.58789164
7
HandleGetIP is a gin HTTP handler that gather's the source IP from an incoming HTTP request and returns it in the response body.
func HandleGetIP(ctx *gin.Context) { ip, port, err := net.SplitHostPort(ctx.Request.RemoteAddr) if err != nil { glog.Error(err.Error()) ctx.JSON(500, gin.H{"result": "internal server error"}) return } glog.Info("Incoming request /getip:" + ip + ":" + port) // Only return the IP, even though we have their so...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func GetIP(r *http.Request) (string, string) {\n\tfwd := r.Header.Get(\"X-Forwarded-For\")\n\taddrStr := \"\"\n\n\tif fwd != \"\" {\n\t\taddrStr = fwd\n\t} else {\n\t\taddrStr = r.RemoteAddr\n\t}\n\taddr := strings.Split(addrStr, \":\")\n\n\treturn addr[0], addr[1]\n}", "func HandleIPRequest(router *mux.Router, ...
[ "0.6904953", "0.6875331", "0.68298227", "0.67149943", "0.66577065", "0.6657287", "0.66470385", "0.66094744", "0.64891714", "0.6166702", "0.61413324", "0.6123653", "0.6099094", "0.60950434", "0.6008096", "0.59769636", "0.5930084", "0.5909029", "0.5889158", "0.5858818", "0.5842...
0.8459092
0
CheckSlotSpan checks if the slot is within the span of slots, with MAXIMUM_GOSSIP_CLOCK_DISPARITY margin in time.
func CheckSlotSpan(slotAfter func(delta time.Duration) common.Slot, slot common.Slot, span common.Slot) error { if slot+span < slot { return fmt.Errorf("slot overflow: %d", slot) } // check minimum, with account for clock disparity if minSlot := slotAfter(-MAXIMUM_GOSSIP_CLOCK_DISPARITY); slot+span < minSlot { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (config *generator) validateSlots() {\n\n\t// default return value if validation fails\n\temptySlots := make([][2]int64, 0)\n\tif len(config.Slots) == 0 {\n\t\treturn\n\t}\n\n\treturnEmptySlots := false\n\n\t// check slot with 0 values\n\t// remove them from config.Slots\n\temptySlotCount := 0\n\tfor index, s...
[ "0.5193167", "0.4879843", "0.48535728", "0.48291674", "0.48017627", "0.47425237", "0.4740814", "0.47318655", "0.4716447", "0.47095585", "0.44937378", "0.44892377", "0.44621602", "0.44400433", "0.44194394", "0.43774757", "0.43323845", "0.4319009", "0.43089962", "0.43024915", "...
0.8348721
0
Status checks the status of the service.
func (c *Client) Status() error { client, err := c.client(false) if err != nil { return err } rel, err := url.Parse("status") if err != nil { // This indicates a programming error. panic(err) } resp, err := client.Get(c.baseURL.ResolveReference(rel).String()) if err != nil { return err } defer resp....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (r *Reconciler) CheckServiceStatus(srv *corev1.Service, status *nbv1.ServiceStatus, portName string) {\n\n\tlog := r.Logger.WithField(\"func\", \"CheckServiceStatus\").WithField(\"service\", srv.Name)\n\t*status = nbv1.ServiceStatus{}\n\tservicePort := nb.FindPortByName(srv, portName)\n\tproto := \"http\"\n\t...
[ "0.76565826", "0.7390111", "0.7249484", "0.7007388", "0.69533503", "0.68541384", "0.68333125", "0.6717001", "0.667491", "0.64619255", "0.6460216", "0.64545316", "0.6449681", "0.6425185", "0.63878804", "0.6379933", "0.6376746", "0.6363784", "0.6363674", "0.6358225", "0.6356172...
0.66327935
9
Score calculate your scrabble score
func Score(word string) int { var totalScore int scoresPerLetter := map[int][]string{ 1: {"A", "E", "I", "O", "U", "L", "N", "R", "S", "T"}, 2: {"D", "G"}, 3: {"B", "C", "M", "P"}, 4: {"F", "H", "V", "W", "Y"}, 5: {"K"}, 8: {"J", "X"}, 10: {"Q", "Z"}, } for _, _letter := range word { letter := str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Score(word string) int {\n\tvar outScore = 0\n\tif word == \"\" {\n\t\treturn outScore\n\t}\n\tfor i := 0; i < len(word); i++ {\n\t\tc := string(word[i])\n\t\tfor _, scores := range scrabbleScores {\n\t\t\tif strings.ToLower(c) == strings.ToLower(scores.letter) {\n\t\t\t\toutScore += scores.score\n\t\t\t}\n\t...
[ "0.7726904", "0.73985106", "0.7207054", "0.71976393", "0.71702987", "0.7127209", "0.7111534", "0.7051714", "0.7018535", "0.7013469", "0.70032245", "0.6995374", "0.6980295", "0.69591767", "0.6959122", "0.68864274", "0.68750316", "0.68546194", "0.68500453", "0.6849642", "0.6783...
0.6599822
28
FromRepository recreate object DO NOT use as constructor.
func FromRepository( id scalar.ID, dir string, versionIDs []scalar.ID, collaboratorIDs []scalar.ID, isPublicVisible bool, title string, albumIDs []scalar.ID, projectIDs []scalar.ID, deleted time.Time, deletedByID scalar.ID, created time.Time, createdByID scalar.ID, lastUpdated time.Time, lastUpdatedByID s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func R() Repository {\n\t// make sure to instantiate the Repository only once\n\tonceRepo.Do(func() {\n\t\trepo = newRepository()\n\t})\n\treturn repo\n}", "func newRepository(\n\tid borges.RepositoryID,\n\tsto storage.Storer,\n\tfs billy.Filesystem,\n\tm borges.Mode,\n\ttransactional bool,\n\tl *Location,\n) (*...
[ "0.578056", "0.5608401", "0.56058925", "0.5605777", "0.5589131", "0.5565242", "0.5544813", "0.5523886", "0.5445551", "0.544034", "0.54346824", "0.5412524", "0.5403366", "0.5400339", "0.5372537", "0.5363286", "0.5362798", "0.53509206", "0.5343111", "0.5331616", "0.5308891", ...
0.5211349
28
LoadLoginPage Render login page
func LoadLoginPage(w http.ResponseWriter, r *http.Request) { cookie, _ := cookies.Read(r) if cookie["token"] != "" { http.Redirect(w, r, "/feed", 302) return } utils.RunTemplate(w, "login.html", nil) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func showLoginPage(c *gin.Context) {\n\trender(c, gin.H{\n\t\t\"title\": \"Login\",\n\t\t\"ErrorMessage\": \"\",\n\t}, \"login.html\")\n}", "func Login(w http.ResponseWriter, r *http.Request) {\n\n\tpageVars := PageVars{}\n\taddPageVars(r, &pageVars)\n\trender(w, \"login\", pageVars)\n}", "func LoadView...
[ "0.7429022", "0.74259853", "0.7377962", "0.7345556", "0.72520685", "0.7041095", "0.6994549", "0.68380016", "0.68097377", "0.67939055", "0.6738007", "0.6672215", "0.6645821", "0.6628835", "0.6621005", "0.6615827", "0.66071063", "0.6574048", "0.65529084", "0.6483829", "0.648137...
0.742975
0
LoadRegisterPage Render register page
func LoadRegisterPage(w http.ResponseWriter, r *http.Request) { utils.RunTemplate(w, "register.html", nil) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Register(ctx echo.Context) error {\n\t// set page tittle to register\n\tutils.SetData(ctx, \"PageTitle\", \"register\")\n\treturn ctx.Render(http.StatusOK, tmpl.RegisterTpl, utils.GetData(ctx))\n}", "func RegisterPageHandler(w http.ResponseWriter,r *http.Request) {\n\tvar body,_ = servers.LoadFile(\"static/...
[ "0.71808773", "0.6795434", "0.66623235", "0.6616067", "0.64512473", "0.61154866", "0.5981059", "0.5910356", "0.5888225", "0.58870286", "0.5841088", "0.5841088", "0.5793564", "0.57613933", "0.5706791", "0.5694199", "0.5658731", "0.55998075", "0.55557865", "0.551402", "0.550632...
0.8103135
0
LoadHomePage Render home page
func LoadHomePage(w http.ResponseWriter, r *http.Request) { url := fmt.Sprintf("%s/publications", config.APIURL) response, err := requests.RequestsWithAuthentication(r, http.MethodGet, url, nil) if err != nil { responses.JSON(w, http.StatusInternalServerError, responses.ErrorAPI{Err: err.Error()}) return } def...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func homeHandler(w http.ResponseWriter, r *http.Request, title string) {\n\tp, err := loadPage(\"Home\")\n\tif err != nil {\n\t\tlog.Println(\"homeHandler() error: \", err)\n\t\treturn\n\t}\n\trenderTemplate(w, \"home\", p)\n}", "func (hc Home) Home(w http.ResponseWriter, r *http.Request) {\n\tdata := viewModels...
[ "0.75011134", "0.7305672", "0.73013526", "0.7266723", "0.72194743", "0.7141759", "0.7124269", "0.7121118", "0.71153516", "0.71008635", "0.7035879", "0.7006161", "0.7001379", "0.69949424", "0.69775707", "0.6968816", "0.6948308", "0.69211024", "0.69147867", "0.6909854", "0.6907...
0.74064004
1
LoadEditPage Load edit page
func LoadEditPage(w http.ResponseWriter, r *http.Request) { parameters := mux.Vars(r) publicationID, err := strconv.ParseUint(parameters["publicationId"], 10, 64) if err != nil { responses.JSON(w, http.StatusBadRequest, responses.ErrorAPI{Err: err.Error()}) return } url := fmt.Sprintf("%s/publications/%d", co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func editHandler(w http.ResponseWriter, r *http.Request) {\r\n title := r.URL.Path[len(\"/edit/\"):]\r\n p, err := loadPage(title)\r\n if err != nil {\r\n p = &Page{Title: title}\r\n }\r\n renderTemplate(w, \"edit\", p)\r\n}", "func editHandler(w http.ResponseWriter, r *http.Request) {\n\tt...
[ "0.75582063", "0.75402147", "0.7427725", "0.7361682", "0.7335997", "0.7325859", "0.71529", "0.7121132", "0.7109892", "0.70804507", "0.7028085", "0.6797492", "0.6783623", "0.66810155", "0.6630552", "0.659135", "0.6569401", "0.6555289", "0.65096617", "0.65096617", "0.63843006",...
0.7584963
0
LoadUsersPage Load users page
func LoadUsersPage(w http.ResponseWriter, r *http.Request) { nameOrNick := strings.ToLower(r.URL.Query().Get("user")) url := fmt.Sprintf("%s/users?usuario=%s", config.APIURL, nameOrNick) response, err := requests.RequestsWithAuthentication(r, http.MethodGet, url, nil) if err != nil { responses.JSON(w, http.Stat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func LoadUserPage(w http.ResponseWriter, r *http.Request) {\n\tparameters := mux.Vars(r)\n\tuserID, err := strconv.ParseUint(parameters[\"userId\"], 10, 64)\n\tif err != nil {\n\t\tresponses.JSON(w, http.StatusBadRequest, responses.ErrorAPI{Err: err.Error()})\n\t\treturn\n\t}\n\n\tcookie, _ := cookies.Read(r)\n\tu...
[ "0.7564145", "0.70554775", "0.7006458", "0.6990626", "0.65036213", "0.64619017", "0.63973314", "0.6349167", "0.63369733", "0.61949444", "0.61718976", "0.6163519", "0.613001", "0.6098995", "0.60652465", "0.60556334", "0.5992087", "0.59665483", "0.5942233", "0.59002393", "0.589...
0.8562869
0
LoadUserPage Load user profile
func LoadUserPage(w http.ResponseWriter, r *http.Request) { parameters := mux.Vars(r) userID, err := strconv.ParseUint(parameters["userId"], 10, 64) if err != nil { responses.JSON(w, http.StatusBadRequest, responses.ErrorAPI{Err: err.Error()}) return } cookie, _ := cookies.Read(r) userIDLogged, _ := strconv....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func LoadUserEditPage(w http.ResponseWriter, r *http.Request) {\n\tcookie, _ := cookies.Read(r)\n\tuserID, _ := strconv.ParseUint(cookie[\"id\"], 10, 64)\n\n\tchannel := make(chan models.User)\n\n\tgo models.GetUserData(channel, userID, r)\n\n\tuser := <-channel\n\tif user.ID == 0 {\n\t\tresponses.JSON(w, http.Sta...
[ "0.76636285", "0.74508435", "0.6977827", "0.64868104", "0.6387404", "0.6350716", "0.63026816", "0.61875933", "0.61619353", "0.61365813", "0.607116", "0.6012404", "0.60118514", "0.6001068", "0.5987921", "0.5973989", "0.589364", "0.58862895", "0.58212346", "0.5812843", "0.57916...
0.761864
1
LoadUserLoggedProfile Load the user profile
func LoadUserLoggedProfile(w http.ResponseWriter, r *http.Request) { cookie, _ := cookies.Read(r) userID, _ := strconv.ParseUint(cookie["id"], 10, 64) user, err := models.SearchCompleteUser(userID, r) if err != nil { responses.JSON(w, http.StatusInternalServerError, responses.ErrorAPI{Err: err.Error()}) return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (authUserL) LoadUserCommonUserprofile(e boil.Executor, singular bool, maybeAuthUser interface{}) error {\n\tvar slice []*AuthUser\n\tvar object *AuthUser\n\n\tcount := 1\n\tif singular {\n\t\tobject = maybeAuthUser.(*AuthUser)\n\t} else {\n\t\tslice = *maybeAuthUser.(*AuthUserSlice)\n\t\tcount = len(slice)\n\...
[ "0.63070524", "0.62410325", "0.61597294", "0.6100095", "0.59883857", "0.59538347", "0.5951708", "0.59262055", "0.58728063", "0.58575684", "0.58039385", "0.5759732", "0.57335424", "0.5730588", "0.56361836", "0.56168014", "0.5613954", "0.56097436", "0.55798995", "0.55492866", "...
0.8122793
0
LoadUserEditPage Load page to edit user
func LoadUserEditPage(w http.ResponseWriter, r *http.Request) { cookie, _ := cookies.Read(r) userID, _ := strconv.ParseUint(cookie["id"], 10, 64) channel := make(chan models.User) go models.GetUserData(channel, userID, r) user := <-channel if user.ID == 0 { responses.JSON(w, http.StatusInternalServerError, r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func LoadUserPasswordEditPage(w http.ResponseWriter, r *http.Request) {\n\tutils.RunTemplate(w, \"update-password.html\", nil)\n}", "func UserEdit(w http.ResponseWriter, r *http.Request, u *User) error {\n\treturn RenderTemplate(w, \"user_profile.html\", struct{ User *User }{u})\n}", "func (controller *UserCon...
[ "0.79898834", "0.7176029", "0.7114701", "0.6900312", "0.65417063", "0.65129733", "0.6501301", "0.6422901", "0.6404165", "0.6400111", "0.6383282", "0.637951", "0.63390213", "0.63242364", "0.6318961", "0.6313021", "0.6297971", "0.6294736", "0.6158294", "0.61528724", "0.61493605...
0.8349932
0
LoadUserPasswordEditPage Method to load page to update password
func LoadUserPasswordEditPage(w http.ResponseWriter, r *http.Request) { utils.RunTemplate(w, "update-password.html", nil) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func LoadUserEditPage(w http.ResponseWriter, r *http.Request) {\n\tcookie, _ := cookies.Read(r)\n\tuserID, _ := strconv.ParseUint(cookie[\"id\"], 10, 64)\n\n\tchannel := make(chan models.User)\n\n\tgo models.GetUserData(channel, userID, r)\n\n\tuser := <-channel\n\tif user.ID == 0 {\n\t\tresponses.JSON(w, http.Sta...
[ "0.67488396", "0.6476385", "0.6416797", "0.6239708", "0.6090162", "0.59930485", "0.5971036", "0.5931909", "0.5879905", "0.5876025", "0.5868366", "0.5835726", "0.5772224", "0.5759482", "0.5756564", "0.5750805", "0.57443166", "0.5680604", "0.56190014", "0.5585063", "0.55615014"...
0.894935
0
/ PlaceholdersApiServiceTests Read slide placeholder info. Test for PlaceholdersApi.GetSlidesPlaceholder method
func TestGetSlidesPlaceholder(t *testing.T) { request := createGetSlidesPlaceholderRequest() e := initializeTest("GetSlidesPlaceholder", "", "") if e != nil { t.Errorf("Error: %v.", e) return } c := getTestApiClient() r, _, e := c.PlaceholdersApi.GetSlidesPlaceholder(request) i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func TestGetSlidesPlaceholders(t *testing.T) {\n request := createGetSlidesPlaceholdersRequest()\n e := initializeTest(\"GetSlidesPlaceholders\", \"\", \"\")\n if e != nil {\n t.Errorf(\"Error: %v.\", e)\n return\n }\n c := getTestApiClient()\n r, _, e := c.PlaceholdersApi.GetSlidesPl...
[ "0.7325185", "0.679921", "0.66586685", "0.6514135", "0.6494961", "0.6260296", "0.62142336", "0.60560626", "0.5829638", "0.55940074", "0.5421928", "0.536023", "0.5311861", "0.5275907", "0.52423954", "0.51497036", "0.5075654", "0.49031842", "0.4850704", "0.4837694", "0.47478005...
0.7779537
0
/ PlaceholdersApiServiceTests Read slide placeholder info. Test for PlaceholdersApi.GetSlidesPlaceholder method with invalid name
func TestGetSlidesPlaceholderInvalidname(t *testing.T) { request := createGetSlidesPlaceholderRequest() request.name = invalidizeTestParamValue(request.name, "name", "string").(string) e := initializeTest("GetSlidesPlaceholder", "name", request.name) if e != nil { t.Errorf("Error: %v.", e) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func TestGetSlidesPlaceholder(t *testing.T) {\n request := createGetSlidesPlaceholderRequest()\n e := initializeTest(\"GetSlidesPlaceholder\", \"\", \"\")\n if e != nil {\n t.Errorf(\"Error: %v.\", e)\n return\n }\n c := getTestApiClient()\n r, _, e := c.PlaceholdersApi.GetSlidesPlace...
[ "0.7901926", "0.74805623", "0.7233861", "0.71421075", "0.7117637", "0.6880689", "0.6629213", "0.64757365", "0.6033508", "0.58257645", "0.5821665", "0.56473374", "0.56432563", "0.5346573", "0.53247285", "0.51859546", "0.5177103", "0.50451505", "0.5012712", "0.49621698", "0.490...
0.74381477
2
/ PlaceholdersApiServiceTests Read slide placeholder info. Test for PlaceholdersApi.GetSlidesPlaceholder method with invalid slideIndex
func TestGetSlidesPlaceholderInvalidslideIndex(t *testing.T) { request := createGetSlidesPlaceholderRequest() request.slideIndex = invalidizeTestParamValue(request.slideIndex, "slideIndex", "int32").(int32) e := initializeTest("GetSlidesPlaceholder", "slideIndex", request.slideIndex) if e != nil { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func TestGetSlidesPlaceholderInvalidplaceholderIndex(t *testing.T) {\n request := createGetSlidesPlaceholderRequest()\n request.placeholderIndex = invalidizeTestParamValue(request.placeholderIndex, \"placeholderIndex\", \"int32\").(int32)\n e := initializeTest(\"GetSlidesPlaceholder\", \"placeholderIndex\...
[ "0.7618128", "0.756309", "0.7497457", "0.707565", "0.66573054", "0.64436734", "0.6300607", "0.6155968", "0.5719219", "0.5514356", "0.55130297", "0.53745484", "0.535465", "0.5219113", "0.5197766", "0.51614887", "0.49438956", "0.4868958", "0.478047", "0.4749041", "0.47034314", ...
0.7812776
0
/ PlaceholdersApiServiceTests Read slide placeholder info. Test for PlaceholdersApi.GetSlidesPlaceholder method with invalid placeholderIndex
func TestGetSlidesPlaceholderInvalidplaceholderIndex(t *testing.T) { request := createGetSlidesPlaceholderRequest() request.placeholderIndex = invalidizeTestParamValue(request.placeholderIndex, "placeholderIndex", "int32").(int32) e := initializeTest("GetSlidesPlaceholder", "placeholderIndex", request.place...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func TestGetSlidesPlaceholder(t *testing.T) {\n request := createGetSlidesPlaceholderRequest()\n e := initializeTest(\"GetSlidesPlaceholder\", \"\", \"\")\n if e != nil {\n t.Errorf(\"Error: %v.\", e)\n return\n }\n c := getTestApiClient()\n r, _, e := c.PlaceholdersApi.GetSlidesPlace...
[ "0.7621378", "0.7582608", "0.7352041", "0.7241707", "0.67065245", "0.65239376", "0.63721323", "0.62590486", "0.57924837", "0.5644563", "0.561969", "0.55195695", "0.53890467", "0.5360754", "0.50424826", "0.48752633", "0.48446065", "0.48370668", "0.48054647", "0.47395724", "0.4...
0.76513666
0