docstring_tokens
list
code_tokens
list
[ "returns", "the", "value", "of", "the", "{" ]
[ "return", "a", "i", "color", "4", "d", "ng", "(", "address", "(", ")", ")", ";" ]
[ "returns", "the", "value", "of", "the", "{" ]
[ "return", "a", "i", "color", "4", "d", "nb", "(", "address", "(", ")", ")", ";" ]
[ "returns", "the", "value", "of", "the", "{" ]
[ "return", "a", "i", "color", "4", "d", "na", "(", "address", "(", ")", ")", ";" ]
[ "sets", "the", "specified", "value", "to", "the", "{" ]
[ "a", "i", "color", "4", "d", "nr", "(", "address", "(", ")", ",", "value", ")", ";", "return", "this", ";" ]
[ "sets", "the", "specified", "value", "to", "the", "{" ]
[ "a", "i", "color", "4", "d", "ng", "(", "address", "(", ")", ",", "value", ")", ";", "return", "this", ";" ]
[ "sets", "the", "specified", "value", "to", "the", "{" ]
[ "a", "i", "color", "4", "d", "nb", "(", "address", "(", ")", ",", "value", ")", ";", "return", "this", ";" ]
[ "sets", "the", "specified", "value", "to", "the", "{" ]
[ "a", "i", "color", "4", "d", "na", "(", "address", "(", ")", ",", "value", ")", ";", "return", "this", ";" ]
[ "processes", "the", "parsed", "command", "line", "options" ]
[ "if", "(", "command", "line", "is", "very", "verbose", "mode", "(", ")", ")", "{", "navi", "logger", "set", "level", "(", "level", "all", ")", ";", "}", "else", "if", "(", "command", "line", "is", "verbose", "mode", "(", ")", ")", "{", "navi", "logger", "set", "level", "(", "level", "info", ")", ";", "}" ]
[ "<", "p", ">", "the", "name", "of", "the", "job", "definition", "that", "was", "deleted", "<", "/", "p", ">" ]
[ "set", "job", "name", "(", "job", "name", ")", ";", "return", "this", ";" ]
[ "setter", "for", "property", "codec", "factory" ]
[ "this", "codec", "factory", "=", "codec", "factory", ";" ]
[ "setter", "for", "property", "forward" ]
[ "int", "split", "=", "forward", "index", "of", "(", "'", ":", "'", ")", ";", "string", "host", "=", "forward", "substring", "(", "0", ",", "split", ")", ";", "int", "port", "=", "integer", "parse", "int", "(", "forward", "substring", "(", "split", "+", "1", ",", "forward", "length", "(", ")", ")", ")", ";", "this", "forward", "=", "new", "inet", "socket", "address", "(", "host", ",", "port", ")", ";" ]
[ "setter", "for", "property", "dump", "to" ]
[ "this", "dump", "to", "=", "dump", "to", ";" ]
[ "{" ]
[ "socket", "session", "config", "ssc", "=", "(", "socket", "session", "config", ")", "session", "get", "config", "(", ")", ";", "ssc", "set", "tcp", "no", "delay", "(", "true", ")", ";", "super", "session", "opened", "(", "session", ")", ";" ]
[ "gets", "the", "message", "converter", "to", "convert", "between", "rabbit", "and", "camel" ]
[ "return", "message", "converter", ";" ]
[ "sends", "the", "body", "that", "is", "on", "the", "exchange" ]
[ "new", "rabbit", "m", "q", "message", "publisher", "(", "camel", "exchange", ",", "channel", ",", "routing", "key", ",", "this", ")", "publish", "(", ")", ";" ]
[ "if", "needed", "declare", "exchange", "declare", "queue", "and", "bind", "them", "with", "routing", "key" ]
[ "declare", "support", "declare", "and", "bind", "exchanges", "and", "queues", "using", "(", "channel", ")", ";" ]
[ "if", "it", "is", "true", "the", "exchange", "will", "be", "deleted", "when", "it", "is", "no", "longer", "in", "use" ]
[ "this", "auto", "delete", "=", "auto", "delete", ";" ]
[ "get", "the", "exchange", "name" ]
[ "return", "exchange", "name", ";" ]
[ "set", "the", "exchange", "name", "(", "e", "g", "mt", "gox", ")" ]
[ "this", "exchange", "name", "=", "exchange", "name", ";" ]
[ "the", "exchange", "type", "such", "as", "direct", "or", "topic" ]
[ "this", "exchange", "type", "=", "exchange", "type", ";" ]
[ "if", "true", "the", "producer", "will", "not", "declare", "and", "bind", "a", "queue", "this", "can", "be", "used", "for", "directing", "messages", "via", "an", "existing", "routing", "key" ]
[ "this", "skip", "queue", "declare", "=", "skip", "queue", "declare", ";" ]
[ "if", "true", "the", "queue", "will", "not", "be", "bound", "to", "the", "exchange", "after", "declaring", "it" ]
[ "return", "skip", "queue", "bind", ";" ]
[ "this", "can", "be", "used", "if", "we", "need", "to", "declare", "the", "queue", "but", "not", "the", "exchange" ]
[ "this", "skip", "exchange", "declare", "=", "skip", "exchange", "declare", ";" ]
[ "if", "this", "option", "is", "set", "camel", "-", "rabbitmq", "will", "try", "to", "create", "connection", "based", "on", "the", "setting", "of", "option", "addresses", "the", "addresses", "value", "is", "a", "string", "which", "looks", "like", "server", "1", ":", "12345", "server", "2", ":", "12345" ]
[ "address", "[", "]", "address", "array", "=", "address", "parse", "addresses", "(", "addresses", ")", ";", "if", "(", "address", "array", "length", ">", "0", ")", "{", "this", "addresses", "=", "address", "array", ";", "}" ]
[ "if", "this", "option", "is", "set", "camel", "-", "rabbitmq", "will", "try", "to", "create", "connection", "based", "on", "the", "setting", "of", "option", "addresses", "the", "addresses", "value", "is", "a", "string", "which", "looks", "like", "server", "1", ":", "12345", "server", "2", ":", "12345" ]
[ "this", "addresses", "=", "addresses", ";" ]
[ "connection", "requested", "channel", "max", "(", "max", "number", "of", "channels", "offered", ")" ]
[ "this", "requested", "channel", "max", "=", "requested", "channel", "max", ";" ]
[ "connection", "requested", "frame", "max", "(", "max", "size", "of", "frame", "offered", ")" ]
[ "this", "requested", "frame", "max", "=", "requested", "frame", "max", ";" ]
[ "connection", "requested", "heartbeat", "(", "heart", "-", "beat", "in", "seconds", "offered", ")" ]
[ "this", "requested", "heartbeat", "=", "requested", "heartbeat", ";" ]
[ "connection", "client", "properties", "(", "client", "info", "used", "in", "negotiating", "with", "the", "server", ")" ]
[ "this", "client", "properties", "=", "client", "properties", ";" ]
[ "enables", "the", "quality", "of", "service", "on", "the", "rabbit", "m", "q", "consumer", "side", "you", "need", "to", "specify", "the", "option", "of", "prefetch", "size", "prefetch", "count", "prefetch", "global", "at", "the", "same", "time" ]
[ "this", "prefetch", "enabled", "=", "prefetch", "enabled", ";" ]
[ "the", "maximum", "number", "of", "messages", "that", "the", "server", "will", "deliver", "0", "if", "unlimited", "you", "need", "to", "specify", "the", "option", "of", "prefetch", "size", "prefetch", "count", "prefetch", "global", "at", "the", "same", "time" ]
[ "this", "prefetch", "count", "=", "prefetch", "count", ";" ]
[ "if", "the", "settings", "should", "be", "applied", "to", "the", "entire", "channel", "rather", "than", "each", "consumer", "you", "need", "to", "specify", "the", "option", "of", "prefetch", "size", "prefetch", "count", "prefetch", "global", "at", "the", "same", "time" ]
[ "this", "prefetch", "global", "=", "prefetch", "global", ";" ]
[ "if", "the", "option", "is", "true", "camel", "declare", "the", "exchange", "and", "queue", "name", "and", "bind", "them", "together", "if", "the", "option", "is", "false", "camel", "won", "t", "declare", "the", "exchange", "and", "queue", "name", "on", "the", "server" ]
[ "this", "declare", "=", "declare", ";" ]
[ "get", "maximum", "number", "of", "opened", "channel", "in", "pool" ]
[ "return", "channel", "pool", "max", "size", ";" ]
[ "set", "the", "maximum", "number", "of", "milliseconds", "to", "wait", "for", "a", "channel", "from", "the", "pool" ]
[ "this", "channel", "pool", "max", "wait", "=", "channel", "pool", "max", "wait", ";" ]
[ "key", "/", "value", "args", "for", "configuring", "the", "exchange", "parameters", "when", "declare", "=", "true" ]
[ "this", "exchange", "args", "=", "exchange", "args", ";" ]
[ "key", "/", "value", "args", "for", "configuring", "the", "queue", "parameters", "when", "declare", "=", "true" ]
[ "this", "queue", "args", "=", "queue", "args", ";" ]
[ "key", "/", "value", "args", "for", "configuring", "the", "queue", "binding", "parameters", "when", "declare", "=", "true" ]
[ "this", "binding", "args", "=", "binding", "args", ";" ]
[ "set", "the", "configurer", "for", "setting", "the", "queue", "args", "in", "channel", "queue", "declare" ]
[ "this", "queue", "args", "configurer", "=", "queue", "args", "configurer", ";" ]
[ "set", "the", "configurer", "for", "setting", "the", "exchange", "args", "in", "channel", "exchange", "declare" ]
[ "this", "exchange", "args", "configurer", "=", "exchange", "args", "configurer", ";" ]
[ "allows", "to", "use", "a", "timeout", "for", "the", "netty", "producer", "when", "calling", "a", "remote", "server", "by", "default", "no", "timeout", "is", "in", "use", "the", "value", "is", "in", "milli", "seconds", "so", "eg", "30000", "is", "30", "seconds", "the", "request", "timeout", "is", "using", "netty", "s", "read", "timeout", "handler", "to", "trigger", "the", "timeout" ]
[ "this", "request", "timeout", "=", "request", "timeout", ";" ]
[ "set", "request", "timeout", "checker", "interval", "for", "in", "out", "exchange" ]
[ "this", "request", "timeout", "checker", "interval", "=", "request", "timeout", "checker", "interval", ";" ]
[ "when", "true", "the", "message", "will", "be", "published", "with", "<", "a", "href", "=", "https", ":", "/", "/", "www", "rabbitmq", "com", "/", "confirms", "html", ">", "publisher", "acknowledgements", "<", "/", "a", ">", "turned", "on" ]
[ "return", "publisher", "acknowledgements", ";" ]
[ "the", "amount", "of", "time", "in", "milliseconds", "to", "wait", "for", "a", "basic", "ack", "response", "from", "rabbit", "m", "q", "server" ]
[ "return", "publisher", "acknowledgements", "timeout", ";" ]
[ "when", "true", "an", "exception", "will", "be", "thrown", "when", "the", "message", "cannot", "be", "delivered", "(", "basic", "return", ")", "and", "the", "message", "is", "marked", "as", "mandatory", "publisher", "acknowledgement", "will", "also", "be", "activated", "in", "this", "case", "see", "also", "<", "a", "href", "=", "https", ":", "/", "/", "www", "rabbitmq", "com", "/", "confirms", "html", ">", "publisher", "acknowledgements", "<", "/", "a", ">", "-", "when", "will", "messages", "be", "confirmed" ]
[ "return", "guaranteed", "deliveries", ";" ]
[ "get", "reply", "to", "type", "for", "in", "out", "exchange" ]
[ "return", "reply", "to", "type", ";" ]
[ "exclusive", "queues", "may", "only", "be", "accessed", "by", "the", "current", "connection", "and", "are", "deleted", "when", "that", "connection", "closes" ]
[ "this", "exclusive", "=", "exclusive", ";" ]
[ "request", "exclusive", "access", "to", "the", "queue", "(", "meaning", "only", "this", "consumer", "can", "access", "the", "queue", ")", "this", "is", "useful", "when", "you", "want", "a", "long", "-", "lived", "shared", "queue", "to", "be", "temporarily", "accessible", "by", "just", "one", "consumer" ]
[ "this", "exclusive", "consumer", "=", "exclusive", "consumer", ";" ]
[ "allow", "pass", "null", "values", "to", "header" ]
[ "return", "allow", "null", "headers", ";" ]
[ "passive", "queues", "depend", "on", "the", "queue", "already", "to", "be", "available", "at", "rabbit", "m", "q" ]
[ "this", "passive", "=", "passive", ";" ]
[ "takes", "the", "element", "type", "and", "wraps", "it", "in", "an", "array", "type", "for", "every", "array", "creation", "level" ]
[ "type", "result", "=", "element", "type", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "levels", "size", "(", ")", ";", "i", "+", "+", ")", "{", "result", "=", "new", "array", "type", "(", "result", ",", "array", "type", "origin", "type", ",", "new", "node", "list", "<", ">", "(", ")", ")", ";", "}", "return", "result", ";" ]
[ "sets", "this", "type", "to", "this", "class", "and", "try", "to", "import", "it", "to", "the", "{", "@", "link", "compilation", "unit", "}", "if", "needed" ]
[ "try", "add", "import", "to", "parent", "compilation", "unit", "(", "type", "class", ")", ";", "return", "set", "element", "type", "(", "parse", "type", "(", "type", "class", "get", "simple", "name", "(", ")", ")", ")", ";" ]
[ "get", "an", "xml", "representation", "of", "the", "given", "rule", "matches" ]
[ "return", "get", "xml", "start", "(", "lang", ",", "mother", "tongue", ")", "+", "rule", "matches", "to", "xml", "snippet", "(", "rule", "matches", ",", "text", ",", "context", "size", ")", "+", "get", "xml", "end", "(", ")", ";" ]
[ "get", "an", "xml", "representation", "of", "the", "given", "rule", "matches" ]
[ "return", "get", "xml", "start", "(", "lang", ",", "null", ")", "+", "rule", "matches", "to", "xml", "snippet", "(", "rule", "matches", ",", "text", ",", "context", "size", ")", "+", "get", "xml", "end", "(", ")", ";" ]
[ "<", "p", ">", "the", "name", "of", "the", "stream", "to", "modify", "<", "/", "p", ">" ]
[ "set", "stream", "name", "(", "stream", "name", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "new", "retention", "period", "of", "the", "stream", "in", "hours", "must", "be", "more", "than", "the", "current", "retention", "period", "<", "/", "p", ">" ]
[ "set", "retention", "period", "hours", "(", "retention", "period", "hours", ")", ";", "return", "this", ";" ]
[ "sets", "name", "of", "this", "process" ]
[ "if", "(", "!", "name", "equals", "(", "this", "name", ")", ")", "{", "if", "(", "this", "name", "!", "=", "null", ")", "{", "name", "history", "add", "(", "this", "name", ")", ";", "}", "this", "name", "=", "name", ";", "}" ]
[ "starts", "an", "operation" ]
[ "operation", "o", "=", "new", "operation", "(", "this", ",", "loaded", "class", ",", "time", ",", "operation", "count", "+", "+", ",", "type", ")", ";", "operations", "add", "(", "o", ")", ";", "linked", "list", "<", "operation", ">", "stack", "=", "stacks", "get", "(", "thread", "id", ")", ";", "if", "(", "stack", "=", "=", "null", ")", "{", "stack", "=", "new", "linked", "list", "<", "operation", ">", "(", ")", ";", "stacks", "put", "(", "thread", "id", ",", "stack", ")", ";", "}", "if", "(", "!", "stack", "is", "empty", "(", ")", ")", "{", "stack", "get", "last", "(", ")", "subops", "add", "(", "o", ")", ";", "}", "stack", "add", "(", "o", ")", ";" ]
[ "ends", "an", "operation" ]
[ "linked", "list", "<", "operation", ">", "stack", "=", "stacks", "get", "(", "thread", "id", ")", ";", "if", "(", "stack", "=", "=", "null", "|", "|", "stack", "is", "empty", "(", ")", ")", "{", "did", "not", "start", "(", "class", "name", ")", ";", "return", "null", ";", "}", "operation", "o", "=", "stack", "get", "last", "(", ")", ";", "if", "(", "loaded", "class", "!", "=", "o", "loaded", "class", ")", "{", "did", "not", "start", "(", "class", "name", ")", ";", "return", "null", ";", "}", "stack", "remove", "last", "(", ")", ";", "o", "end", "time", "nanos", "=", "time", ";", "return", "o", ";" ]
[ "prints", "this", "process", "tree", "to", "stdout" ]
[ "print", "(", "\"", "\"", ")", ";" ]
[ "return", "the", "binding", "qualifier", "of", "the", "given", "{" ]
[ "return", "get", "annotation", "mirror", "with", "meta", "annotation", "(", "element", ",", "qualifier", "class", ")", ";" ]
[ "return", "the", "binding", "qualifier", "of", "the", "given", "{" ]
[ "return", "get", "annotation", "mirror", "with", "meta", "annotation", "(", "element", ",", "map", "key", "class", ")", ";" ]
[ "return", "the", "annotation", "with", "given", "meta", "annotation", "null", "if", "none" ]
[ "for", "(", "annotation", "mirror", "annotation", "mirror", ":", "element", "get", "annotation", "mirrors", "(", ")", ")", "{", "declared", "type", "annotation", "type", "=", "annotation", "mirror", "get", "annotation", "type", "(", ")", ";", "if", "(", "annotation", "type", "as", "element", "(", ")", "get", "annotation", "(", "meta", "annotation", ")", "!", "=", "null", ")", "{", "return", "annotation", "mirror", ";", "}", "}", "return", "null", ";" ]
[ "returns", "type", "for", "the", "key", "in", "the", "given", "annotation", "null", "if", "key", "does", "not", "exist" ]
[ "for", "(", "map", "entry", "<", "?", "extends", "executable", "element", ",", "?", "extends", "annotation", "value", ">", "entry", ":", "annotation", "mirror", "get", "element", "values", "(", ")", "entry", "set", "(", ")", ")", "{", "if", "(", "entry", "get", "key", "(", ")", "get", "simple", "name", "(", ")", "content", "equals", "(", "key", ")", ")", "{", "return", "entry", "get", "key", "(", ")", "get", "return", "type", "(", ")", ";", "}", "}", "return", "null", ";" ]
[ "returns", "type", "mirror", "of", "given", "element", "of", "the", "given", "mirror", "null", "if", "the", "element", "does", "not", "exist" ]
[ "for", "(", "map", "entry", "<", "?", "extends", "executable", "element", ",", "?", "extends", "annotation", "value", ">", "entry", ":", "annotation", "mirror", "get", "element", "values", "(", ")", "entry", "set", "(", ")", ")", "{", "if", "(", "entry", "get", "key", "(", ")", "get", "simple", "name", "(", ")", "content", "equals", "(", "key", ")", ")", "{", "return", "entry", "get", "key", "(", ")", "get", "return", "type", "(", ")", ";", "}", "}", "return", "null", ";" ]
[ "returns", "specified", "annotation", "null", "if", "not", "exist" ]
[ "return", "get", "annotation", "mirror", "(", "element", ",", "annotation", "class", "get", "canonical", "name", "(", ")", ")", ";" ]
[ "returns", "specified", "annotation", "null", "if", "not", "exist" ]
[ "for", "(", "annotation", "mirror", "annotation", "mirror", ":", "element", "get", "annotation", "mirrors", "(", ")", ")", "{", "declared", "type", "annotation", "type", "=", "annotation", "mirror", "get", "annotation", "type", "(", ")", ";", "if", "(", "(", "(", "type", "element", ")", "annotation", "type", "as", "element", "(", ")", ")", "get", "qualified", "name", "(", ")", "content", "equals", "(", "annotation", ")", ")", "{", "return", "annotation", "mirror", ";", "}", "}", "return", "null", ";" ]
[ "return", "the", "first", "scope", "of", "the", "given", "{" ]
[ "set", "<", "declared", "type", ">", "scopes", "=", "get", "scope", "types", "(", "element", ")", ";", "declared", "type", "scope", "=", "iterables", "get", "first", "(", "scopes", ",", "null", ")", ";", "if", "(", "scope", "=", "=", "null", ")", "{", "return", "null", ";", "}", "if", "(", "is", "reusable", "scope", "(", "scope", ")", ")", "{", "return", "null", ";", "}", "if", "(", "scope", "alias", "condenser", "=", "=", "null", ")", "{", "return", "scope", ";", "}", "return", "(", "declared", "type", ")", "scope", "alias", "condenser", "get", "core", "scope", "for", "alias", "(", "(", "type", "element", ")", "scope", "as", "element", "(", ")", ")", "as", "type", "(", ")", ";" ]
[ "return", "the", "scopes", "of", "the", "given", "{" ]
[ "set", "<", "declared", "type", ">", "result", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "for", "(", "annotation", "mirror", "annotation", "mirror", ":", "element", "get", "annotation", "mirrors", "(", ")", ")", "{", "declared", "type", "annotation", "type", "=", "annotation", "mirror", "get", "annotation", "type", "(", ")", ";", "if", "(", "is", "scope", "type", "element", "(", "(", "type", "element", ")", "annotation", "type", "as", "element", "(", ")", ")", ")", "{", "result", "add", "(", "annotation", "type", ")", ";", "}", "}", "return", "result", ";" ]
[ "return", "the", "scope", "elements", "of", "the", "given", "{" ]
[ "set", "<", "declared", "type", ">", "result", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "for", "(", "annotation", "mirror", "annotation", "mirror", ":", "element", "get", "annotation", "mirrors", "(", ")", ")", "{", "declared", "type", "annotation", "type", "=", "annotation", "mirror", "get", "annotation", "type", "(", ")", ";", "if", "(", "is", "scope", "type", "element", "(", "(", "type", "element", ")", "annotation", "type", "as", "element", "(", ")", ")", ")", "{", "result", "add", "(", "annotation", "type", ")", ";", "}", "}", "return", "sets", "new", "hash", "set", "(", "collections", "2", "transform", "(", "result", ",", "f", "-", ">", "(", "type", "element", ")", "f", "as", "element", "(", ")", ")", ")", ";" ]
[ "return", "if", "the", "given", "{" ]
[ "return", "element", "get", "annotation", "(", "scope", "class", ")", "!", "=", "null", ";" ]
[ "returns", "whether", "the", "given", "element", "is", "a" ]
[ "return", "element", "get", "kind", "(", ")", "equals", "(", "element", "kind", "method", ")", "&", "&", "has", "annotation", "mirror", "(", "element", ",", "provides", "class", ")", ";" ]
[ "returns", "specified", "annotation", "null", "does", "not", "exist" ]
[ "return", "get", "annotation", "mirror", "(", "element", ",", "annotation", ")", "!", "=", "null", ";" ]
[ "returns", "a", "{" ]
[ "annotation", "spec", "qualifier", "=", "dependency", "key", "get", "qualifier", "(", ")", ";", "type", "name", "type", "name", "=", "specialize", "if", "needed", "(", "dependency", "key", "get", "type", "name", "(", ")", ",", "map", ")", ";", "return", "binding", "key", "get", "(", "type", "name", ",", "qualifier", ")", ";" ]
[ "returns", "true", "if", "the", "given", "type", "can", "be", "bound", "to", "some", "type", "note", ":", "this", "should", "not", "be", "used", "with", "raw", "type", "of", "generic", "type" ]
[ "if", "(", "type", "name", "instanceof", "parameterized", "type", "name", ")", "{", "for", "(", "type", "name", "t", ":", "(", "(", "parameterized", "type", "name", ")", "type", "name", ")", "type", "arguments", ")", "{", "if", "(", "!", "is", "bindable", "(", "t", ")", ")", "{", "return", "false", ";", "}", "}", "return", "true", ";", "}", "else", "if", "(", "type", "name", "instanceof", "class", "name", ")", "{", "return", "true", ";", "}", "else", "if", "(", "type", "name", "instanceof", "wildcard", "type", "name", ")", "{", "return", "true", ";", "}", "else", "return", "type", "name", "is", "primitive", "(", ")", ";" ]
[ "returns", "return", "type", "element", "if", "it", "is", "type", "kind", "declared", "null", "otherwise" ]
[ "type", "mirror", "type", "mirror", "=", "executable", "element", "get", "return", "type", "(", ")", ";", "if", "(", "!", "type", "mirror", "get", "kind", "(", ")", "equals", "(", "type", "kind", "declared", ")", ")", "{", "return", "null", ";", "}", "return", "(", "type", "element", ")", "(", "(", "declared", "type", ")", "type", "mirror", ")", "as", "element", "(", ")", ";" ]
[ "returns", "whether", "the", "given", "{" ]
[ "return", "has", "annotation", "mirror", "(", "element", ",", "inject", "class", ")", ";" ]
[ "return", "if", "the" ]
[ "preconditions", "check", "argument", "(", "is", "binds", "optional", "of", "(", "dependency", "infos", ")", ")", ";", "binding", "key", "element", "key", "=", "get", "element", "key", "for", "parameterized", "binding", "(", "iterables", "get", "only", "element", "(", "dependency", "infos", ")", "get", "dependant", "(", ")", ")", ";", "return", "get", "dependency", "info", "(", "dependency", "map", ",", "element", "key", ")", "!", "=", "null", ";" ]
[ "returns", "if", "key", "is", "a", "map", "with", "type", "variables" ]
[ "type", "name", "type", "name", "=", "key", "get", "type", "name", "(", ")", ";", "if", "(", "!", "(", "type", "name", "instanceof", "parameterized", "type", "name", ")", ")", "{", "return", "false", ";", "}", "parameterized", "type", "name", "parameterized", "type", "name", "=", "(", "parameterized", "type", "name", ")", "type", "name", ";", "return", "parameterized", "type", "name", "raw", "type", "equals", "(", "class", "name", "get", "(", "map", "class", ")", ")", ";" ]
[ "returns", "if", "key", "is", "a", "set", "with", "type", "variables" ]
[ "type", "name", "type", "name", "=", "key", "get", "type", "name", "(", ")", ";", "if", "(", "!", "(", "type", "name", "instanceof", "parameterized", "type", "name", ")", ")", "{", "return", "false", ";", "}", "parameterized", "type", "name", "parameterized", "type", "name", "=", "(", "parameterized", "type", "name", ")", "type", "name", ";", "return", "parameterized", "type", "name", "raw", "type", "equals", "(", "class", "name", "get", "(", "set", "class", ")", ")", ";" ]
[ "return", "{" ]
[ "parameterized", "type", "name", "parameterized", "type", "name", "=", "(", "parameterized", "type", "name", ")", "key", "get", "type", "name", "(", ")", ";", "type", "name", "type", "name", "=", "iterables", "get", "only", "element", "(", "parameterized", "type", "name", "type", "arguments", ")", ";", "annotation", "spec", "qualifier", "=", "key", "get", "qualifier", "(", ")", ";", "return", "binding", "key", "get", "(", "type", "name", ",", "qualifier", ")", ";" ]
[ "changes", "give", "tree", "to", "{" ]
[ "set", "multimap", "<", "t", ",", "t", ">", "parent", "to", "children", "map", "=", "hash", "multimap", "create", "(", ")", ";", "for", "(", "map", "entry", "<", "t", ",", "t", ">", "entry", ":", "child", "to", "parent", "map", "entry", "set", "(", ")", ")", "{", "parent", "to", "children", "map", "put", "(", "entry", "get", "value", "(", ")", ",", "entry", "get", "key", "(", ")", ")", ";", "}", "return", "parent", "to", "children", "map", ";" ]
[ "returns", "width", "-", "first", "ordered", "component", "from", "the", "give", "map" ]
[ "list", "<", "t", ">", "result", "=", "new", "array", "list", "<", ">", "(", ")", ";", "set", "multimap", "<", "t", ",", "t", ">", "parent", "to", "children", "map", "=", "reverse", "tree", "(", "child", "to", "parent", "map", ")", ";", "t", "root", "element", "=", "iterables", "get", "only", "element", "(", "sets", "difference", "(", "sets", "new", "hash", "set", "(", "child", "to", "parent", "map", "values", "(", ")", ")", ",", "child", "to", "parent", "map", "key", "set", "(", ")", ")", ")", ";", "result", "add", "(", "root", "element", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "result", "size", "(", ")", ";", "i", "+", "+", ")", "{", "result", "add", "all", "(", "parent", "to", "children", "map", "get", "(", "result", "get", "(", "i", ")", ")", ")", ";", "}", "return", "result", ";" ]
[ "sorts", "by", "first", "key", "type", "name", "then", "key", "qualifier" ]
[ "ordering", "<", "binding", "key", ">", "ordering", "=", "new", "ordering", "<", "binding", "key", ">", "(", ")", "{", "@", "override", "public", "int", "compare", "(", "binding", "key", "left", ",", "binding", "key", "right", ")", "{", "int", "result", "=", "left", "get", "type", "name", "(", ")", "to", "string", "(", ")", "compare", "to", "(", "right", "get", "type", "name", "(", ")", "to", "string", "(", ")", ")", ";", "if", "(", "result", "!", "=", "0", ")", "{", "return", "result", ";", "}", "return", "left", "get", "qualifier", "(", ")", "to", "string", "(", ")", "compare", "to", "(", "right", "get", "qualifier", "(", ")", "to", "string", "(", ")", ")", ";", "}", "}", ";", "return", "ordering", "immutable", "sorted", "copy", "(", "keys", ")", ";" ]
[ "adds", "set", "method", "for", "type", "to", "builder" ]
[ "add", "set", "method", "(", "types", ",", "elements", ",", "builder", "parent", "class", "name", ",", "builder", ",", "type", ",", "null", ")", ";" ]
[ "returns", "whether", "the", "give", "class", "is", "a", "dagger", "{" ]
[ "return", "clazz", "get", "annotation", "(", "module", "class", ")", "!", "=", "null", ";" ]
[ "returns", "whether", "the", "given", "{" ]
[ "return", "t", "get", "annotation", "(", "provides", "class", ")", "!", "=", "null", ";" ]
[ "returns", "whether", "the", "given", "annotation", "is", "a", "{" ]
[ "return", "annotation", "annotation", "type", "(", ")", "get", "annotation", "(", "qualifier", "class", ")", "!", "=", "null", ";" ]
[ "returns", "qualifier", "annotation", "for", "the", "given", "method", "null", "if", "none" ]
[ "for", "(", "annotation", "annotation", ":", "accessible", "object", "get", "annotations", "(", ")", ")", "{", "if", "(", "is", "qualifier", "annotation", "(", "annotation", ")", ")", "{", "return", "annotation", ";", "}", "}", "return", "null", ";" ]
[ "returns", "qualifier", "annotation", "for", "the", "given", "method", "null", "if", "none" ]
[ "for", "(", "annotation", "mirror", "annotation", "mirror", ":", "element", "get", "annotation", "mirrors", "(", ")", ")", "{", "declared", "type", "annotation", "type", "=", "annotation", "mirror", "get", "annotation", "type", "(", ")", ";", "if", "(", "annotation", "type", "as", "element", "(", ")", "get", "annotation", "(", "qualifier", "class", ")", "!", "=", "null", ")", "{", "return", "annotation", "type", ";", "}", "}", "return", "null", ";" ]
[ "returns", "the", "injected", "ctor", "null", "if", "none" ]
[ "constructor", "<", "?", ">", "[", "]", "ctors", "=", "clazz", "get", "declared", "constructors", "(", ")", ";", "for", "(", "constructor", "<", "?", ">", "ctor", ":", "ctors", ")", "{", "if", "(", "is", "injected", "(", "ctor", ")", ")", "{", "return", "ctor", ";", "}", "}", "return", "null", ";" ]
[ "returns", "whether", "the", "given", "{" ]
[ "annotation", "[", "]", "annotations", "=", "accessible", "object", "get", "annotations", "(", ")", ";", "for", "(", "annotation", "annotation", ":", "annotations", ")", "{", "class", "<", "?", ">", "type", "=", "annotation", "annotation", "type", "(", ")", ";", "if", "(", "type", "get", "name", "(", ")", "equals", "(", "inject", "class", "get", "name", "(", ")", ")", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";" ]
[ "returns", "{" ]
[ "set", "<", "class", "<", "?", ">", ">", "result", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "for", "(", "class", "<", "?", ">", "module", ":", "modules", ")", "{", "result", "add", "all", "(", "get", "included", "modules", "(", "module", ")", ")", ";", "}", "result", "add", "all", "(", "modules", ")", ";", "return", "result", ";" ]
[ "returns", "a", "string", "with", "the", "first", "char", "lowered", "if", "it", "is", "in", "upper", "case", "other", "return", "the", "original", "one" ]
[ "if", "(", "s", "is", "empty", "(", ")", ")", "{", "return", "s", ";", "}", "char", "c", "=", "s", "char", "at", "(", "0", ")", ";", "if", "(", "character", "is", "lower", "case", "(", "c", ")", ")", "{", "return", "s", ";", "}", "c", "=", "character", "to", "lower", "case", "(", "c", ")", ";", "return", "c", "+", "s", "substring", "(", "1", ")", ";" ]
[ "/", "*", "return", "an", "array", "including", "the", "qualifier", "annotation", "for", "each", "parameter", "null", "if", "no", "qualifier", "for", "the", "parameter", "size", "of", "returned", "array", "is", "same", "as", "the", "number", "of", "parameters" ]
[ "annotation", "[", "]", "[", "]", "annotation", "arrays", "=", "method", "get", "parameter", "annotations", "(", ")", ";", "return", "get", "parameter", "qualifier", "annotations", "(", "annotation", "arrays", ")", ";" ]
[ "returns", "a", "{" ]
[ "if", "(", "type", "name", "instanceof", "type", "variable", "name", ")", "{", "preconditions", "check", "argument", "(", "map", "contains", "key", "(", "type", "name", ")", ")", ";", "return", "map", "get", "(", "type", "name", ")", ";", "}", "else", "if", "(", "type", "name", "instanceof", "parameterized", "type", "name", ")", "{", "parameterized", "type", "name", "parameterized", "type", "name", "=", "(", "parameterized", "type", "name", ")", "type", "name", ";", "class", "name", "raw", "name", "=", "parameterized", "type", "name", "raw", "type", ";", "list", "<", "type", "name", ">", "parameter", "types", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "type", "name", "t", ":", "parameterized", "type", "name", "type", "arguments", ")", "{", "parameter", "types", "add", "(", "specialize", "if", "needed", "(", "t", ",", "map", ")", ")", ";", "}", "return", "parameterized", "type", "name", "get", "(", "raw", "name", ",", "parameter", "types", "to", "array", "(", "new", "type", "name", "[", "0", "]", ")", ")", ";", "}", "else", "{", "return", "type", "name", ";", "}" ]
[ "return", "the", "setter", "name", "for", "the", "given", "type", "from", "the", "given", "builder", "null", "if", "setter", "not", "found" ]
[ "return", "get", "builder", "setter", "name", "(", "types", ",", "element", "utils", ",", "builder", ",", "binding", "key", "get", "(", "type", ")", ")", ";" ]
[ "returns", "whether", "the", "given", "method", "is", "a" ]
[ "return", "is", "method", "(", "method", ")", "&", "&", "method", "get", "modifiers", "(", ")", "contains", "(", "modifier", "abstract", ")", "&", "&", "has", "annotation", "mirror", "(", "method", ",", "binds", "class", ")", "&", "&", "(", "(", "executable", "element", ")", "method", ")", "get", "parameters", "(", ")", "size", "(", ")", "=", "=", "1", ";" ]
[ "returns", "whether", "the", "given", "method", "is", "a" ]
[ "return", "is", "method", "(", "method", ")", "&", "&", "method", "get", "modifiers", "(", ")", "contains", "(", "modifier", "abstract", ")", "&", "&", "has", "annotation", "mirror", "(", "method", ",", "multibinds", "class", ")", "&", "&", "(", "(", "executable", "element", ")", "method", ")", "get", "parameters", "(", ")", "is", "empty", "(", ")", ";" ]
[ "returns", "super", "element", "null", "if", "no", "super" ]
[ "type", "mirror", "type", "mirror", "=", "type", "element", "get", "superclass", "(", ")", ";", "if", "(", "type", "mirror", "get", "kind", "(", ")", "equals", "(", "type", "kind", "none", ")", ")", "{", "return", "null", ";", "}", "return", "(", "type", "element", ")", "(", "(", "declared", "type", ")", "type", "mirror", ")", "as", "element", "(", ")", ";" ]