anchor dict | positive dict | negative dict |
|---|---|---|
{
"audio": "",
"image": "",
"text": "func NewStaticCall(Class node.Node, Call node.Node, ArgumentList *node.ArgumentList) *StaticCall {",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\treturn &StaticCall{\n\t\tFreeFloating: nil,\n\t\tClass: Class,\n\t\tCall: Call,\n\t\tArgumentList: ArgumentList,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewNotEqual(Variable node.Node, Expression node.Node) *NotEqual {\n\treturn &NotEqual{\n\t\tFreeFloating: nil,\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tLeft: Variable,\n\t\tRight: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewAltElseIf(Cond node.Node, Stmt node.Node) *AltElseIf {\n\treturn &AltElseIf{\n\t\tFreeFloating: nil,\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tCond: Cond,\n\t\tStmt: Stmt,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewTraitUsePrecedence(Ref node.Node, Insteadof []node.Node) *TraitUsePrecedence",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\treturn &TraitUsePrecedence{\n\t\tFreeFloating: nil,\n\t\tRef: Ref,\n\t\tInsteadof: Insteadof,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewInstanceOf(Expr node.Node, Class node.Node) *InstanceOf {\n\treturn &InstanceOf{\n\t\tFreeFloating: nil,\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tExpr: Expr,\n\t\tClass: Class,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err == nil {\n\t\tnode = stmts[0].(*ast.SelectStmt).Fields.Fields[0].Expr\n\t}\n\treturn node, util.SyntaxError(err)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewAltIf(Cond node.Node, Stmt node.Node, ElseIf []node.Node, Else node.Node) *AltIf {\n\treturn &AltIf{\n\t\tFreeFloating: nil,\n\t\tCond: ",
"video": ""
} | {
"audio": "",
"image": "",
"text": " Cond,\n\t\tStmt: Stmt,\n\t\tElseIf: ElseIf,\n\t\tElse: Else,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (n *AltIf) SetElse(Else node.Node)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " node.Node {\n\tn.Else = Else\n\n\treturn n\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " as the search makes progress\n\t\twatch = n.mutateCh\n\n\t\t// Consume the search prefix\n\t\tif bytes.HasPrefix(search, n.prefix) {\n\t\t\tsearch = search[len(n.prefix):]\n\n\t\t} else if bytes.HasPrefix(n.prefix, search) {\n\t\t\ti.node = n\n\t\t\treturn\n\t\t} else {\n\t\t... |
{
"audio": "",
"image": "",
"text": "func NewStaticPropertyFetch(Class node.Node, Property node.Node) *StaticPropertyFetch",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\treturn &StaticPropertyFetch{\n\t\tFreeFloating: nil,\n\t\tClass: Class,\n\t\tProperty: Property,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewClassMethod(MethodName node.Node, Modifiers []node.Node, ReturnsRef bool, Params []node.Node, ReturnType node.Node, Stmt node.Node, PhpDocComment string) *ClassMethod {\n\treturn &ClassMethod{\n\t\tFreeFloating: nil,\n\t\tReturnsRef: ReturnsRef,\n\t",
"video": ""... | {
"audio": "",
"image": "",
"text": "\tPhpDocComment: PhpDocComment,\n\t\tMethodName: MethodName,\n\t\tModifiers: Modifiers,\n\t\tParams: Params,\n\t\tReturnType: ReturnType,\n\t\tStmt: Stmt,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewBreak(Expr node.Node) *Break {\n\treturn &Break{\n\t\tFreeFloating:",
"video": ""
} | {
"audio": "",
"image": "",
"text": " nil,\n\t\tExpr: Expr,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewGreaterOrEqual(Variable node.Node, Expression node.Node) *GreaterOrEqual {\n\treturn &GreaterOrEqual{\n\t\tFreeFloating: nil,\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tLeft: Variable,\n\t\tRight: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewInt(Expr node.Node) *Int {\n\treturn &Int{\n\t\tFreeFloating:",
"video": ""
} | {
"audio": "",
"image": "",
"text": " nil,\n\t\tExpr: Expr,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewClosure(Params []node.Node, ClosureUse *ClosureUse, ReturnType node.Node, Stmts []node.Node, Static bool, ReturnsRef bool, PhpDocComment string) *Closure {\n\treturn &Closure{\n\t\tFreeFloating: nil,\n\t\tReturnsRef: ReturnsRef,\n\t",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tStatic: Static,\n\t\tPhpDocComment: PhpDocComment,\n\t\tParams: Params,\n\t\tClosureUse: ClosureUse,\n\t\tReturnType: ReturnType,\n\t\tStmts: Stmts,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (n *Closure) Attributes() map[string]interface{} {\n\treturn map[string]interface{}{\n\t\t\"ReturnsRef\": n.ReturnsRef,\n\t",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\"Static\": n.Static,\n\t\t\"PhpDocComment\": n.PhpDocComment,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " -1 {\n\t\treturn formulaTable[fmtForms(FormsTable[idx].Value)]\n\t}\n\treturn func(n int) int {\n\t\treturn n\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewUse(UseType node.Node, use node.Node, Alias node.Node) *Use {\n\treturn &Use{\n\t\tFreeFloating: nil,\n\t\tUseType: ",
"video": ""
} | {
"audio": "",
"image": "",
"text": " UseType,\n\t\tUse: use,\n\t\tAlias: Alias,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewPrint(Expression node.Node) *Print {\n\treturn &Print{\n\t",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tFreeFloating: nil,\n\t\tExpr: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewArgument(Expression Node, Variadic bool, IsReference bool) *Argument {\n\treturn &Argument{\n\t\tFreeFloating: nil,\n\t\tVariadic: ",
"video": ""
} | {
"audio": "",
"image": "",
"text": " Variadic,\n\t\tIsReference: IsReference,\n\t\tExpr: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\treturn func(g Interface, from, to graph.Node, edgeKinds sets.String) bool {\n\t\treturn allowedKinds.HasAny(edgeKinds.List()...)\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewIncludeOnce(Expression node.Node) *IncludeOnce {\n\treturn &IncludeOnce{",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tFreeFloating: nil,\n\t\tExpr: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewStatic(Vars []node.Node) *Static {\n\treturn &Static{\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tFreeFloating: nil,\n\t\tVars: Vars,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewYield(Key node.Node, Value node.Node) *Yield {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " &Yield{\n\t\tFreeFloating: nil,\n\t\tKey: Key,\n\t\tValue: Value,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\tif node.IsInt {\n\t\treturn int(node.Value)\n\t}\n\n\treturn node.Value\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewShiftLeft(Variable node.Node, Expression node.Node) *ShiftLeft {\n\treturn &ShiftLeft{\n\t\tFreeFloating: nil,\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tLeft: Variable,\n\t\tRight: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewElse(Stmt node.Node) *Else {\n\treturn &Else{\n\t\tFreeFloating:",
"video": ""
} | {
"audio": "",
"image": "",
"text": " nil,\n\t\tStmt: Stmt,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewShellExec(Parts []node.Node) *ShellExec {\n\treturn &ShellExec{",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tFreeFloating: nil,\n\t\tParts: Parts,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tparts = set.NewStrings()\n\t\tregistered[component] = parts\n\t}\n\tif parts.Contains(part) {\n\t\treturn false\n\t}\n\tparts.Add(part)\n\treturn true\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewPreInc(Variable node.Node) *PreInc {\n\treturn &PreInc{\n\t",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tFreeFloating: nil,\n\t\tVariable: Variable,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewPlus(Variable node.Node, Expression node.Node) *Plus {\n\treturn &Plus{\n\t\tFreeFloating: nil,\n\t",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tLeft: Variable,\n\t\tRight: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewBool(Expr node.Node) *Bool {\n\treturn &Bool{\n\t\tFreeFloating:",
"video": ""
} | {
"audio": "",
"image": "",
"text": " nil,\n\t\tExpr: Expr,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (nsr *NamespaceResolver) AddNamespacedName(nn node.Node, nodeName string) {\n\tif nsr.Namespace.Namespace == \"\" {\n\t\tnsr.ResolvedNames[nn] = nodeName\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t} else {\n\t\tnsr.ResolvedNames[nn] = nsr.Namespace.Namespace + \"\\\\\" + nodeName\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *podmonitor.Config) {\n\t\tcfg.Nodename = nodename\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (nsr *NamespaceResolver) ResolveName(nameNode node.Node, aliasType string) {\n\tresolved, err := nsr.Namespace.ResolveName(nameNode, aliasType)",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\tif err == nil {\n\t\tnsr.ResolvedNames[nameNode] = resolved\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (nsr *NamespaceResolver) ResolveType(n node.Node) {\n\tswitch nn := n.(type) {\n\tcase *node.Nullable:",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tnsr.ResolveType(nn.Expr)\n\tcase name.Names:\n\t\tnsr.ResolveName(n, \"\")\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " as the search makes progress\n\t\twatch = n.mutateCh\n\n\t\t// Consume the search prefix\n\t\tif bytes.HasPrefix(search, n.prefix) {\n\t\t\tsearch = search[len(n.prefix):]\n\n\t\t} else if bytes.HasPrefix(n.prefix, search) {\n\t\t\ti.node = n\n\t\t\treturn\n\t\t} else {\n\t\t... |
{
"audio": "",
"image": "",
"text": "func (ns *Namespace) ResolveName(nameNode node.Node, aliasType string) (string, error) {\n\tswitch n := nameNode.(type) {\n\tcase *name.FullyQualified:\n\t\t// Fully qualifid name is already resolved\n\t\treturn concatNameParts(n.Parts), nil\n\n\tcase *name.Relative:\n\t\tif n... | {
"audio": "",
"image": "",
"text": " := strings.ToLower(n.Parts[0].(*name.NamePart).Value)\n\n\t\t\tswitch part {\n\t\t\tcase \"self\":\n\t\t\t\tfallthrough\n\t\t\tcase \"static\":\n\t\t\t\tfallthrough\n\t\t\tcase \"parent\":\n\t\t\t\tfallthrough\n\t\t\tcase \"int\":\n\t\t\t\tfallthrough\n\t\t\tcase \"float\":\n... | {
"audio": "",
"image": "",
"text": " make([]*packageACL, len(legacyRoles)),\n\t}\n\tif n.prefix == \"\" {\n\t\tc.prefix = name\n\t} else {\n\t\tc.prefix = n.prefix + \"/\" + name\n\t}\n\tn.children[name] = c\n\treturn c\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (ns *Namespace) ResolveAlias(nameNode node.Node, aliasType string) (string, error) {\n\taliasType = strings.ToLower(aliasType)\n\tnameParts := nameNode.(*name.Name).Parts\n\n\tfirstPartStr := nameParts[0].(*name.NamePart).Value\n\n\tif len(nameParts) > 1 { // resolve alia... | {
"audio": "",
"image": "",
"text": " qualified names, always against class alias type\n\t\tfirstPartStr = strings.ToLower(firstPartStr)\n\t\taliasType = \"\"\n\t} else {\n\t\tif aliasType != \"const\" { // constants are case-sensitive\n\t\t\tfirstPartStr = strings.ToLower(firstPartStr)\n\t\t}\n\t}\n\n\taliasName... | {
"audio": "",
"image": "",
"text": " == nil {\n\t\tif ns := strings.TrimSpace(string(data)); len(ns) > 0 {\n\t\t\treturn ns\n\t\t}\n\t}\n\n\treturn environment.DefaultTillerNamespace\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewTraitUseAlias(Ref node.Node, Modifier node.Node, Alias node.Node) *TraitUseAlias {",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\treturn &TraitUseAlias{\n\t\tFreeFloating: nil,\n\t\tRef: Ref,\n\t\tModifier: Modifier,\n\t\tAlias: Alias,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewEqual(Variable node.Node, Expression node.Node) *Equal {\n\treturn &Equal{\n\t\tFreeFloating: nil,\n\t",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tLeft: Variable,\n\t\tRight: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewClone(Expression node.Node) *Clone {\n\treturn &Clone{\n\t",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tFreeFloating: nil,\n\t\tExpr: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewMul(Variable node.Node, Expression node.Node) *Mul {\n\treturn &Mul{\n\t\tFreeFloating: nil,\n\t\tLeft:",
"video": ""
} | {
"audio": "",
"image": "",
"text": " Variable,\n\t\tRight: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewEval(Expression node.Node) *Eval {\n\treturn &Eval{\n\t\tFreeFloating:",
"video": ""
} | {
"audio": "",
"image": "",
"text": " nil,\n\t\tExpr: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewCaseList(Cases []node.Node) *CaseList {\n\treturn &CaseList{\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tFreeFloating: nil,\n\t\tCases: Cases,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func Rune2Class(r rune) int {\n\tif r >= 0 && r < 0x80 { // Keep ASCII as it is.\n\t\treturn int(r)\n\t}\n\tif unicode.IsLetter(r) {\n\t\treturn classUnicodeLeter",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t}\n\tif unicode.IsDigit(r) {\n\t\treturn classUnicodeDigit\n\t}\n\tif unicode.IsGraphic(r) {\n\t\treturn classUnicodeGraphic\n\t}\n\tif r == lex.RuneEOF {\n\t\treturn int(r)\n\t}\n\treturn classOther\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " || r == '_' ||\n\t\tr >= 0x80 && unicode.IsLetter(r)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewLexer(src io.Reader, fName string) *Lexer {\n\tfile := t.NewFileSet().AddFile(fName, -1, 1<<31-3)\n\tlx, err := lex.New(file, bufio.NewReader(src), lex.RuneClass(Rune2Class))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\treturn &Lexer{\n\t\tLexer: lx,\n\t\tState... | {
"audio": "",
"image": "",
"text": "\tPhpDocComment: \"\",\n\t\tFreeFloating: nil,\n\t\theredocLabel: \"\",\n\t\ttokenBytesBuf: &bytes.Buffer{},\n\t\tTokenPool: &TokenPool{},\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\treturn value.BoolType\n\t\tcase lex.TokenMultiply, lex.TokenMinus, lex.TokenAdd, lex.TokenDivide:\n\t\t\treturn value.NumberType\n\t\tcase lex.TokenModulus:\n\t\t\treturn value.IntType\n\t\tcase lex.TokenLT, lex.TokenLE, lex.TokenGT, lex.TokenGE:\n\t\t\treturn value.BoolTy... |
{
"audio": "",
"image": "",
"text": "func (l *Lexer) addFreeFloating(t freefloating.StringType, chars []lex.Char) {\n\tif !l.WithFreeFloating {\n\t\treturn\n\t}\n\n\tfirstChar := chars[0]\n\tlastChar := chars[len(chars)-1]\n\n\tpos := position.NewPosition(\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tl.File.Line(firstChar.Pos()),\n\t\tl.File.Line(lastChar.Pos()),\n\t\tint(firstChar.Pos()),\n\t\tint(lastChar.Pos()),\n\t)\n\n\tl.FreeFloating = append(l.FreeFloating, freefloating.String{\n\t\tStringType: t,\n\t\tValue: l.tokenString(chars),\n\t\tPosition: pos,\n\t}... | {
"audio": "",
"image": "",
"text": " !s.Valid:\n\t\treturn or\n\tdefault:\n\t\treturn s.Chars\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewList(Items []node.Node) *List {\n\treturn &List{\n\t\tFreeFloating:",
"video": ""
} | {
"audio": "",
"image": "",
"text": " nil,\n\t\tItems: Items,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewBitwiseAnd(Variable node.Node, Expression node.Node) *BitwiseAnd {\n\treturn &BitwiseAnd{\n\t\tFreeFloating: nil,\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tLeft: Variable,\n\t\tRight: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewTernary(Condition node.Node, IfTrue node.Node, IfFalse node.Node) *Ternary {\n\treturn &Ternary{\n\t\tFreeFloating: nil,\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tCondition: Condition,\n\t\tIfTrue: IfTrue,\n\t\tIfFalse: IfFalse,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewPrettyPrinter(w io.Writer, indentStr string) *PrettyPrinter {\n\treturn &PrettyPrinter{\n\t\tw: w,",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tindentStr: indentStr,\n\t\tindentDepth: 0,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\treturn &WALSegmentWriter{\n\t\tbw: bufio.NewWriterSize(w, 16*1024),\n\t\tw: w,\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewNamespace(NamespaceName node.Node, Stmts []node.Node) *Namespace {\n\treturn &Namespace{\n\t\tFreeFloating: nil,",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tNamespaceName: NamespaceName,\n\t\tStmts: Stmts,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewRequire(Expression node.Node) *Require {\n\treturn &Require{\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tFreeFloating: nil,\n\t\tExpr: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewForeach(Expr node.Node, Key node.Node, Variable node.Node, Stmt node.Node) *Foreach {\n\treturn &Foreach{\n\t\tFreeFloating: nil,\n\t\tExpr: ",
"video": ""
} | {
"audio": "",
"image": "",
"text": " Expr,\n\t\tKey: Key,\n\t\tVariable: Variable,\n\t\tStmt: Stmt,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewCoalesce(Variable node.Node, Expression node.Node) *Coalesce {\n\treturn &Coalesce{\n\t\tFreeFloating: nil,\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tLeft: Variable,\n\t\tRight: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewSmaller(Variable node.Node, Expression node.Node) *Smaller {\n\treturn &Smaller{\n\t\tFreeFloating: nil,\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tLeft: Variable,\n\t\tRight: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewStmtList(Stmts []node.Node) *StmtList {\n\treturn &StmtList{\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tFreeFloating: nil,\n\t\tStmts: Stmts,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewConcat(Variable node.Node, Expression node.Node) *Concat {\n\treturn &Concat{\n\t\tFreeFloating: nil,\n\t",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tLeft: Variable,\n\t\tRight: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewAltSwitch(Cond node.Node, CaseList *CaseList) *AltSwitch {\n\treturn &AltSwitch{\n\t\tFreeFloating: nil,\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tCond: Cond,\n\t\tCaseList: CaseList,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewElseIf(Cond node.Node, Stmt node.Node) *ElseIf {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\treturn &ElseIf{\n\t\tFreeFloating: nil,\n\t\tCond: Cond,\n\t\tStmt: Stmt,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewDeclare(Consts []node.Node, Stmt node.Node, alt bool) *Declare {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " &Declare{\n\t\tFreeFloating: nil,\n\t\tConsts: Consts,\n\t\tStmt: Stmt,\n\t\tAlt: alt,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\treturn func(g Interface, from, to graph.Node, edgeKinds sets.String) bool {\n\t\treturn allowedKinds.HasAny(edgeKinds.List()...)\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewMinus(Variable node.Node, Expression node.Node) *Minus {\n\treturn &Minus{\n\t\tFreeFloating: nil,\n\t",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tLeft: Variable,\n\t\tRight: Expression,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewRelative(Parts []node.Node) *Relative {\n\treturn &Relative{\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tFreeFloating: nil,\n\t\tParts: Parts,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tparts = set.NewStrings()\n\t\tregistered[component] = parts\n\t}\n\tif parts.Contains(part) {\n\t\treturn false\n\t}\n\tparts.Add(part)\n\treturn true\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewContinue(Expr node.Node) *Continue {\n\treturn &Continue{\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tFreeFloating: nil,\n\t\tExpr: Expr,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewArrayDimFetch(Variable node.Node, Dim node.Node) *ArrayDimFetch",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\treturn &ArrayDimFetch{\n\t\tFreeFloating: nil,\n\t\tVariable: Variable,\n\t\tDim: Dim,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewGlobal(Vars []node.Node) *Global {\n\treturn &Global{\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tFreeFloating: nil,\n\t\tVars: Vars,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewPosition(StartLine int, EndLine int, StartPos int, EndPos int) *Position {\n\treturn &Position{\n\t\tStartLine: StartLine,\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tEndLine: EndLine,\n\t\tStartPos: StartPos,\n\t\tEndPos: EndPos,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " (n int, err error) {\n\treturn 0, f.err\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewPostInc(Variable node.Node) *PostInc {\n\treturn &PostInc{\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tFreeFloating: nil,\n\t\tVariable: Variable,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewAltForeach(Expr node.Node, Key node.Node, Variable node.Node, Stmt node.Node) *AltForeach {\n\treturn &AltForeach{\n\t\tFreeFloating: nil,\n\t\tExpr: ",
"video": ""
} | {
"audio": "",
"image": "",
"text": " Expr,\n\t\tKey: Key,\n\t\tVariable: Variable,\n\t\tStmt: Stmt,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif err != nil {\n\t\treturn err\n\t}\n\tnode.setPersistentClient()\n\treturn wrapError(node, node.PushImage(opts, auth))\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func NewGoto(Label node.Node) *Goto {\n\treturn &Goto{\n\t\tFreeFloating:",
"video": ""
} | {
"audio": "",
"image": "",
"text": " nil,\n\t\tLabel: Label,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfunc(node osgraph.Node) graph.Node {\n\t\t\treturn &ImageStreamImageNode{node, isi, false}\n\t\t},\n\t).(*ImageStreamImageNode)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func Invert() Filter {\n\treturn &colorchanFilter{\n\t\tfn: func(x float32) float32 {\n\t",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\treturn 1 - x\n\t\t},\n\t\tlut: false,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(x float32) float32 {\n\t\t\treturn powf32(x, e)\n\t\t},\n\t\tlut: true,\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func ColorspaceSRGBToLinear() Filter {\n\treturn &colorchanFilter{\n\t\tfn: func(x float32) float32 {\n\t\t\tif x <= 0.04045 {\n\t\t\t\treturn x / 12.92\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\t\t}\n\t\t\treturn float32(math.Pow(float64((x+0.055)/1.055), 2.4))\n\t\t},\n\t\tlut: true,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(x float32) float32 {\n\t\t\treturn powf32(x, e)\n\t\t},\n\t\tlut: true,\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func Gamma(gamma float32) Filter {\n\te := 1 / maxf32(gamma, 1.0e-5)\n\treturn &colorchanFilter{\n\t\tfn:",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(x float32) float32 {\n\t\t\treturn powf32(x, e)\n\t\t},\n\t\tlut: true,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\treturn a.Mul(Affine{\n\t\t1 / x, 0, 0,\n\t\t0, 1 / y, 0,\n\t\t0, 0, 1,\n\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func Grayscale() Filter {\n\treturn &colorFilter{\n\t\tfn: func(px pixel) pixel {\n\t\t\ty := 0.299*px.r +",
"video": ""
} | {
"audio": "",
"image": "",
"text": " 0.587*px.g + 0.114*px.b\n\t\t\treturn pixel{y, y, y, px.a}\n\t\t},\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " pixel.TargetTriangles {\n\treturn w.canvas.MakeTriangles(t)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (g *GIFT) Add(filters ...Filter) {\n\tg.Filters =",
"video": ""
} | {
"audio": "",
"image": "",
"text": " append(g.Filters, filters...)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " Filters(func(f *mesos.Filters) {\n\t\tf.RefuseSeconds = &asFloat\n\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (g *GIFT) Draw(dst draw.Image, src image.Image) {\n\tif len(g.Filters) == 0 {\n\t\tcopyimage(dst, src, &g.Options)\n\t\treturn\n\t}\n\n\tfirst, last := 0, len(g.Filters)-1\n\tvar tmpIn image.Image\n\tvar tmpOut draw.Image\n\n\tfor i, f := range g.Filters {\n\t\tif i == fi... | {
"audio": "",
"image": "",
"text": " tmpOut\n\t\t}\n\n\t\tif i == last {\n\t\t\ttmpOut = dst\n\t\t} else {\n\t\t\ttmpOut = createTempImage(f.Bounds(tmpIn.Bounds()))\n\t\t}\n\n\t\tf.Draw(tmpOut, tmpIn, &g.Options)\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tif g.Kind(predecessor) == imagegraph.ImageNodeKind {\n\t\t\tklog.V(4).Infof(\"Config %v has an image predecessor\", cn)\n\t\t\treturn false\n\t\t}\n\t}\n\n\treturn true\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func prepareConvolutionWeights1d(kernel []float32) (int, []uweight) {\n\tsize := len(kernel)\n\tif size%2 == 0 {\n\t\tsize--\n\t}\n\tif size < 1 {\n\t\treturn 0, []uweight{}\n\t}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\tcenter := size / 2\n\tweights := []uweight{}\n\tfor i := 0; i < size; i++ {\n\t\tw := float32(0)\n\t\tif i < len(kernel) {\n\t\t\tw = kernel[i]\n\t\t}\n\t\tif w != 0 {\n\t\t\tweights = append(weights, uweight{i - center, w})\n\t\t}\n\t}\n\treturn size, weights\n}",
"vide... | {
"audio": "",
"image": "",
"text": "\n\t\t\t\tcase 'g':\n\t\t\t\t\tmultiplier = 1 << 30\n\t\t\t\t\tsizeStr = strings.TrimSpace(sizeStr[:lastChar-1])\n\t\t\t\tdefault:\n\t\t\t\t\tmultiplier = 1\n\t\t\t\t\tsizeStr = strings.TrimSpace(sizeStr[:lastChar])\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tsize := cast.ToInt(sizeS... |
{
"audio": "",
"image": "",
"text": "func convolveLine(dstBuf []pixel, srcBuf []pixel, weights []uweight) {\n\tmax := len(srcBuf) - 1\n\tif max < 0 {\n\t\treturn\n\t}\n\tfor dstu := 0; dstu < len(srcBuf); dstu++ {\n\t\tvar r, g, b, a float32\n\t\tfor _, w := range weights",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\t\t\tk := dstu + w.u\n\t\t\tif k < 0 {\n\t\t\t\tk = 0\n\t\t\t} else if k > max {\n\t\t\t\tk = max\n\t\t\t}\n\t\t\tc := srcBuf[k]\n\t\t\twa := c.a * w.weight\n\t\t\tr += c.r * wa\n\t\t\tg += c.g * wa\n\t\t\tb += c.b * wa\n\t\t\ta += wa\n\t\t}\n\t\tif a != 0 {\n\t\t\tr /= a... | {
"audio": "",
"image": "",
"text": " - 1)\n\tfor i := 0; i < end; i++ {\n\t\tif src[i] > max {\n\t\t\treturn false\n\t\t}\n\t}\n\n\treturn true\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func convolve1dv(dst draw.Image, src image.Image, kernel []float32, options *Options) {\n\tsrcb := src.Bounds()\n\tdstb := dst.Bounds()\n\tif srcb.Dx() <= 0 || srcb.Dy() <= 0 {\n\t\treturn\n\t}\n\tif kernel == nil || len(kernel) < 1 {\n\t\tcopyimage(dst, src, options)\n\t\tret... | {
"audio": "",
"image": "",
"text": "\tsrcBuf := make([]pixel, srcb.Dy())\n\t\tdstBuf := make([]pixel, srcb.Dy())\n\t\tfor x := start; x < stop; x++ {\n\t\t\tpixGetter.getPixelColumn(x, &srcBuf)\n\t\t\tconvolveLine(dstBuf, srcBuf, weights)\n\t\t\tpixSetter.setPixelColumn(dstb.Min.X+x-srcb.Min.X, dstBuf)\n\t\t}\n\... | {
"audio": "",
"image": "",
"text": "\n\t\treturn nil\n\t}\n\tsx := float64(b.Dx()) / float64(srcb.Dx())\n\tsy := float64(b.Dy()) / float64(srcb.Dy())\n\treturn I.Scale(sx, sy).Transform(dst, src, interp.Bilinear)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func convolve1dh(dst draw.Image, src image.Image, kernel []float32, options *Options) {\n\tsrcb := src.Bounds()\n\tdstb := dst.Bounds()\n\tif srcb.Dx() <= 0 || srcb.Dy() <= 0 {\n\t\treturn\n\t}\n\tif kernel == nil || len(kernel) < 1 {\n\t\tcopyimage(dst, src, options)\n\t\tret... | {
"audio": "",
"image": "",
"text": "\tsrcBuf := make([]pixel, srcb.Dx())\n\t\tdstBuf := make([]pixel, srcb.Dx())\n\t\tfor y := start; y < stop; y++ {\n\t\t\tpixGetter.getPixelRow(y, &srcBuf)\n\t\t\tconvolveLine(dstBuf, srcBuf, weights)\n\t\t\tpixSetter.setPixelRow(dstb.Min.Y+y-srcb.Min.Y, dstBuf)\n\t\t}\n\t})\n}... | {
"audio": "",
"image": "",
"text": "\n\t\treturn nil\n\t}\n\tsx := float64(b.Dx()) / float64(srcb.Dx())\n\tsy := float64(b.Dy()) / float64(srcb.Dy())\n\treturn I.Scale(sx, sy).Transform(dst, src, interp.Bilinear)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func CropToSize(width, height int, anchor Anchor) Filter {\n\treturn &cropToSizeFilter{\n\t\tw: ",
"video": ""
} | {
"audio": "",
"image": "",
"text": " width,\n\t\th: height,\n\t\tanchor: anchor,\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " time.Now(), w: width, h: height}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func parallelize(enabled bool, start, stop int, fn func(start, stop int)) {\n\tprocs := 1\n\tif enabled {\n\t\tprocs = runtime.GOMAXPROCS(0)\n\t}\n\tvar wg sync.WaitGroup\n\tsplitRange(start, stop,",
"video": ""
} | {
"audio": "",
"image": "",
"text": " procs, func(pstart, pstop int) {\n\t\twg.Add(1)\n\t\tgo func() {\n\t\t\tdefer wg.Done()\n\t\t\tfn(pstart, pstop)\n\t\t}()\n\t})\n\twg.Wait()\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\treturn db.ZRangeGeneric(key, start, stop, false)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func splitRange(start, stop, n int, fn func(pstart, pstop int)) {\n\tcount := stop - start\n\tif count < 1 {\n\t\treturn\n\t}\n\n\tif n < 1 {\n\t\tn = 1\n\t}\n\tif n > count {\n\t\tn = count\n\t}\n\n\tdiv := count / n\n\tmod := count % n\n\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tfor i := 0; i < n; i++ {\n\t\tfn(\n\t\t\tstart+i*div+minint(i, mod),\n\t\t\tstart+(i+1)*div+minint(i+1, mod),\n\t\t)\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\n\tif status == HEALTHY {\n\t\tcheck.Count = 0\n\t\treturn\n\t}\n\n\tcheck.Count = check.Count + 1\n\n\tif check.Count >= check.MaxCount {\n\t\tcheck.Status = FAILED\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func isOpaque(img image.Image) bool {\n\ttype opaquer interface {\n\t\tOpaque() bool\n\t}\n\tif",
"video": ""
} | {
"audio": "",
"image": "",
"text": " o, ok := img.(opaquer); ok {\n\t\treturn o.Opaque()\n\t}\n\treturn false\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool {\n\treturn func(err error) bool {\n\t\treturn Cause(err) == cause\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func genDisk(ksize int) []float32 {\n\tif ksize%2 == 0 {\n\t\tksize--\n\t}\n\tif ksize < 1 {\n\t\treturn []float32{}\n\t}\n\tdisk := make([]float32, ksize*ksize)\n\tkcenter := ksize / 2\n\tfor i := 0; i < ksize; i++ {\n\t\tfor j := 0; j < ksize; j++ {\n\t\t\tx := kcenter - i\n... | {
"audio": "",
"image": "",
"text": "\ty := kcenter - j\n\t\t\tr := math.Sqrt(float64(x*x + y*y))\n\t\t\tif r <= float64(ksize/2) {\n\t\t\t\tdisk[j*ksize+i] = 1\n\t\t\t}\n\t\t}\n\t}\n\treturn disk\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\tchunks := make([]map[string]interface{}, num_chunk)\n\tfor i := 0; i < num_chunk; i++ {\n\t\tadd := make([]Document, 0, chunk_size)\n\t\tfor j := 0; j < chunk_size; j++ {\n\t\t\tif doc_counter >= docs_len {\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tadd = append(add, docs[doc_counter]... |
{
"audio": "",
"image": "",
"text": "func Set(ptr interface{}) error {\n\tif reflect.TypeOf(ptr).Kind() != reflect.Ptr {\n\t\treturn errInvalidType\n\t}\n\n\tv := reflect.ValueOf(ptr).Elem()\n\tt := v.Type()\n\n\tif t.Kind() != reflect.Struct {\n\t\treturn errInvalidType\n\t}\n\n\tfor i := 0; i < t.NumField();",
... | {
"audio": "",
"image": "",
"text": " i++ {\n\t\tif defaultVal := t.Field(i).Tag.Get(fieldName); defaultVal != \"-\" {\n\t\t\tif err := setField(v.Field(i), defaultVal); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t}\n\n\treturn nil\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " reflect.Ptr {\n\t\tt = t.Elem()\n\t}\n\treturn t\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func SetLogOutput(w io.Writer) {\n\tlogger = log.New(w, \"http: ",
"video": ""
} | {
"audio": "",
"image": "",
"text": " \", log.LstdFlags|log.Lmicroseconds)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\tvar w *syslog.Writer\n\tw, err = syslog.New(syslog.LOG_CRIT, prefix)\n\treturn &SyslogBackend{w}, err\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func SetCacheMaxSize(sizeInMB int64) {\n\tif sizeInMB > 0 {\n\t\ticonCache = groupcache.NewGroup(\"icons\",",
"video": ""
} | {
"audio": "",
"image": "",
"text": " sizeInMB<<20, groupcache.GetterFunc(generatorFunc))\n\t} else {\n\t\ticonCache = nil\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " v.Int64 != 0 {\n\t\tenc.Int64(v.Int64)\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func ParseSizeRange(s string) (*SizeRange, error) {\n\tparts := strings.SplitN(s, \"..\", 3)\n\tswitch len(parts) {\n\tcase 1:\n\t\tsize, ok := parseSize(parts[0])\n\t\tif !ok {\n\t\t\treturn nil, errBadSize\n\t\t}\n\t\treturn &SizeRange{size, size, MaxIconSize},",
"video": ... | {
"audio": "",
"image": "",
"text": " nil\n\tcase 3:\n\t\tn1, ok1 := parseSize(parts[0])\n\t\tn2, ok2 := parseSize(parts[1])\n\t\tn3, ok3 := parseSize(parts[2])\n\t\tif !ok1 || !ok2 || !ok3 {\n\t\t\treturn nil, errBadSize\n\t\t}\n\t\tif !((n1 <= n2) && (n2 <= n3)) {\n\t\t\treturn nil, errBadSize\n\t\t}\n\t\tretur... | {
"audio": "",
"image": "",
"text": " {\n\t\ts = strings.Replace(s, \".\", \"_\",1)\n\t}\n\tvar regex = regexp.MustCompile(`(\\|| |=|\\)|\\(|&|<|>|,|\\+|-|!|\\*|\\/)(r|p)\\.`)\n\ts = regex.ReplaceAllStringFunc(s, func(m string) string {\n\t\treturn strings.Replace(m, \".\", \"_\", 1)\n\t})\n\treturn s\n}",
"vid... |
{
"audio": "",
"image": "",
"text": "func (cf *ColorFinder) FindMainColor(img image.Image) (color.RGBA, error) {\n\tcf.img = img\n\n\tcolorMap := cf.buildColorMap()\n\n\tsRGB := cf.findMainColor(colorMap, 6, nil)\n\tsRGB = cf.findMainColor(colorMap, 4, &sRGB)",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\tsRGB = cf.findMainColor(colorMap, 2, &sRGB)\n\tsRGB = cf.findMainColor(colorMap, 0, &sRGB)\n\n\treturn sRGB.rgb, nil\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " orientationRotate270:\n\t\timg = Rotate270(img)\n\tcase orientationTranspose:\n\t\timg = Transpose(img)\n\tcase orientationTransverse:\n\t\timg = Transverse(img)\n\t}\n\treturn img\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func ParseIco(r io.Reader) (*icondir, error) {\n\tdir := icondir{}\n\n\tvar err error\n\terr = binary.Read(r, binary.LittleEndian, &dir.Reserved)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\terr = binary.Read(r, binary.LittleEndian, &dir.Type)\n\tif err != nil {\n\t\tretu... | {
"audio": "",
"image": "",
"text": " i := uint16(0); i < dir.Count; i++ {\n\t\tentry := icondirEntry{}\n\t\te := parseIcondirEntry(r, &entry)\n\t\tif e != nil {\n\t\t\treturn nil, e\n\t\t}\n\t\tdir.Entries = append(dir.Entries, entry)\n\t}\n\n\treturn &dir, err\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " pointer\")\n\t}\n\tif ch.IsFullyRead() {\n\t\treturn io.EOF\n\t}\n\tch.Pos += binary.Size(dst)\n\treturn binary.Read(ch.R, binary.LittleEndian, dst)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func DecodeConfig(r io.Reader) (image.Config, error) {\n\tdir, err := ParseIco(r)\n\tif err != nil {\n\t\treturn image.Config{}, err\n\t}\n\n\tbest := dir.FindBestIcon()\n\tif best == nil {\n\t\treturn image.Config{},",
"video": ""
} | {
"audio": "",
"image": "",
"text": " errInvalid\n\t}\n\treturn image.Config{Width: best.width(), Height: best.height()}, nil\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " err != nil {\n\t\treturn \"\", fmt.Errorf(\"error on extracting image list: %s\", err)\n\t}\n\n\tif len(imageList) == 0 {\n\t\treturn \"\", nil\n\t}\n\n\tif len(imageList) > 1 {\n\t\treturn \"\", fmt.Errorf(\"there exists more than one image with the same name\")\n\t}\n\n\tre... |
{
"audio": "",
"image": "",
"text": "func Decode(r io.Reader) (image.Image, error) {\n\ticoBytes, err := ioutil.ReadAll(r)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tr = bytes.NewReader(icoBytes)\n\tdir, err := ParseIco(r)\n\tif err != nil {\n\t\treturn nil, errInvalid\n\t}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\n\tbest := dir.FindBestIcon()\n\tif best == nil {\n\t\treturn nil, errInvalid\n\t}\n\n\treturn parseImage(best, icoBytes)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " nil {\n\t\treturn r\n\t}\n\tr.body, err = json.Marshal(v)\n\tif err != nil {\n\t\tr.err = err\n\t\treturn r\n\t}\n\treturn r\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (f *Fuzzer) RandSource(s rand.Source) *Fuzzer {\n\tf.r",
"video": ""
} | {
"audio": "",
"image": "",
"text": " = rand.New(s)\n\treturn f\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Fuzzer {\n\tf.maxDepth = d\n\treturn f\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (f *Fuzzer) NumElements(atLeast, atMost int) *Fuzzer {\n\tif atLeast > atMost {\n\t\tpanic(\"atLeast must",
"video": ""
} | {
"audio": "",
"image": "",
"text": " be <= atMost\")\n\t}\n\tif atLeast < 0 {\n\t\tpanic(\"atLeast must be >= 0\")\n\t}\n\tf.minElements = atLeast\n\tf.maxElements = atMost\n\treturn f\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Fuzzer {\n\tf.maxDepth = d\n\treturn f\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (f *Fuzzer) MaxDepth(d int)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Fuzzer {\n\tf.maxDepth = d\n\treturn f\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " new(SetAsyncCallStackDepthArgs)\n\targs.MaxDepth = maxDepth\n\treturn args\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (fc *fuzzerContext) tryCustom(v reflect.Value) bool {\n\t// First: see if we have a fuzz function for it.\n\tdoCustom, ok := fc.fuzzer.fuzzFuncs[v.Type()]\n\tif !ok {\n\t\t// Second: see if it can fuzz itself.\n\t\tif v.CanInterface() {\n\t\t\tintf := v.Interface()\n\t\t\... | {
"audio": "",
"image": "",
"text": "\n\t\t}\n\t\t// Finally: see if there is a default fuzz function.\n\t\tdoCustom, ok = fc.fuzzer.defaultFuzzFuncs[v.Type()]\n\t\tif !ok {\n\t\t\treturn false\n\t\t}\n\t}\n\n\tswitch v.Kind() {\n\tcase reflect.Ptr:\n\t\tif v.IsNil() {\n\t\t\tif !v.CanSet() {\n\t\t\t\treturn fals... | {
"audio": "",
"image": "",
"text": " ok := CONST[kStringUpper]; ok {\n\t\t\t\toptions[kInt] = v\n\t\t\t} else {\n\t\t\t\t// it should be header, but we still need to validate it's type\n\t\t\t\tif vString, ok := v.(string); ok {\n\t\t\t\t\theaders[kString] = vString\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn op... |
{
"audio": "",
"image": "",
"text": "func (c Continue) Fuzz(obj interface{}) {\n\tv := reflect.ValueOf(obj)",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\tif v.Kind() != reflect.Ptr {\n\t\tpanic(\"needed ptr!\")\n\t}\n\tv = v.Elem()\n\tc.fc.doFuzz(v, 0)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t}\n\twr := c.newWriter(w)\n\tfor _, ns := range n.List() {\n\t\tobj := namespace{\n\t\t\tFull: quad.IRI(ns.Full),\n\t\t\tPrefix: quad.IRI(ns.Prefix),\n\t\t}\n\t\trv := reflect.ValueOf(obj)\n\t\tif err = wr.writeValueAs(obj.Full, rv, \"\", rules); err != nil {\n\t\t\treturn... |
{
"audio": "",
"image": "",
"text": "func (r *charRange) choose(rand *rand.Rand) rune {\n\tcount := int64(r.last -",
"video": ""
} | {
"audio": "",
"image": "",
"text": " r.first)\n\treturn r.first + rune(rand.Int63n(count))\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " idTokenValidFor,\n\t\tkey: func() (*rsa.PrivateKey, error) {\n\t\t\treturn rsa.GenerateKey(rand.Reader, 2048)\n\t\t},\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func randUint64(r *rand.Rand) uint64",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\treturn uint64(r.Uint32())<<32 | uint64(r.Uint32())\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\treturn err\n\t}\n\tr.Start = uint64(m[\"Start\"].(float64))\n\tr.End = uint64(m[\"End\"].(float64))\n\treturn nil\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (c *cache) Update(req *pb.FindFullHashesRequest, resp *pb.FindFullHashesResponse) {\n\tc.Lock()\n\tdefer c.Unlock()\n\tnow := c.now()\n\n\tif c.pttls == nil {\n\t\tc.pttls = make(map[hashPrefix]map[ThreatDescriptor]time.Time)\n\t\tc.nttls = make(map[hashPrefix]time.Time)\... | {
"audio": "",
"image": "",
"text": "\t\tvar dur time.Duration\n\t\tif tmCacheDur := tm.GetCacheDuration(); tmCacheDur != nil {\n\t\t\tdur = time.Duration(tm.GetCacheDuration().Seconds) * time.Second\n\t\t} else {\n\t\t\tdur = 0\n\t\t}\n\t\ttd := ThreatDescriptor{\n\t\t\tThreatType: ThreatType(tm.ThreatType)... | {
"audio": "",
"image": "",
"text": "\tdefer c.Unlock()\n\n\tfor id := range c.cache {\n\t\tif _, ok := liveContainers[id]; !ok {\n\t\t\tdelete(c.cache, id)\n\t\t}\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (c *cache) Lookup(hash hashPrefix) (map[ThreatDescriptor]bool, cacheResult) {\n\tif !hash.IsFull() {\n\t\tpanic(\"hash is not full\")\n\t}\n\n\tc.Lock()\n\tdefer c.Unlock()\n\tnow := c.now()\n\n\t// Check all entries to see if there *is* a threat.\n\tthreats := make(map[T... | {
"audio": "",
"image": "",
"text": " ask the server what's going on.\n\t\t\treturn nil, cacheMiss\n\t\t}\n\t}\n\tif len(threats) > 0 {\n\t\t// So long as there are valid threats, we report them. The positive TTL\n\t\t// takes precedence over the negative TTL at the partial hash level.\n\t\treturn threats, positi... | {
"audio": "",
"image": "",
"text": " cmd.job\n\t\t\t} else {\n\t\t\t\tdelete(c.jobs, cmd.id)\n\t\t\t}\n\t\tcase now := <-ticker.C:\n\t\t\tfor id, job := range c.jobs {\n\t\t\t\tc.do(id, job, now)\n\t\t\t}\n\t\t}\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (c *cache) Purge() {\n\tc.Lock()\n\tdefer c.Unlock()\n\tnow := c.now()\n\n\t// Nuke all threat entries based on their positive TTL.\n\tfor fullHash, threatTTLs := range c.pttls {\n\t\tfor td, pttl := range threatTTLs {\n\t\t\tif now.After(pttl) {\n\t\t\t\tdel := true\n\t\... | {
"audio": "",
"image": "",
"text": "\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif len(threatTTLs) == 0 {\n\t\t\tdelete(c.pttls, fullHash)\n\t\t}\n\t}\n\n\t// Nuke all partial hashes based on their negative TTL.\n\tfor partialHash, nttl := range c.nttls {\n\t\tif now.After(nttl) {\n\t\t\tdelete(c.nttls, partialHash)\n\t\t}... | {
"audio": "",
"image": "",
"text": "\tdefer c.Unlock()\n\n\tfor id := range c.cache {\n\t\tif _, ok := liveContainers[id]; !ok {\n\t\t\tdelete(c.cache, id)\n\t\t}\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (db *database) Init(config *Config, logger *log.Logger) bool {\n\tdb.mu.Lock()\n\tdefer db.mu.Unlock()\n\tdb.setError(errors.New(\"not intialized\"))\n\tdb.config = config\n\tdb.log = logger\n\tif db.config.DBPath == \"\" {\n\t\tdb.log.Printf(\"no database file specified\... | {
"audio": "",
"image": "",
"text": " threat list stored on disk is not too stale.\n\tif db.isStale(dbf.Time) {\n\t\tdb.log.Printf(\"database loaded is stale\")\n\t\tdb.ml.Lock()\n\t\tdefer db.ml.Unlock()\n\t\tdb.setStale()\n\t\treturn false\n\t}\n\t// Validate that the database threat list stored on disk is at l... | {
"audio": "",
"image": "",
"text": "\n\tif lag < db.config.UpdatePeriod {\n\t\treturn 0\n\t}\n\treturn lag - db.config.UpdatePeriod\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (db *database) Status() error {\n\tdb.ml.RLock()\n\tdefer db.ml.RUnlock()\n\n\tif db.err != nil {\n\t\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " db.err\n\t}\n\tif db.isStale(db.last) {\n\t\tdb.setStale()\n\t\treturn db.err\n\t}\n\treturn nil\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " db.ml.Unlock()\n\n\tif db.err != nil {\n\t\tclose(db.readyCh)\n\t}\n\tdb.err = nil\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (db *database) UpdateLag() time.Duration {\n\tlag := db.SinceLastUpdate()",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\tif lag < db.config.UpdatePeriod {\n\t\treturn 0\n\t}\n\treturn lag - db.config.UpdatePeriod\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tswitch d {\n\t\t\t\tcase time.Millisecond:\n\t\t\t\t\tts = time.Unix(int64(i/1000), 1000000*int64(i%1000))\n\t\t\t\tcase time.Second:\n\t\t\t\t\tts = time.Unix(int64(i), 0)\n\t\t\t\tdefault:\n\t\t\t\t\tpanic(\"invalid time unit (d). Fixme!\")\n\t\t\t\t}\n\t\t\t\tnow := m.now... |
{
"audio": "",
"image": "",
"text": "func (db *database) SinceLastUpdate() time.Duration {\n\tdb.ml.RLock()\n\tdefer",
"video": ""
} | {
"audio": "",
"image": "",
"text": " db.ml.RUnlock()\n\n\treturn db.config.now().Sub(db.last)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " db.ml.Unlock()\n\n\tif db.err != nil {\n\t\tclose(db.readyCh)\n\t}\n\tdb.err = nil\n}",
"video": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.