diff --git "a/datasets/javascript/test.jsonl" "b/datasets/javascript/test.jsonl" new file mode 100644--- /dev/null +++ "b/datasets/javascript/test.jsonl" @@ -0,0 +1,3291 @@ +{"repo": "axios/axios", "path": "lib/axios.js", "func_name": "createInstance", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create an instance of Axios\n\n@param {Object} defaultConfig The default config for the instance\n@return {Axios} A new instance of Axios", "docstring_tokens": ["Create", "an", "instance", "of", "Axios"], "sha": "92d231387fe2092f8736bc1746d4caa766b675f5", "url": "https://github.com/axios/axios/blob/92d231387fe2092f8736bc1746d4caa766b675f5/lib/axios.js#L15-L26", "partition": "test"} +{"repo": "axios/axios", "path": "lib/cancel/CancelToken.js", "func_name": "CancelToken", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A `CancelToken` is an object that can be used to request cancellation of an operation.\n\n@class\n@param {Function} executor The executor function.", "docstring_tokens": ["A", "CancelToken", "is", "an", "object", "that", "can", "be", "used", "to", "request", "cancellation", "of", "an", "operation", "."], "sha": "92d231387fe2092f8736bc1746d4caa766b675f5", "url": "https://github.com/axios/axios/blob/92d231387fe2092f8736bc1746d4caa766b675f5/lib/cancel/CancelToken.js#L11-L31", "partition": "test"} +{"repo": "axios/axios", "path": "lib/utils.js", "func_name": "isArrayBufferView", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determine if a value is a view on an ArrayBuffer\n\n@param {Object} val The value to test\n@returns {boolean} True if value is a view on an ArrayBuffer, otherwise false", "docstring_tokens": ["Determine", "if", "a", "value", "is", "a", "view", "on", "an", "ArrayBuffer"], "sha": "92d231387fe2092f8736bc1746d4caa766b675f5", "url": "https://github.com/axios/axios/blob/92d231387fe2092f8736bc1746d4caa766b675f5/lib/utils.js#L48-L56", "partition": "test"} +{"repo": "axios/axios", "path": "lib/utils.js", "func_name": "isStandardBrowserEnv", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determine if we're running in a standard browser environment\n\nThis allows axios to run in a web worker, and react-native.\nBoth environments support XMLHttpRequest, but not fully standard globals.\n\nweb workers:\ntypeof window -> undefined\ntypeof document -> undefined\n\nreact-native:\nnavigator.product -> 'ReactNative'\nnativescript\nnavigator.product -> 'NativeScript' or 'NS'", "docstring_tokens": ["Determine", "if", "we", "re", "running", "in", "a", "standard", "browser", "environment"], "sha": "92d231387fe2092f8736bc1746d4caa766b675f5", "url": "https://github.com/axios/axios/blob/92d231387fe2092f8736bc1746d4caa766b675f5/lib/utils.js#L183-L193", "partition": "test"} +{"repo": "axios/axios", "path": "lib/utils.js", "func_name": "forEach", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Iterate over an Array or an Object invoking a function for each item.\n\nIf `obj` is an Array callback will be called passing\nthe value, index, and complete array for each item.\n\nIf 'obj' is an Object callback will be called passing\nthe value, key, and complete object for each property.\n\n@param {Object|Array} obj The object to iterate\n@param {Function} fn The callback to invoke for each item", "docstring_tokens": ["Iterate", "over", "an", "Array", "or", "an", "Object", "invoking", "a", "function", "for", "each", "item", "."], "sha": "92d231387fe2092f8736bc1746d4caa766b675f5", "url": "https://github.com/axios/axios/blob/92d231387fe2092f8736bc1746d4caa766b675f5/lib/utils.js#L207-L232", "partition": "test"} +{"repo": "axios/axios", "path": "lib/utils.js", "func_name": "extend", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extends object a by mutably adding to it the properties of object b.\n\n@param {Object} a The object to be extended\n@param {Object} b The object to copy properties from\n@param {Object} thisArg The object to bind function to\n@return {Object} The resulting value of object a", "docstring_tokens": ["Extends", "object", "a", "by", "mutably", "adding", "to", "it", "the", "properties", "of", "object", "b", "."], "sha": "92d231387fe2092f8736bc1746d4caa766b675f5", "url": "https://github.com/axios/axios/blob/92d231387fe2092f8736bc1746d4caa766b675f5/lib/utils.js#L301-L310", "partition": "test"} +{"repo": "zeit/next.js", "path": "packages/next/taskfile-ncc.js", "func_name": "writePackageManifest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This function writes a minimal `package.json` file for a compiled package. It defines `name`, `main`, `author`, and `license`. It also defines `types`. n.b. types intended for development usage only.", "docstring_tokens": ["This", "function", "writes", "a", "minimal", "package", ".", "json", "file", "for", "a", "compiled", "package", ".", "It", "defines", "name", "main", "author", "and", "license", ".", "It", "also", "defines", "types", ".", "n", ".", "b", ".", "types", "intended", "for", "development", "usage", "only", "."], "sha": "3641f79a0f68d1093cc238b50b8d47eec1c25cfd", "url": "https://github.com/zeit/next.js/blob/3641f79a0f68d1093cc238b50b8d47eec1c25cfd/packages/next/taskfile-ncc.js#L34-L75", "partition": "test"} +{"repo": "zeit/next.js", "path": "packages/next/client/dev-error-overlay/hot-dev-client.js", "func_name": "processMessage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handle messages from the server.", "docstring_tokens": ["Handle", "messages", "from", "the", "server", "."], "sha": "3641f79a0f68d1093cc238b50b8d47eec1c25cfd", "url": "https://github.com/zeit/next.js/blob/3641f79a0f68d1093cc238b50b8d47eec1c25cfd/packages/next/client/dev-error-overlay/hot-dev-client.js#L202-L244", "partition": "test"} +{"repo": "zeit/next.js", "path": "packages/next/client/dev-error-overlay/hot-dev-client.js", "func_name": "tryApplyUpdates", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Attempt to update code on the fly, fall back to a hard reload.", "docstring_tokens": ["Attempt", "to", "update", "code", "on", "the", "fly", "fall", "back", "to", "a", "hard", "reload", "."], "sha": "3641f79a0f68d1093cc238b50b8d47eec1c25cfd", "url": "https://github.com/zeit/next.js/blob/3641f79a0f68d1093cc238b50b8d47eec1c25cfd/packages/next/client/dev-error-overlay/hot-dev-client.js#L260-L306", "partition": "test"} +{"repo": "zeit/next.js", "path": "packages/next/client/amp-dev.js", "func_name": "tryApplyUpdates", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This function reads code updates on the fly and hard reloads the page when it has changed.", "docstring_tokens": ["This", "function", "reads", "code", "updates", "on", "the", "fly", "and", "hard", "reloads", "the", "page", "when", "it", "has", "changed", "."], "sha": "3641f79a0f68d1093cc238b50b8d47eec1c25cfd", "url": "https://github.com/zeit/next.js/blob/3641f79a0f68d1093cc238b50b8d47eec1c25cfd/packages/next/client/amp-dev.js#L34-L59", "partition": "test"} +{"repo": "zeit/next.js", "path": "packages/next/client/dev-error-overlay/format-webpack-messages.js", "func_name": "formatMessage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Cleans up webpack error messages. eslint-disable-next-line no-unused-vars", "docstring_tokens": ["Cleans", "up", "webpack", "error", "messages", ".", "eslint", "-", "disable", "-", "next", "-", "line", "no", "-", "unused", "-", "vars"], "sha": "3641f79a0f68d1093cc238b50b8d47eec1c25cfd", "url": "https://github.com/zeit/next.js/blob/3641f79a0f68d1093cc238b50b8d47eec1c25cfd/packages/next/client/dev-error-overlay/format-webpack-messages.js#L37-L119", "partition": "test"} +{"repo": "everitoken/evtjs", "path": "lib/format.js", "func_name": "UDecimalPad", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Ensure a fixed number of decimal places. Safe for large numbers.\n\n@see ./format.test.js\n\n@example UDecimalPad(10.2, 3) === '10.200'\n\n@arg {number|string|object.toString} value\n@arg {number} precision - number of decimal places\n@return {string} decimal part is added and zero padded to match precision", "docstring_tokens": ["Ensure", "a", "fixed", "number", "of", "decimal", "places", ".", "Safe", "for", "large", "numbers", "."], "sha": "87d5dac3ae3205e654821c03c010e4738fc4b8a1", "url": "https://github.com/everitoken/evtjs/blob/87d5dac3ae3205e654821c03c010e4738fc4b8a1/lib/format.js#L373-L390", "partition": "test"} +{"repo": "everitoken/evtjs", "path": "src/evtLink.js", "func_name": "parseSegment", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse a segment and convert it into json.\n@param {Buffer} buffer\n@param {number} offset", "docstring_tokens": ["Parse", "a", "segment", "and", "convert", "it", "into", "json", "."], "sha": "87d5dac3ae3205e654821c03c010e4738fc4b8a1", "url": "https://github.com/everitoken/evtjs/blob/87d5dac3ae3205e654821c03c010e4738fc4b8a1/src/evtLink.js#L138-L181", "partition": "test"} +{"repo": "everitoken/evtjs", "path": "src/evtLink.js", "func_name": "parseSegments", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse a buffer to a array of segments\n@param {Buffer} buffer", "docstring_tokens": ["Parse", "a", "buffer", "to", "a", "array", "of", "segments"], "sha": "87d5dac3ae3205e654821c03c010e4738fc4b8a1", "url": "https://github.com/everitoken/evtjs/blob/87d5dac3ae3205e654821c03c010e4738fc4b8a1/src/evtLink.js#L187-L205", "partition": "test"} +{"repo": "everitoken/evtjs", "path": "src/evtLink.js", "func_name": "parseQRCode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse a everiToken's QRCode Text\n@param {string} text", "docstring_tokens": ["Parse", "a", "everiToken", "s", "QRCode", "Text"], "sha": "87d5dac3ae3205e654821c03c010e4738fc4b8a1", "url": "https://github.com/everitoken/evtjs/blob/87d5dac3ae3205e654821c03c010e4738fc4b8a1/src/evtLink.js#L211-L263", "partition": "test"} +{"repo": "everitoken/evtjs", "path": "src/evtLink.js", "func_name": "__calcKeyProvider", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculate the value of keyProvider\n@param {string | string[] | function} keyProvider\n@returns {string[]}", "docstring_tokens": ["Calculate", "the", "value", "of", "keyProvider"], "sha": "87d5dac3ae3205e654821c03c010e4738fc4b8a1", "url": "https://github.com/everitoken/evtjs/blob/87d5dac3ae3205e654821c03c010e4738fc4b8a1/src/evtLink.js#L270-L292", "partition": "test"} +{"repo": "everitoken/evtjs", "path": "src/ecc/key_utils.js", "func_name": "random32ByteBuffer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Additional forms of entropy are used. A week random number generator can run out of entropy. This should ensure even the worst random number implementation will be reasonably safe.\n\n@arg {number} [cpuEntropyBits = 0] generate entropy on the fly. This is\nnot required, entropy can be added in advanced via addEntropy or initialize().\n\n@arg {boolean} [safe = true] false for testing, otherwise this will be\ntrue to ensure initialize() was called.\n\n@return a random buffer obtained from the secure random number generator. Additional entropy is used.", "docstring_tokens": ["Additional", "forms", "of", "entropy", "are", "used", ".", "A", "week", "random", "number", "generator", "can", "run", "out", "of", "entropy", ".", "This", "should", "ensure", "even", "the", "worst", "random", "number", "implementation", "will", "be", "reasonably", "safe", "."], "sha": "87d5dac3ae3205e654821c03c010e4738fc4b8a1", "url": "https://github.com/everitoken/evtjs/blob/87d5dac3ae3205e654821c03c010e4738fc4b8a1/src/ecc/key_utils.js#L32-L50", "partition": "test"} +{"repo": "everitoken/evtjs", "path": "src/ecc/key_utils.js", "func_name": "addEntropy", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds entropy. This may be called many times while the amount of data saved\nis accumulatively reduced to 101 integers. Data is retained in RAM for the\nlife of this module.\n\n@example React \ncomponentDidMount() {\nthis.refs.MyComponent.addEventListener(\"mousemove\", this.onEntropyEvent, {capture: false, passive: true})\n}\ncomponentWillUnmount() {\nthis.refs.MyComponent.removeEventListener(\"mousemove\", this.onEntropyEvent);\n}\nonEntropyEvent = (e) => {\nif(e.type === 'mousemove')\nkey_utils.addEntropy(e.pageX, e.pageY, e.screenX, e.screenY)\nelse\nconsole.log('onEntropyEvent Unknown', e.type, e)\n}\n", "docstring_tokens": ["Adds", "entropy", ".", "This", "may", "be", "called", "many", "times", "while", "the", "amount", "of", "data", "saved", "is", "accumulatively", "reduced", "to", "101", "integers", ".", "Data", "is", "retained", "in", "RAM", "for", "the", "life", "of", "this", "module", "."], "sha": "87d5dac3ae3205e654821c03c010e4738fc4b8a1", "url": "https://github.com/everitoken/evtjs/blob/87d5dac3ae3205e654821c03c010e4738fc4b8a1/src/ecc/key_utils.js#L72-L82", "partition": "test"} +{"repo": "everitoken/evtjs", "path": "src/ecc/key_utils.js", "func_name": "cpuEntropy", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This runs in just under 1 second and ensures a minimum of cpuEntropyBits\nbits of entropy are gathered.\n\nBased on more-entropy. @see https://github.com/keybase/more-entropy/blob/master/src/generator.iced\n\n@arg {number} [cpuEntropyBits = 128]\n@return {array} counts gathered by measuring variations in the CPU speed during floating point operations.", "docstring_tokens": ["This", "runs", "in", "just", "under", "1", "second", "and", "ensures", "a", "minimum", "of", "cpuEntropyBits", "bits", "of", "entropy", "are", "gathered", "."], "sha": "87d5dac3ae3205e654821c03c010e4738fc4b8a1", "url": "https://github.com/everitoken/evtjs/blob/87d5dac3ae3205e654821c03c010e4738fc4b8a1/src/ecc/key_utils.js#L93-L123", "partition": "test"} +{"repo": "everitoken/evtjs", "path": "src/ecc/aes.js", "func_name": "cryptoJsDecrypt", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method does not use a checksum, the returned data must be validated some other way.\n\n@arg {string|Buffer} message - ciphertext binary format\n@arg {string|Buffer} key - 256bit\n@arg {string|Buffer} iv - 128bit\n\n@return {Buffer}", "docstring_tokens": ["This", "method", "does", "not", "use", "a", "checksum", "the", "returned", "data", "must", "be", "validated", "some", "other", "way", "."], "sha": "87d5dac3ae3205e654821c03c010e4738fc4b8a1", "url": "https://github.com/everitoken/evtjs/blob/87d5dac3ae3205e654821c03c010e4738fc4b8a1/src/ecc/aes.js#L122-L129", "partition": "test"} +{"repo": "everitoken/evtjs", "path": "src/ecc/key_private.js", "func_name": "initialize", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Run self-checking code and gather CPU entropy.\n\nInitialization happens once even if called multiple times.\n\n@return {Promise}", "docstring_tokens": ["Run", "self", "-", "checking", "code", "and", "gather", "CPU", "entropy", "."], "sha": "87d5dac3ae3205e654821c03c010e4738fc4b8a1", "url": "https://github.com/everitoken/evtjs/blob/87d5dac3ae3205e654821c03c010e4738fc4b8a1/src/ecc/key_private.js#L266-L276", "partition": "test"} +{"repo": "everitoken/evtjs", "path": "src/bigi/lib/bigi.js", "func_name": "montConvert", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "xR mod m", "docstring_tokens": ["xR", "mod", "m"], "sha": "87d5dac3ae3205e654821c03c010e4738fc4b8a1", "url": "https://github.com/everitoken/evtjs/blob/87d5dac3ae3205e654821c03c010e4738fc4b8a1/src/bigi/lib/bigi.js#L545-L552", "partition": "test"} +{"repo": "everitoken/evtjs", "path": "src/ecc/signature.js", "func_name": "verify", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Verify signed data.\n\n@arg {String|Buffer} data - full data\n@arg {pubkey|PublicKey} pubkey - EOSKey..\n@arg {String} [encoding = 'utf8'] - data encoding (if data is a string)\n\n@return {boolean}", "docstring_tokens": ["Verify", "signed", "data", "."], "sha": "87d5dac3ae3205e654821c03c010e4738fc4b8a1", "url": "https://github.com/everitoken/evtjs/blob/87d5dac3ae3205e654821c03c010e4738fc4b8a1/src/ecc/signature.js#L33-L40", "partition": "test"} +{"repo": "everitoken/evtjs", "path": "src/ecc/signature.js", "func_name": "recover", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recover the public key used to create this signature using full data.\n\n@arg {String|Buffer} data - full data\n@arg {String} [encoding = 'utf8'] - data encoding (if string)\n\n@return {PublicKey}", "docstring_tokens": ["Recover", "the", "public", "key", "used", "to", "create", "this", "signature", "using", "full", "data", "."], "sha": "87d5dac3ae3205e654821c03c010e4738fc4b8a1", "url": "https://github.com/everitoken/evtjs/blob/87d5dac3ae3205e654821c03c010e4738fc4b8a1/src/ecc/signature.js#L77-L85", "partition": "test"} +{"repo": "zaproxy/zaproxy", "path": "src/scripts/templates/targeted/Find HTML comments.js", "func_name": "invokeWith", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Targeted scripts can only be invoked by you, the user, eg via a right-click option on the Sites or History tabs", "docstring_tokens": ["Targeted", "scripts", "can", "only", "be", "invoked", "by", "you", "the", "user", "eg", "via", "a", "right", "-", "click", "option", "on", "the", "Sites", "or", "History", "tabs"], "sha": "688486b806508970d048228059045c9f5b6725d0", "url": "https://github.com/zaproxy/zaproxy/blob/688486b806508970d048228059045c9f5b6725d0/src/scripts/templates/targeted/Find HTML comments.js#L3-L17", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/collections/Form/FormGroup.js", "func_name": "FormGroup", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A set of fields can appear grouped together.\n@see Form", "docstring_tokens": ["A", "set", "of", "fields", "can", "appear", "grouped", "together", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/collections/Form/FormGroup.js#L18-L37", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Loader/Loader.js", "func_name": "Loader", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A loader alerts a user to wait for an activity to complete.\n@see Dimmer", "docstring_tokens": ["A", "loader", "alerts", "a", "user", "to", "wait", "for", "an", "activity", "to", "complete", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Loader/Loader.js#L19-L52", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Item/ItemContent.js", "func_name": "ItemContent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "An item can contain content.", "docstring_tokens": ["An", "item", "can", "contain", "content", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Item/ItemContent.js#L21-L45", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/collections/Table/Table.js", "func_name": "Table", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A table displays a collections of data grouped into rows.", "docstring_tokens": ["A", "table", "displays", "a", "collections", "of", "data", "grouped", "into", "rows", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/collections/Table/Table.js#L28-L116", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Rail/Rail.js", "func_name": "Rail", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A rail is used to show accompanying content outside the boundaries of the main view of a site.", "docstring_tokens": ["A", "rail", "is", "used", "to", "show", "accompanying", "content", "outside", "the", "boundaries", "of", "the", "main", "view", "of", "a", "site", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Rail/Rail.js#L19-L51", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Button/ButtonGroup.js", "func_name": "ButtonGroup", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Buttons can be grouped.", "docstring_tokens": ["Buttons", "can", "be", "grouped", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Button/ButtonGroup.js#L22-L85", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/collections/Grid/GridRow.js", "func_name": "GridRow", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A row sub-component for Grid.", "docstring_tokens": ["A", "row", "sub", "-", "component", "for", "Grid", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/collections/Grid/GridRow.js#L20-L56", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/collections/Form/FormField.js", "func_name": "FormField", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A field is a form element containing a label and an input.\n@see Form\n@see Button\n@see Checkbox\n@see Dropdown\n@see Input\n@see Radio\n@see Select\n@see Visibility", "docstring_tokens": ["A", "field", "is", "a", "form", "element", "containing", "a", "label", "and", "an", "input", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/collections/Form/FormField.js#L30-L115", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Card/CardContent.js", "func_name": "CardContent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A card can contain blocks of content or extra content meant to be formatted separately from the main content.", "docstring_tokens": ["A", "card", "can", "contain", "blocks", "of", "content", "or", "extra", "content", "meant", "to", "be", "formatted", "separately", "from", "the", "main", "content", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Card/CardContent.js#L23-L54", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Item/Item.js", "func_name": "Item", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "An item view presents large collections of site content for display.", "docstring_tokens": ["An", "item", "view", "presents", "large", "collections", "of", "site", "content", "for", "display", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Item/Item.js#L17-L45", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Comment/CommentAvatar.js", "func_name": "CommentAvatar", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A comment can contain an image or avatar.", "docstring_tokens": ["A", "comment", "can", "contain", "an", "image", "or", "avatar", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Comment/CommentAvatar.js#L17-L30", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Statistic/StatisticLabel.js", "func_name": "StatisticLabel", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A statistic can contain a label to help provide context for the presented value.", "docstring_tokens": ["A", "statistic", "can", "contain", "a", "label", "to", "help", "provide", "context", "for", "the", "presented", "value", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Statistic/StatisticLabel.js#L16-L27", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Feed/FeedMeta.js", "func_name": "FeedMeta", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A feed can contain a meta.", "docstring_tokens": ["A", "feed", "can", "contain", "a", "meta", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Feed/FeedMeta.js#L17-L38", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Container/Container.js", "func_name": "Container", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A container limits content to a maximum width.", "docstring_tokens": ["A", "container", "limits", "content", "to", "a", "maximum", "width", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Container/Container.js#L18-L36", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Step/StepGroup.js", "func_name": "StepGroup", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A set of steps.", "docstring_tokens": ["A", "set", "of", "steps", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Step/StepGroup.js#L25-L76", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Divider/Divider.js", "func_name": "Divider", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A divider visually segments content into groups.", "docstring_tokens": ["A", "divider", "visually", "segments", "content", "into", "groups", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Divider/Divider.js#L16-L50", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Header/Header.js", "func_name": "Header", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A header provides a short summary of content", "docstring_tokens": ["A", "header", "provides", "a", "short", "summary", "of", "content"], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Header/Header.js#L26-L98", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/collections/Grid/Grid.js", "func_name": "Grid", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A grid is used to harmonize negative space in a layout.", "docstring_tokens": ["A", "grid", "is", "used", "to", "harmonize", "negative", "space", "in", "a", "layout", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/collections/Grid/Grid.js#L23-L70", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/collections/Breadcrumb/Breadcrumb.js", "func_name": "Breadcrumb", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A breadcrumb is used to show hierarchy between content.", "docstring_tokens": ["A", "breadcrumb", "is", "used", "to", "show", "hierarchy", "between", "content", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/collections/Breadcrumb/Breadcrumb.js#L13-L47", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Card/CardDescription.js", "func_name": "CardDescription", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A card can contain a description with one or more paragraphs.", "docstring_tokens": ["A", "card", "can", "contain", "a", "description", "with", "one", "or", "more", "paragraphs", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Card/CardDescription.js#L18-L29", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Item/ItemGroup.js", "func_name": "ItemGroup", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A group of items.", "docstring_tokens": ["A", "group", "of", "items", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Item/ItemGroup.js#L19-L63", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/collections/Grid/GridColumn.js", "func_name": "GridColumn", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A column sub-component for Grid.", "docstring_tokens": ["A", "column", "sub", "-", "component", "for", "Grid", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/collections/Grid/GridColumn.js#L22-L64", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Item/ItemImage.js", "func_name": "ItemImage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "An item can contain an image.", "docstring_tokens": ["An", "item", "can", "contain", "an", "image", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Item/ItemImage.js#L9-L14", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Card/CardGroup.js", "func_name": "CardGroup", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A group of cards.", "docstring_tokens": ["A", "group", "of", "cards", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Card/CardGroup.js#L21-L72", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/collections/Table/TableRow.js", "func_name": "TableRow", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A table can have rows.", "docstring_tokens": ["A", "table", "can", "have", "rows", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/collections/Table/TableRow.js#L22-L65", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Feed/FeedEvent.js", "func_name": "FeedEvent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A feed contains an event.", "docstring_tokens": ["A", "feed", "contains", "an", "event", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Feed/FeedEvent.js#L12-L41", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/modules/Tab/TabPane.js", "func_name": "TabPane", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A tab pane holds the content of a tab.", "docstring_tokens": ["A", "tab", "pane", "holds", "the", "content", "of", "a", "tab", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/modules/Tab/TabPane.js#L18-L35", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/List/ListContent.js", "func_name": "ListContent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A list item can contain a content.", "docstring_tokens": ["A", "list", "item", "can", "contain", "a", "content", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/List/ListContent.js#L21-L48", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Button/ButtonOr.js", "func_name": "ButtonOr", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Button groups can contain conditionals.", "docstring_tokens": ["Button", "groups", "can", "contain", "conditionals", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Button/ButtonOr.js#L10-L17", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/collections/Table/TableCell.js", "func_name": "TableCell", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A table row can have cells.", "docstring_tokens": ["A", "table", "row", "can", "have", "cells", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/collections/Table/TableCell.js#L23-L75", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/collections/Breadcrumb/BreadcrumbDivider.js", "func_name": "BreadcrumbDivider", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A divider sub-component for Breadcrumb component.", "docstring_tokens": ["A", "divider", "sub", "-", "component", "for", "Breadcrumb", "component", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/collections/Breadcrumb/BreadcrumbDivider.js#L18-L45", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/collections/Message/MessageList.js", "func_name": "MessageList", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A message can contain a list of items.", "docstring_tokens": ["A", "message", "can", "contain", "a", "list", "of", "items", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/collections/Message/MessageList.js#L18-L29", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/collections/Table/TableFooter.js", "func_name": "TableFooter", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A table can have a footer.", "docstring_tokens": ["A", "table", "can", "have", "a", "footer", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/collections/Table/TableFooter.js#L9-L14", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Comment/CommentGroup.js", "func_name": "CommentGroup", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Comments can be grouped.", "docstring_tokens": ["Comments", "can", "be", "grouped", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Comment/CommentGroup.js#L18-L38", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Reveal/Reveal.js", "func_name": "Reveal", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A reveal displays additional content in place of previous content when activated.", "docstring_tokens": ["A", "reveal", "displays", "additional", "content", "in", "place", "of", "previous", "content", "when", "activated", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Reveal/Reveal.js#L17-L37", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Segment/Segment.js", "func_name": "Segment", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A segment is used to create a grouping of related content.", "docstring_tokens": ["A", "segment", "is", "used", "to", "create", "a", "grouping", "of", "related", "content", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Segment/Segment.js#L23-L83", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Placeholder/PlaceholderLine.js", "func_name": "PlaceholderLine", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A placeholder can contain have lines of text.", "docstring_tokens": ["A", "placeholder", "can", "contain", "have", "lines", "of", "text", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Placeholder/PlaceholderLine.js#L10-L17", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Reveal/RevealContent.js", "func_name": "RevealContent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A content sub-component for the Reveal.", "docstring_tokens": ["A", "content", "sub", "-", "component", "for", "the", "Reveal", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Reveal/RevealContent.js#L16-L34", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Feed/FeedLike.js", "func_name": "FeedLike", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A feed can contain a like element.", "docstring_tokens": ["A", "feed", "can", "contain", "a", "like", "element", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Feed/FeedLike.js#L11-L32", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Placeholder/Placeholder.js", "func_name": "Placeholder", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A placeholder is used to reserve splace for content that soon will appear in a layout.", "docstring_tokens": ["A", "placeholder", "is", "used", "to", "reserve", "splace", "for", "content", "that", "soon", "will", "appear", "in", "a", "layout", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Placeholder/Placeholder.js#L20-L37", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/modules/Accordion/Accordion.js", "func_name": "Accordion", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "An accordion allows users to toggle the display of sections of content.", "docstring_tokens": ["An", "accordion", "allows", "users", "to", "toggle", "the", "display", "of", "sections", "of", "content", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/modules/Accordion/Accordion.js#L14-L27", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Placeholder/PlaceholderImage.js", "func_name": "PlaceholderImage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A placeholder can contain an image.", "docstring_tokens": ["A", "placeholder", "can", "contain", "an", "image", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Placeholder/PlaceholderImage.js#L10-L22", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/modules/Dropdown/DropdownMenu.js", "func_name": "DropdownMenu", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A dropdown menu can contain a menu.", "docstring_tokens": ["A", "dropdown", "menu", "can", "contain", "a", "menu", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/modules/Dropdown/DropdownMenu.js#L16-L33", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/List/ListIcon.js", "func_name": "ListIcon", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A list item can contain an icon.", "docstring_tokens": ["A", "list", "item", "can", "contain", "an", "icon", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/List/ListIcon.js#L11-L17", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Advertisement/Advertisement.js", "func_name": "Advertisement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "An ad displays third-party promotional content.", "docstring_tokens": ["An", "ad", "displays", "third", "-", "party", "promotional", "content", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Advertisement/Advertisement.js#L16-L35", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Statistic/StatisticGroup.js", "func_name": "StatisticGroup", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A group of statistics.", "docstring_tokens": ["A", "group", "of", "statistics", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Statistic/StatisticGroup.js#L20-L56", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Statistic/Statistic.js", "func_name": "Statistic", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A statistic emphasizes the current value of an attribute.", "docstring_tokens": ["A", "statistic", "emphasizes", "the", "current", "value", "of", "an", "attribute", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Statistic/Statistic.js#L23-L75", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Segment/SegmentGroup.js", "func_name": "SegmentGroup", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A group of segments can be formatted to appear together.", "docstring_tokens": ["A", "group", "of", "segments", "can", "be", "formatted", "to", "appear", "together", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Segment/SegmentGroup.js#L18-L40", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/collections/Table/TableHeaderCell.js", "func_name": "TableHeaderCell", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A table can have a header cell.", "docstring_tokens": ["A", "table", "can", "have", "a", "header", "cell", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/collections/Table/TableHeaderCell.js#L11-L17", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Feed/Feed.js", "func_name": "Feed", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A feed presents user activity chronologically.", "docstring_tokens": ["A", "feed", "presents", "user", "activity", "chronologically", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Feed/Feed.js#L20-L47", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Label/LabelGroup.js", "func_name": "LabelGroup", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A label can be grouped.", "docstring_tokens": ["A", "label", "can", "be", "grouped", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Label/LabelGroup.js#L17-L37", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Feed/FeedExtra.js", "func_name": "FeedExtra", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A feed can contain an extra content.", "docstring_tokens": ["A", "feed", "can", "contain", "an", "extra", "content", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Feed/FeedExtra.js#L18-L50", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/modules/Dropdown/DropdownDivider.js", "func_name": "DropdownDivider", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A dropdown menu can contain dividers to separate related content.", "docstring_tokens": ["A", "dropdown", "menu", "can", "contain", "dividers", "to", "separate", "related", "content", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/modules/Dropdown/DropdownDivider.js#L10-L17", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/views/Feed/FeedSummary.js", "func_name": "FeedSummary", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A feed can contain a summary.", "docstring_tokens": ["A", "feed", "can", "contain", "a", "summary", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/views/Feed/FeedSummary.js#L18-L40", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Step/StepContent.js", "func_name": "StepContent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A step can contain a content.", "docstring_tokens": ["A", "step", "can", "contain", "a", "content", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Step/StepContent.js#L18-L45", "partition": "test"} +{"repo": "Semantic-Org/Semantic-UI-React", "path": "src/elements/Image/Image.js", "func_name": "Image", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "An image is a graphic representation of something.\n@see Icon", "docstring_tokens": ["An", "image", "is", "a", "graphic", "representation", "of", "something", "."], "sha": "c42f7351df35ba1861f1dce2b01c6861a4011075", "url": "https://github.com/Semantic-Org/Semantic-UI-React/blob/c42f7351df35ba1861f1dce2b01c6861a4011075/src/elements/Image/Image.js#L28-L109", "partition": "test"} +{"repo": "liabru/matter-js", "path": "src/render/Render.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the pixel ratio of the canvas.\n@method _getPixelRatio\n@private\n@param {HTMLElement} canvas\n@return {Number} pixel ratio", "docstring_tokens": ["Gets", "the", "pixel", "ratio", "of", "the", "canvas", "."], "sha": "2ec247b7af1c6b5da6ee05c73274ed5822c73503", "url": "https://github.com/liabru/matter-js/blob/2ec247b7af1c6b5da6ee05c73274ed5822c73503/src/render/Render.js#L1348-L1356", "partition": "test"} +{"repo": "liabru/matter-js", "path": "src/render/Render.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Applies the background to the canvas using CSS.\n@method applyBackground\n@private\n@param {render} render\n@param {string} background", "docstring_tokens": ["Applies", "the", "background", "to", "the", "canvas", "using", "CSS", "."], "sha": "2ec247b7af1c6b5da6ee05c73274ed5822c73503", "url": "https://github.com/liabru/matter-js/blob/2ec247b7af1c6b5da6ee05c73274ed5822c73503/src/render/Render.js#L1385-L1394", "partition": "test"} +{"repo": "liabru/matter-js", "path": "src/render/RenderPixi.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a body sprite\n@method _createBodySprite\n@private\n@param {RenderPixi} render\n@param {body} body\n@return {PIXI.Sprite} sprite\n@deprecated", "docstring_tokens": ["Creates", "a", "body", "sprite"], "sha": "2ec247b7af1c6b5da6ee05c73274ed5822c73503", "url": "https://github.com/liabru/matter-js/blob/2ec247b7af1c6b5da6ee05c73274ed5822c73503/src/render/RenderPixi.js#L420-L430", "partition": "test"} +{"repo": "liabru/matter-js", "path": "src/render/RenderPixi.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a body primitive\n@method _createBodyPrimitive\n@private\n@param {RenderPixi} render\n@param {body} body\n@return {PIXI.Graphics} graphics\n@deprecated", "docstring_tokens": ["Creates", "a", "body", "primitive"], "sha": "2ec247b7af1c6b5da6ee05c73274ed5822c73503", "url": "https://github.com/liabru/matter-js/blob/2ec247b7af1c6b5da6ee05c73274ed5822c73503/src/render/RenderPixi.js#L441-L495", "partition": "test"} +{"repo": "liabru/matter-js", "path": "src/body/Body.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialises body properties.\n@method _initProperties\n@private\n@param {body} body\n@param {} [options]", "docstring_tokens": ["Initialises", "body", "properties", "."], "sha": "2ec247b7af1c6b5da6ee05c73274ed5822c73503", "url": "https://github.com/liabru/matter-js/blob/2ec247b7af1c6b5da6ee05c73274ed5822c73503/src/body/Body.js#L141-L175", "partition": "test"} +{"repo": "react-dnd/react-dnd", "path": "packages/documentation/gatsby-node.js", "func_name": "createPages", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Dynamically creates pages in the static website", "docstring_tokens": ["Dynamically", "creates", "pages", "in", "the", "static", "website"], "sha": "5fefffc8c6c1ceced3aa0356fd869354ad74734a", "url": "https://github.com/react-dnd/react-dnd/blob/5fefffc8c6c1ceced3aa0356fd869354ad74734a/packages/documentation/gatsby-node.js#L6-L44", "partition": "test"} +{"repo": "jsdom/jsdom", "path": "lib/jsdom/living/events/UIEvent-impl.js", "func_name": "isWindow", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Until webidl2js gains support for checking for Window, this would have to do.", "docstring_tokens": ["Until", "webidl2js", "gains", "support", "for", "checking", "for", "Window", "this", "would", "have", "to", "do", "."], "sha": "43f2089142f57cddc3983e6429c34351699625f2", "url": "https://github.com/jsdom/jsdom/blob/43f2089142f57cddc3983e6429c34351699625f2/lib/jsdom/living/events/UIEvent-impl.js#L8-L21", "partition": "test"} +{"repo": "jsdom/jsdom", "path": "lib/jsdom/living/events/EventTarget-impl.js", "func_name": "normalizeEventHandlerOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Normalize the event listeners options argument in order to get always a valid options object\n@param {Object} options - user defined options\n@param {Array} defaultBoolKeys - boolean properties that should belong to the options object\n@returns {Object} object containing at least the \"defaultBoolKeys\"", "docstring_tokens": ["Normalize", "the", "event", "listeners", "options", "argument", "in", "order", "to", "get", "always", "a", "valid", "options", "object"], "sha": "43f2089142f57cddc3983e6429c34351699625f2", "url": "https://github.com/jsdom/jsdom/blob/43f2089142f57cddc3983e6429c34351699625f2/lib/jsdom/living/events/EventTarget-impl.js#L352-L373", "partition": "test"} +{"repo": "avwo/whistle", "path": "docs/script/docify.js", "func_name": "sammary", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "generate `SUMMARY.md` by `config.json`", "docstring_tokens": ["generate", "SUMMARY", ".", "md", "by", "config", ".", "json"], "sha": "b419da1d6185a006327f2ce267667f11c0d4109e", "url": "https://github.com/avwo/whistle/blob/b419da1d6185a006327f2ce267667f11c0d4109e/docs/script/docify.js#L136-L159", "partition": "test"} +{"repo": "avwo/whistle", "path": "biz/webui/htdocs/src/js/components/react-json-tree/JSONIterableNode.js", "func_name": "createItemString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the \"n Items\" string for this node, generating and caching it if it hasn't been created yet.", "docstring_tokens": ["Returns", "the", "n", "Items", "string", "for", "this", "node", "generating", "and", "caching", "it", "if", "it", "hasn", "t", "been", "created", "yet", "."], "sha": "b419da1d6185a006327f2ce267667f11c0d4109e", "url": "https://github.com/avwo/whistle/blob/b419da1d6185a006327f2ce267667f11c0d4109e/biz/webui/htdocs/src/js/components/react-json-tree/JSONIterableNode.js#L35-L63", "partition": "test"} +{"repo": "acornjs/acorn", "path": "acorn/src/tokentype.js", "func_name": "kw", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Succinct definitions of keyword token types", "docstring_tokens": ["Succinct", "definitions", "of", "keyword", "token", "types"], "sha": "073a12c8285353866dfd74de5d88c543bd3ae20d", "url": "https://github.com/acornjs/acorn/blob/073a12c8285353866dfd74de5d88c543bd3ae20d/acorn/src/tokentype.js#L49-L52", "partition": "test"} +{"repo": "acornjs/acorn", "path": "acorn/src/identifier.js", "func_name": "isInAstralSet", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This has a complexity linear to the value of the code. The assumption is that looking up astral identifier characters is rare.", "docstring_tokens": ["This", "has", "a", "complexity", "linear", "to", "the", "value", "of", "the", "code", ".", "The", "assumption", "is", "that", "looking", "up", "astral", "identifier", "characters", "is", "rare", "."], "sha": "073a12c8285353866dfd74de5d88c543bd3ae20d", "url": "https://github.com/acornjs/acorn/blob/073a12c8285353866dfd74de5d88c543bd3ae20d/acorn/src/identifier.js#L53-L61", "partition": "test"} +{"repo": "carbon-design-system/carbon-components", "path": "packages/themes/tasks/build.js", "func_name": "transformMetadata", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Transform token names to formats expected by Sassdoc for descriptions and\naliases\n@param {Object} - token metadata\n@return {Object} token metadata", "docstring_tokens": ["Transform", "token", "names", "to", "formats", "expected", "by", "Sassdoc", "for", "descriptions", "and", "aliases"], "sha": "e5ae58647d32aaae687e811d3f61e988cab1c302", "url": "https://github.com/carbon-design-system/carbon-components/blob/e5ae58647d32aaae687e811d3f61e988cab1c302/packages/themes/tasks/build.js#L203-L231", "partition": "test"} +{"repo": "carbon-design-system/carbon-components", "path": "packages/bundler/src/commands/measure.js", "func_name": "findPackageFor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Rough heuristic used to find the package name for a given file. Idea is to move upwards looking for directories that have a `package.json` file. Once we find one, we report back the name from that file.", "docstring_tokens": ["Rough", "heuristic", "used", "to", "find", "the", "package", "name", "for", "a", "given", "file", ".", "Idea", "is", "to", "move", "upwards", "looking", "for", "directories", "that", "have", "a", "package", ".", "json", "file", ".", "Once", "we", "find", "one", "we", "report", "back", "the", "name", "from", "that", "file", "."], "sha": "e5ae58647d32aaae687e811d3f61e988cab1c302", "url": "https://github.com/carbon-design-system/carbon-components/blob/e5ae58647d32aaae687e811d3f61e988cab1c302/packages/bundler/src/commands/measure.js#L89-L107", "partition": "test"} +{"repo": "carbon-design-system/carbon-components", "path": "packages/components/src/globals/js/misc/svg-toggle-class.js", "func_name": "svgToggleClass", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Copyright IBM Corp. 2016, 2018\n\nThis source code is licensed under the Apache-2.0 license found in the\nLICENSE file in the root directory of this source tree.", "docstring_tokens": ["Copyright", "IBM", "Corp", ".", "2016", "2018"], "sha": "e5ae58647d32aaae687e811d3f61e988cab1c302", "url": "https://github.com/carbon-design-system/carbon-components/blob/e5ae58647d32aaae687e811d3f61e988cab1c302/packages/components/src/globals/js/misc/svg-toggle-class.js#L8-L26", "partition": "test"} +{"repo": "carbon-design-system/carbon-components", "path": "packages/icons/src/tools.js", "func_name": "flatMapAsync", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Copyright IBM Corp. 2018, 2018\n\nThis source code is licensed under the Apache-2.0 license found in the\nLICENSE file in the root directory of this source tree.", "docstring_tokens": ["Copyright", "IBM", "Corp", ".", "2018", "2018"], "sha": "e5ae58647d32aaae687e811d3f61e988cab1c302", "url": "https://github.com/carbon-design-system/carbon-components/blob/e5ae58647d32aaae687e811d3f61e988cab1c302/packages/icons/src/tools.js#L8-L11", "partition": "test"} +{"repo": "carbon-design-system/carbon-components", "path": "packages/bundler/src/tools/sassdoc.js", "func_name": "createJson", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a JSON file of documented Sass items\n@see {@link http://sassdoc.com/configuration/|Sassdoc configuration}\n@param {string} sourceDir - source directory\n@param {Object} config - configuration object\n@return {Object} json object", "docstring_tokens": ["Create", "a", "JSON", "file", "of", "documented", "Sass", "items"], "sha": "e5ae58647d32aaae687e811d3f61e988cab1c302", "url": "https://github.com/carbon-design-system/carbon-components/blob/e5ae58647d32aaae687e811d3f61e988cab1c302/packages/bundler/src/tools/sassdoc.js#L41-L52", "partition": "test"} +{"repo": "carbon-design-system/carbon-components", "path": "packages/bundler/src/tools/sassdoc.js", "func_name": "dedupeArray", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove duplicate objects in `require` and `usedBy` arrays. Array objects have\n`name` and `type` properties, sometimes nested in a `context` object.\n@param {Array} arr - array with potential duplicates\n@return {Array} deduped array", "docstring_tokens": ["Remove", "duplicate", "objects", "in", "require", "and", "usedBy", "arrays", ".", "Array", "objects", "have", "name", "and", "type", "properties", "sometimes", "nested", "in", "a", "context", "object", "."], "sha": "e5ae58647d32aaae687e811d3f61e988cab1c302", "url": "https://github.com/carbon-design-system/carbon-components/blob/e5ae58647d32aaae687e811d3f61e988cab1c302/packages/bundler/src/tools/sassdoc.js#L60-L75", "partition": "test"} +{"repo": "carbon-design-system/carbon-components", "path": "packages/bundler/src/tools/sassdoc.js", "func_name": "createMarkdown", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a markdown file of documented Sass items\n@see {@link http://sassdoc.com/configuration/|Sassdoc configuration}\n@param {string} sourceDir - source directory\n@param {Object} config - configuration object\n@return {string} markdown", "docstring_tokens": ["Create", "a", "markdown", "file", "of", "documented", "Sass", "items"], "sha": "e5ae58647d32aaae687e811d3f61e988cab1c302", "url": "https://github.com/carbon-design-system/carbon-components/blob/e5ae58647d32aaae687e811d3f61e988cab1c302/packages/bundler/src/tools/sassdoc.js#L347-L391", "partition": "test"} +{"repo": "carbon-design-system/carbon-components", "path": "packages/components/src/components/date-picker/date-picker.js", "func_name": "flattenOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "`this.options` create-component mix-in creates prototype chain so that `options` given in constructor argument wins over the one defined in static `options` property 'Flatpickr' wants flat structure of object instead", "docstring_tokens": ["this", ".", "options", "create", "-", "component", "mix", "-", "in", "creates", "prototype", "chain", "so", "that", "options", "given", "in", "constructor", "argument", "wins", "over", "the", "one", "defined", "in", "static", "options", "property", "Flatpickr", "wants", "flat", "structure", "of", "object", "instead"], "sha": "e5ae58647d32aaae687e811d3f61e988cab1c302", "url": "https://github.com/carbon-design-system/carbon-components/blob/e5ae58647d32aaae687e811d3f61e988cab1c302/packages/components/src/components/date-picker/date-picker.js#L22-L29", "partition": "test"} +{"repo": "barbajs/barba", "path": "packages/core/__web__/scripts/transitions/hooks.js", "func_name": "append", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Append list item\n\n@param {*} str List item content\n@param {string} prefix Prefix for global\n@returns {void}", "docstring_tokens": ["Append", "list", "item"], "sha": "f450491297648a684e0f50d8335384340d8b5254", "url": "https://github.com/barbajs/barba/blob/f450491297648a684e0f50d8335384340d8b5254/packages/core/__web__/scripts/transitions/hooks.js#L12-L17", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/libpannellum.js", "func_name": "multiresNodeSort", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sorting method for multires nodes.\n@private\n@param {MultiresNode} a - First node.\n@param {MultiresNode} b - Second node.\n@returns {number} Base tiles first, then higher timestamp first.", "docstring_tokens": ["Sorting", "method", "for", "multires", "nodes", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/libpannellum.js#L779-L790", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/libpannellum.js", "func_name": "multiresNodeRenderSort", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sorting method for multires node rendering.\n@private\n@param {MultiresNode} a - First node.\n@param {MultiresNode} b - Second node.\n@returns {number} Lower zoom levels first, then closest to center first.", "docstring_tokens": ["Sorting", "method", "for", "multires", "node", "rendering", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/libpannellum.js#L799-L807", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/libpannellum.js", "func_name": "multiresDraw", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Draws multires nodes.\n@private", "docstring_tokens": ["Draws", "multires", "nodes", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/libpannellum.js#L813-L838", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/libpannellum.js", "func_name": "MultiresNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates new multires node.\n@constructor\n@private\n@param {number[]} vertices - Node's verticies.\n@param {string} side - Node's cube face.\n@param {number} level - Node's zoom level.\n@param {number} x - Node's x position.\n@param {number} y - Node's y position.\n@param {string} path - Node's path.", "docstring_tokens": ["Creates", "new", "multires", "node", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/libpannellum.js#L851-L858", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/libpannellum.js", "func_name": "rotateMatrix", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Rotates a 3x3 matrix.\n@private\n@param {number[]} m - Matrix to rotate.\n@param {number[]} angle - Angle to rotate by in radians.\n@param {string} axis - Axis to rotate about (`x`, `y`, or `z`).\n@returns {number[]} Rotated matrix.", "docstring_tokens": ["Rotates", "a", "3x3", "matrix", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/libpannellum.js#L1040-L1064", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/libpannellum.js", "func_name": "makeMatrix4", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Turns a 3x3 matrix into a 4x4 matrix.\n@private\n@param {number[]} m - Input matrix.\n@returns {number[]} Expanded matrix.", "docstring_tokens": ["Turns", "a", "3x3", "matrix", "into", "a", "4x4", "matrix", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/libpannellum.js#L1072-L1079", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/libpannellum.js", "func_name": "makePersp", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a perspective matrix.\n@private\n@param {number} hfov - Desired horizontal field of view.\n@param {number} aspect - Desired aspect ratio.\n@param {number} znear - Near distance.\n@param {number} zfar - Far distance.\n@returns {number[]} Generated perspective matrix.", "docstring_tokens": ["Creates", "a", "perspective", "matrix", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/libpannellum.js#L1105-L1114", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/libpannellum.js", "func_name": "processLoadedTexture", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Processes a loaded texture image into a WebGL texture.\n@private\n@param {Image} img - Input image.\n@param {WebGLTexture} tex - Texture to bind image to.", "docstring_tokens": ["Processes", "a", "loaded", "texture", "image", "into", "a", "WebGL", "texture", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/libpannellum.js#L1122-L1130", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/libpannellum.js", "func_name": "checkZoom", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Finds and applies optimal multires zoom level.\n@private\n@param {number} hfov - Horizontal field of view to check at.", "docstring_tokens": ["Finds", "and", "applies", "optimal", "multires", "zoom", "level", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/libpannellum.js#L1210-L1221", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/libpannellum.js", "func_name": "rotatePersp", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Rotates perspective matrix.\n@private\n@param {number[]} p - Perspective matrix.\n@param {number[]} r - Rotation matrix.\n@returns {number[]} Rotated matrix.", "docstring_tokens": ["Rotates", "perspective", "matrix", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/libpannellum.js#L1230-L1237", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/libpannellum.js", "func_name": "checkInView", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks if a vertex is visible.\n@private\n@param {number[]} m - Rotated perspective matrix.\n@param {number[]} v - Input vertex.\n@returns {number} 1 or -1 if the vertex is or is not visible,\nrespectively.", "docstring_tokens": ["Checks", "if", "a", "vertex", "is", "visible", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/libpannellum.js#L1264-L1282", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "onImageLoad", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create renderer and initialize event listeners once image is loaded.\n@private", "docstring_tokens": ["Create", "renderer", "and", "initialize", "event", "listeners", "once", "image", "is", "loaded", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L466-L515", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extract the requested tag from the XMP data", "docstring_tokens": ["Extract", "the", "requested", "tag", "from", "the", "XMP", "data"], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L541-L554", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "anError", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Displays an error message.\n@private\n@param {string} errorMsg - Error message to display. If not specified, a\ngeneric WebGL error is displayed.", "docstring_tokens": ["Displays", "an", "error", "message", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L612-L622", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "clearError", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Hides error message display.\n@private", "docstring_tokens": ["Hides", "error", "message", "display", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L628-L635", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "aboutMessage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Displays about message.\n@private\n@param {MouseEvent} event - Right click location", "docstring_tokens": ["Displays", "about", "message", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L642-L653", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "mousePosition", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculate mouse position relative to top left of viewer container.\n@private\n@param {MouseEvent} event - Mouse event to use in calculation\n@returns {Object} Calculated X and Y coordinates", "docstring_tokens": ["Calculate", "mouse", "position", "relative", "to", "top", "left", "of", "viewer", "container", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L661-L668", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "onDocumentMouseDown", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Event handler for mouse clicks. Initializes panning. Prints center and click\nlocation coordinates when hot spot debugging is enabled.\n@private\n@param {MouseEvent} event - Document mouse down event.", "docstring_tokens": ["Event", "handler", "for", "mouse", "clicks", ".", "Initializes", "panning", ".", "Prints", "center", "and", "click", "location", "coordinates", "when", "hot", "spot", "debugging", "is", "enabled", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L676-L719", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "onDocumentDoubleClick", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Event handler for double clicks. Zooms in at clicked location\n@private\n@param {MouseEvent} event - Document mouse down event.", "docstring_tokens": ["Event", "handler", "for", "double", "clicks", ".", "Zooms", "in", "at", "clicked", "location"], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L726-L733", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "mouseEventToCoords", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculate panorama pitch and yaw from location of mouse event.\n@private\n@param {MouseEvent} event - Document mouse down event.\n@returns {number[]} [pitch, yaw]", "docstring_tokens": ["Calculate", "panorama", "pitch", "and", "yaw", "from", "location", "of", "mouse", "event", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L741-L760", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "onDocumentMouseMove", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Event handler for mouse moves. Pans center of view.\n@private\n@param {MouseEvent} event - Document mouse move event.", "docstring_tokens": ["Event", "handler", "for", "mouse", "moves", ".", "Pans", "center", "of", "view", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L767-L785", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "onDocumentMouseUp", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Event handler for mouse up events. Stops panning.\n@private", "docstring_tokens": ["Event", "handler", "for", "mouse", "up", "events", ".", "Stops", "panning", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L791-L806", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "onDocumentTouchStart", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Event handler for touches. Initializes panning if one touch or zooming if\ntwo touches.\n@private\n@param {TouchEvent} event - Document touch start event.", "docstring_tokens": ["Event", "handler", "for", "touches", ".", "Initializes", "panning", "if", "one", "touch", "or", "zooming", "if", "two", "touches", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L814-L850", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "onDocumentTouchMove", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Event handler for touch movements. Pans center of view if one touch or\nadjusts zoom if two touches.\n@private\n@param {TouchEvent} event - Document touch move event.", "docstring_tokens": ["Event", "handler", "for", "touch", "movements", ".", "Pans", "center", "of", "view", "if", "one", "touch", "or", "adjusts", "zoom", "if", "two", "touches", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L858-L900", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "onDocumentMouseWheel", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Event handler for mouse wheel. Changes zoom.\n@private\n@param {WheelEvent} event - Document mouse wheel event.", "docstring_tokens": ["Event", "handler", "for", "mouse", "wheel", ".", "Changes", "zoom", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L982-L1008", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "onDocumentKeyPress", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Event handler for key presses. Updates list of currently pressed keys.\n@private\n@param {KeyboardEvent} event - Document key press event.", "docstring_tokens": ["Event", "handler", "for", "key", "presses", ".", "Updates", "list", "of", "currently", "pressed", "keys", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L1015-L1041", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "onDocumentKeyUp", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Event handler for key releases. Updates list of currently pressed keys.\n@private\n@param {KeyboardEvent} event - Document key up event.", "docstring_tokens": ["Event", "handler", "for", "key", "releases", ".", "Updates", "list", "of", "currently", "pressed", "keys", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L1058-L1069", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "changeKey", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Updates list of currently pressed keys.\n@private\n@param {number} keynumber - Key number.\n@param {boolean} value - Whether or not key is pressed.", "docstring_tokens": ["Updates", "list", "of", "currently", "pressed", "keys", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L1077-L1139", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "animateMove", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Animates moves.\n@param {string} axis - Axis to animate\n@private", "docstring_tokens": ["Animates", "moves", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L1298-L1310", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "animate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Animates view, using requestAnimationFrame to trigger rendering.\n@private", "docstring_tokens": ["Animates", "view", "using", "requestAnimationFrame", "to", "trigger", "rendering", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L1351-L1392", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "taitBryanToQuaternion", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Converts device orientation API Tait-Bryan angles to a quaternion.\n@private\n@param {Number} alpha - Alpha angle (in degrees)\n@param {Number} beta - Beta angle (in degrees)\n@param {Number} gamma - Gamma angle (in degrees)\n@returns {Quaternion} Orientation quaternion", "docstring_tokens": ["Converts", "device", "orientation", "API", "Tait", "-", "Bryan", "angles", "to", "a", "quaternion", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L1529-L1540", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "computeQuaternion", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Computes current device orientation quaternion from device orientation API\nTait-Bryan angles.\n@private\n@param {Number} alpha - Alpha angle (in degrees)\n@param {Number} beta - Beta angle (in degrees)\n@param {Number} gamma - Gamma angle (in degrees)\n@returns {Quaternion} Orientation quaternion", "docstring_tokens": ["Computes", "current", "device", "orientation", "quaternion", "from", "device", "orientation", "API", "Tait", "-", "Bryan", "angles", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L1551-L1559", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "orientationListener", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Event handler for device orientation API. Controls pointing.\n@private\n@param {DeviceOrientationEvent} event - Device orientation event.", "docstring_tokens": ["Event", "handler", "for", "device", "orientation", "API", ".", "Controls", "pointing", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L1566-L1584", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "renderInit", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initializes renderer.\n@private", "docstring_tokens": ["Initializes", "renderer", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L1590-L1617", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "renderInitCallback", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Triggered when render initialization finishes. Handles fading between\nscenes as well as showing the compass and hotspots and hiding the loading\ndisplay.\n@private", "docstring_tokens": ["Triggered", "when", "render", "initialization", "finishes", ".", "Handles", "fading", "between", "scenes", "as", "well", "as", "showing", "the", "compass", "and", "hotspots", "and", "hiding", "the", "loading", "display", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L1625-L1659", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "createHotSpots", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates hot spot elements for the current scene.\n@private", "docstring_tokens": ["Creates", "hot", "spot", "elements", "for", "the", "current", "scene", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L1760-L1774", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "destroyHotSpots", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Destroys currently created hot spot elements.\n@private", "docstring_tokens": ["Destroys", "currently", "created", "hot", "spot", "elements", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L1780-L1796", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "renderHotSpot", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Renders hot spot, updating its position and visibility.\n@private", "docstring_tokens": ["Renders", "hot", "spot", "updating", "its", "position", "and", "visibility", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L1802-L1838", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "mergeConfig", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Merges a scene configuration into the current configuration.\n@private\n@param {string} sceneId - Identifier of scene configuration to merge in.", "docstring_tokens": ["Merges", "a", "scene", "configuration", "into", "the", "current", "configuration", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L1853-L1923", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "toggleFullscreen", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Toggles fullscreen mode.\n@private", "docstring_tokens": ["Toggles", "fullscreen", "mode", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L2076-L2104", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "onFullScreenChange", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Event handler for fullscreen changes.\n@private", "docstring_tokens": ["Event", "handler", "for", "fullscreen", "changes", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L2110-L2124", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "constrainHfov", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Clamps horzontal field of view to viewer's limits.\n@private\n@param {number} hfov - Input horizontal field of view (in degrees)\n@return {number} - Clamped horizontal field of view (in degrees)", "docstring_tokens": ["Clamps", "horzontal", "field", "of", "view", "to", "viewer", "s", "limits", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L2154-L2182", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "stopAnimation", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Stops auto rotation and animated moves.\n@private", "docstring_tokens": ["Stops", "auto", "rotation", "and", "animated", "moves", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L2198-L2202", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "load", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Loads panorama.\n@private", "docstring_tokens": ["Loads", "panorama", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L2208-L2218", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "loadScene", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Loads scene.\n@private\n@param {string} sceneId - Identifier of scene configuration to merge in.\n@param {number} targetPitch - Pitch viewer should be centered on once scene loads.\n@param {number} targetYaw - Yaw viewer should be centered on once scene loads.\n@param {number} targetHfov - HFOV viewer should use once scene loads.\n@param {boolean} [fadeDone] - If `true`, fade setup is skipped.", "docstring_tokens": ["Loads", "scene", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L2229-L2301", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "stopOrientation", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Stop using device orientation.\n@private", "docstring_tokens": ["Stop", "using", "device", "orientation", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L2307-L2311", "partition": "test"} +{"repo": "mpetroff/pannellum", "path": "src/js/pannellum.js", "func_name": "fireEvent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fire listeners attached to specified event.\n@private\n@param {string} [type] - Type of event to fire listeners for.", "docstring_tokens": ["Fire", "listeners", "attached", "to", "specified", "event", "."], "sha": "59893bcea4629be059ad3e59c3fa5bde438d292b", "url": "https://github.com/mpetroff/pannellum/blob/59893bcea4629be059ad3e59c3fa5bde438d292b/src/js/pannellum.js#L3037-L3044", "partition": "test"} +{"repo": "typekit/webfontloader", "path": "tools/jasmine/jasmine.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Waits for the latchFunction to return true before proceeding to the next block.\n\n@param {Function} latchFunction\n@param {String} optional_timeoutMessage\n@param {Number} optional_timeout", "docstring_tokens": ["Waits", "for", "the", "latchFunction", "to", "return", "true", "before", "proceeding", "to", "the", "next", "block", "."], "sha": "117e48d521d6408f78cbfe4d23923cc828fdf576", "url": "https://github.com/typekit/webfontloader/blob/117e48d521d6408f78cbfe4d23923cc828fdf576/tools/jasmine/jasmine.js#L558-L560", "partition": "test"} +{"repo": "brython-dev/brython", "path": "www/src/py_dom.js", "func_name": "$getMouseOffset", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "cross-browser utility functions", "docstring_tokens": ["cross", "-", "browser", "utility", "functions"], "sha": "e437d320fce3c649c3028f2f7a8533eeae906440", "url": "https://github.com/brython-dev/brython/blob/e437d320fce3c649c3028f2f7a8533eeae906440/www/src/py_dom.js#L11-L16", "partition": "test"} +{"repo": "brython-dev/brython", "path": "www/src/py_string.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "converts val to float and sets precision if missing", "docstring_tokens": ["converts", "val", "to", "float", "and", "sets", "precision", "if", "missing"], "sha": "e437d320fce3c649c3028f2f7a8533eeae906440", "url": "https://github.com/brython-dev/brython/blob/e437d320fce3c649c3028f2f7a8533eeae906440/www/src/py_string.js#L366-L379", "partition": "test"} +{"repo": "brython-dev/brython", "path": "www/src/py_int.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "code for operands & | ^", "docstring_tokens": ["code", "for", "operands", "&", "|", "^"], "sha": "e437d320fce3c649c3028f2f7a8533eeae906440", "url": "https://github.com/brython-dev/brython/blob/e437d320fce3c649c3028f2f7a8533eeae906440/www/src/py_int.js#L507-L525", "partition": "test"} +{"repo": "brython-dev/brython", "path": "www/src/py_int.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "code for + and -", "docstring_tokens": ["code", "for", "+", "and", "-"], "sha": "e437d320fce3c649c3028f2f7a8533eeae906440", "url": "https://github.com/brython-dev/brython/blob/e437d320fce3c649c3028f2f7a8533eeae906440/www/src/py_int.js#L536-L568", "partition": "test"} +{"repo": "formio/angular-formio", "path": "tools/gulp/inline-resources.js", "func_name": "inlineResourcesFromString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Inline resources from a string content.\n@param content {string} The source file's content.\n@param urlResolver {Function} A resolver that takes a URL and return a path.\n@returns {string} The content with resources inlined.", "docstring_tokens": ["Inline", "resources", "from", "a", "string", "content", "."], "sha": "127eb556cb8fa810cdf06b3d7b80901f9ac055f9", "url": "https://github.com/formio/angular-formio/blob/127eb556cb8fa810cdf06b3d7b80901f9ac055f9/tools/gulp/inline-resources.js#L64-L71", "partition": "test"} +{"repo": "formio/angular-formio", "path": "tools/gulp/inline-resources.js", "func_name": "buildSass", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "build sass content to css\n@param content {string} the css content\n@param sourceFile {string} the scss file sourceFile\n@return {string} the generated css, empty string if error occured", "docstring_tokens": ["build", "sass", "content", "to", "css"], "sha": "127eb556cb8fa810cdf06b3d7b80901f9ac055f9", "url": "https://github.com/formio/angular-formio/blob/127eb556cb8fa810cdf06b3d7b80901f9ac055f9/tools/gulp/inline-resources.js#L123-L138", "partition": "test"} +{"repo": "formio/angular-formio", "path": "src/resource/resource.routes.js", "func_name": "FormioResourceRoutes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The routes used to define a resource.", "docstring_tokens": ["The", "routes", "used", "to", "define", "a", "resource", "."], "sha": "127eb556cb8fa810cdf06b3d7b80901f9ac055f9", "url": "https://github.com/formio/angular-formio/blob/127eb556cb8fa810cdf06b3d7b80901f9ac055f9/src/resource/resource.routes.js#L12-L47", "partition": "test"} +{"repo": "SOHU-Co/kafka-node", "path": "lib/baseProducer.js", "func_name": "BaseProducer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Provides common functionality for a kafka producer\n\n@param {Client} client A kafka client object to use for the producer\n@param {Object} [options] An object containing configuration options\n@param {Number} [options.requireAcks=1] Configuration for when to consider a message as acknowledged.\n
  • 0 = No ack required
  • \n
  • 1 = Leader ack required
  • \n
  • -1 = All in sync replicas ack required
  • \n\n@param {Number} [options.ackTimeoutMs=100] The amount of time in milliseconds to wait for all acks before considered\nthe message as errored\n@param {Number} [defaultPartitionType] The default partitioner type\n@param {Object} [customPartitioner] a custom partitinoer to use of the form: function (partitions, key)\n@constructor", "docstring_tokens": ["Provides", "common", "functionality", "for", "a", "kafka", "producer"], "sha": "707348d9a9881782f3a390fdcc6362d35cfe24c0", "url": "https://github.com/SOHU-Co/kafka-node/blob/707348d9a9881782f3a390fdcc6362d35cfe24c0/lib/baseProducer.js#L55-L77", "partition": "test"} +{"repo": "codemanki/cloudscraper", "path": "lib/sandbox.js", "func_name": "Context", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Global context used to evaluate standard IUAM JS challenge", "docstring_tokens": ["Global", "context", "used", "to", "evaluate", "standard", "IUAM", "JS", "challenge"], "sha": "c5b576af9f918d990d6ccedea07a7e4f837dc88f", "url": "https://github.com/codemanki/cloudscraper/blob/c5b576af9f918d990d6ccedea07a7e4f837dc88f/lib/sandbox.js#L19-L50", "partition": "test"} +{"repo": "codemanki/cloudscraper", "path": "docs/examples/solve-recaptcha-v2.js", "func_name": "alternative", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "An example handler with destructuring arguments", "docstring_tokens": ["An", "example", "handler", "with", "destructuring", "arguments"], "sha": "c5b576af9f918d990d6ccedea07a7e4f837dc88f", "url": "https://github.com/codemanki/cloudscraper/blob/c5b576af9f918d990d6ccedea07a7e4f837dc88f/docs/examples/solve-recaptcha-v2.js#L19-L24", "partition": "test"} +{"repo": "codemanki/cloudscraper", "path": "index.js", "func_name": "performRequest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This function is wrapped to ensure that we get new options on first call. The options object is reused in subsequent calls when calling it directly.", "docstring_tokens": ["This", "function", "is", "wrapped", "to", "ensure", "that", "we", "get", "new", "options", "on", "first", "call", ".", "The", "options", "object", "is", "reused", "in", "subsequent", "calls", "when", "calling", "it", "directly", "."], "sha": "c5b576af9f918d990d6ccedea07a7e4f837dc88f", "url": "https://github.com/codemanki/cloudscraper/blob/c5b576af9f918d990d6ccedea07a7e4f837dc88f/index.js#L101-L141", "partition": "test"} +{"repo": "codemanki/cloudscraper", "path": "index.js", "func_name": "onRequestResponse", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The argument convention is options first where possible, options always before response, and body always after response.", "docstring_tokens": ["The", "argument", "convention", "is", "options", "first", "where", "possible", "options", "always", "before", "response", "and", "body", "always", "after", "response", "."], "sha": "c5b576af9f918d990d6ccedea07a7e4f837dc88f", "url": "https://github.com/codemanki/cloudscraper/blob/c5b576af9f918d990d6ccedea07a7e4f837dc88f/index.js#L145-L178", "partition": "test"} +{"repo": "codemanki/cloudscraper", "path": "index.js", "func_name": "onCaptcha", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parses the reCAPTCHA form and hands control over to the user", "docstring_tokens": ["Parses", "the", "reCAPTCHA", "form", "and", "hands", "control", "over", "to", "the", "user"], "sha": "c5b576af9f918d990d6ccedea07a7e4f837dc88f", "url": "https://github.com/codemanki/cloudscraper/blob/c5b576af9f918d990d6ccedea07a7e4f837dc88f/index.js#L347-L435", "partition": "test"} +{"repo": "codemanki/cloudscraper", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The callback used to green light form submission", "docstring_tokens": ["The", "callback", "used", "to", "green", "light", "form", "submission"], "sha": "c5b576af9f918d990d6ccedea07a7e4f837dc88f", "url": "https://github.com/codemanki/cloudscraper/blob/c5b576af9f918d990d6ccedea07a7e4f837dc88f/index.js#L409-L416", "partition": "test"} +{"repo": "algolia/vue-instantsearch", "path": "docs/plugins/assets.js", "func_name": "assets", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Metalsmith plugin to include static assets.\n\n@param {Object} userOptions (optional)\n@property {String} source Path to copy static assets from (relative to working directory). Defaults to './public'\n@property {String} destination Path to copy static assets to (relative to destination directory). Defaults to '.'\n@return {Function} a Metalsmith plugin", "docstring_tokens": ["Metalsmith", "plugin", "to", "include", "static", "assets", "."], "sha": "2a21b5226908f1f71c9ac28372de56d01eda813d", "url": "https://github.com/algolia/vue-instantsearch/blob/2a21b5226908f1f71c9ac28372de56d01eda813d/docs/plugins/assets.js#L33-L79", "partition": "test"} +{"repo": "algolia/vue-instantsearch", "path": "docs/assets/js/fix-sidebar.js", "func_name": "getStartStopBoundaries", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Defines the limits where to start or stop the stickiness\n@param {HTMLElement} parent the outer container of the sidebar\n@param {HTMLElement} sidebar the sidebar\n@param {number} topOffset an optional top offset for sticky menu", "docstring_tokens": ["Defines", "the", "limits", "where", "to", "start", "or", "stop", "the", "stickiness"], "sha": "2a21b5226908f1f71c9ac28372de56d01eda813d", "url": "https://github.com/algolia/vue-instantsearch/blob/2a21b5226908f1f71c9ac28372de56d01eda813d/docs/assets/js/fix-sidebar.js#L42-L57", "partition": "test"} +{"repo": "expressjs/generator", "path": "bin/express-cli.js", "func_name": "around", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Install an around function; AOP.", "docstring_tokens": ["Install", "an", "around", "function", ";", "AOP", "."], "sha": "d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d", "url": "https://github.com/expressjs/generator/blob/d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d/bin/express-cli.js#L70-L78", "partition": "test"} +{"repo": "expressjs/generator", "path": "bin/express-cli.js", "func_name": "before", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Install a before function; AOP.", "docstring_tokens": ["Install", "a", "before", "function", ";", "AOP", "."], "sha": "d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d", "url": "https://github.com/expressjs/generator/blob/d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d/bin/express-cli.js#L84-L91", "partition": "test"} +{"repo": "expressjs/generator", "path": "bin/express-cli.js", "func_name": "copyTemplate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Copy file from template directory.", "docstring_tokens": ["Copy", "file", "from", "template", "directory", "."], "sha": "d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d", "url": "https://github.com/expressjs/generator/blob/d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d/bin/express-cli.js#L113-L115", "partition": "test"} +{"repo": "expressjs/generator", "path": "bin/express-cli.js", "func_name": "copyTemplateMulti", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Copy multiple files from template directory.", "docstring_tokens": ["Copy", "multiple", "files", "from", "template", "directory", "."], "sha": "d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d", "url": "https://github.com/expressjs/generator/blob/d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d/bin/express-cli.js#L121-L127", "partition": "test"} +{"repo": "expressjs/generator", "path": "bin/express-cli.js", "func_name": "createAppName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create an app name from a directory path, fitting npm naming requirements.\n\n@param {String} pathName", "docstring_tokens": ["Create", "an", "app", "name", "from", "a", "directory", "path", "fitting", "npm", "naming", "requirements", "."], "sha": "d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d", "url": "https://github.com/expressjs/generator/blob/d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d/bin/express-cli.js#L367-L372", "partition": "test"} +{"repo": "expressjs/generator", "path": "bin/express-cli.js", "func_name": "emptyDirectory", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if the given directory `dir` is empty.\n\n@param {String} dir\n@param {Function} fn", "docstring_tokens": ["Check", "if", "the", "given", "directory", "dir", "is", "empty", "."], "sha": "d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d", "url": "https://github.com/expressjs/generator/blob/d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d/bin/express-cli.js#L381-L386", "partition": "test"} +{"repo": "expressjs/generator", "path": "bin/express-cli.js", "func_name": "exit", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Graceful exit for async STDIO", "docstring_tokens": ["Graceful", "exit", "for", "async", "STDIO"], "sha": "d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d", "url": "https://github.com/expressjs/generator/blob/d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d/bin/express-cli.js#L392-L412", "partition": "test"} +{"repo": "expressjs/generator", "path": "bin/express-cli.js", "func_name": "loadTemplate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Load template file.", "docstring_tokens": ["Load", "template", "file", "."], "sha": "d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d", "url": "https://github.com/expressjs/generator/blob/d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d/bin/express-cli.js#L427-L441", "partition": "test"} +{"repo": "expressjs/generator", "path": "bin/express-cli.js", "func_name": "main", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Main program.", "docstring_tokens": ["Main", "program", "."], "sha": "d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d", "url": "https://github.com/expressjs/generator/blob/d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d/bin/express-cli.js#L447-L485", "partition": "test"} +{"repo": "expressjs/generator", "path": "bin/express-cli.js", "func_name": "mkdir", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Make the given dir relative to base.\n\n@param {string} base\n@param {string} dir", "docstring_tokens": ["Make", "the", "given", "dir", "relative", "to", "base", "."], "sha": "d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d", "url": "https://github.com/expressjs/generator/blob/d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d/bin/express-cli.js#L494-L499", "partition": "test"} +{"repo": "expressjs/generator", "path": "bin/express-cli.js", "func_name": "renamedOption", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate a callback function for commander to warn about renamed option.\n\n@param {String} originalName\n@param {String} newName", "docstring_tokens": ["Generate", "a", "callback", "function", "for", "commander", "to", "warn", "about", "renamed", "option", "."], "sha": "d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d", "url": "https://github.com/expressjs/generator/blob/d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d/bin/express-cli.js#L508-L513", "partition": "test"} +{"repo": "expressjs/generator", "path": "bin/express-cli.js", "func_name": "warning", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Display a warning similar to how errors are displayed by commander.\n\n@param {String} message", "docstring_tokens": ["Display", "a", "warning", "similar", "to", "how", "errors", "are", "displayed", "by", "commander", "."], "sha": "d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d", "url": "https://github.com/expressjs/generator/blob/d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d/bin/express-cli.js#L521-L527", "partition": "test"} +{"repo": "expressjs/generator", "path": "bin/express-cli.js", "func_name": "write", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "echo str > file.\n\n@param {String} file\n@param {String} str", "docstring_tokens": ["echo", "str", ">", "file", "."], "sha": "d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d", "url": "https://github.com/expressjs/generator/blob/d1f3fcc6ccc7ab8986fb3438c82ab1a1f20dc50d/bin/express-cli.js#L536-L539", "partition": "test"} +{"repo": "maartenbreddels/ipyvolume", "path": "js/src/figure.js", "func_name": "bind_d3", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "similar to _.bind, except it puts this as first argument to f, followed be other arguments, and make context f's this", "docstring_tokens": ["similar", "to", "_", ".", "bind", "except", "it", "puts", "this", "as", "first", "argument", "to", "f", "followed", "be", "other", "arguments", "and", "make", "context", "f", "s", "this"], "sha": "e68b72852b61276f8e6793bc8811f5b2432a155f", "url": "https://github.com/maartenbreddels/ipyvolume/blob/e68b72852b61276f8e6793bc8811f5b2432a155f/js/src/figure.js#L39-L44", "partition": "test"} +{"repo": "callstack/haul", "path": "src/commands/bundle.js", "func_name": "adjustOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Allow config file to override the list of availiable platforms", "docstring_tokens": ["Allow", "config", "file", "to", "override", "the", "list", "of", "availiable", "platforms"], "sha": "b0b001c979f77c4a1656bfae42de0bb138858198", "url": "https://github.com/callstack/haul/blob/b0b001c979f77c4a1656bfae42de0bb138858198/src/commands/bundle.js#L114-L143", "partition": "test"} +{"repo": "callstack/haul", "path": "src/server/middleware/devToolsMiddleware.js", "func_name": "devToolsMiddleware", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Devtools middleware compatible with default React Native implementation", "docstring_tokens": ["Devtools", "middleware", "compatible", "with", "default", "React", "Native", "implementation"], "sha": "b0b001c979f77c4a1656bfae42de0bb138858198", "url": "https://github.com/callstack/haul/blob/b0b001c979f77c4a1656bfae42de0bb138858198/src/server/middleware/devToolsMiddleware.js#L49-L93", "partition": "test"} +{"repo": "vanruesc/postprocessing", "path": "demo/src/index.js", "func_name": "onLoad", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles demo load events.\n\n@private\n@param {Event} event - An event.", "docstring_tokens": ["Handles", "demo", "load", "events", "."], "sha": "43a6776c2a391ddd3539262e078b0f35b5563004", "url": "https://github.com/vanruesc/postprocessing/blob/43a6776c2a391ddd3539262e078b0f35b5563004/demo/src/index.js#L94-L101", "partition": "test"} +{"repo": "vanruesc/postprocessing", "path": "build/postprocessing.esm.js", "func_name": "prefixSubstrings", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Prefixes substrings within the given strings.\n\n@private\n@param {String} prefix - A prefix.\n@param {String[]} substrings - The substrings.\n@param {Map} strings - A collection of named strings.", "docstring_tokens": ["Prefixes", "substrings", "within", "the", "given", "strings", "."], "sha": "43a6776c2a391ddd3539262e078b0f35b5563004", "url": "https://github.com/vanruesc/postprocessing/blob/43a6776c2a391ddd3539262e078b0f35b5563004/build/postprocessing.esm.js#L2400-L2421", "partition": "test"} +{"repo": "vanruesc/postprocessing", "path": "build/postprocessing.esm.js", "func_name": "createCanvas", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new canvas from raw image data.\n\n@private\n@param {Number} width - The image width.\n@param {Number} height - The image height.\n@param {Uint8ClampedArray} data - The image data.\n@param {Number} channels - The color channels used for a single pixel.\n@return {Canvas} The canvas.", "docstring_tokens": ["Creates", "a", "new", "canvas", "from", "raw", "image", "data", "."], "sha": "43a6776c2a391ddd3539262e078b0f35b5563004", "url": "https://github.com/vanruesc/postprocessing/blob/43a6776c2a391ddd3539262e078b0f35b5563004/build/postprocessing.esm.js#L7925-L7959", "partition": "test"} +{"repo": "vanruesc/postprocessing", "path": "build/postprocessing.esm.js", "func_name": "smoothArea", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A smoothing function for small U-patterns.\n\n@private\n@param {Number} d - A smoothing factor.\n@param {Box2} b - The area that should be smoothed.\n@return {Box2} The smoothed area.", "docstring_tokens": ["A", "smoothing", "function", "for", "small", "U", "-", "patterns", "."], "sha": "43a6776c2a391ddd3539262e078b0f35b5563004", "url": "https://github.com/vanruesc/postprocessing/blob/43a6776c2a391ddd3539262e078b0f35b5563004/build/postprocessing.esm.js#L8225-L8242", "partition": "test"} +{"repo": "vanruesc/postprocessing", "path": "build/postprocessing.esm.js", "func_name": "calculateDiagonalAreaForPixel", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculates the area under the line p1 -> p2 for the pixel p using brute force\nsampling.\n\n@private\n@param {Vector2} p1 - The lower bounds of the area.\n@param {Vector2} p2 - The upper bounds of the area.\n@param {Number} pX - The X-coordinates.\n@param {Number} pY - The Y-coordinates.\n@return {Number} The amount of pixels inside the area relative to the total amount of sampled pixels.", "docstring_tokens": ["Calculates", "the", "area", "under", "the", "line", "p1", "-", ">", "p2", "for", "the", "pixel", "p", "using", "brute", "force", "sampling", "."], "sha": "43a6776c2a391ddd3539262e078b0f35b5563004", "url": "https://github.com/vanruesc/postprocessing/blob/43a6776c2a391ddd3539262e078b0f35b5563004/build/postprocessing.esm.js#L8681-L8706", "partition": "test"} +{"repo": "vanruesc/postprocessing", "path": "build/postprocessing.esm.js", "func_name": "calculateDiagonalArea", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculates the area under the line p1 -> p2. This includes the pixel and its\nopposite.\n\n@private\n@param {Number} pattern - A pattern index.\n@param {Vector2} p1 - The lower bounds of the area.\n@param {Vector2} p2 - The upper bounds of the area.\n@param {Number} left - The left distance.\n@param {Float32Array} offset - An offset.\n@param {Vector2} result - A target vector to store the area in.\n@return {Vector2} The area.", "docstring_tokens": ["Calculates", "the", "area", "under", "the", "line", "p1", "-", ">", "p2", ".", "This", "includes", "the", "pixel", "and", "its", "opposite", "."], "sha": "43a6776c2a391ddd3539262e078b0f35b5563004", "url": "https://github.com/vanruesc/postprocessing/blob/43a6776c2a391ddd3539262e078b0f35b5563004/build/postprocessing.esm.js#L8722-L8747", "partition": "test"} +{"repo": "vanruesc/postprocessing", "path": "build/postprocessing.esm.js", "func_name": "generatePatterns", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculates orthogonal or diagonal patterns for a given offset.\n\n@param {RawImageData[]} patterns - The patterns to assemble.\n@param {Number|Float32Array} offset - A pattern offset. Diagonal offsets are pairs.\n@param {Boolean} orthogonal - Whether the patterns are orthogonal or diagonal.", "docstring_tokens": ["Calculates", "orthogonal", "or", "diagonal", "patterns", "for", "a", "given", "offset", "."], "sha": "43a6776c2a391ddd3539262e078b0f35b5563004", "url": "https://github.com/vanruesc/postprocessing/blob/43a6776c2a391ddd3539262e078b0f35b5563004/build/postprocessing.esm.js#L9088-L9131", "partition": "test"} +{"repo": "vanruesc/postprocessing", "path": "build/postprocessing.esm.js", "func_name": "assemble", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Assembles orthogonal or diagonal patterns into the final area image.\n\n@param {Vector2} base - A base position.\n@param {RawImageData[]} patterns - The patterns to assemble.\n@param {Uint8Array[]} edges - Edge coordinate pairs, used for positioning.\n@param {Number} size - The pattern size.\n@param {Boolean} orthogonal - Whether the patterns are orthogonal or diagonal.\n@param {RawImageData} target - The target image data.", "docstring_tokens": ["Assembles", "orthogonal", "or", "diagonal", "patterns", "into", "the", "final", "area", "image", "."], "sha": "43a6776c2a391ddd3539262e078b0f35b5563004", "url": "https://github.com/vanruesc/postprocessing/blob/43a6776c2a391ddd3539262e078b0f35b5563004/build/postprocessing.esm.js#L9144-L9192", "partition": "test"} +{"repo": "vanruesc/postprocessing", "path": "build/postprocessing.esm.js", "func_name": "deltaRight", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Computes the delta distance to add in the last step of searches to the right.\n\n@private\n@param {Number[]} left - The left edge combination.\n@param {Number[]} top - The top edge combination.\n@return {Number} The right delta distance.", "docstring_tokens": ["Computes", "the", "delta", "distance", "to", "add", "in", "the", "last", "step", "of", "searches", "to", "the", "right", "."], "sha": "43a6776c2a391ddd3539262e078b0f35b5563004", "url": "https://github.com/vanruesc/postprocessing/blob/43a6776c2a391ddd3539262e078b0f35b5563004/build/postprocessing.esm.js#L9380-L9401", "partition": "test"} +{"repo": "vanruesc/postprocessing", "path": "src/images/smaa/utils/SMAASearchImageData.js", "func_name": "bilinear", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculates the bilinear fetch for a certain edge combination.\n\ne[0] e[1]\n\nx <-------- Sample Position: (-0.25, -0.125)\ne[2] e[3] <--- Current Pixel [3]: (0.0, 0.0)\n\n@private\n@param {Number[]} e - The edge combination.\n@return {Number} The interpolated value.", "docstring_tokens": ["Calculates", "the", "bilinear", "fetch", "for", "a", "certain", "edge", "combination", "."], "sha": "43a6776c2a391ddd3539262e078b0f35b5563004", "url": "https://github.com/vanruesc/postprocessing/blob/43a6776c2a391ddd3539262e078b0f35b5563004/src/images/smaa/utils/SMAASearchImageData.js#L64-L71", "partition": "test"} +{"repo": "italia/bootstrap-italia", "path": "src/js/plugins/timepicker.js", "func_name": "checkForm", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "TIME VALIDATION FOR DATA ENTRY", "docstring_tokens": ["TIME", "VALIDATION", "FOR", "DATA", "ENTRY"], "sha": "9d2177a1c0c731f83636d2164bd22702ef5767c2", "url": "https://github.com/italia/bootstrap-italia/blob/9d2177a1c0c731f83636d2164bd22702ef5767c2/src/js/plugins/timepicker.js#L221-L242", "partition": "test"} +{"repo": "italia/bootstrap-italia", "path": "src/js/plugins/transfer-back.js", "func_name": "resetToMove", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "ripristino stato iniziale", "docstring_tokens": ["ripristino", "stato", "iniziale"], "sha": "9d2177a1c0c731f83636d2164bd22702ef5767c2", "url": "https://github.com/italia/bootstrap-italia/blob/9d2177a1c0c731f83636d2164bd22702ef5767c2/src/js/plugins/transfer-back.js#L24-L38", "partition": "test"} +{"repo": "italia/bootstrap-italia", "path": "src/js/plugins/transfer-back.js", "func_name": "checkIfActive", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "control active check & header check", "docstring_tokens": ["control", "active", "check", "&", "header", "check"], "sha": "9d2177a1c0c731f83636d2164bd22702ef5767c2", "url": "https://github.com/italia/bootstrap-italia/blob/9d2177a1c0c731f83636d2164bd22702ef5767c2/src/js/plugins/transfer-back.js#L41-L70", "partition": "test"} +{"repo": "italia/bootstrap-italia", "path": "src/js/plugins/transfer-back.js", "func_name": "sourceControl", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "controllo elementi source", "docstring_tokens": ["controllo", "elementi", "source"], "sha": "9d2177a1c0c731f83636d2164bd22702ef5767c2", "url": "https://github.com/italia/bootstrap-italia/blob/9d2177a1c0c731f83636d2164bd22702ef5767c2/src/js/plugins/transfer-back.js#L144-L163", "partition": "test"} +{"repo": "italia/bootstrap-italia", "path": "src/js/plugins/transfer-back.js", "func_name": "targetControl", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "controllo elementi target", "docstring_tokens": ["controllo", "elementi", "target"], "sha": "9d2177a1c0c731f83636d2164bd22702ef5767c2", "url": "https://github.com/italia/bootstrap-italia/blob/9d2177a1c0c731f83636d2164bd22702ef5767c2/src/js/plugins/transfer-back.js#L166-L182", "partition": "test"} +{"repo": "italia/bootstrap-italia", "path": "src/js/plugins/transfer-back.js", "func_name": "checkToMove", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "elementi da aggiungere", "docstring_tokens": ["elementi", "da", "aggiungere"], "sha": "9d2177a1c0c731f83636d2164bd22702ef5767c2", "url": "https://github.com/italia/bootstrap-italia/blob/9d2177a1c0c731f83636d2164bd22702ef5767c2/src/js/plugins/transfer-back.js#L185-L196", "partition": "test"} +{"repo": "italia/bootstrap-italia", "path": "src/js/plugins/i-sticky/i-sticky.js", "func_name": "updateScrollPos", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Debounced scroll handling", "docstring_tokens": ["Debounced", "scroll", "handling"], "sha": "9d2177a1c0c731f83636d2164bd22702ef5767c2", "url": "https://github.com/italia/bootstrap-italia/blob/9d2177a1c0c731f83636d2164bd22702ef5767c2/src/js/plugins/i-sticky/i-sticky.js#L319-L343", "partition": "test"} +{"repo": "italia/bootstrap-italia", "path": "src/js/plugins/password-strength-meter/password-strength-meter.js", "func_name": "scoreText", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns strings based on the score given.\n\n@param int score Score base.\n@return string", "docstring_tokens": ["Returns", "strings", "based", "on", "the", "score", "given", "."], "sha": "9d2177a1c0c731f83636d2164bd22702ef5767c2", "url": "https://github.com/italia/bootstrap-italia/blob/9d2177a1c0c731f83636d2164bd22702ef5767c2/src/js/plugins/password-strength-meter/password-strength-meter.js#L27-L45", "partition": "test"} +{"repo": "italia/bootstrap-italia", "path": "src/js/plugins/password-strength-meter/password-strength-meter.js", "func_name": "calculateScore", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a value between -1 and 100 to score\nthe user's password.\n\n@param string password The password to be checked.\n@return int", "docstring_tokens": ["Returns", "a", "value", "between", "-", "1", "and", "100", "to", "score", "the", "user", "s", "password", "."], "sha": "9d2177a1c0c731f83636d2164bd22702ef5767c2", "url": "https://github.com/italia/bootstrap-italia/blob/9d2177a1c0c731f83636d2164bd22702ef5767c2/src/js/plugins/password-strength-meter/password-strength-meter.js#L77-L144", "partition": "test"} +{"repo": "italia/bootstrap-italia", "path": "src/js/plugins/password-strength-meter/password-strength-meter.js", "func_name": "checkRepetition", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks for repetition of characters in\na string\n\n@param int rLen Repetition length.\n@param string str The string to be checked.\n@return string", "docstring_tokens": ["Checks", "for", "repetition", "of", "characters", "in", "a", "string"], "sha": "9d2177a1c0c731f83636d2164bd22702ef5767c2", "url": "https://github.com/italia/bootstrap-italia/blob/9d2177a1c0c731f83636d2164bd22702ef5767c2/src/js/plugins/password-strength-meter/password-strength-meter.js#L154-L173", "partition": "test"} +{"repo": "italia/bootstrap-italia", "path": "src/js/plugins/password-strength-meter/password-strength-meter.js", "func_name": "init", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initializes the plugin creating and binding the\nrequired layers and events.\n\n@return void", "docstring_tokens": ["Initializes", "the", "plugin", "creating", "and", "binding", "the", "required", "layers", "and", "events", "."], "sha": "9d2177a1c0c731f83636d2164bd22702ef5767c2", "url": "https://github.com/italia/bootstrap-italia/blob/9d2177a1c0c731f83636d2164bd22702ef5767c2/src/js/plugins/password-strength-meter/password-strength-meter.js#L181-L248", "partition": "test"} +{"repo": "trufflesuite/ganache-core", "path": "lib/database/leveluparrayadapter.js", "func_name": "LevelUpArrayAdapter", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Level up adapter that looks like an array. Doesn't support inserts.", "docstring_tokens": ["Level", "up", "adapter", "that", "looks", "like", "an", "array", ".", "Doesn", "t", "support", "inserts", "."], "sha": "cba166610008262266a60908d7ab4eb20fd856be", "url": "https://github.com/trufflesuite/ganache-core/blob/cba166610008262266a60908d7ab4eb20fd856be/lib/database/leveluparrayadapter.js#L6-L18", "partition": "test"} +{"repo": "trufflesuite/ganache-core", "path": "lib/utils/transaction.js", "func_name": "fixProps", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "etheruemjs-tx's Transactions don't behave quite like we need them to, so\nwe're monkey-patching them to do what we want here.\n@param {Transaction} tx The Transaction to fix\n@param {Object} [data] The data object", "docstring_tokens": ["etheruemjs", "-", "tx", "s", "Transactions", "don", "t", "behave", "quite", "like", "we", "need", "them", "to", "so", "we", "re", "monkey", "-", "patching", "them", "to", "do", "what", "we", "want", "here", "."], "sha": "cba166610008262266a60908d7ab4eb20fd856be", "url": "https://github.com/trufflesuite/ganache-core/blob/cba166610008262266a60908d7ab4eb20fd856be/lib/utils/transaction.js#L44-L101", "partition": "test"} +{"repo": "trufflesuite/ganache-core", "path": "lib/utils/transaction.js", "func_name": "initData", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parses the given data object and adds its properties to the given tx.\n@param {Transaction} tx\n@param {Object} [data]", "docstring_tokens": ["Parses", "the", "given", "data", "object", "and", "adds", "its", "properties", "to", "the", "given", "tx", "."], "sha": "cba166610008262266a60908d7ab4eb20fd856be", "url": "https://github.com/trufflesuite/ganache-core/blob/cba166610008262266a60908d7ab4eb20fd856be/lib/utils/transaction.js#L108-L153", "partition": "test"} +{"repo": "trufflesuite/ganache-core", "path": "lib/utils/txrejectederror.js", "func_name": "TXRejectedError", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "raised when the transaction is rejected prior to running it in the EVM.", "docstring_tokens": ["raised", "when", "the", "transaction", "is", "rejected", "prior", "to", "running", "it", "in", "the", "EVM", "."], "sha": "cba166610008262266a60908d7ab4eb20fd856be", "url": "https://github.com/trufflesuite/ganache-core/blob/cba166610008262266a60908d7ab4eb20fd856be/lib/utils/txrejectederror.js#L4-L10", "partition": "test"} +{"repo": "trufflesuite/ganache-core", "path": "lib/subproviders/requestfunnel.js", "func_name": "RequestFunnel", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "See if any payloads for the specified methods are marked as external. If they are external, and match the method list, process them one at a time.", "docstring_tokens": ["See", "if", "any", "payloads", "for", "the", "specified", "methods", "are", "marked", "as", "external", ".", "If", "they", "are", "external", "and", "match", "the", "method", "list", "process", "them", "one", "at", "a", "time", "."], "sha": "cba166610008262266a60908d7ab4eb20fd856be", "url": "https://github.com/trufflesuite/ganache-core/blob/cba166610008262266a60908d7ab4eb20fd856be/lib/subproviders/requestfunnel.js#L11-L28", "partition": "test"} +{"repo": "leovo2708/ngx-treeview", "path": "gulpfile.js", "func_name": "compileSass", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compile SASS to CSS.\n@see https://github.com/ludohenin/gulp-inline-ng2-template\n@see https://github.com/sass/node-sass", "docstring_tokens": ["Compile", "SASS", "to", "CSS", "."], "sha": "5afa879d2304344ec58c9d588209713fe28a31eb", "url": "https://github.com/leovo2708/ngx-treeview/blob/5afa879d2304344ec58c9d588209713fe28a31eb/gulpfile.js#L35-L49", "partition": "test"} +{"repo": "broccolijs/broccoli", "path": "lib/load_brocfile.js", "func_name": "requireBrocfile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Require a brocfile via either ESM or TypeScript\n\n@param {String} brocfilePath The path to the brocfile\n@returns {*}", "docstring_tokens": ["Require", "a", "brocfile", "via", "either", "ESM", "or", "TypeScript"], "sha": "55152adc4f7de802dea5758415c9c45653ecd4c5", "url": "https://github.com/broccolijs/broccoli/blob/55152adc4f7de802dea5758415c9c45653ecd4c5/lib/load_brocfile.js#L13-L45", "partition": "test"} +{"repo": "kach/nearley", "path": "examples/calculator/calculator.js", "func_name": "runmath", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is where the action is.", "docstring_tokens": ["This", "is", "where", "the", "action", "is", "."], "sha": "8635662b1ab690ee947a0613f0717dc85f45eb47", "url": "https://github.com/kach/nearley/blob/8635662b1ab690ee947a0613f0717dc85f45eb47/examples/calculator/calculator.js#L7-L30", "partition": "test"} +{"repo": "mapbox/pbf", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "verbose for performance reasons; doesn't affect gzipped size", "docstring_tokens": ["verbose", "for", "performance", "reasons", ";", "doesn", "t", "affect", "gzipped", "size"], "sha": "e26454842595c3eae1f5f8281bba508fbd85b718", "url": "https://github.com/mapbox/pbf/blob/e26454842595c3eae1f5f8281bba508fbd85b718/index.js#L130-L136", "partition": "test"} +{"repo": "acarl005/join-monster", "path": "src/query-ast-to-sql-ast/index.js", "func_name": "handleUnionSelections", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "we need to collect all fields from all the fragments requested in the union type and ask for them in SQL", "docstring_tokens": ["we", "need", "to", "collect", "all", "fields", "from", "all", "the", "fragments", "requested", "in", "the", "union", "type", "and", "ask", "for", "them", "in", "SQL"], "sha": "8db8b54aaefd2fd975d63e2ab3ec05922e25118c", "url": "https://github.com/acarl005/join-monster/blob/8db8b54aaefd2fd975d63e2ab3ec05922e25118c/src/query-ast-to-sql-ast/index.js#L328-L406", "partition": "test"} +{"repo": "acarl005/join-monster", "path": "src/query-ast-to-sql-ast/index.js", "func_name": "handleSelections", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "the selections could be several types, recursively handle each type here", "docstring_tokens": ["the", "selections", "could", "be", "several", "types", "recursively", "handle", "each", "type", "here"], "sha": "8db8b54aaefd2fd975d63e2ab3ec05922e25118c", "url": "https://github.com/acarl005/join-monster/blob/8db8b54aaefd2fd975d63e2ab3ec05922e25118c/src/query-ast-to-sql-ast/index.js#L409-L479", "partition": "test"} +{"repo": "acarl005/join-monster", "path": "src/query-ast-to-sql-ast/index.js", "func_name": "columnToASTChild", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "tell the AST we need a column that perhaps the user didnt ask for, but may be necessary for join monster to ID objects or associate ones across batches", "docstring_tokens": ["tell", "the", "AST", "we", "need", "a", "column", "that", "perhaps", "the", "user", "didnt", "ask", "for", "but", "may", "be", "necessary", "for", "join", "monster", "to", "ID", "objects", "or", "associate", "ones", "across", "batches"], "sha": "8db8b54aaefd2fd975d63e2ab3ec05922e25118c", "url": "https://github.com/acarl005/join-monster/blob/8db8b54aaefd2fd975d63e2ab3ec05922e25118c/src/query-ast-to-sql-ast/index.js#L484-L491", "partition": "test"} +{"repo": "acarl005/join-monster", "path": "src/query-ast-to-sql-ast/index.js", "func_name": "keyToASTChild", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "keys are necessary for deduplication during the hydration process this will handle singular or composite keys", "docstring_tokens": ["keys", "are", "necessary", "for", "deduplication", "during", "the", "hydration", "process", "this", "will", "handle", "singular", "or", "composite", "keys"], "sha": "8db8b54aaefd2fd975d63e2ab3ec05922e25118c", "url": "https://github.com/acarl005/join-monster/blob/8db8b54aaefd2fd975d63e2ab3ec05922e25118c/src/query-ast-to-sql-ast/index.js#L501-L514", "partition": "test"} +{"repo": "acarl005/join-monster", "path": "src/query-ast-to-sql-ast/index.js", "func_name": "stripRelayConnection", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "if its a connection type, we need to look up the Node type inside their to find the relevant SQL info", "docstring_tokens": ["if", "its", "a", "connection", "type", "we", "need", "to", "look", "up", "the", "Node", "type", "inside", "their", "to", "find", "the", "relevant", "SQL", "info"], "sha": "8db8b54aaefd2fd975d63e2ab3ec05922e25118c", "url": "https://github.com/acarl005/join-monster/blob/8db8b54aaefd2fd975d63e2ab3ec05922e25118c/src/query-ast-to-sql-ast/index.js#L541-L559", "partition": "test"} +{"repo": "acarl005/join-monster", "path": "src/query-ast-to-sql-ast/index.js", "func_name": "spreadFragments", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "instead of fields, selections can be fragments, which is another group of selections fragments can be arbitrarily nested this function recurses through and gets the relevant fields", "docstring_tokens": ["instead", "of", "fields", "selections", "can", "be", "fragments", "which", "is", "another", "group", "of", "selections", "fragments", "can", "be", "arbitrarily", "nested", "this", "function", "recurses", "through", "and", "gets", "the", "relevant", "fields"], "sha": "8db8b54aaefd2fd975d63e2ab3ec05922e25118c", "url": "https://github.com/acarl005/join-monster/blob/8db8b54aaefd2fd975d63e2ab3ec05922e25118c/src/query-ast-to-sql-ast/index.js#L653-L670", "partition": "test"} +{"repo": "acarl005/join-monster", "path": "src/index.js", "func_name": "getNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A helper for resolving the Node type in Relay.\n@param {String} typeName - The Name of the GraphQLObjectType\n@param {Object} resolveInfo - Contains the parsed GraphQL query, schema definition, and more. Obtained from the fourth argument to the resolver.\n@param {Object} context - An arbitrary object that gets passed to the `where` function. Useful for contextual infomation that influeces the WHERE condition, e.g. session, logged in user, localization.\n@param {where|Number|String|Array} condition - A value to determine the `where` function for searching the node. If it's a function, that function will be used as the `where` function. Otherwise, it is assumed to be the value(s) of the `primaryKey`. An array of values is needed for composite primary keys.\n@param {Function} dbCall - A function that is passed the compiled SQL that calls the database and returns (a promise of) the data.\n@param {Object} [options] - Same as `joinMonster` function's options.\n@returns {Promise.} The correctly nested data from the database. The GraphQL Type is added to the \"\\_\\_type\\_\\_\" property, which is helpful for the `resolveType` function in the `nodeDefinitions` of **graphql-relay-js**.", "docstring_tokens": ["A", "helper", "for", "resolving", "the", "Node", "type", "in", "Relay", "."], "sha": "8db8b54aaefd2fd975d63e2ab3ec05922e25118c", "url": "https://github.com/acarl005/join-monster/blob/8db8b54aaefd2fd975d63e2ab3ec05922e25118c/src/index.js#L128-L159", "partition": "test"} +{"repo": "acarl005/join-monster", "path": "src/array-to-connection.js", "func_name": "arrToConnection", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "a function for data manipulation AFTER its nested. this is only necessary when using the SQL pagination we have to interpret the slice that comes back and generate the Connection Object type", "docstring_tokens": ["a", "function", "for", "data", "manipulation", "AFTER", "its", "nested", ".", "this", "is", "only", "necessary", "when", "using", "the", "SQL", "pagination", "we", "have", "to", "interpret", "the", "slice", "that", "comes", "back", "and", "generate", "the", "Connection", "Object", "type"], "sha": "8db8b54aaefd2fd975d63e2ab3ec05922e25118c", "url": "https://github.com/acarl005/join-monster/blob/8db8b54aaefd2fd975d63e2ab3ec05922e25118c/src/array-to-connection.js#L8-L83", "partition": "test"} +{"repo": "acarl005/join-monster", "path": "src/util.js", "func_name": "validate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "validate the data they gave us", "docstring_tokens": ["validate", "the", "data", "they", "gave", "us"], "sha": "8db8b54aaefd2fd975d63e2ab3ec05922e25118c", "url": "https://github.com/acarl005/join-monster/blob/8db8b54aaefd2fd975d63e2ab3ec05922e25118c/src/util.js#L190-L200", "partition": "test"} +{"repo": "acarl005/join-monster", "path": "src/stringifiers/shared.js", "func_name": "sortKeyToWhereCondition", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "take the sort key and translate that for the where clause", "docstring_tokens": ["take", "the", "sort", "key", "and", "translate", "that", "for", "the", "where", "clause"], "sha": "8db8b54aaefd2fd975d63e2ab3ec05922e25118c", "url": "https://github.com/acarl005/join-monster/blob/8db8b54aaefd2fd975d63e2ab3ec05922e25118c/src/stringifiers/shared.js#L204-L216", "partition": "test"} +{"repo": "reflux/refluxjs", "path": "src/defineReact.js", "func_name": "clone", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "this is utilized by some of the global state functionality in order to get a clone that will not continue to be modified as the GlobalState mutates", "docstring_tokens": ["this", "is", "utilized", "by", "some", "of", "the", "global", "state", "functionality", "in", "order", "to", "get", "a", "clone", "that", "will", "not", "continue", "to", "be", "modified", "as", "the", "GlobalState", "mutates"], "sha": "24a476defcf3f1dc79a3f1f29bb7b46e0a51d327", "url": "https://github.com/reflux/refluxjs/blob/24a476defcf3f1dc79a3f1f29bb7b46e0a51d327/src/defineReact.js#L453-L469", "partition": "test"} +{"repo": "Kong/httpsnippet", "path": "src/targets/swift/helpers.js", "func_name": "buildString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create an string of given length filled with blank spaces\n\n@param {number} length Length of the array to return\n@return {string}", "docstring_tokens": ["Create", "an", "string", "of", "given", "length", "filled", "with", "blank", "spaces"], "sha": "c780dad09b014a1bb28e463b4b058b2d40ae2124", "url": "https://github.com/Kong/httpsnippet/blob/c780dad09b014a1bb28e463b4b058b2d40ae2124/src/targets/swift/helpers.js#L11-L13", "partition": "test"} +{"repo": "Kong/httpsnippet", "path": "src/targets/swift/helpers.js", "func_name": "concatArray", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a string corresponding to a Dictionary or Array literal representation with pretty option\nand indentation.", "docstring_tokens": ["Create", "a", "string", "corresponding", "to", "a", "Dictionary", "or", "Array", "literal", "representation", "with", "pretty", "option", "and", "indentation", "."], "sha": "c780dad09b014a1bb28e463b4b058b2d40ae2124", "url": "https://github.com/Kong/httpsnippet/blob/c780dad09b014a1bb28e463b4b058b2d40ae2124/src/targets/swift/helpers.js#L19-L29", "partition": "test"} +{"repo": "Kong/httpsnippet", "path": "src/targets/swift/helpers.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a valid Swift string of a literal value according to its type.\n\n@param {*} value Any JavaScript literal\n@param {Object} opts Target options\n@return {string}", "docstring_tokens": ["Create", "a", "valid", "Swift", "string", "of", "a", "literal", "value", "according", "to", "its", "type", "."], "sha": "c780dad09b014a1bb28e463b4b058b2d40ae2124", "url": "https://github.com/Kong/httpsnippet/blob/c780dad09b014a1bb28e463b4b058b2d40ae2124/src/targets/swift/helpers.js#L51-L82", "partition": "test"} +{"repo": "quip/quip-apps", "path": "packages/quip-apps-compat/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "For quiptext, introduced in 0.1.044", "docstring_tokens": ["For", "quiptext", "introduced", "in", "0", ".", "1", ".", "044"], "sha": "09ced6aabb3dbc28e91e9a713837b85de68422d9", "url": "https://github.com/quip/quip-apps/blob/09ced6aabb3dbc28e91e9a713837b85de68422d9/packages/quip-apps-compat/index.js#L11-L69", "partition": "test"} +{"repo": "apache/cordova-plugin-media", "path": "www/browser/Media.js", "func_name": "createNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates new Audio node and with necessary event listeners attached\n@param {Media} media Media object\n@return {Audio} Audio element", "docstring_tokens": ["Creates", "new", "Audio", "node", "and", "with", "necessary", "event", "listeners", "attached"], "sha": "b1c135342619f773fee3e8693a46992a133efd56", "url": "https://github.com/apache/cordova-plugin-media/blob/b1c135342619f773fee3e8693a46992a133efd56/www/browser/Media.js#L64-L97", "partition": "test"} +{"repo": "apache/cordova-plugin-media", "path": "src/windows/MediaProxy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initiates the audio file", "docstring_tokens": ["Initiates", "the", "audio", "file"], "sha": "b1c135342619f773fee3e8693a46992a133efd56", "url": "https://github.com/apache/cordova-plugin-media/blob/b1c135342619f773fee3e8693a46992a133efd56/src/windows/MediaProxy.js#L46-L104", "partition": "test"} +{"repo": "apache/cordova-plugin-media", "path": "src/windows/MediaProxy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Start playing the audio", "docstring_tokens": ["Start", "playing", "the", "audio"], "sha": "b1c135342619f773fee3e8693a46992a133efd56", "url": "https://github.com/apache/cordova-plugin-media/blob/b1c135342619f773fee3e8693a46992a133efd56/src/windows/MediaProxy.js#L107-L130", "partition": "test"} +{"repo": "apache/cordova-plugin-media", "path": "src/windows/MediaProxy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Seeks to the position in the audio", "docstring_tokens": ["Seeks", "to", "the", "position", "in", "the", "audio"], "sha": "b1c135342619f773fee3e8693a46992a133efd56", "url": "https://github.com/apache/cordova-plugin-media/blob/b1c135342619f773fee3e8693a46992a133efd56/src/windows/MediaProxy.js#L146-L156", "partition": "test"} +{"repo": "apache/cordova-plugin-media", "path": "src/windows/MediaProxy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Pauses the playing audio", "docstring_tokens": ["Pauses", "the", "playing", "audio"], "sha": "b1c135342619f773fee3e8693a46992a133efd56", "url": "https://github.com/apache/cordova-plugin-media/blob/b1c135342619f773fee3e8693a46992a133efd56/src/windows/MediaProxy.js#L159-L168", "partition": "test"} +{"repo": "apache/cordova-plugin-media", "path": "src/windows/MediaProxy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets current position in the audio", "docstring_tokens": ["Gets", "current", "position", "in", "the", "audio"], "sha": "b1c135342619f773fee3e8693a46992a133efd56", "url": "https://github.com/apache/cordova-plugin-media/blob/b1c135342619f773fee3e8693a46992a133efd56/src/windows/MediaProxy.js#L171-L179", "partition": "test"} +{"repo": "apache/cordova-plugin-media", "path": "src/windows/MediaProxy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Start recording audio", "docstring_tokens": ["Start", "recording", "audio"], "sha": "b1c135342619f773fee3e8693a46992a133efd56", "url": "https://github.com/apache/cordova-plugin-media/blob/b1c135342619f773fee3e8693a46992a133efd56/src/windows/MediaProxy.js#L182-L230", "partition": "test"} +{"repo": "apache/cordova-plugin-media", "path": "src/windows/MediaProxy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Stop recording audio", "docstring_tokens": ["Stop", "recording", "audio"], "sha": "b1c135342619f773fee3e8693a46992a133efd56", "url": "https://github.com/apache/cordova-plugin-media/blob/b1c135342619f773fee3e8693a46992a133efd56/src/windows/MediaProxy.js#L233-L272", "partition": "test"} +{"repo": "apache/cordova-plugin-media", "path": "src/windows/MediaProxy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Release the media object", "docstring_tokens": ["Release", "the", "media", "object"], "sha": "b1c135342619f773fee3e8693a46992a133efd56", "url": "https://github.com/apache/cordova-plugin-media/blob/b1c135342619f773fee3e8693a46992a133efd56/src/windows/MediaProxy.js#L275-L290", "partition": "test"} +{"repo": "apache/cordova-plugin-media", "path": "src/windows/MediaProxy.js", "func_name": "fullPathToAppData", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert native full path to ms-appdata path\n@param {Object} uri Windows.Foundation.Uri\n@return {Object} ms-appdata Windows.Foundation.Uri", "docstring_tokens": ["Convert", "native", "full", "path", "to", "ms", "-", "appdata", "path"], "sha": "b1c135342619f773fee3e8693a46992a133efd56", "url": "https://github.com/apache/cordova-plugin-media/blob/b1c135342619f773fee3e8693a46992a133efd56/src/windows/MediaProxy.js#L326-L339", "partition": "test"} +{"repo": "apache/cordova-plugin-media", "path": "src/windows/MediaProxy.js", "func_name": "cdvfileToAppData", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Converts cdvfile paths to ms-appdata path\n@param {Object} uri Input cdvfile scheme Windows.Foundation.Uri\n@return {Object} Windows.Foundation.Uri based on App data path", "docstring_tokens": ["Converts", "cdvfile", "paths", "to", "ms", "-", "appdata", "path"], "sha": "b1c135342619f773fee3e8693a46992a133efd56", "url": "https://github.com/apache/cordova-plugin-media/blob/b1c135342619f773fee3e8693a46992a133efd56/src/windows/MediaProxy.js#L346-L361", "partition": "test"} +{"repo": "apache/cordova-plugin-media", "path": "src/windows/MediaProxy.js", "func_name": "processUri", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Prepares media src for internal usage\n@param {String} src Input media path\n@return {Object} Windows.Foundation.Uri", "docstring_tokens": ["Prepares", "media", "src", "for", "internal", "usage"], "sha": "b1c135342619f773fee3e8693a46992a133efd56", "url": "https://github.com/apache/cordova-plugin-media/blob/b1c135342619f773fee3e8693a46992a133efd56/src/windows/MediaProxy.js#L368-L381", "partition": "test"} +{"repo": "apache/cordova-plugin-media", "path": "src/windows/MediaProxy.js", "func_name": "parseUriToPathAndFilename", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extracts path, filename and filesystem type from Uri\n@param {Object} uri Windows.Foundation.Uri\n@return {Object} Object containing path, filename and filesystem type", "docstring_tokens": ["Extracts", "path", "filename", "and", "filesystem", "type", "from", "Uri"], "sha": "b1c135342619f773fee3e8693a46992a133efd56", "url": "https://github.com/apache/cordova-plugin-media/blob/b1c135342619f773fee3e8693a46992a133efd56/src/windows/MediaProxy.js#L388-L408", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/hooks/Context.js", "func_name": "Context", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates hook script context\n@constructor\n@param {String} hook The hook type\n@param {Object} opts Hook options\n@returns {Object}", "docstring_tokens": ["Creates", "hook", "script", "context"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/hooks/Context.js#L29-L41", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "spec/cordova/fixtures/projects/platformApi/platforms/windows/cordova/lib/ConfigChanges.js", "func_name": "getUniqueCapabilities", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove capabilities with same names\n@param {Object} an array of capabilities\n@return {Object} an unique array of capabilities", "docstring_tokens": ["Remove", "capabilities", "with", "same", "names"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/spec/cordova/fixtures/projects/platformApi/platforms/windows/cordova/lib/ConfigChanges.js#L94-L103", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "spec/cordova/fixtures/projects/platformApi/platforms/windows/cordova/lib/ConfigChanges.js", "func_name": "compareCapabilities", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Comparator function to pass to Array.sort\n@param {Object} firstCap first capability\n@param {Object} secondCap second capability\n@return {Number} either -1, 0 or 1", "docstring_tokens": ["Comparator", "function", "to", "pass", "to", "Array", ".", "sort"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/spec/cordova/fixtures/projects/platformApi/platforms/windows/cordova/lib/ConfigChanges.js#L111-L124", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/cordova/util.js", "func_name": "isCordova", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Runs up the directory chain looking for a .cordova directory. IF it is found we are in a Cordova project. Omit argument to use CWD.", "docstring_tokens": ["Runs", "up", "the", "directory", "chain", "looking", "for", "a", ".", "cordova", "directory", ".", "IF", "it", "is", "found", "we", "are", "in", "a", "Cordova", "project", ".", "Omit", "argument", "to", "use", "CWD", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/cordova/util.js#L125-L153", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/cordova/util.js", "func_name": "cdProjectRoot", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Cd to project root dir and return its path. Throw CordovaError if not in a Corodva project.", "docstring_tokens": ["Cd", "to", "project", "root", "dir", "and", "return", "its", "path", ".", "Throw", "CordovaError", "if", "not", "in", "a", "Corodva", "project", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/cordova/util.js#L171-L179", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/cordova/util.js", "func_name": "deleteSvnFolders", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recursively deletes .svn folders from a target path", "docstring_tokens": ["Recursively", "deletes", ".", "svn", "folders", "from", "a", "target", "path"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/cordova/util.js#L212-L222", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/cordova/util.js", "func_name": "findPlugins", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "list the directories in the path, ignoring any files", "docstring_tokens": ["list", "the", "directories", "in", "the", "path", "ignoring", "any", "files"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/cordova/util.js#L255-L267", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/hooks/HooksRunner.js", "func_name": "HooksRunner", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Tries to create a HooksRunner for passed project root.\n@constructor", "docstring_tokens": ["Tries", "to", "create", "a", "HooksRunner", "for", "passed", "project", "root", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/hooks/HooksRunner.js#L35-L39", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/hooks/HooksRunner.js", "func_name": "extractSheBangInterpreter", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extracts shebang interpreter from script' source.", "docstring_tokens": ["Extracts", "shebang", "interpreter", "from", "script", "source", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/hooks/HooksRunner.js#L231-L242", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/hooks/HooksRunner.js", "func_name": "isHookDisabled", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks if the given hook type is disabled at the command line option.\n@param {Object} opts - the option object that contains command line options\n@param {String} hook - the hook type\n@returns {Boolean} return true if the passed hook is disabled.", "docstring_tokens": ["Checks", "if", "the", "given", "hook", "type", "is", "disabled", "at", "the", "command", "line", "option", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/hooks/HooksRunner.js#L250-L262", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "spec/cordova/fixtures/platforms/cordova-browser/cordova-js-src/platform.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "cordova-js", "docstring_tokens": ["cordova", "-", "js"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/spec/cordova/fixtures/platforms/cordova-browser/cordova-js-src/platform.js#L26-L45", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/hooks/scriptsFinder.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns all script files for the hook type specified.", "docstring_tokens": ["Returns", "all", "script", "files", "for", "the", "hook", "type", "specified", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/hooks/scriptsFinder.js#L35-L42", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/hooks/scriptsFinder.js", "func_name": "getPluginsHookScripts", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns script files defined by plugin developers as part of plugin.xml.", "docstring_tokens": ["Returns", "script", "files", "defined", "by", "plugin", "developers", "as", "part", "of", "plugin", ".", "xml", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/hooks/scriptsFinder.js#L62-L77", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/hooks/scriptsFinder.js", "func_name": "getApplicationHookScriptsFromDir", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets application level hooks from the directrory specified.", "docstring_tokens": ["Gets", "application", "level", "hooks", "from", "the", "directrory", "specified", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/hooks/scriptsFinder.js#L82-L100", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/hooks/scriptsFinder.js", "func_name": "getScriptsFromConfigXml", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets all scripts defined in config.xml with the specified type and platforms.", "docstring_tokens": ["Gets", "all", "scripts", "defined", "in", "config", ".", "xml", "with", "the", "specified", "type", "and", "platforms", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/hooks/scriptsFinder.js#L105-L115", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/hooks/scriptsFinder.js", "func_name": "getPluginScriptFiles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets hook scripts defined by the plugin.", "docstring_tokens": ["Gets", "hook", "scripts", "defined", "by", "the", "plugin", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/hooks/scriptsFinder.js#L120-L130", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/hooks/scriptsFinder.js", "func_name": "getAllPluginsHookScriptFiles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets hook scripts defined by all plugins.", "docstring_tokens": ["Gets", "hook", "scripts", "defined", "by", "all", "plugins", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/hooks/scriptsFinder.js#L135-L151", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "spec/cordova/fixtures/projects/platformApi/platforms/windows/cordova/lib/AppxManifest.js", "func_name": "ensureUniqueCapabilities", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Cleans up duplicate capability declarations that were generated during the prepare process\n@param capabilities {ElementTree.Element} The appx manifest element for ", "docstring_tokens": ["Cleans", "up", "duplicate", "capability", "declarations", "that", "were", "generated", "during", "the", "prepare", "process"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/spec/cordova/fixtures/projects/platformApi/platforms/windows/cordova/lib/AppxManifest.js#L720-L731", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "spec/plugman/projects/android/cordova/lib/pluginHandlers.js", "func_name": "copyNewFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Same as copy file but throws error if target exists", "docstring_tokens": ["Same", "as", "copy", "file", "but", "throws", "error", "if", "target", "exists"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/spec/plugman/projects/android/cordova/lib/pluginHandlers.js#L245-L251", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/cordova/plugin/plugin_spec_parser.js", "func_name": "PluginSpec", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Represents a parsed specification for a plugin\n@class\n@param {String} raw The raw specification (i.e. provided by the user)\n@param {String} scope The scope of the package if this is an npm package\n@param {String} id The id of the package if this is an npm package\n@param {String} version The version specified for the package if this is an npm package", "docstring_tokens": ["Represents", "a", "parsed", "specification", "for", "a", "plugin"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/cordova/plugin/plugin_spec_parser.js#L33-L45", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "spec/cordova/fixtures/projects/platformApi/platforms/windows/cordova/lib/PluginHandler.js", "func_name": "getPluginFilePath", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "returns relative file path for a file in the plugin's folder that can be referenced from a project file.", "docstring_tokens": ["returns", "relative", "file", "path", "for", "a", "file", "in", "the", "plugin", "s", "folder", "that", "can", "be", "referenced", "from", "a", "project", "file", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/spec/cordova/fixtures/projects/platformApi/platforms/windows/cordova/lib/PluginHandler.js#L30-L33", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/cordova/platform/index.js", "func_name": "platform", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles all cordova platform commands.\n@param {string} command - Command to execute (add, rm, ls, update, save)\n@param {Object[]} targets - Array containing platforms to execute commands on\n@param {Object} opts\n@returns {Promise}", "docstring_tokens": ["Handles", "all", "cordova", "platform", "commands", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/cordova/platform/index.js#L49-L84", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/cordova/project_metadata.js", "func_name": "getPlatforms", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns all the platforms that are currently saved into config.xml\n@return {Promise<{name: string, version: string, src: string}[]>}\ne.g: [ {name: 'android', version: '3.5.0'}, {name: 'wp8', src: 'C:/path/to/platform'}, {name: 'ios', src: 'git://...'} ]", "docstring_tokens": ["Returns", "all", "the", "platforms", "that", "are", "currently", "saved", "into", "config", ".", "xml"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/cordova/project_metadata.js#L28-L48", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/cordova/project_metadata.js", "func_name": "getPlugins", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns all the plugins that are currently saved into config.xml\n@return {Promise<{id: string, version: string, variables: {name: string, value: string}[]}[]>}\ne.g: [ {id: 'org.apache.cordova.device', variables: [{name: 'APP_ID', value: 'my-app-id'}, {name: 'APP_NAME', value: 'my-app-name'}]} ]", "docstring_tokens": ["Returns", "all", "the", "plugins", "that", "are", "currently", "saved", "into", "config", ".", "xml"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/cordova/project_metadata.js#L54-L85", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/plugman/util/dependencies.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a list of plugins which the given plugin depends on, for which it is the only dependent. In other words, if the given plugin were deleted, these dangling dependencies should be deleted too.", "docstring_tokens": ["Returns", "a", "list", "of", "plugins", "which", "the", "given", "plugin", "depends", "on", "for", "which", "it", "is", "the", "only", "dependent", ".", "In", "other", "words", "if", "the", "given", "plugin", "were", "deleted", "these", "dangling", "dependencies", "should", "be", "deleted", "too", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/plugman/util/dependencies.js#L83-L105", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "spec/cordova/fixtures/projects/platformApi/platforms/windows/cordova/lib/PluginInfo.js", "func_name": "createReplacement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is a local function that creates the new replacement representing the mutation. Used to save code further down.", "docstring_tokens": ["This", "is", "a", "local", "function", "that", "creates", "the", "new", "replacement", "representing", "the", "mutation", ".", "Used", "to", "save", "code", "further", "down", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/spec/cordova/fixtures/projects/platformApi/platforms/windows/cordova/lib/PluginInfo.js#L103-L113", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/plugman/fetch.js", "func_name": "checkID", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Helper function for checking expected plugin IDs against reality.", "docstring_tokens": ["Helper", "function", "for", "checking", "expected", "plugin", "IDs", "against", "reality", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/plugman/fetch.js#L182-L194", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/cordova/platform/getPlatformDetailsFromDir.js", "func_name": "getPlatformDetailsFromDir", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets platform details from a directory", "docstring_tokens": ["Gets", "platform", "details", "from", "a", "directory"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/cordova/platform/getPlatformDetailsFromDir.js#L28-L55", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/cordova/platform/getPlatformDetailsFromDir.js", "func_name": "platformFromName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes the cordova- prefix from the platform's name for known platforms.\n@param {string} name - platform name\n@returns {string}", "docstring_tokens": ["Removes", "the", "cordova", "-", "prefix", "from", "the", "platform", "s", "name", "for", "known", "platforms", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/cordova/platform/getPlatformDetailsFromDir.js#L62-L70", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "spec/plugman/projects/android/platform_www/cordova-js-src/exec.js", "func_name": "processMessage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Processes a single message, as encoded by NativeToJsMessageQueue.java.", "docstring_tokens": ["Processes", "a", "single", "message", "as", "encoded", "by", "NativeToJsMessageQueue", ".", "java", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/spec/plugman/projects/android/platform_www/cordova-js-src/exec.js#L234-L253", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/plugman/install.js", "func_name": "callEngineScripts", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "exec engine scripts in order to get the current engine version Returns a promise for the array of engines.", "docstring_tokens": ["exec", "engine", "scripts", "in", "order", "to", "get", "the", "current", "engine", "version", "Returns", "a", "promise", "for", "the", "array", "of", "engines", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/plugman/install.js#L163-L198", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/plugman/createpackagejson.js", "func_name": "createPackageJson", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "returns a promise", "docstring_tokens": ["returns", "a", "promise"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/plugman/createpackagejson.js#L26-L45", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/cordova/prepare.js", "func_name": "preparePlatforms", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calls `platformApi.prepare` for each platform in project\n\n@param {string[]} platformList List of platforms, added to current project\n@param {string} projectRoot Project root directory\n\n@return {Promise}", "docstring_tokens": ["Calls", "platformApi", ".", "prepare", "for", "each", "platform", "in", "project"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/cordova/prepare.js#L80-L116", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "spec/plugman/projects/android/cordova/lib/prepare.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "find the best matching icon for a given density or size @output android_icons", "docstring_tokens": ["find", "the", "best", "matching", "icon", "for", "a", "given", "density", "or", "size"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/spec/plugman/projects/android/cordova/lib/prepare.js#L329-L341", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "spec/plugman/projects/android/cordova/lib/prepare.js", "func_name": "mapImageResources", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets a map containing resources of a specified name from all drawable folders in a directory.", "docstring_tokens": ["Gets", "a", "map", "containing", "resources", "of", "a", "specified", "name", "from", "all", "drawable", "folders", "in", "a", "directory", "."], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/spec/plugman/projects/android/cordova/lib/prepare.js#L396-L404", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "spec/plugman/projects/android/cordova/lib/prepare.js", "func_name": "findAndroidLaunchModePreference", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets and validates 'AndroidLaunchMode' prepference from config.xml. Returns\npreference value and warns if it doesn't seems to be valid\n\n@param {ConfigParser} platformConfig A configParser instance for\nplatform.\n\n@return {String} Preference's value from config.xml or\ndefault value, if there is no such preference. The default value is\n'singleTop'", "docstring_tokens": ["Gets", "and", "validates", "AndroidLaunchMode", "prepference", "from", "config", ".", "xml", ".", "Returns", "preference", "value", "and", "warns", "if", "it", "doesn", "t", "seems", "to", "be", "valid"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/spec/plugman/projects/android/cordova/lib/prepare.js#L455-L471", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "spec/plugman/projects/android/cordova/lib/AndroidManifest.js", "func_name": "AndroidManifest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wraps an AndroidManifest file", "docstring_tokens": ["Wraps", "an", "AndroidManifest", "file"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/spec/plugman/projects/android/cordova/lib/AndroidManifest.js#L27-L33", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "spec/cordova/plugin/add.getFetchVersion.spec.js", "func_name": "expectUnmetRequirements", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks the warnings that were printed by the CLI to ensure that the code is listing the correct reasons for failure. Checks against the global warnings object which is reset before each test", "docstring_tokens": ["Checks", "the", "warnings", "that", "were", "printed", "by", "the", "CLI", "to", "ensure", "that", "the", "code", "is", "listing", "the", "correct", "reasons", "for", "failure", ".", "Checks", "against", "the", "global", "warnings", "object", "which", "is", "reset", "before", "each", "test"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/spec/cordova/plugin/add.getFetchVersion.spec.js#L45-L48", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/cordova/plugin/add.js", "func_name": "findVersion", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "return the version if it is in the versions array return null if the version doesn't exist in the array", "docstring_tokens": ["return", "the", "version", "if", "it", "is", "in", "the", "versions", "array", "return", "null", "if", "the", "version", "doesn", "t", "exist", "in", "the", "array"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/cordova/plugin/add.js#L545-L553", "partition": "test"} +{"repo": "apache/cordova-lib", "path": "src/cordova/plugin/add.js", "func_name": "listUnmetRequirements", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "emits warnings to users of failed dependnecy requirements in their projects", "docstring_tokens": ["emits", "warnings", "to", "users", "of", "failed", "dependnecy", "requirements", "in", "their", "projects"], "sha": "dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5", "url": "https://github.com/apache/cordova-lib/blob/dbab1acbd3d5c2d3248c8aca91cbb7518e197ae5/src/cordova/plugin/add.js#L556-L562", "partition": "test"} +{"repo": "Microsoft/azure-pipelines-extensions", "path": "package.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validates the structure of a task.json file.", "docstring_tokens": ["Validates", "the", "structure", "of", "a", "task", ".", "json", "file", "."], "sha": "be2b1c4772ec5c67958915d0f3ecb8509ea93d43", "url": "https://github.com/Microsoft/azure-pipelines-extensions/blob/be2b1c4772ec5c67958915d0f3ecb8509ea93d43/package.js#L22-L46", "partition": "test"} +{"repo": "greenkeeperio/greenkeeper", "path": "utils/utils.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Stop! YAMLtime! existingVersions is the output of getNodeVersionsFromTravisYML", "docstring_tokens": ["Stop!", "YAMLtime!", "existingVersions", "is", "the", "output", "of", "getNodeVersionsFromTravisYML"], "sha": "7ff179ce7b3381f8be7d52003e2741a700964284", "url": "https://github.com/greenkeeperio/greenkeeper/blob/7ff179ce7b3381f8be7d52003e2741a700964284/utils/utils.js#L241-L272", "partition": "test"} +{"repo": "greenkeeperio/greenkeeper", "path": "utils/utils.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "existingVersions is the output of getNodeVersionsFromTravisYML", "docstring_tokens": ["existingVersions", "is", "the", "output", "of", "getNodeVersionsFromTravisYML"], "sha": "7ff179ce7b3381f8be7d52003e2741a700964284", "url": "https://github.com/greenkeeperio/greenkeeper/blob/7ff179ce7b3381f8be7d52003e2741a700964284/utils/utils.js#L278-L299", "partition": "test"} +{"repo": "greenkeeperio/greenkeeper", "path": "jobs/update-nodejs-version.js", "func_name": "travisTransform", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "1. fetch .travis.yml", "docstring_tokens": ["1", ".", "fetch", ".", "travis", ".", "yml"], "sha": "7ff179ce7b3381f8be7d52003e2741a700964284", "url": "https://github.com/greenkeeperio/greenkeeper/blob/7ff179ce7b3381f8be7d52003e2741a700964284/jobs/update-nodejs-version.js#L66-L86", "partition": "test"} +{"repo": "greenkeeperio/greenkeeper", "path": "lib/monorepo.js", "func_name": "isDependencyIgnoredInGroups", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Given a groups array, a package path, and a dependency name, returns whether that dep is ignored for that package in any group", "docstring_tokens": ["Given", "a", "groups", "array", "a", "package", "path", "and", "a", "dependency", "name", "returns", "whether", "that", "dep", "is", "ignored", "for", "that", "package", "in", "any", "group"], "sha": "7ff179ce7b3381f8be7d52003e2741a700964284", "url": "https://github.com/greenkeeperio/greenkeeper/blob/7ff179ce7b3381f8be7d52003e2741a700964284/lib/monorepo.js#L131-L134", "partition": "test"} +{"repo": "greenkeeperio/greenkeeper", "path": "lib/get-infos.js", "func_name": "getDependencyURL", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "returns a url object if you pass in a GitHub repositoryURL, returns a string with an npm URL if you just pass in a dependency name", "docstring_tokens": ["returns", "a", "url", "object", "if", "you", "pass", "in", "a", "GitHub", "repositoryURL", "returns", "a", "string", "with", "an", "npm", "URL", "if", "you", "just", "pass", "in", "a", "dependency", "name"], "sha": "7ff179ce7b3381f8be7d52003e2741a700964284", "url": "https://github.com/greenkeeperio/greenkeeper/blob/7ff179ce7b3381f8be7d52003e2741a700964284/lib/get-infos.js#L12-L21", "partition": "test"} +{"repo": "nfl/react-gpt", "path": "scripts/updateAPIList.js", "func_name": "extractApis", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "extracts lists of methods from each service object.", "docstring_tokens": ["extracts", "lists", "of", "methods", "from", "each", "service", "object", "."], "sha": "67b147eb4740ed627359aaee593d140f623be0b6", "url": "https://github.com/nfl/react-gpt/blob/67b147eb4740ed627359aaee593d140f623be0b6/scripts/updateAPIList.js#L90-L102", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchResults/index.js", "func_name": "extractNormalizedFacetValues", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the facet values of a specified attribute from a SearchResults object.\n@private\n@param {SearchResults} results the search results to search in\n@param {string} attribute name of the faceted attribute to search for\n@return {array|object} facet values. For the hierarchical facets it is an object.", "docstring_tokens": ["Get", "the", "facet", "values", "of", "a", "specified", "attribute", "from", "a", "SearchResults", "object", "."], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchResults/index.js#L548-L576", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchResults/index.js", "func_name": "recSort", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sort nodes of a hierarchical facet results\n@private\n@param {HierarchicalFacet} node node to upon which we want to apply the sort", "docstring_tokens": ["Sort", "nodes", "of", "a", "hierarchical", "facet", "results"], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchResults/index.js#L583-L591", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a numeric filter for a given attribute\nWhen value is an array, they are combined with OR\nWhen value is a single value, it will combined with AND\n@method\n@param {string} attribute attribute to set the filter on\n@param {string} operator operator of the filter (possible values: =, >, >=, <, <=, !=)\n@param {number | number[]} value value of the filter\n@return {SearchParameters}\n@example\n// for price = 50 or 40\nsearchparameter.addNumericRefinement('price', '=', [50, 40]);\n@example\n// for size = 38 and 40\nsearchparameter.addNumericRefinement('size', '=', 38);\nsearchparameter.addNumericRefinement('size', '=', 40);", "docstring_tokens": ["Add", "a", "numeric", "filter", "for", "a", "given", "attribute", "When", "value", "is", "an", "array", "they", "are", "combined", "with", "OR", "When", "value", "is", "a", "single", "value", "it", "will", "combined", "with", "AND"], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L769-L790", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "_clearNumericRefinements", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Clear numeric filters.\n@method\n@private\n@param {string|SearchParameters.clearCallback} [attribute] optional string or function\n- If not given, means to clear all the filters.\n- If `string`, means to clear all refinements for the `attribute` named filter.\n- If `function`, means to clear all the refinements that return truthy values.\n@return {Object.}", "docstring_tokens": ["Clear", "numeric", "filters", "."], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L897-L930", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "addHierarchicalFacet", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a hierarchical facet to the hierarchicalFacets attribute of the helper\nconfiguration.\n@method\n@param {object} hierarchicalFacet hierarchical facet to add\n@return {SearchParameters}\n@throws will throw an error if a hierarchical facet with the same name was already declared", "docstring_tokens": ["Add", "a", "hierarchical", "facet", "to", "the", "hierarchicalFacets", "attribute", "of", "the", "helper", "configuration", "."], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L971-L980", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "addFacetRefinement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a refinement on a \"normal\" facet\n@method\n@param {string} facet attribute to apply the faceting on\n@param {string} value value of the attribute (will be converted to string)\n@return {SearchParameters}", "docstring_tokens": ["Add", "a", "refinement", "on", "a", "normal", "facet"], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L988-L997", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "addExcludeRefinement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Exclude a value from a \"normal\" facet\n@method\n@param {string} facet attribute to apply the exclusion on\n@param {string} value value of the attribute (will be converted to string)\n@return {SearchParameters}", "docstring_tokens": ["Exclude", "a", "value", "from", "a", "normal", "facet"], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1005-L1014", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "addDisjunctiveFacetRefinement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds a refinement on a disjunctive facet.\n@method\n@param {string} facet attribute to apply the faceting on\n@param {string} value value of the attribute (will be converted to string)\n@return {SearchParameters}", "docstring_tokens": ["Adds", "a", "refinement", "on", "a", "disjunctive", "facet", "."], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1022-L1034", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "addTagRefinement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "addTagRefinement adds a tag to the list used to filter the results\n@param {string} tag tag to be added\n@return {SearchParameters}", "docstring_tokens": ["addTagRefinement", "adds", "a", "tag", "to", "the", "list", "used", "to", "filter", "the", "results"], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1040-L1048", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "removeFacet", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove a facet from the facets attribute of the helper configuration, if it\nis present.\n@method\n@param {string} facet facet name to remove\n@return {SearchParameters}", "docstring_tokens": ["Remove", "a", "facet", "from", "the", "facets", "attribute", "of", "the", "helper", "configuration", "if", "it", "is", "present", "."], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1056-L1066", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "removeDisjunctiveFacet", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove a disjunctive facet from the disjunctiveFacets attribute of the\nhelper configuration, if it is present.\n@method\n@param {string} facet disjunctive facet name to remove\n@return {SearchParameters}", "docstring_tokens": ["Remove", "a", "disjunctive", "facet", "from", "the", "disjunctiveFacets", "attribute", "of", "the", "helper", "configuration", "if", "it", "is", "present", "."], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1074-L1084", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "removeHierarchicalFacet", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove a hierarchical facet from the hierarchicalFacets attribute of the\nhelper configuration, if it is present.\n@method\n@param {string} facet hierarchical facet name to remove\n@return {SearchParameters}", "docstring_tokens": ["Remove", "a", "hierarchical", "facet", "from", "the", "hierarchicalFacets", "attribute", "of", "the", "helper", "configuration", "if", "it", "is", "present", "."], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1092-L1102", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "removeFacetRefinement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove a refinement set on facet. If a value is provided, it will clear the\nrefinement for the given value, otherwise it will clear all the refinement\nvalues for the faceted attribute.\n@method\n@param {string} facet name of the attribute used for faceting\n@param {string} [value] value used to filter\n@return {SearchParameters}", "docstring_tokens": ["Remove", "a", "refinement", "set", "on", "facet", ".", "If", "a", "value", "is", "provided", "it", "will", "clear", "the", "refinement", "for", "the", "given", "value", "otherwise", "it", "will", "clear", "all", "the", "refinement", "values", "for", "the", "faceted", "attribute", "."], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1112-L1121", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "removeExcludeRefinement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove a negative refinement on a facet\n@method\n@param {string} facet name of the attribute used for faceting\n@param {string} value value used to filter\n@return {SearchParameters}", "docstring_tokens": ["Remove", "a", "negative", "refinement", "on", "a", "facet"], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1129-L1138", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "removeDisjunctiveFacetRefinement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove a refinement on a disjunctive facet\n@method\n@param {string} facet name of the attribute used for faceting\n@param {string} value value used to filter\n@return {SearchParameters}", "docstring_tokens": ["Remove", "a", "refinement", "on", "a", "disjunctive", "facet"], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1146-L1157", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "removeTagRefinement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove a tag from the list of tag refinements\n@method\n@param {string} tag the tag to remove\n@return {SearchParameters}", "docstring_tokens": ["Remove", "a", "tag", "from", "the", "list", "of", "tag", "refinements"], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1164-L1172", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "toggleFacetRefinement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generic toggle refinement method to use with facet, disjunctive facets\nand hierarchical facets\n@param {string} facet the facet to refine\n@param {string} value the associated value\n@return {SearchParameters}\n@throws will throw an error if the facet is not declared in the settings of the helper", "docstring_tokens": ["Generic", "toggle", "refinement", "method", "to", "use", "with", "facet", "disjunctive", "facets", "and", "hierarchical", "facets"], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1193-L1204", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds a refinement on a hierarchical facet.\n@param {string} facet the facet name\n@param {string} path the hierarchical facet path\n@return {SearchParameter} the new state\n@throws Error if the facet is not defined or if the facet is refined", "docstring_tokens": ["Adds", "a", "refinement", "on", "a", "hierarchical", "facet", "."], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1307-L1316", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "isFacetRefined", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if the facet is refined, either for a specific value or in\ngeneral.\n@method\n@param {string} facet name of the attribute for used for faceting\n@param {string} value, optional value. If passed will test that this value\nis filtering the given facet.\n@return {boolean} returns true if refined", "docstring_tokens": ["Returns", "true", "if", "the", "facet", "is", "refined", "either", "for", "a", "specific", "value", "or", "in", "general", "."], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1383-L1388", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "isExcludeRefined", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if the facet contains exclusions or if a specific value is\nexcluded.\n\n@method\n@param {string} facet name of the attribute for used for faceting\n@param {string} [value] optional value. If passed will test that this value\nis filtering the given facet.\n@return {boolean} returns true if refined", "docstring_tokens": ["Returns", "true", "if", "the", "facet", "contains", "exclusions", "or", "if", "a", "specific", "value", "is", "excluded", "."], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1399-L1404", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "getRefinedDisjunctiveFacets", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the list of all disjunctive facets refined\n@method\n@param {string} facet name of the attribute used for faceting\n@param {value} value value used for filtering\n@return {string[]}", "docstring_tokens": ["Returns", "the", "list", "of", "all", "disjunctive", "facets", "refined"], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1489-L1499", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "setParameter", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Let the user set a specific value for a given parameter. Will return the\nsame instance if the parameter is invalid or if the value is the same as the\nprevious one.\n@method\n@param {string} parameter the parameter name\n@param {any} value the value to be set, must be compliant with the definition\nof the attribute on the object\n@return {SearchParameters} the updated state", "docstring_tokens": ["Let", "the", "user", "set", "a", "specific", "value", "for", "a", "given", "parameter", ".", "Will", "return", "the", "same", "instance", "if", "the", "parameter", "is", "invalid", "or", "if", "the", "value", "is", "the", "same", "as", "the", "previous", "one", "."], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1571-L1579", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "setQueryParameters", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Let the user set any of the parameters with a plain object.\n@method\n@param {object} params all the keys and the values to be updated\n@return {SearchParameters} a new updated instance", "docstring_tokens": ["Let", "the", "user", "set", "any", "of", "the", "parameters", "with", "a", "plain", "object", "."], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1586-L1606", "partition": "test"} +{"repo": "algolia/algoliasearch-helper-js", "path": "src/SearchParameters/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the current breadcrumb for a hierarchical facet, as an array\n@param {string} facetName Hierarchical facet name\n@return {array.} the path as an array of string", "docstring_tokens": ["Get", "the", "current", "breadcrumb", "for", "a", "hierarchical", "facet", "as", "an", "array"], "sha": "9ebdd34ab98a3298a7687f81dfef24b01e798c53", "url": "https://github.com/algolia/algoliasearch-helper-js/blob/9ebdd34ab98a3298a7687f81dfef24b01e798c53/src/SearchParameters/index.js#L1692-L1706", "partition": "test"} +{"repo": "AssemblyScript/binaryen.js", "path": "scripts/build.js", "func_name": "runCommand", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Runs a command using the specified arguments.", "docstring_tokens": ["Runs", "a", "command", "using", "the", "specified", "arguments", "."], "sha": "43effe71e5bf6488752a468e295b94ba6ecbf571", "url": "https://github.com/AssemblyScript/binaryen.js/blob/43effe71e5bf6488752a468e295b94ba6ecbf571/scripts/build.js#L55-L68", "partition": "test"} +{"repo": "AssemblyScript/binaryen.js", "path": "scripts/build.js", "func_name": "compileIntrinsics", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compiles embedded intrinsics used by the targets below.", "docstring_tokens": ["Compiles", "embedded", "intrinsics", "used", "by", "the", "targets", "below", "."], "sha": "43effe71e5bf6488752a468e295b94ba6ecbf571", "url": "https://github.com/AssemblyScript/binaryen.js/blob/43effe71e5bf6488752a468e295b94ba6ecbf571/scripts/build.js#L71-L79", "partition": "test"} +{"repo": "AssemblyScript/binaryen.js", "path": "scripts/build.js", "func_name": "compileShared", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compiles shared bitcode used to build the targets below.", "docstring_tokens": ["Compiles", "shared", "bitcode", "used", "to", "build", "the", "targets", "below", "."], "sha": "43effe71e5bf6488752a468e295b94ba6ecbf571", "url": "https://github.com/AssemblyScript/binaryen.js/blob/43effe71e5bf6488752a468e295b94ba6ecbf571/scripts/build.js#L82-L88", "partition": "test"} +{"repo": "AssemblyScript/binaryen.js", "path": "scripts/build.js", "func_name": "compileJs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compiles the JavaScript target.", "docstring_tokens": ["Compiles", "the", "JavaScript", "target", "."], "sha": "43effe71e5bf6488752a468e295b94ba6ecbf571", "url": "https://github.com/AssemblyScript/binaryen.js/blob/43effe71e5bf6488752a468e295b94ba6ecbf571/scripts/build.js#L91-L107", "partition": "test"} +{"repo": "AssemblyScript/binaryen.js", "path": "scripts/build.js", "func_name": "compileWasm", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compiles the WebAssembly target.", "docstring_tokens": ["Compiles", "the", "WebAssembly", "target", "."], "sha": "43effe71e5bf6488752a468e295b94ba6ecbf571", "url": "https://github.com/AssemblyScript/binaryen.js/blob/43effe71e5bf6488752a468e295b94ba6ecbf571/scripts/build.js#L110-L126", "partition": "test"} +{"repo": "mesqueeb/vuex-easy-firestore", "path": "dist/index.esm.js", "func_name": "pluginState", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "a function returning the state object\n\n@export\n@returns {IState} the state object", "docstring_tokens": ["a", "function", "returning", "the", "state", "object"], "sha": "08695ae1abd5c5bbfb6c3cfb618f17e7249f5667", "url": "https://github.com/mesqueeb/vuex-easy-firestore/blob/08695ae1abd5c5bbfb6c3cfb618f17e7249f5667/dist/index.esm.js#L63-L82", "partition": "test"} +{"repo": "mesqueeb/vuex-easy-firestore", "path": "dist/index.esm.js", "func_name": "helpers", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Merge if exists", "docstring_tokens": ["Merge", "if", "exists"], "sha": "08695ae1abd5c5bbfb6c3cfb618f17e7249f5667", "url": "https://github.com/mesqueeb/vuex-easy-firestore/blob/08695ae1abd5c5bbfb6c3cfb618f17e7249f5667/dist/index.esm.js#L310-L318", "partition": "test"} +{"repo": "mesqueeb/vuex-easy-firestore", "path": "dist/index.esm.js", "func_name": "makeBatchFromSyncstack", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a Firebase batch from a syncStack to be passed inside the state param.\n\n@export\n@param {IPluginState} state The state which should have `_sync.syncStack`, `_sync.userId`, `state._conf.firestorePath`\n@param {AnyObject} getters The getters which should have `dbRef`, `storeRef`, `collectionMode` and `firestorePathComplete`\n@param {any} Firebase dependency injection for Firebase & Firestore\n@param {number} [batchMaxCount=500] The max count of the batch. Defaults to 500 as per Firestore documentation.\n@returns {*} A Firebase firestore batch object.", "docstring_tokens": ["Create", "a", "Firebase", "batch", "from", "a", "syncStack", "to", "be", "passed", "inside", "the", "state", "param", "."], "sha": "08695ae1abd5c5bbfb6c3cfb618f17e7249f5667", "url": "https://github.com/mesqueeb/vuex-easy-firestore/blob/08695ae1abd5c5bbfb6c3cfb618f17e7249f5667/dist/index.esm.js#L530-L595", "partition": "test"} +{"repo": "mesqueeb/vuex-easy-firestore", "path": "dist/index.esm.js", "func_name": "iniModule", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A function that returns a vuex module object with seamless 2-way sync for firestore.\n\n@param {IEasyFirestoreModule} userConfig Takes a config object per module\n@param {*} FirebaseDependency The Firebase dependency (non-instanciated), defaults to the Firebase peer dependency if left blank.\n@returns {IStore} the module ready to be included in your vuex store", "docstring_tokens": ["A", "function", "that", "returns", "a", "vuex", "module", "object", "with", "seamless", "2", "-", "way", "sync", "for", "firestore", "."], "sha": "08695ae1abd5c5bbfb6c3cfb618f17e7249f5667", "url": "https://github.com/mesqueeb/vuex-easy-firestore/blob/08695ae1abd5c5bbfb6c3cfb618f17e7249f5667/dist/index.esm.js#L1771-L1803", "partition": "test"} +{"repo": "mesqueeb/vuex-easy-firestore", "path": "dist/index.cjs.js", "func_name": "setDefaultValues", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Merge an object onto defaultValues\n\n@export\n@param {object} obj\n@param {object} defaultValues\n@returns {AnyObject} the new object", "docstring_tokens": ["Merge", "an", "object", "onto", "defaultValues"], "sha": "08695ae1abd5c5bbfb6c3cfb618f17e7249f5667", "url": "https://github.com/mesqueeb/vuex-easy-firestore/blob/08695ae1abd5c5bbfb6c3cfb618f17e7249f5667/dist/index.cjs.js#L447-L454", "partition": "test"} +{"repo": "mesqueeb/vuex-easy-firestore", "path": "dist/index.cjs.js", "func_name": "getId", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "gets an ID from a single piece of payload.\n\n@export\n@param {(object | string)} payloadPiece\n@param {object} [conf] (optional - for error handling) the vuex-easy-access config\n@param {string} [path] (optional - for error handling) the path called\n@param {(object | any[] | string)} [fullPayload] (optional - for error handling) the full payload on which each was `getId()` called\n@returns {string} the id", "docstring_tokens": ["gets", "an", "ID", "from", "a", "single", "piece", "of", "payload", "."], "sha": "08695ae1abd5c5bbfb6c3cfb618f17e7249f5667", "url": "https://github.com/mesqueeb/vuex-easy-firestore/blob/08695ae1abd5c5bbfb6c3cfb618f17e7249f5667/dist/index.cjs.js#L668-L679", "partition": "test"} +{"repo": "mesqueeb/vuex-easy-firestore", "path": "dist/index.cjs.js", "func_name": "vuexEasyFirestore", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Firebase \nCreate vuex-easy-firestore modules. Add as single plugin to Vuex Store.\n\n@export\n@param {(IEasyFirestoreModule | IEasyFirestoreModule[])} easyFirestoreModule A vuex-easy-firestore module (or array of modules) with proper configuration as per the documentation.\n@param {{logging?: boolean, FirebaseDependency?: any}} extraConfig An object with `logging` and `FirebaseDependency` props. `logging` enables console logs for debugging. `FirebaseDependency` is the non-instanciated Firebase class you can pass. (defaults to the Firebase peer dependency)\n@returns {*}", "docstring_tokens": ["Firebase", "Create", "vuex", "-", "easy", "-", "firestore", "modules", ".", "Add", "as", "single", "plugin", "to", "Vuex", "Store", "."], "sha": "08695ae1abd5c5bbfb6c3cfb618f17e7249f5667", "url": "https://github.com/mesqueeb/vuex-easy-firestore/blob/08695ae1abd5c5bbfb6c3cfb618f17e7249f5667/dist/index.cjs.js#L1820-L1844", "partition": "test"} +{"repo": "bkrem/react-d3-tree", "path": "src/util/index.js", "func_name": "parseCSV", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "parseCSV - Parses a CSV file into a hierarchy structure.\n\n@param {string} csvFilePath Path to CSV file to be parsed.\n@param {array|undefined} attributeFields Set of column names to be used as attributes (optional)\n\n@return {Promise} Returns hierarchy array if resolved, error object if rejected.", "docstring_tokens": ["parseCSV", "-", "Parses", "a", "CSV", "file", "into", "a", "hierarchy", "structure", "."], "sha": "9084afca0f35e73dd6b7e7433a09907decd9f308", "url": "https://github.com/bkrem/react-d3-tree/blob/9084afca0f35e73dd6b7e7433a09907decd9f308/src/util/index.js#L72-L80", "partition": "test"} +{"repo": "bkrem/react-d3-tree", "path": "src/util/index.js", "func_name": "parseJSON", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "parseJSON - Parses a hierarchical JSON file that requires no further transformation.\n\n@param {string} jsonFilePath Path to JSON file to be parsed.\n\n@return {Promise} Returns hierarchy array if resolved, error object if rejected.", "docstring_tokens": ["parseJSON", "-", "Parses", "a", "hierarchical", "JSON", "file", "that", "requires", "no", "further", "transformation", "."], "sha": "9084afca0f35e73dd6b7e7433a09907decd9f308", "url": "https://github.com/bkrem/react-d3-tree/blob/9084afca0f35e73dd6b7e7433a09907decd9f308/src/util/index.js#L89-L97", "partition": "test"} +{"repo": "bkrem/react-d3-tree", "path": "src/util/index.js", "func_name": "parseFlatJSON", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "parseFlatJSON - Parses a flat JSON file into a hierarchy structure.\n\n@param {string} jsonFilePath Path to flat JSON file to be parsed.\n@param {array|undefined} attributeFields Set of `link` fields to be used as attributes\n\n@return {Promise} Returns hierarchy array if resolved, error object if rejected.", "docstring_tokens": ["parseFlatJSON", "-", "Parses", "a", "flat", "JSON", "file", "into", "a", "hierarchy", "structure", "."], "sha": "9084afca0f35e73dd6b7e7433a09907decd9f308", "url": "https://github.com/bkrem/react-d3-tree/blob/9084afca0f35e73dd6b7e7433a09907decd9f308/src/util/index.js#L107-L115", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "checkPropTypes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Assert that the values match with the type specs.\nError messages are memorized and will only be shown once.\n\n@param {object} typeSpecs Map of name to a ReactPropType\n@param {object} values Runtime values that need to be type-checked\n@param {string} location e.g. \"prop\", \"context\", \"child context\"\n@param {string} componentName Name of the component for error messages.\n@param {?Function} getStack Returns the component stack.\n@private", "docstring_tokens": ["Assert", "that", "the", "values", "match", "with", "the", "type", "specs", ".", "Error", "messages", "are", "memorized", "and", "will", "only", "be", "shown", "once", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L2282-L2330", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "invokeGuardedCallback", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Call a function while guarding against errors that happens within it.\nReturns an error if it throws, otherwise null.\n\nIn production, this is implemented using a try-catch. The reason we don't\nuse a try-catch directly is so that we can swap out a different\nimplementation in DEV mode.\n\n@param {String} name of the guard to use for logging or debugging\n@param {Function} func The function to invoke\n@param {*} context The context to use when calling the function\n@param {...*} args Arguments for function", "docstring_tokens": ["Call", "a", "function", "while", "guarding", "against", "errors", "that", "happens", "within", "it", ".", "Returns", "an", "error", "if", "it", "throws", "otherwise", "null", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L2613-L2617", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "getClosestInstanceFromNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Given a DOM node, return the closest ReactDOMComponent or\nReactDOMTextComponent instance ancestor.", "docstring_tokens": ["Given", "a", "DOM", "node", "return", "the", "closest", "ReactDOMComponent", "or", "ReactDOMTextComponent", "instance", "ancestor", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L3265-L3287", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "getInstanceFromNode$1", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent\ninstance, or null if the node was not rendered by this React.", "docstring_tokens": ["Given", "a", "DOM", "node", "return", "the", "ReactDOMComponent", "or", "ReactDOMTextComponent", "instance", "or", "null", "if", "the", "node", "was", "not", "rendered", "by", "this", "React", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L3293-L3303", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "getNodeFromInstance$1", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding\nDOM node.", "docstring_tokens": ["Given", "a", "ReactDOMComponent", "or", "ReactDOMTextComponent", "return", "the", "corresponding", "DOM", "node", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L3309-L3319", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "traverseEnterLeave", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that\nshould would receive a `mouseEnter` or `mouseLeave` event.\n\nDoes not invoke the callback on the nearest common ancestor because nothing\n\"entered\" or \"left\" that element.", "docstring_tokens": ["Traverses", "the", "ID", "hierarchy", "and", "invokes", "the", "supplied", "cb", "on", "any", "IDs", "that", "should", "would", "receive", "a", "mouseEnter", "or", "mouseLeave", "event", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L3417-L3455", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "makePrefixMap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate a mapping of standard vendor prefixes using the defined style property and event name.\n\n@param {string} styleProp\n@param {string} eventName\n@returns {object}", "docstring_tokens": ["Generate", "a", "mapping", "of", "standard", "vendor", "prefixes", "using", "the", "defined", "style", "property", "and", "event", "name", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L3568-L3576", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "`PooledClass` looks for `destructor` on each instance it releases.", "docstring_tokens": ["PooledClass", "looks", "for", "destructor", "on", "each", "instance", "it", "releases", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L3958-L3979", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "getCompositionEventType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Translate native top level events into event types.\n\n@param {string} topLevelType\n@return {object}", "docstring_tokens": ["Translate", "native", "top", "level", "events", "into", "event", "types", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L4161-L4170", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "isFallbackCompositionEnd", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Does our fallback mode think that this event is the end of composition?\n\n@param {string} topLevelType\n@param {object} nativeEvent\n@return {boolean}", "docstring_tokens": ["Does", "our", "fallback", "mode", "think", "that", "this", "event", "is", "the", "end", "of", "composition?"], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L4191-L4208", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "getValueForProperty", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the value for a property on a node. Only used in DEV for SSR validation.\nThe \"expected\" argument is used as a hint of what the expected value is.\nSome properties have multiple equivalent values.", "docstring_tokens": ["Get", "the", "value", "for", "a", "property", "on", "a", "node", ".", "Only", "used", "in", "DEV", "for", "SSR", "validation", ".", "The", "expected", "argument", "is", "used", "as", "a", "hint", "of", "what", "the", "expected", "value", "is", ".", "Some", "properties", "have", "multiple", "equivalent", "values", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L5312-L5364", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "getTargetInstForInputEventPolyfill", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "For IE8 and IE9.", "docstring_tokens": ["For", "IE8", "and", "IE9", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L6021-L6035", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "For almost every interaction we care about, there will be both a top-level\n`mouseover` and `mouseout` event that occurs. Only use `mouseout` so that\nwe do not extract duplicate events. However, moving the mouse into the\nbrowser from outside will not fire a `mouseout` event. In this case, we use\nthe `mouseover` top-level event.", "docstring_tokens": ["For", "almost", "every", "interaction", "we", "care", "about", "there", "will", "be", "both", "a", "top", "-", "level", "mouseover", "and", "mouseout", "event", "that", "occurs", ".", "Only", "use", "mouseout", "so", "that", "we", "do", "not", "extract", "duplicate", "events", ".", "However", "moving", "the", "mouse", "into", "the", "browser", "from", "outside", "will", "not", "fire", "a", "mouseout", "event", ".", "In", "this", "case", "we", "use", "the", "mouseover", "top", "-", "level", "event", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L6275-L6352", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "listenTo", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "We listen for bubbled touch events on the document object.\n\nFirefox v8.01 (and possibly others) exhibited strange behavior when\nmounting `onmousemove` events at some node that was not the document\nelement. The symptoms were that if your mouse is not moving over something\ncontained within that mount point (for example on the background) the\ntop-level listeners for `onmousemove` won't be called. However, if you\nregister the `mousemove` on the document object, then it will of course\ncatch all `mousemove`s. This along with iOS quirks, justifies restricting\ntop-level listeners to the document object only, at least for these\nmovement types of events and possibly all events.\n\n@see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html\n\nAlso, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but\nthey bubble to document.\n\n@param {string} registrationName Name of listener (e.g. `onClick`).\n@param {object} mountAt Container where to mount the listener", "docstring_tokens": ["We", "listen", "for", "bubbled", "touch", "events", "on", "the", "document", "object", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L7405-L7449", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "getEventTargetDocument", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get document associated with the event target.\n\n@param {object} nativeEventTarget\n@return {Document}", "docstring_tokens": ["Get", "document", "associated", "with", "the", "event", "target", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L7901-L7903", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "constructSelectEvent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Poll selection to see whether it's changed.\n\n@param {object} nativeEvent\n@param {object} nativeEventTarget\n@return {?SyntheticEvent}", "docstring_tokens": ["Poll", "selection", "to", "see", "whether", "it", "s", "changed", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L7912-L7939", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set the textContent property of a node. For text updates, it's faster\nto set the `nodeValue` of the Text node directly instead of using\n`.textContent` which will remove the existing node and create a new one.\n\n@param {DOMElement} node\n@param {string} text\n@internal", "docstring_tokens": ["Set", "the", "textContent", "property", "of", "a", "node", ".", "For", "text", "updates", "it", "s", "faster", "to", "set", "the", "nodeValue", "of", "the", "Text", "node", "directly", "instead", "of", "using", ".", "textContent", "which", "will", "remove", "the", "existing", "node", "and", "create", "a", "new", "one", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L8478-L8488", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "createDangerousStringForStyles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Operations for dealing with CSS properties.\n \nThis creates a string that is expected to be equivalent to the style\nattribute generated by server-side rendering. It by-passes warnings and\nsecurity checks so it's not safe to use this value for anything other than\ncomparison. It is only used in DEV for SSR validation.", "docstring_tokens": ["Operations", "for", "dealing", "with", "CSS", "properties", ".", "This", "creates", "a", "string", "that", "is", "expected", "to", "be", "equivalent", "to", "the", "style", "attribute", "generated", "by", "server", "-", "side", "rendering", ".", "It", "by", "-", "passes", "warnings", "and", "security", "checks", "so", "it", "s", "not", "safe", "to", "use", "this", "value", "for", "anything", "other", "than", "comparison", ".", "It", "is", "only", "used", "in", "DEV", "for", "SSR", "validation", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L8718-L8737", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Persistent host tree mode An unfortunate fork of appendAllChildren because we have two different parent types.", "docstring_tokens": ["Persistent", "host", "tree", "mode", "An", "unfortunate", "fork", "of", "appendAllChildren", "because", "we", "have", "two", "different", "parent", "types", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L16593-L16621", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "safelyCallComponentWillUnmount", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Capture errors so they don't interrupt unmounting.", "docstring_tokens": ["Capture", "errors", "so", "they", "don", "t", "interrupt", "unmounting", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L16975-L16983", "partition": "test"} +{"repo": "alvarotrigo/react-fullpage", "path": "example/dist/bundle.js", "func_name": "computeUniqueAsyncExpiration", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a unique async expiration time.", "docstring_tokens": ["Creates", "a", "unique", "async", "expiration", "time", "."], "sha": "5a11fb5211e5706da81f2874516f023dc6e5aa88", "url": "https://github.com/alvarotrigo/react-fullpage/blob/5a11fb5211e5706da81f2874516f023dc6e5aa88/example/dist/bundle.js#L19109-L19120", "partition": "test"} +{"repo": "kisenka/svg-sprite-loader", "path": "lib/utils/stringify.js", "func_name": "stringify", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If already stringified - return original content\n@param {Object|Array} content\n@return {string}", "docstring_tokens": ["If", "already", "stringified", "-", "return", "original", "content"], "sha": "85f07caed508403ab259b5b13eabc97704e0261b", "url": "https://github.com/kisenka/svg-sprite-loader/blob/85f07caed508403ab259b5b13eabc97704e0261b/lib/utils/stringify.js#L8-L13", "partition": "test"} +{"repo": "kisenka/svg-sprite-loader", "path": "lib/utils/get-loader-options.js", "func_name": "getLoaderOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "webpack 1 compat loader options finder. Returns normalized options.\n@param {string} loaderPath\n@param {Object|Rule} rule\n@return {Object|null}", "docstring_tokens": ["webpack", "1", "compat", "loader", "options", "finder", ".", "Returns", "normalized", "options", "."], "sha": "85f07caed508403ab259b5b13eabc97704e0261b", "url": "https://github.com/kisenka/svg-sprite-loader/blob/85f07caed508403ab259b5b13eabc97704e0261b/lib/utils/get-loader-options.js#L10-L32", "partition": "test"} +{"repo": "kisenka/svg-sprite-loader", "path": "lib/utils/normalize-rule.js", "func_name": "normalizeRule", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "webpack 1 compat rule normalizer\n@param {string|Rule} rule (string - webpack 1, Object - webpack 2)\n@return {Object}", "docstring_tokens": ["webpack", "1", "compat", "rule", "normalizer"], "sha": "85f07caed508403ab259b5b13eabc97704e0261b", "url": "https://github.com/kisenka/svg-sprite-loader/blob/85f07caed508403ab259b5b13eabc97704e0261b/lib/utils/normalize-rule.js#L9-L31", "partition": "test"} +{"repo": "phphe/vue-draggable-nested-tree", "path": "src/components/autoMoveDragPlaceHolder.js", "func_name": "findParent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "start from node self", "docstring_tokens": ["start", "from", "node", "self"], "sha": "094b12954d55d449cdebbcbc00c6456fed3c99ce", "url": "https://github.com/phphe/vue-draggable-nested-tree/blob/094b12954d55d449cdebbcbc00c6456fed3c99ce/src/components/autoMoveDragPlaceHolder.js#L129-L137", "partition": "test"} +{"repo": "phphe/vue-draggable-nested-tree", "path": "dist/vue-draggable-nested-tree.es.js", "func_name": "pure", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "pure node self", "docstring_tokens": ["pure", "node", "self"], "sha": "094b12954d55d449cdebbcbc00c6456fed3c99ce", "url": "https://github.com/phphe/vue-draggable-nested-tree/blob/094b12954d55d449cdebbcbc00c6456fed3c99ce/dist/vue-draggable-nested-tree.es.js#L225-L264", "partition": "test"} +{"repo": "phphe/vue-draggable-nested-tree", "path": "dist/vue-draggable-nested-tree.es.js", "func_name": "offset2", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "left top point", "docstring_tokens": ["left", "top", "point"], "sha": "094b12954d55d449cdebbcbc00c6456fed3c99ce", "url": "https://github.com/phphe/vue-draggable-nested-tree/blob/094b12954d55d449cdebbcbc00c6456fed3c99ce/dist/vue-draggable-nested-tree.es.js#L874-L879", "partition": "test"} +{"repo": "phphe/vue-draggable-nested-tree", "path": "dist/vue-draggable-nested-tree.es.js", "func_name": "offsetToViewPort", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "right bottom point", "docstring_tokens": ["right", "bottom", "point"], "sha": "094b12954d55d449cdebbcbc00c6456fed3c99ce", "url": "https://github.com/phphe/vue-draggable-nested-tree/blob/094b12954d55d449cdebbcbc00c6456fed3c99ce/dist/vue-draggable-nested-tree.es.js#L881-L886", "partition": "test"} +{"repo": "phphe/vue-draggable-nested-tree", "path": "dist/vue-draggable-nested-tree.es.js", "func_name": "currentTreeRootSecondChildExcludingDragging", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "the second child of currentTree root, excluding dragging node", "docstring_tokens": ["the", "second", "child", "of", "currentTree", "root", "excluding", "dragging", "node"], "sha": "094b12954d55d449cdebbcbc00c6456fed3c99ce", "url": "https://github.com/phphe/vue-draggable-nested-tree/blob/094b12954d55d449cdebbcbc00c6456fed3c99ce/dist/vue-draggable-nested-tree.es.js#L921-L927", "partition": "test"} +{"repo": "phphe/vue-draggable-nested-tree", "path": "dist/vue-draggable-nested-tree.cjs.js", "func_name": "appendPrev", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "append to prev sibling", "docstring_tokens": ["append", "to", "prev", "sibling"], "sha": "094b12954d55d449cdebbcbc00c6456fed3c99ce", "url": "https://github.com/phphe/vue-draggable-nested-tree/blob/094b12954d55d449cdebbcbc00c6456fed3c99ce/dist/vue-draggable-nested-tree.cjs.js#L646-L653", "partition": "test"} +{"repo": "phphe/vue-draggable-nested-tree", "path": "dist/vue-draggable-nested-tree.cjs.js", "func_name": "appendCurrentTree", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "append to current tree", "docstring_tokens": ["append", "to", "current", "tree"], "sha": "094b12954d55d449cdebbcbc00c6456fed3c99ce", "url": "https://github.com/phphe/vue-draggable-nested-tree/blob/094b12954d55d449cdebbcbc00c6456fed3c99ce/dist/vue-draggable-nested-tree.cjs.js#L655-L659", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/commands/find.js", "func_name": "stripViewFromSelector", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if the word 'View' is appended to selector and if it is, strip it out", "docstring_tokens": ["Check", "if", "the", "word", "View", "is", "appended", "to", "selector", "and", "if", "it", "is", "strip", "it", "out"], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/commands/find.js#L38-L53", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/utils.js", "func_name": "getPidUsingPattern", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the process id of the most recent running application\nhaving the particular command line pattern.\n\n@param {string} pgrepPattern - pgrep-compatible search pattern.\n@return {string} Either a process id or null if no matches were found.", "docstring_tokens": ["Get", "the", "process", "id", "of", "the", "most", "recent", "running", "application", "having", "the", "particular", "command", "line", "pattern", "."], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/utils.js#L210-L224", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/utils.js", "func_name": "killAppUsingPattern", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Kill a process having the particular command line pattern.\nThis method tries to send SIGINT, SIGTERM and SIGKILL to the\nmatched processes in this order if the process is still running.\n\n@param {string} pgrepPattern - pgrep-compatible search pattern.", "docstring_tokens": ["Kill", "a", "process", "having", "the", "particular", "command", "line", "pattern", ".", "This", "method", "tries", "to", "send", "SIGINT", "SIGTERM", "and", "SIGKILL", "to", "the", "matched", "processes", "in", "this", "order", "if", "the", "process", "is", "still", "running", "."], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/utils.js#L233-L246", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/utils.js", "func_name": "getPIDsListeningOnPort", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the IDs of processes listening on the particular system port.\nIt is also possible to apply additional filtering based on the\nprocess command line.\n\n@param {string|number} port - The port number.\n@param {?Function} filteringFunc - Optional lambda function, which\nreceives command line string of the particular process\nlistening on given port, and is expected to return\neither true or false to include/exclude the corresponding PID\nfrom the resulting array.\n@returns {Array} - the list of matched process ids.", "docstring_tokens": ["Get", "the", "IDs", "of", "processes", "listening", "on", "the", "particular", "system", "port", ".", "It", "is", "also", "possible", "to", "apply", "additional", "filtering", "based", "on", "the", "process", "command", "line", "."], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/utils.js#L306-L323", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/utils.js", "func_name": "removeAllSessionWebSocketHandlers", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Stops and removes all web socket handlers that are listening\nin scope of the currect session.\n\n@param {Object} server - The instance of NodeJs HTTP server,\nwhich hosts Appium\n@param {string} sessionId - The id of the current session", "docstring_tokens": ["Stops", "and", "removes", "all", "web", "socket", "handlers", "that", "are", "listening", "in", "scope", "of", "the", "currect", "session", "."], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/utils.js#L400-L409", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/utils.js", "func_name": "verifyApplicationPlatform", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Verify whether the given application is compatible to the\nplatform where it is going to be installed and tested.\n\n@param {string} app - The actual path to the application bundle\n@param {boolean} isSimulator - Should be set to `true` if the test will be executed on Simulator\n@returns {?boolean} The function returns `null` if the application does not exist or there is no\n`CFBundleSupportedPlatforms` key in its Info.plist manifest.\n`true` is returned if the bundle architecture matches the device architecture.\n@throws {Error} If bundle architecture does not match the device architecture.", "docstring_tokens": ["Verify", "whether", "the", "given", "application", "is", "compatible", "to", "the", "platform", "where", "it", "is", "going", "to", "be", "installed", "and", "tested", "."], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/utils.js#L422-L445", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/utils.js", "func_name": "isLocalHost", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if the urlString is localhost\n@param {?string} urlString\n@returns {boolean} Return true if the urlString is localhost", "docstring_tokens": ["Returns", "true", "if", "the", "urlString", "is", "localhost"], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/utils.js#L461-L469", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/utils.js", "func_name": "normalizePlatformVersion", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Normalizes platformVersion to a valid iOS version string\n\n@param {string} originalVersion - Loose version number, that can be parsed by semver\n@return {string} iOS version number in . format\n@throws {Error} if the version number cannot be parsed", "docstring_tokens": ["Normalizes", "platformVersion", "to", "a", "valid", "iOS", "version", "string"], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/utils.js#L478-L485", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/wda/utils.js", "func_name": "updateProjectFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Update WebDriverAgentRunner project bundle ID with newBundleId.\nThis method assumes project file is in the correct state.\n@param {string} agentPath - Path to the .xcodeproj directory.\n@param {string} newBundleId the new bundle ID used to update.", "docstring_tokens": ["Update", "WebDriverAgentRunner", "project", "bundle", "ID", "with", "newBundleId", ".", "This", "method", "assumes", "project", "file", "is", "in", "the", "correct", "state", "."], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/wda/utils.js#L31-L43", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/wda/utils.js", "func_name": "resetProjectFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Reset WebDriverAgentRunner project bundle ID to correct state.\n@param {string} agentPath - Path to the .xcodeproj directory.", "docstring_tokens": ["Reset", "WebDriverAgentRunner", "project", "bundle", "ID", "to", "correct", "state", "."], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/wda/utils.js#L49-L64", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/wda/utils.js", "func_name": "getAdditionalRunContent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the WDA object which appends existing xctest runner content\n@param {string} platformName - The name of the platform\n@param {string} version - The Xcode SDK version of OS.\n@return {object} returns a runner object which has USE_PORT", "docstring_tokens": ["Return", "the", "WDA", "object", "which", "appends", "existing", "xctest", "runner", "content"], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/wda/utils.js#L237-L247", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/wda/utils.js", "func_name": "getWDAUpgradeTimestamp", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieves WDA upgrade timestamp\n\n@param {string} bootstrapPath The full path to the folder where WDA source is located\n@return {?number} The UNIX timestamp of the carthage root folder, where dependencies are downloaded.\nThis folder is created only once on module upgrade/first install.", "docstring_tokens": ["Retrieves", "WDA", "upgrade", "timestamp"], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/wda/utils.js#L340-L347", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/commands/file-movement.js", "func_name": "parseContainerPath", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parses the actual path and the bundle identifier from the given path string\n\n@param {string} remotePath - The given path string. The string should\nmatch `CONTAINER_PATH_PATTERN` regexp, otherwise an error is going\nto be thrown. A valid string example: `@bundle.identifier:container_type/relative_path_in_container`\n@param {Function|string} containerRootSupplier - Either a string, that contains\nfull path to the mount root for real devices or a function, which accepts two parameters\n(bundle identifier and optional container type) and returns full path to container\nroot folder on the local file system, for Simulator\n@returns {Array} - An array where the first item is the parsed bundle\nidentifier and the second one is the absolute full path of the item on the local\nfile system", "docstring_tokens": ["Parses", "the", "actual", "path", "and", "the", "bundle", "identifier", "from", "the", "given", "path", "string"], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/commands/file-movement.js#L59-L82", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/commands/file-movement.js", "func_name": "pushFileToSimulator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Save the given base64 data chunk as a binary file on the Simulator under test.\n\n@param {Object} device - The device object, which represents the device under test.\nThis object is expected to have the `udid` property containing the\nvalid device ID.\n@param {string} remotePath - The remote path on the device. This variable can be prefixed with\nbundle id, so then the file will be uploaded to the corresponding\napplication container instead of the default media folder, for example\n'@com.myapp.bla:data/RelativePathInContainer/111.png'. The '@' character at the\nbeginning of the argument is mandatory in such case. The colon at the end of bundle identifier\nis optional and is used to distinguish the container type.\nPossible values there are 'app', 'data', 'groups', ''.\nThe default value is 'app'.\nThe relative folder path is ignored if the file is going to be uploaded\nto the default media folder and only the file name is considered important.\n@param {string} base64Data - Base-64 encoded content of the file to be uploaded.", "docstring_tokens": ["Save", "the", "given", "base64", "data", "chunk", "as", "a", "binary", "file", "on", "the", "Simulator", "under", "test", "."], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/commands/file-movement.js#L102-L124", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/commands/file-movement.js", "func_name": "pullFromSimulator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the content of given file or folder from iOS Simulator and return it as base-64 encoded string.\nFolder content is recursively packed into a zip archive.\n\n@param {Object} device - The device object, which represents the device under test.\nThis object is expected to have the `udid` property containing the\nvalid device ID.\n@param {string} remotePath - The path to a file or a folder, which exists in the corresponding application\ncontainer on Simulator. Use\n@:/\nformat to pull a file or a folder from an application container of the given type.\nPossible container types are 'app', 'data', 'groups', ''.\nThe default type is 'app'.\n@param {boolean} isFile - Whether the destination item is a file or a folder\n@returns {string} Base-64 encoded content of the file.", "docstring_tokens": ["Get", "the", "content", "of", "given", "file", "or", "folder", "from", "iOS", "Simulator", "and", "return", "it", "as", "base", "-", "64", "encoded", "string", ".", "Folder", "content", "is", "recursively", "packed", "into", "a", "zip", "archive", "."], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/commands/file-movement.js#L195-L216", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/commands/file-movement.js", "func_name": "pullFromRealDevice", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the content of given file or folder from the real device under test and return it as base-64 encoded string.\nFolder content is recursively packed into a zip archive.\n\n@param {Object} device - The device object, which represents the device under test.\nThis object is expected to have the `udid` property containing the\nvalid device ID.\n@param {string} remotePath - The path to an existing remote file on the device. This variable can be prefixed with\nbundle id, so then the file will be downloaded from the corresponding\napplication container instead of the default media folder, for example\n'@com.myapp.bla/RelativePathInContainer/111.png'. The '@' character at the\nbeginning of the argument is mandatory in such case.\n@param {boolean} isFile - Whether the destination item is a file or a folder\n@return {string} Base-64 encoded content of the remote file", "docstring_tokens": ["Get", "the", "content", "of", "given", "file", "or", "folder", "from", "the", "real", "device", "under", "test", "and", "return", "it", "as", "base", "-", "64", "encoded", "string", ".", "Folder", "content", "is", "recursively", "packed", "into", "a", "zip", "archive", "."], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/commands/file-movement.js#L233-L270", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/simulator-management.js", "func_name": "createSim", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Capability set by a user\n\n@property {string} deviceName - A name for the device\n@property {string} platformVersion - The version of iOS to use\n \nCreate a new simulator with `appiumTest-` prefix and return the object.\n\n@param {object} SimCreationCaps - Capability set by a user. The options available are:\n@property {string} platform [iOS] - Platform name in order to specify runtime such as 'iOS', 'tvOS', 'watchOS'\n@returns {object} Simulator object associated with the udid passed in.", "docstring_tokens": ["Capability", "set", "by", "a", "user"], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/simulator-management.js#L28-L37", "partition": "test"} +{"repo": "appium/appium-xcuitest-driver", "path": "lib/simulator-management.js", "func_name": "getExistingSim", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get a simulator which is already running.\n\n@param {object} opts - Capability set by a user. The options available are:\n- `deviceName` - a name for the device\n- `platformVersion` - the version of iOS to use\n@returns {?object} Simulator object associated with the udid passed in. Or null if no device is running.", "docstring_tokens": ["Get", "a", "simulator", "which", "is", "already", "running", "."], "sha": "eb8c1348c390314c7ad12294f8eb5c2e52326f57", "url": "https://github.com/appium/appium-xcuitest-driver/blob/eb8c1348c390314c7ad12294f8eb5c2e52326f57/lib/simulator-management.js#L47-L68", "partition": "test"} +{"repo": "donmccurdy/aframe-extras", "path": "src/misc/sphere-collider.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Update list of entities to test for collision.", "docstring_tokens": ["Update", "list", "of", "entities", "to", "test", "for", "collision", "."], "sha": "dcb4084cc89596cebcd24195a8753d877bea2f92", "url": "https://github.com/donmccurdy/aframe-extras/blob/dcb4084cc89596cebcd24195a8753d877bea2f92/src/misc/sphere-collider.js#L54-L67", "partition": "test"} +{"repo": "donmccurdy/aframe-extras", "path": "src/misc/sphere-collider.js", "func_name": "intersect", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Bounding sphere collision detection", "docstring_tokens": ["Bounding", "sphere", "collision", "detection"], "sha": "dcb4084cc89596cebcd24195a8753d877bea2f92", "url": "https://github.com/donmccurdy/aframe-extras/blob/dcb4084cc89596cebcd24195a8753d877bea2f92/src/misc/sphere-collider.js#L109-L130", "partition": "test"} +{"repo": "donmccurdy/aframe-extras", "path": "src/controls/gamepad-controls.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the state of the dpad as a THREE.Vector2.\n@return {THREE.Vector2}", "docstring_tokens": ["Returns", "the", "state", "of", "the", "dpad", "as", "a", "THREE", ".", "Vector2", "."], "sha": "dcb4084cc89596cebcd24195a8753d877bea2f92", "url": "https://github.com/donmccurdy/aframe-extras/blob/dcb4084cc89596cebcd24195a8753d877bea2f92/src/controls/gamepad-controls.js#L259-L270", "partition": "test"} +{"repo": "jerrybendy/url-search-params-polyfill", "path": "index.js", "func_name": "URLSearchParamsPolyfill", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Make a URLSearchParams instance\n\n@param {object|string|URLSearchParams} search\n@constructor", "docstring_tokens": ["Make", "a", "URLSearchParams", "instance"], "sha": "cb66794b60f603dd35e71e3031f2479e678a78c8", "url": "https://github.com/jerrybendy/url-search-params-polyfill/blob/cb66794b60f603dd35e71e3031f2479e678a78c8/index.js#L37-L45", "partition": "test"} +{"repo": "joyent/node-ldapjs", "path": "lib/client/client.js", "func_name": "RequestQueue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Queue to contain LDAP requests.\n\n@param {Object} opts queue options\n\nAccepted Options:\n- size: Maximum queue size\n- timeout: Set timeout between first queue insertion and queue flush.", "docstring_tokens": ["Queue", "to", "contain", "LDAP", "requests", "."], "sha": "ad451edc18d7768c3ddee1a1dd472d2bbafdae5e", "url": "https://github.com/joyent/node-ldapjs/blob/ad451edc18d7768c3ddee1a1dd472d2bbafdae5e/lib/client/client.js#L104-L113", "partition": "test"} +{"repo": "joyent/node-ldapjs", "path": "lib/client/client.js", "func_name": "MessageTracker", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Track message callback by messageID.", "docstring_tokens": ["Track", "message", "callback", "by", "messageID", "."], "sha": "ad451edc18d7768c3ddee1a1dd472d2bbafdae5e", "url": "https://github.com/joyent/node-ldapjs/blob/ad451edc18d7768c3ddee1a1dd472d2bbafdae5e/lib/client/client.js#L179-L194", "partition": "test"} +{"repo": "joyent/node-ldapjs", "path": "lib/client/client.js", "func_name": "connectSocket", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Establish basic socket connection", "docstring_tokens": ["Establish", "basic", "socket", "connection"], "sha": "ad451edc18d7768c3ddee1a1dd472d2bbafdae5e", "url": "https://github.com/joyent/node-ldapjs/blob/ad451edc18d7768c3ddee1a1dd472d2bbafdae5e/lib/client/client.js#L1005-L1055", "partition": "test"} +{"repo": "joyent/node-ldapjs", "path": "lib/client/client.js", "func_name": "initSocket", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize socket events and LDAP parser.", "docstring_tokens": ["Initialize", "socket", "events", "and", "LDAP", "parser", "."], "sha": "ad451edc18d7768c3ddee1a1dd472d2bbafdae5e", "url": "https://github.com/joyent/node-ldapjs/blob/ad451edc18d7768c3ddee1a1dd472d2bbafdae5e/lib/client/client.js#L1058-L1098", "partition": "test"} +{"repo": "joyent/node-ldapjs", "path": "lib/client/client.js", "func_name": "setupClient", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "After connect, register socket event handlers and run any setup actions", "docstring_tokens": ["After", "connect", "register", "socket", "event", "handlers", "and", "run", "any", "setup", "actions"], "sha": "ad451edc18d7768c3ddee1a1dd472d2bbafdae5e", "url": "https://github.com/joyent/node-ldapjs/blob/ad451edc18d7768c3ddee1a1dd472d2bbafdae5e/lib/client/client.js#L1101-L1146", "partition": "test"} +{"repo": "bgrins/javascript-astar", "path": "astar.js", "func_name": "Graph", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A graph memory structure\n@param {Array} gridIn 2D array of input weights\n@param {Object} [options]\n@param {bool} [options.diagonal] Specifies whether diagonal moves are allowed", "docstring_tokens": ["A", "graph", "memory", "structure"], "sha": "ef5ec96002f87f8ae9854c9a411e6f482d20ff35", "url": "https://github.com/bgrins/javascript-astar/blob/ef5ec96002f87f8ae9854c9a411e6f482d20ff35/astar.js#L157-L172", "partition": "test"} +{"repo": "bgrins/javascript-astar", "path": "demo/demo.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "will add start class if final", "docstring_tokens": ["will", "add", "start", "class", "if", "final"], "sha": "ef5ec96002f87f8ae9854c9a411e6f482d20ff35", "url": "https://github.com/bgrins/javascript-astar/blob/ef5ec96002f87f8ae9854c9a411e6f482d20ff35/demo/demo.js#L210-L218", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "forEach", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Iterates through 'array' by index and performs the callback on each element of array until the callback\nreturns a truthy value, then returns that value.\nIf no such value is found, the callback is applied to each element of array and undefined is returned.", "docstring_tokens": ["Iterates", "through", "array", "by", "index", "and", "performs", "the", "callback", "on", "each", "element", "of", "array", "until", "the", "callback", "returns", "a", "truthy", "value", "then", "returns", "that", "value", ".", "If", "no", "such", "value", "is", "found", "the", "callback", "is", "applied", "to", "each", "element", "of", "array", "and", "undefined", "is", "returned", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L886-L896", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "arrayToMap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a map from the elements of an array.\n\n@param array the array of input elements.\n@param makeKey a function that produces a key for a given element.\n\nThis function makes no effort to avoid collisions; if any two elements produce\nthe same key with the given 'makeKey' function, then the element with the higher\nindex in the array will be the one associated with the produced key.", "docstring_tokens": ["Creates", "a", "map", "from", "the", "elements", "of", "an", "array", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L1152-L1158", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "createWatchedFileSet", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "average async stat takes about 30 microseconds set chunk size to do 30 files in < 1 millisecond", "docstring_tokens": ["average", "async", "stat", "takes", "about", "30", "microseconds", "set", "chunk", "size", "to", "do", "30", "files", "in", "<", "1", "millisecond"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L1774-L1842", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "startWatchTimer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "this implementation uses polling and stat due to inconsistencies of fs.watch and efficiency of stat on modern filesystems", "docstring_tokens": ["this", "implementation", "uses", "polling", "and", "stat", "due", "to", "inconsistencies", "of", "fs", ".", "watch", "and", "efficiency", "of", "stat", "on", "modern", "filesystems"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L1801-L1819", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "scanTemplateAndSetTokenValue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets the current 'tokenValue' and returns a NoSubstitutionTemplateLiteral or\na literal component of a TemplateExpression.", "docstring_tokens": ["Sets", "the", "current", "tokenValue", "and", "returns", "a", "NoSubstitutionTemplateLiteral", "or", "a", "literal", "component", "of", "a", "TemplateExpression", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L3408-L3461", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "utf16EncodeAsString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Derived from the 10.1.1 UTF16Encoding of the ES6 Spec.", "docstring_tokens": ["Derived", "from", "the", "10", ".", "1", ".", "1", "UTF16Encoding", "of", "the", "ES6", "Spec", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L3555-L3563", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "peekUnicodeEscape", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Current character is known to be a backslash. Check for Unicode escape of the form '\\uXXXX' and return code point value if valid Unicode escape is found. Otherwise return -1.", "docstring_tokens": ["Current", "character", "is", "known", "to", "be", "a", "backslash", ".", "Check", "for", "Unicode", "escape", "of", "the", "form", "\\", "uXXXX", "and", "return", "code", "point", "value", "if", "valid", "Unicode", "escape", "is", "found", ".", "Otherwise", "return", "-", "1", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L3566-L3575", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "scanJsxIdentifier", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Scans a JSX identifier; these differ from normal identifiers in that they allow dashes", "docstring_tokens": ["Scans", "a", "JSX", "identifier", ";", "these", "differ", "from", "normal", "identifiers", "in", "that", "they", "allow", "dashes"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L4087-L4102", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getDeclarationName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Should not be called on a declaration with a computed property name, unless it is a well known Symbol.", "docstring_tokens": ["Should", "not", "be", "called", "on", "a", "declaration", "with", "a", "computed", "property", "name", "unless", "it", "is", "a", "well", "known", "Symbol", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L4276-L4307", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "bindChildren", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "All container nodes are kept on a linked list in declaration order. This list is used by the getLocalNameOfContainer function in the type checker to validate that the local name used for a container is unique.", "docstring_tokens": ["All", "container", "nodes", "are", "kept", "on", "a", "linked", "list", "in", "declaration", "order", ".", "This", "list", "is", "used", "by", "the", "getLocalNameOfContainer", "function", "in", "the", "type", "checker", "to", "validate", "that", "the", "local", "name", "used", "for", "a", "container", "is", "unique", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L4417-L4466", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "nodePosToString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is a useful function for debugging purposes.", "docstring_tokens": ["This", "is", "a", "useful", "function", "for", "debugging", "purposes", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L5243-L5247", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "unescapeIdentifier", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove extra underscore from escaped identifier", "docstring_tokens": ["Remove", "extra", "underscore", "from", "escaped", "identifier"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L5319-L5321", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getEnclosingBlockScopeContainer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the nearest enclosing block scope container that has the provided node as a descendant, that is not the provided node.", "docstring_tokens": ["Gets", "the", "nearest", "enclosing", "block", "scope", "container", "that", "has", "the", "provided", "node", "as", "a", "descendant", "that", "is", "not", "the", "provided", "node", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L5336-L5360", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "isDeclarationName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "True if the given identifier, string literal, or number literal is the name of a declaration node", "docstring_tokens": ["True", "if", "the", "given", "identifier", "string", "literal", "or", "number", "literal", "is", "the", "name", "of", "a", "declaration", "node"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L6291-L6305", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "isIdentifierName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return true if the given identifier is classified as an IdentifierName", "docstring_tokens": ["Return", "true", "if", "the", "given", "identifier", "is", "classified", "as", "an", "IdentifierName"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L6308-L6340", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getExpandedCharCodes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Replace each instance of non-ascii characters by one, two, three, or four escape sequences\nrepresenting the UTF-8 encoding of the character, and return the expanded char code list.", "docstring_tokens": ["Replace", "each", "instance", "of", "non", "-", "ascii", "characters", "by", "one", "two", "three", "or", "four", "escape", "sequences", "representing", "the", "UTF", "-", "8", "encoding", "of", "the", "character", "and", "return", "the", "expanded", "char", "code", "list", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L7085-L7114", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "textSpanContainsTextSpan", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if 'span' contains 'other'.", "docstring_tokens": ["Returns", "true", "if", "span", "contains", "other", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L7182-L7184", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "isListTerminator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "True if positioned at a list terminator", "docstring_tokens": ["True", "if", "positioned", "at", "a", "list", "terminator"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L8549-L8601", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "parseEntityName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The allowReservedWords parameter controls whether reserved words are permitted after the first dot", "docstring_tokens": ["The", "allowReservedWords", "parameter", "controls", "whether", "reserved", "words", "are", "permitted", "after", "the", "first", "dot"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L8999-L9008", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "findHighestListElementThatStartsAtPosition", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Finds the highest element in the tree we can find that starts at the provided position. The element must be a direct child of some node list in the tree. This way after we return it, we can easily return its next sibling in the list.", "docstring_tokens": ["Finds", "the", "highest", "element", "in", "the", "tree", "we", "can", "find", "that", "starts", "at", "the", "provided", "position", ".", "The", "element", "must", "be", "a", "direct", "child", "of", "some", "node", "list", "in", "the", "tree", ".", "This", "way", "after", "we", "return", "it", "we", "can", "easily", "return", "its", "next", "sibling", "in", "the", "list", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L13169-L13215", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getSymbolOfPartOfRightHandSideOfImportEquals", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This function is only for imports with entity names", "docstring_tokens": ["This", "function", "is", "only", "for", "imports", "with", "entity", "names"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L14067-L14091", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "resolveEntityName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Resolves a qualified name and any involved aliases", "docstring_tokens": ["Resolves", "a", "qualified", "name", "and", "any", "involved", "aliases"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L14096-L14128", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "isReservedMemberName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A reserved member name starts with two underscores, but the third character cannot be an underscore or the @ symbol. A third underscore indicates an escaped form of an identifer that started with at least two underscores. The @ character indicates that the name is denoted by a well known ES Symbol instance.", "docstring_tokens": ["A", "reserved", "member", "name", "starts", "with", "two", "underscores", "but", "the", "third", "character", "cannot", "be", "an", "underscore", "or", "the"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L14281-L14286", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "isSymbolUsedInExportAssignment", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if the symbol is used in export assignment", "docstring_tokens": ["Check", "if", "the", "symbol", "is", "used", "in", "export", "assignment"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L15132-L15152", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getTypeOfPropertyOfType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the type of the given property in the given type, or undefined if no such property exists", "docstring_tokens": ["Return", "the", "type", "of", "the", "given", "property", "in", "the", "given", "type", "or", "undefined", "if", "no", "such", "property", "exists"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L15341-L15344", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getTypeForBindingElementParent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the type of a binding element parent. We check SymbolLinks first to see if a type has been assigned by contextual typing.", "docstring_tokens": ["Return", "the", "type", "of", "a", "binding", "element", "parent", ".", "We", "check", "SymbolLinks", "first", "to", "see", "if", "a", "type", "has", "been", "assigned", "by", "contextual", "typing", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L15350-L15353", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getTypeForBindingElement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the inferred type for a binding element", "docstring_tokens": ["Return", "the", "inferred", "type", "for", "a", "binding", "element"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L15355-L15412", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getTypeForVariableLikeDeclaration", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the inferred type for a variable, parameter, or property declaration", "docstring_tokens": ["Return", "the", "inferred", "type", "for", "a", "variable", "parameter", "or", "property", "declaration"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L15414-L15462", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getTypeFromBindingElement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the type implied by a binding pattern element. This is the type of the initializer of the element if one is present. Otherwise, if the element is itself a binding pattern, it is the type implied by the binding pattern. Otherwise, it is the type any.", "docstring_tokens": ["Return", "the", "type", "implied", "by", "a", "binding", "pattern", "element", ".", "This", "is", "the", "type", "of", "the", "initializer", "of", "the", "element", "if", "one", "is", "present", ".", "Otherwise", "if", "the", "element", "is", "itself", "a", "binding", "pattern", "it", "is", "the", "type", "implied", "by", "the", "binding", "pattern", ".", "Otherwise", "it", "is", "the", "type", "any", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L15466-L15474", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getTypeFromObjectBindingPattern", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the type implied by an object binding pattern", "docstring_tokens": ["Return", "the", "type", "implied", "by", "an", "object", "binding", "pattern"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L15476-L15491", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getLocalTypeParametersOfClassOrInterfaceOrTypeAlias", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The local type parameters are the combined set of type parameters from all declarations of the class, interface, or type alias.", "docstring_tokens": ["The", "local", "type", "parameters", "are", "the", "combined", "set", "of", "type", "parameters", "from", "all", "declarations", "of", "the", "class", "interface", "or", "type", "alias", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L15754-L15767", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getBaseConstructorTypeOfClass", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The base constructor of a class can resolve to undefinedType if the class has no extends clause, unknownType if an error occurred during resolution of the extends expression, nullType if the extends expression is the null value, or an object type with at least one construct signature.", "docstring_tokens": ["The", "base", "constructor", "of", "a", "class", "can", "resolve", "to", "undefinedType", "if", "the", "class", "has", "no", "extends", "clause", "unknownType", "if", "an", "error", "occurred", "during", "resolution", "of", "the", "extends", "expression", "nullType", "if", "the", "extends", "expression", "is", "the", "null", "value", "or", "an", "object", "type", "with", "at", "least", "one", "construct", "signature", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L15796-L15822", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "isIndependentTypeReference", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A type reference is considered independent if each type argument is considered independent.", "docstring_tokens": ["A", "type", "reference", "is", "considered", "independent", "if", "each", "type", "argument", "is", "considered", "independent", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L16044-L16054", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "createInstantiatedSymbolTable", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The mappingThisOnly flag indicates that the only type parameter being mapped is \"this\". When the flag is true, we check symbols to see if we can quickly conclude they are free of \"this\" references, thus needing no instantiation.", "docstring_tokens": ["The", "mappingThisOnly", "flag", "indicates", "that", "the", "only", "type", "parameter", "being", "mapped", "is", "this", ".", "When", "the", "flag", "is", "true", "we", "check", "symbols", "to", "see", "if", "we", "can", "quickly", "conclude", "they", "are", "free", "of", "this", "references", "thus", "needing", "no", "instantiation", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L16126-L16133", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getUnionSignatures", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The signatures of a union type are those signatures that are present in each of the constituent types. Generic signatures must match exactly, but non-generic signatures are allowed to have extra optional parameters and may differ in return types. When signatures differ in return types, the resulting return type is the union of the constituent return types.", "docstring_tokens": ["The", "signatures", "of", "a", "union", "type", "are", "those", "signatures", "that", "are", "present", "in", "each", "of", "the", "constituent", "types", ".", "Generic", "signatures", "must", "match", "exactly", "but", "non", "-", "generic", "signatures", "are", "allowed", "to", "have", "extra", "optional", "parameters", "and", "may", "differ", "in", "return", "types", ".", "When", "signatures", "differ", "in", "return", "types", "the", "resulting", "return", "type", "is", "the", "union", "of", "the", "constituent", "return", "types", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L16303-L16327", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getPropertyOfObjectType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If the given type is an object type and that type has a property by the given name, return the symbol for that property.Otherwise return undefined.", "docstring_tokens": ["If", "the", "given", "type", "is", "an", "object", "type", "and", "that", "type", "has", "a", "property", "by", "the", "given", "name", "return", "the", "symbol", "for", "that", "property", ".", "Otherwise", "return", "undefined", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L16449-L16459", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getApparentType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "For a type parameter, return the base constraint of the type parameter. For the string, number,\nboolean, and symbol primitive types, return the corresponding object types. Otherwise return the\ntype itself. Note that the apparent type of a union type is the union type itself.", "docstring_tokens": ["For", "a", "type", "parameter", "return", "the", "base", "constraint", "of", "the", "type", "parameter", ".", "For", "the", "string", "number", "boolean", "and", "symbol", "primitive", "types", "return", "the", "corresponding", "object", "types", ".", "Otherwise", "return", "the", "type", "itself", ".", "Note", "that", "the", "apparent", "type", "of", "a", "union", "type", "is", "the", "union", "type", "itself", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L16484-L16506", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getPropertyOfType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the symbol for the property with the given name in the given type. Creates synthetic union properties when necessary, maps primitive types and type parameters are to their apparent types, and augments with properties from Object and Function as appropriate.", "docstring_tokens": ["Return", "the", "symbol", "for", "the", "property", "with", "the", "given", "name", "in", "the", "given", "type", ".", "Creates", "synthetic", "union", "properties", "when", "necessary", "maps", "primitive", "types", "and", "type", "parameters", "are", "to", "their", "apparent", "types", "and", "augments", "with", "properties", "from", "Object", "and", "Function", "as", "appropriate", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L16564-L16586", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getPropagatingFlagsOfTypes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This function is used to propagate certain flags when creating new object type references and union types. It is only necessary to do so if a constituent type might be the undefined type, the null type, the type of an object literal or the anyFunctionType. This is because there are operations in the type checker that care about the presence of such types at arbitrary depth in a containing type.", "docstring_tokens": ["This", "function", "is", "used", "to", "propagate", "certain", "flags", "when", "creating", "new", "object", "type", "references", "and", "union", "types", ".", "It", "is", "only", "necessary", "to", "do", "so", "if", "a", "constituent", "type", "might", "be", "the", "undefined", "type", "the", "null", "type", "the", "type", "of", "an", "object", "literal", "or", "the", "anyFunctionType", ".", "This", "is", "because", "there", "are", "operations", "in", "the", "type", "checker", "that", "care", "about", "the", "presence", "of", "such", "types", "at", "arbitrary", "depth", "in", "a", "containing", "type", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L16894-L16901", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getTypeFromClassOrInterfaceReference", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get type from reference to class or interface", "docstring_tokens": ["Get", "type", "from", "reference", "to", "class", "or", "interface"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L16958-L16976", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getTypeFromTypeAliasReference", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get type from reference to type alias. When a type alias is generic, the declared type of the type alias may include references to the type parameters of the alias. We replace those with the actual type arguments by instantiating the declared type. Instantiations are cached using the type identities of the type arguments as the key.", "docstring_tokens": ["Get", "type", "from", "reference", "to", "type", "alias", ".", "When", "a", "type", "alias", "is", "generic", "the", "declared", "type", "of", "the", "type", "alias", "may", "include", "references", "to", "the", "type", "parameters", "of", "the", "alias", ".", "We", "replace", "those", "with", "the", "actual", "type", "arguments", "by", "instantiating", "the", "declared", "type", ".", "Instantiations", "are", "cached", "using", "the", "type", "identities", "of", "the", "type", "arguments", "as", "the", "key", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L16980-L16998", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "addTypesToSet", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add the given types to the given type set. Order is preserved, duplicates are removed, and nested types of the given kind are flattened into the set.", "docstring_tokens": ["Add", "the", "given", "types", "to", "the", "given", "type", "set", ".", "Order", "is", "preserved", "duplicates", "are", "removed", "and", "nested", "types", "of", "the", "given", "kind", "are", "flattened", "into", "the", "set", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L17157-L17162", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "isKnownProperty", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if a property with the given name is known anywhere in the given type. In an object type, a property is considered known if the object type is empty and the check is for assignability, if the object type has index signatures, or if the property is actually declared in the object type. In a union or intersection type, a property is considered known if it is known in any constituent type.", "docstring_tokens": ["Check", "if", "a", "property", "with", "the", "given", "name", "is", "known", "anywhere", "in", "the", "given", "type", ".", "In", "an", "object", "type", "a", "property", "is", "considered", "known", "if", "the", "object", "type", "is", "empty", "and", "the", "check", "is", "for", "assignability", "if", "the", "object", "type", "has", "index", "signatures", "or", "if", "the", "property", "is", "actually", "declared", "in", "the", "object", "type", ".", "In", "a", "union", "or", "intersection", "type", "a", "property", "is", "considered", "known", "if", "it", "is", "known", "in", "any", "constituent", "type", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L17786-L17805", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "objectTypeRelatedTo", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determine if two object types are related by structure. First, check if the result is already available in the global cache. Second, check if we have already started a comparison of the given two types in which case we assume the result to be true. Third, check if both types are part of deeply nested chains of generic type instantiations and if so assume the types are equal and infinitely expanding. Fourth, if we have reached a depth of 100 nested comparisons, assume we have runaway recursion and issue an error. Otherwise, actually compare the structure of the two types.", "docstring_tokens": ["Determine", "if", "two", "object", "types", "are", "related", "by", "structure", ".", "First", "check", "if", "the", "result", "is", "already", "available", "in", "the", "global", "cache", ".", "Second", "check", "if", "we", "have", "already", "started", "a", "comparison", "of", "the", "given", "two", "types", "in", "which", "case", "we", "assume", "the", "result", "to", "be", "true", ".", "Third", "check", "if", "both", "types", "are", "part", "of", "deeply", "nested", "chains", "of", "generic", "type", "instantiations", "and", "if", "so", "assume", "the", "types", "are", "equal", "and", "infinitely", "expanding", ".", "Fourth", "if", "we", "have", "reached", "a", "depth", "of", "100", "nested", "comparisons", "assume", "we", "have", "runaway", "recursion", "and", "issue", "an", "error", ".", "Otherwise", "actually", "compare", "the", "structure", "of", "the", "two", "types", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L17914-L17988", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "isDeeplyNestedGeneric", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return true if the given type is part of a deeply nested chain of generic instantiations. We consider this to be the case when structural type comparisons have been started for 10 or more instantiations of the same generic type. It is possible, though highly unlikely, for this test to be true in a situation where a chain of instantiations is not infinitely expanding. Effectively, we will generate a false positive when two types are structurally equal to at least 10 levels, but unequal at some level beyond that.", "docstring_tokens": ["Return", "true", "if", "the", "given", "type", "is", "part", "of", "a", "deeply", "nested", "chain", "of", "generic", "instantiations", ".", "We", "consider", "this", "to", "be", "the", "case", "when", "structural", "type", "comparisons", "have", "been", "started", "for", "10", "or", "more", "instantiations", "of", "the", "same", "generic", "type", ".", "It", "is", "possible", "though", "highly", "unlikely", "for", "this", "test", "to", "be", "true", "in", "a", "situation", "where", "a", "chain", "of", "instantiations", "is", "not", "infinitely", "expanding", ".", "Effectively", "we", "will", "generate", "a", "false", "positive", "when", "two", "types", "are", "structurally", "equal", "to", "at", "least", "10", "levels", "but", "unequal", "at", "some", "level", "beyond", "that", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L18338-L18353", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "isVariableAssignedWithin", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if a given variable is assigned within a given syntax node", "docstring_tokens": ["Check", "if", "a", "given", "variable", "is", "assigned", "within", "a", "given", "syntax", "node"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L18949-L19034", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "narrowType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Narrow the given type based on the given expression having the assumed boolean value. The returned type will be a subtype or the same type as the argument.", "docstring_tokens": ["Narrow", "the", "given", "type", "based", "on", "the", "given", "expression", "having", "the", "assumed", "boolean", "value", ".", "The", "returned", "type", "will", "be", "a", "subtype", "or", "the", "same", "type", "as", "the", "argument", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L19228-L19256", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getContextuallyTypedParameterType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return contextual type of parameter or undefined if no contextual type is available", "docstring_tokens": ["Return", "contextual", "type", "of", "parameter", "or", "undefined", "if", "no", "contextual", "type", "is", "available"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L19488-L19510", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getContextualTypeForInitializerExpression", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "In a variable, parameter or property declaration with a type annotation, the contextual type of an initializer expression is the type of the variable, parameter or property. Otherwise, in a parameter declaration of a contextually typed function expression, the contextual type of an initializer expression is the contextual type of the parameter. Otherwise, in a variable or parameter declaration with a binding pattern name, the contextual type of an initializer expression is the type implied by the binding pattern.", "docstring_tokens": ["In", "a", "variable", "parameter", "or", "property", "declaration", "with", "a", "type", "annotation", "the", "contextual", "type", "of", "an", "initializer", "expression", "is", "the", "type", "of", "the", "variable", "parameter", "or", "property", ".", "Otherwise", "in", "a", "parameter", "declaration", "of", "a", "contextually", "typed", "function", "expression", "the", "contextual", "type", "of", "an", "initializer", "expression", "is", "the", "contextual", "type", "of", "the", "parameter", ".", "Otherwise", "in", "a", "variable", "or", "parameter", "declaration", "with", "a", "binding", "pattern", "name", "the", "contextual", "type", "of", "an", "initializer", "expression", "is", "the", "type", "implied", "by", "the", "binding", "pattern", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L19516-L19533", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "applyToContextualType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Apply a mapping function to a contextual type and return the resulting type. If the contextual type is a union type, the mapping function is applied to each constituent type and a union of the resulting types is returned.", "docstring_tokens": ["Apply", "a", "mapping", "function", "to", "a", "contextual", "type", "and", "return", "the", "resulting", "type", ".", "If", "the", "contextual", "type", "is", "a", "union", "type", "the", "mapping", "function", "is", "applied", "to", "each", "constituent", "type", "and", "a", "union", "of", "the", "resulting", "types", "is", "returned", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L19617-L19640", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "contextualTypeHasIndexSignature", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return true if the given contextual type provides an index signature of the given kind", "docstring_tokens": ["Return", "true", "if", "the", "given", "contextual", "type", "provides", "an", "index", "signature", "of", "the", "given", "kind"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L19655-L19657", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getContextualTypeForObjectLiteralMethod", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "In an object literal contextually typed by a type T, the contextual type of a property assignment is the type of the matching property in T, if one exists. Otherwise, it is the type of the numeric index signature in T, if one exists. Otherwise, it is the type of the string index signature in T, if one exists.", "docstring_tokens": ["In", "an", "object", "literal", "contextually", "typed", "by", "a", "type", "T", "the", "contextual", "type", "of", "a", "property", "assignment", "is", "the", "type", "of", "the", "matching", "property", "in", "T", "if", "one", "exists", ".", "Otherwise", "it", "is", "the", "type", "of", "the", "numeric", "index", "signature", "in", "T", "if", "one", "exists", ".", "Otherwise", "it", "is", "the", "type", "of", "the", "string", "index", "signature", "in", "T", "if", "one", "exists", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L19661-L19668", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getContextualTypeForElementExpression", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "In an array literal contextually typed by a type T, the contextual type of an element expression at index N is the type of the property with the numeric name N in T, if one exists. Otherwise, if T has a numeric index signature, it is the type of the numeric index signature in T. Otherwise, in ES6 and higher, the contextual type is the iterated type of T.", "docstring_tokens": ["In", "an", "array", "literal", "contextually", "typed", "by", "a", "type", "T", "the", "contextual", "type", "of", "an", "element", "expression", "at", "index", "N", "is", "the", "type", "of", "the", "property", "with", "the", "numeric", "name", "N", "in", "T", "if", "one", "exists", ".", "Otherwise", "if", "T", "has", "a", "numeric", "index", "signature", "it", "is", "the", "type", "of", "the", "numeric", "index", "signature", "in", "T", ".", "Otherwise", "in", "ES6", "and", "higher", "the", "contextual", "type", "is", "the", "iterated", "type", "of", "T", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L19692-L19702", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getNonGenericSignature", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If the given type is an object or union type, if that type has a single signature, and if that signature is non-generic, return the signature. Otherwise return undefined.", "docstring_tokens": ["If", "the", "given", "type", "is", "an", "object", "or", "union", "type", "if", "that", "type", "has", "a", "single", "signature", "and", "if", "that", "signature", "is", "non", "-", "generic", "return", "the", "signature", ".", "Otherwise", "return", "undefined", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L19779-L19787", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getContextualSignature", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the contextual signature for a given expression node. A contextual type provides a contextual signature if it has a single call signature and if that call signature is non-generic. If the contextual type is a union type, get the signature from each type possible and if they are all identical ignoring their return type, the result is same signature but with return type as union type of return types from these signatures", "docstring_tokens": ["Return", "the", "contextual", "signature", "for", "a", "given", "expression", "node", ".", "A", "contextual", "type", "provides", "a", "contextual", "signature", "if", "it", "has", "a", "single", "call", "signature", "and", "if", "that", "call", "signature", "is", "non", "-", "generic", ".", "If", "the", "contextual", "type", "is", "a", "union", "type", "get", "the", "signature", "from", "each", "type", "possible", "and", "if", "they", "are", "all", "identical", "ignoring", "their", "return", "type", "the", "result", "is", "same", "signature", "but", "with", "return", "type", "as", "union", "type", "of", "return", "types", "from", "these", "signatures"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L19802-L19842", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getJsxAttributePropertySymbol", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Given a JSX attribute, returns the symbol for the corresponds property\nof the element attributes type. Will return unknownSymbol for attributes\nthat have no matching element attributes type property.", "docstring_tokens": ["Given", "a", "JSX", "attribute", "returns", "the", "symbol", "for", "the", "corresponds", "property", "of", "the", "element", "attributes", "type", ".", "Will", "return", "unknownSymbol", "for", "attributes", "that", "have", "no", "matching", "element", "attributes", "type", "property", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L20447-L20451", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "checkClassPropertyAccess", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check whether the requested property access is valid.\nReturns true if node is a valid property access, and false otherwise.\n@param node The node to be checked.\n@param left The left hand side of the property access (e.g.: the super in `super.foo`).\n@param type The type of left.\n@param prop The symbol for the right hand side of the property access.", "docstring_tokens": ["Check", "whether", "the", "requested", "property", "access", "is", "valid", ".", "Returns", "true", "if", "node", "is", "a", "valid", "property", "access", "and", "false", "otherwise", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L20541-L20611", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getPropertyNameForIndexedAccess", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If indexArgumentExpression is a string literal or number literal, returns its text.\nIf indexArgumentExpression is a constant value, returns its string value.\nIf indexArgumentExpression is a well known symbol, returns the property name corresponding\nto this symbol, as long as it is a proper symbol reference.\nOtherwise, returns undefined.", "docstring_tokens": ["If", "indexArgumentExpression", "is", "a", "string", "literal", "or", "number", "literal", "returns", "its", "text", ".", "If", "indexArgumentExpression", "is", "a", "constant", "value", "returns", "its", "string", "value", ".", "If", "indexArgumentExpression", "is", "a", "well", "known", "symbol", "returns", "the", "property", "name", "corresponding", "to", "this", "symbol", "as", "long", "as", "it", "is", "a", "proper", "symbol", "reference", ".", "Otherwise", "returns", "undefined", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L20735-L20750", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getSingleCallSignature", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If type has a single call signature and no other members, return that signature. Otherwise, return undefined.", "docstring_tokens": ["If", "type", "has", "a", "single", "call", "signature", "and", "no", "other", "members", "return", "that", "signature", ".", "Otherwise", "return", "undefined", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L20938-L20947", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getEffectiveCallArguments", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the effective arguments for an expression that works like a function invocation.\n\nIf 'node' is a CallExpression or a NewExpression, then its argument list is returned.\nIf 'node' is a TaggedTemplateExpression, a new argument list is constructed from the substitution\nexpressions, where the first element of the list is `undefined`.\nIf 'node' is a Decorator, the argument list will be `undefined`, and its arguments and types\nwill be supplied from calls to `getEffectiveArgumentCount` and `getEffectiveArgumentType`.", "docstring_tokens": ["Returns", "the", "effective", "arguments", "for", "an", "expression", "that", "works", "like", "a", "function", "invocation", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L21075-L21096", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getEffectiveDecoratorArgumentType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the effective argument type for the provided argument to a decorator.", "docstring_tokens": ["Returns", "the", "effective", "argument", "type", "for", "the", "provided", "argument", "to", "a", "decorator", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L21279-L21291", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getEffectiveArgumentType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the effective argument type for an argument in a call expression.", "docstring_tokens": ["Gets", "the", "effective", "argument", "type", "for", "an", "argument", "in", "a", "call", "expression", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L21295-L21308", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getEffectiveArgument", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the effective argument expression for an argument in a call expression.", "docstring_tokens": ["Gets", "the", "effective", "argument", "expression", "for", "an", "argument", "in", "a", "call", "expression", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L21312-L21319", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getEffectiveArgumentErrorNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the error node to use when reporting errors for an effective argument.", "docstring_tokens": ["Gets", "the", "error", "node", "to", "use", "when", "reporting", "errors", "for", "an", "effective", "argument", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L21323-L21335", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getDiagnosticHeadMessageForDecoratorResolution", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the localized diagnostic head message to use for errors when resolving a decorator as a call expression.", "docstring_tokens": ["Gets", "the", "localized", "diagnostic", "head", "message", "to", "use", "for", "errors", "when", "resolving", "a", "decorator", "as", "a", "call", "expression", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L21681-L21695", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "resolveDecorator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Resolves a decorator as if it were a call expression.", "docstring_tokens": ["Resolves", "a", "decorator", "as", "if", "it", "were", "a", "call", "expression", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L21699-L21718", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getResolvedSignature", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "candidatesOutArray is passed by signature help in the language service, and collectCandidates must fill it up with the appropriate candidate signatures", "docstring_tokens": ["candidatesOutArray", "is", "passed", "by", "signature", "help", "in", "the", "language", "service", "and", "collectCandidates", "must", "fill", "it", "up", "with", "the", "appropriate", "candidate", "signatures"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L21721-L21746", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "checkCallExpression", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Syntactically and semantically checks a call or new expression.\n@param node The call/new expression to be checked.\n@returns On success, the expression's signature's return type. On failure, anyType.", "docstring_tokens": ["Syntactically", "and", "semantically", "checks", "a", "call", "or", "new", "expression", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L21752-L21773", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "assignBindingElementTypes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "When contextual typing assigns a type to a parameter that contains a binding pattern, we also need to push the destructured type into the contained binding elements.", "docstring_tokens": ["When", "contextual", "typing", "assigns", "a", "type", "to", "a", "parameter", "that", "contains", "a", "binding", "pattern", "we", "also", "need", "to", "push", "the", "destructured", "type", "into", "the", "contained", "binding", "elements", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L21808-L21820", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "checkTypeParameter", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "DECLARATION AND STATEMENT TYPE CHECKING", "docstring_tokens": ["DECLARATION", "AND", "STATEMENT", "TYPE", "CHECKING"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L22848-L22859", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getPromisedType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the \"promised type\" of a promise.\n@param type The type of the promise.\n@remarks The \"promised type\" of a type is the type of the \"value\" parameter of the \"onfulfilled\" callback.", "docstring_tokens": ["Gets", "the", "promised", "type", "of", "a", "promise", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L23619-L23657", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "checkDecorator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check a decorator", "docstring_tokens": ["Check", "a", "decorator"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L23829-L23861", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "checkTypeNodeAsExpression", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks a type reference node as an expression.", "docstring_tokens": ["Checks", "a", "type", "reference", "node", "as", "an", "expression", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L23863-L23881", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "checkTypeAnnotationAsExpression", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks the type annotation of an accessor declaration or property declaration as\nan expression if it is a type reference to a type with a value declaration.", "docstring_tokens": ["Checks", "the", "type", "annotation", "of", "an", "accessor", "declaration", "or", "property", "declaration", "as", "an", "expression", "if", "it", "is", "a", "type", "reference", "to", "a", "type", "with", "a", "value", "declaration", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L23886-L23904", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "checkDecorators", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check the decorators of a node", "docstring_tokens": ["Check", "the", "decorators", "of", "a", "node"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L23914-L23951", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "checkIfThisIsCapturedInEnclosingScope", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "this function will run after checking the source file so 'CaptureThis' is correct for all nodes", "docstring_tokens": ["this", "function", "will", "run", "after", "checking", "the", "source", "file", "so", "CaptureThis", "is", "correct", "for", "all", "nodes"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L24068-L24083", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "checkParameterInitializer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check that a parameter initializer contains no references to parameters declared to the right of itself", "docstring_tokens": ["Check", "that", "a", "parameter", "initializer", "contains", "no", "references", "to", "parameters", "declared", "to", "the", "right", "of", "itself"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L24183-L24212", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "checkVariableLikeDeclaration", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check variable, parameter, or property declaration", "docstring_tokens": ["Check", "variable", "parameter", "or", "property", "declaration"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L24214-L24274", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "checkElementTypeOfIterable", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "When errorNode is undefined, it means we should not report any errors.", "docstring_tokens": ["When", "errorNode", "is", "undefined", "it", "means", "we", "should", "not", "report", "any", "errors", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L24456-L24464", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "checkTypeParameters", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check each type parameter and check that list has no duplicate type parameter declarations", "docstring_tokens": ["Check", "each", "type", "parameter", "and", "check", "that", "list", "has", "no", "duplicate", "type", "parameter", "declarations"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L24882-L24896", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "checkSourceFileWorker", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fully type check a source file and collect the relevant diagnostics.", "docstring_tokens": ["Fully", "type", "check", "a", "source", "file", "and", "collect", "the", "relevant", "diagnostics", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L25947-L25987", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "copySymbol", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Copy the given symbol into symbol tables if the symbol has the given meaning\nand it doesn't already existed in the symbol table\n@param key a key for storing in symbol table; if undefined, use symbol.name\n@param symbol the symbol to be added into symbol table\n@param meaning meaning of symbol to filter by before adding to symbol table", "docstring_tokens": ["Copy", "the", "given", "symbol", "into", "symbol", "tables", "if", "the", "symbol", "has", "the", "given", "meaning", "and", "it", "doesn", "t", "already", "existed", "in", "the", "symbol", "table"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L26094-L26104", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getParentTypeOfClassElement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets either the static or instance type of a class element, based on\nwhether the element is declared as \"static\".", "docstring_tokens": ["Gets", "either", "the", "static", "or", "instance", "type", "of", "a", "class", "element", "based", "on", "whether", "the", "element", "is", "declared", "as", "static", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L26367-L26372", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getAugmentedPropertiesOfType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the list of properties of the given type, augmented with properties from Function if the type has call or construct signatures", "docstring_tokens": ["Return", "the", "list", "of", "properties", "of", "the", "given", "type", "augmented", "with", "properties", "from", "Function", "if", "the", "type", "has", "call", "or", "construct", "signatures"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L26375-L26386", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getReferencedExportContainer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Emitter support When resolved as an expression identifier, if the given node references an exported entity, return the declaration node of the exported entity's container. Otherwise, return undefined.", "docstring_tokens": ["Emitter", "support", "When", "resolved", "as", "an", "expression", "identifier", "if", "the", "given", "node", "references", "an", "exported", "entity", "return", "the", "declaration", "node", "of", "the", "exported", "entity", "s", "container", ".", "Otherwise", "return", "undefined", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L26410-L26435", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getReferencedImportDeclaration", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "When resolved as an expression identifier, if the given node references an import, return the declaration of that import. Otherwise, return undefined.", "docstring_tokens": ["When", "resolved", "as", "an", "expression", "identifier", "if", "the", "given", "node", "references", "an", "import", "return", "the", "declaration", "of", "that", "import", ".", "Otherwise", "return", "undefined", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L26438-L26441", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getReferencedNestedRedeclaration", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "When resolved as an expression identifier, if the given node references a nested block scoped entity with a name that hides an existing name, return the declaration of that entity. Otherwise, return undefined.", "docstring_tokens": ["When", "resolved", "as", "an", "expression", "identifier", "if", "the", "given", "node", "references", "a", "nested", "block", "scoped", "entity", "with", "a", "name", "that", "hides", "an", "existing", "name", "return", "the", "declaration", "of", "that", "entity", ".", "Otherwise", "return", "undefined", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L26467-L26470", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getExportDefaultTempVariableName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return a temp variable name to be used in `export default` statements. The temp name will be of the form _default_counter. Note that export default is only allowed at most once in a module, so we do not need to keep track of created temp names.", "docstring_tokens": ["Return", "a", "temp", "variable", "name", "to", "be", "used", "in", "export", "default", "statements", ".", "The", "temp", "name", "will", "be", "of", "the", "form", "_default_counter", ".", "Note", "that", "export", "default", "is", "only", "allowed", "at", "most", "once", "in", "a", "module", "so", "we", "do", "not", "need", "to", "keep", "track", "of", "created", "temp", "names", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L28135-L28147", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "emitFiles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "targetSourceFile is when users only want one file in entire project to be emitted. This is used in compileOnSave feature", "docstring_tokens": ["targetSourceFile", "is", "when", "users", "only", "want", "one", "file", "in", "entire", "project", "to", "be", "emitted", ".", "This", "is", "used", "in", "compileOnSave", "feature"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L29466-L35977", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "makeTempVariableName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the next available name in the pattern _a ... _z, _0, _1, ... TempFlags._i or TempFlags._n may be used to express a preference for that dedicated name. Note that names generated by makeTempVariableName and makeUniqueName will never conflict.", "docstring_tokens": ["Return", "the", "next", "available", "name", "in", "the", "pattern", "_a", "...", "_z", "_0", "_1", "...", "TempFlags", ".", "_i", "or", "TempFlags", ".", "_n", "may", "be", "used", "to", "express", "a", "preference", "for", "that", "dedicated", "name", ".", "Note", "that", "names", "generated", "by", "makeTempVariableName", "and", "makeUniqueName", "will", "never", "conflict", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L29613-L29632", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "makeUniqueName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate a name that is unique within the current file and doesn't conflict with any names in global scope. The name is formed by adding an '_n' suffix to the specified base name, where n is a positive integer. Note that names generated by makeTempVariableName and makeUniqueName are guaranteed to never conflict.", "docstring_tokens": ["Generate", "a", "name", "that", "is", "unique", "within", "the", "current", "file", "and", "doesn", "t", "conflict", "with", "any", "names", "in", "global", "scope", ".", "The", "name", "is", "formed", "by", "adding", "an", "_n", "suffix", "to", "the", "specified", "base", "name", "where", "n", "is", "a", "positive", "integer", ".", "Note", "that", "names", "generated", "by", "makeTempVariableName", "and", "makeUniqueName", "are", "guaranteed", "to", "never", "conflict", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L29637-L29650", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "encodeLastRecordedSourceMapSpan", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Encoding for sourcemap span", "docstring_tokens": ["Encoding", "for", "sourcemap", "span"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L29711-L29776", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "createTempVariable", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a temporary variable with a unique unused name.", "docstring_tokens": ["Create", "a", "temporary", "variable", "with", "a", "unique", "unused", "name", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L30024-L30028", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "indentIfOnDifferentLines", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns 'true' if the code was actually indented, false otherwise. If the code is not indented, an optional valueToWriteWhenNotIndenting will be emitted instead.", "docstring_tokens": ["Returns", "true", "if", "the", "code", "was", "actually", "indented", "false", "otherwise", ".", "If", "the", "code", "is", "not", "indented", "an", "optional", "valueToWriteWhenNotIndenting", "will", "be", "emitted", "instead", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L31245-L31260", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "emitExponentiationOperator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Emit ES7 exponentiation operator downlevel using Math.pow\n@param node a binary expression node containing exponentiationOperator (**, **=)", "docstring_tokens": ["Emit", "ES7", "exponentiation", "operator", "downlevel", "using", "Math", ".", "pow"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L31640-L31690", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "tryEmitStartOfVariableDeclarationList", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if start of variable declaration list was emitted.\nReturns false if nothing was written - this can happen for source file level variable declarations\nin system modules where such variable declarations are hoisted.", "docstring_tokens": ["Returns", "true", "if", "start", "of", "variable", "declaration", "list", "was", "emitted", ".", "Returns", "false", "if", "nothing", "was", "written", "-", "this", "can", "happen", "for", "source", "file", "level", "variable", "declarations", "in", "system", "modules", "where", "such", "variable", "declarations", "are", "hoisted", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L31846-L31878", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "emitAssignment", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Emit an assignment to a given identifier, 'name', with a given expression, 'value'.\n@param name an identifier as a left-hand-side operand of the assignment\n@param value an expression as a right-hand-side operand of the assignment\n@param shouldEmitCommaBeforeAssignment a boolean indicating whether to prefix an assignment with comma", "docstring_tokens": ["Emit", "an", "assignment", "to", "a", "given", "identifier", "name", "with", "a", "given", "expression", "value", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L32302-L32324", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "emitTempVariableAssignment", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create temporary variable, emit an assignment of the variable the given expression\n@param expression an expression to assign to the newly created temporary variable\n@param canDefineTempVariablesInPlace a boolean indicating whether you can define the temporary variable at an assignment location\n@param shouldEmitCommaBeforeAssignment a boolean indicating whether an assignment should prefix with comma", "docstring_tokens": ["Create", "temporary", "variable", "emit", "an", "assignment", "of", "the", "variable", "the", "given", "expression"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L32331-L32338", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "ensureIdentifier", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Ensures that there exists a declared identifier whose value holds the given expression.\nThis function is useful to ensure that the expression's value can be read from in subsequent expressions.\nUnless 'reuseIdentifierExpressions' is false, 'expr' will be returned if it is just an identifier.\n\n@param expr the expression whose value needs to be bound.\n@param reuseIdentifierExpressions true if identifier expressions can simply be returned;\nfalse if it is necessary to always emit an identifier.", "docstring_tokens": ["Ensures", "that", "there", "exists", "a", "declared", "identifier", "whose", "value", "holds", "the", "given", "expression", ".", "This", "function", "is", "useful", "to", "ensure", "that", "the", "expression", "s", "value", "can", "be", "read", "from", "in", "subsequent", "expressions", ".", "Unless", "reuseIdentifierExpressions", "is", "false", "expr", "will", "be", "returned", "if", "it", "is", "just", "an", "identifier", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L32370-L32377", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "findSourceFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get source file from normalized fileName", "docstring_tokens": ["Get", "source", "file", "from", "normalized", "fileName"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L36638-L36695", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "readConfigFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read tsconfig.json file\n@param fileName The path to the config file", "docstring_tokens": ["Read", "tsconfig", ".", "json", "file"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L37265-L37274", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "parseConfigFileTextToJson", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse the text of the tsconfig.json file\n@param fileName The path to the config file\n@param jsonText The text of the config file", "docstring_tokens": ["Parse", "the", "text", "of", "the", "tsconfig", ".", "json", "file"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L37281-L37288", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "removeDynamicallyNamedProperties", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Like removeComputedProperties, but retains the properties with well known symbol names", "docstring_tokens": ["Like", "removeComputedProperties", "but", "retains", "the", "properties", "with", "well", "known", "symbol", "names"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L38110-L38112", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getImmediatelyContainingArgumentInfo", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns relevant information for the argument list and the current argument if we are\nin the argument of an invocation; returns undefined otherwise.", "docstring_tokens": ["Returns", "relevant", "information", "for", "the", "argument", "list", "and", "the", "current", "argument", "if", "we", "are", "in", "the", "argument", "of", "an", "invocation", ";", "returns", "undefined", "otherwise", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L38955-L39037", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "selectBestInvalidOverloadIndex", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The selectedItemIndex could be negative for several reasons.\n1. There are too many arguments for all of the overloads\n2. None of the overloads were type compatible\nThe solution here is to try to pick the best overload by picking\neither the first one that has an appropriate number of parameters,\nor the one with the most parameters.", "docstring_tokens": ["The", "selectedItemIndex", "could", "be", "negative", "for", "several", "reasons", ".", "1", ".", "There", "are", "too", "many", "arguments", "for", "all", "of", "the", "overloads", "2", ".", "None", "of", "the", "overloads", "were", "type", "compatible", "The", "solution", "here", "is", "to", "try", "to", "pick", "the", "best", "overload", "by", "picking", "either", "the", "first", "one", "that", "has", "an", "appropriate", "number", "of", "parameters", "or", "the", "one", "with", "the", "most", "parameters", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L39184-L39198", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getTokenAtPositionWorker", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the token whose text contains the position", "docstring_tokens": ["Get", "the", "token", "whose", "text", "contains", "the", "position"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L39544-L39571", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "findTokenOnLeftOfPosition", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The token on the left of the position is the token that strictly includes the position\nor sits to the left of the cursor if it is on a boundary. For example\n\nfo|o -> will return foo\nfoo |bar -> will return foo", "docstring_tokens": ["The", "token", "on", "the", "left", "of", "the", "position", "is", "the", "token", "that", "strictly", "includes", "the", "position", "or", "sits", "to", "the", "left", "of", "the", "cursor", "if", "it", "is", "on", "a", "boundary", ".", "For", "example"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L39580-L39588", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getJsDocTagAtPosition", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the corresponding JSDocTag node if the position is in a jsDoc comment", "docstring_tokens": ["Get", "the", "corresponding", "JSDocTag", "node", "if", "the", "position", "is", "in", "a", "jsDoc", "comment"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L39724-L39751", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "stripQuotes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Strip off existed single quotes or double quotes from a given string\n\n@return non-quoted string", "docstring_tokens": ["Strip", "off", "existed", "single", "quotes", "or", "double", "quotes", "from", "a", "given", "string"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L40050-L40059", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "fixTokenKind", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "when containing node in the tree is token but its kind differs from the kind that was returned by the scanner, then kind needs to be fixed. This might happen in cases when parser interprets token differently, i.e keyword treated as identifier", "docstring_tokens": ["when", "containing", "node", "in", "the", "tree", "is", "token", "but", "its", "kind", "differs", "from", "the", "kind", "that", "was", "returned", "by", "the", "scanner", "then", "kind", "needs", "to", "be", "fixed", ".", "This", "might", "happen", "in", "cases", "when", "parser", "interprets", "token", "differently", "i", ".", "e", "keyword", "treated", "as", "identifier"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L40286-L40291", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "isListElement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if node is a element in some list in parent i.e. parent is class declaration with the list of members and node is one of members.", "docstring_tokens": ["Returns", "true", "if", "node", "is", "a", "element", "in", "some", "list", "in", "parent", "i", ".", "e", ".", "parent", "is", "class", "declaration", "with", "the", "list", "of", "members", "and", "node", "is", "one", "of", "members", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L41511-L41527", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "findEnclosingNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "find node that fully contains given text range", "docstring_tokens": ["find", "node", "that", "fully", "contains", "given", "text", "range"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L41529-L41541", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "prepareRangeContainsErrorFunction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "formatting is not applied to ranges that contain parse errors.\nThis function will return a predicate that for a given text range will tell\nif there are any parse errors that overlap with the range.", "docstring_tokens": ["formatting", "is", "not", "applied", "to", "ranges", "that", "contain", "parse", "errors", ".", "This", "function", "will", "return", "a", "predicate", "that", "for", "a", "given", "text", "range", "will", "tell", "if", "there", "are", "any", "parse", "errors", "that", "overlap", "with", "the", "range", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L41546-L41581", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "isInsideComment", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if the position is within a comment", "docstring_tokens": ["Returns", "true", "if", "the", "position", "is", "within", "a", "comment"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L44316-L44343", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getSemanticDiagnostics", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "getSemanticDiagnostiscs return array of Diagnostics. If '-d' is not enabled, only report semantic errors\nIf '-d' enabled, report both semantic and emitter errors", "docstring_tokens": ["getSemanticDiagnostiscs", "return", "array", "of", "Diagnostics", ".", "If", "-", "d", "is", "not", "enabled", "only", "report", "semantic", "errors", "If", "-", "d", "enabled", "report", "both", "semantic", "and", "emitter", "errors"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L44643-L44661", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getCompletionEntryDisplayName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get a displayName from a given for completion list, performing any necessary quotes stripping\nand checking whether the name is valid identifier name.", "docstring_tokens": ["Get", "a", "displayName", "from", "a", "given", "for", "completion", "list", "performing", "any", "necessary", "quotes", "stripping", "and", "checking", "whether", "the", "name", "is", "valid", "identifier", "name", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L44833-L44856", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getScopeNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Finds the first node that \"embraces\" the position, so that one may\naccurately aggregate locals from the closest containing scope.", "docstring_tokens": ["Finds", "the", "first", "node", "that", "embraces", "the", "position", "so", "that", "one", "may", "accurately", "aggregate", "locals", "from", "the", "closest", "containing", "scope", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L45108-L45114", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "tryGetObjectLikeCompletionSymbols", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Aggregates relevant symbols for completion in object literals and object binding patterns.\nRelevant symbols are stored in the captured 'symbols' variable.\n\n@returns true if 'symbols' was successfully populated; false otherwise.", "docstring_tokens": ["Aggregates", "relevant", "symbols", "for", "completion", "in", "object", "literals", "and", "object", "binding", "patterns", ".", "Relevant", "symbols", "are", "stored", "in", "the", "captured", "symbols", "variable", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L45214-L45255", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "tryGetImportOrExportClauseCompletionSymbols", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Aggregates relevant symbols for completion in import clauses and export clauses\nwhose declarations have a module specifier; for instance, symbols will be aggregated for\n\nimport { | } from \"moduleName\";\nexport { a as foo, | } from \"moduleName\";\n\nbut not for\n\nexport { | };\n\nRelevant symbols are stored in the captured 'symbols' variable.\n\n@returns true if 'symbols' was successfully populated; false otherwise.", "docstring_tokens": ["Aggregates", "relevant", "symbols", "for", "completion", "in", "import", "clauses", "and", "export", "clauses", "whose", "declarations", "have", "a", "module", "specifier", ";", "for", "instance", "symbols", "will", "be", "aggregated", "for"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L45271-L45289", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "tryGetObjectLikeCompletionContainer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the immediate owning object literal or binding pattern of a context token,\non the condition that one exists and that the context implies completion should be given.", "docstring_tokens": ["Returns", "the", "immediate", "owning", "object", "literal", "or", "binding", "pattern", "of", "a", "context", "token", "on", "the", "condition", "that", "one", "exists", "and", "that", "the", "context", "implies", "completion", "should", "be", "given", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L45294-L45307", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "filterJsxAttributes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Filters out completion suggestions from 'symbols' according to existing JSX attributes.\n\n@returns Symbols to be suggested in a JSX element, barring those whose attributes\ndo not occur at the current position and have not otherwise been typed.", "docstring_tokens": ["Filters", "out", "completion", "suggestions", "from", "symbols", "according", "to", "existing", "JSX", "attributes", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L45546-L45559", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "isWriteAccess", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A node is considered a writeAccess iff it is a name of a declaration or a target of an assignment", "docstring_tokens": ["A", "node", "is", "considered", "a", "writeAccess", "iff", "it", "is", "a", "name", "of", "a", "declaration", "or", "a", "target", "of", "an", "assignment"], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L47573-L47588", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getSignatureHelpItems", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Signature help \nThis is a semantic operation.", "docstring_tokens": ["Signature", "help", "This", "is", "a", "semantic", "operation", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L47746-L47750", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "hasValueSideModule", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if there exists a module that introduces entities on the value side.", "docstring_tokens": ["Returns", "true", "if", "there", "exists", "a", "module", "that", "introduces", "entities", "on", "the", "value", "side", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L47883-L47888", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "classifyTokenType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "for accurate classification, the actual token should be passed in. however, for cases like 'disabled merge code' classification, we just get the token kind and classify based on that instead.", "docstring_tokens": ["for", "accurate", "classification", "the", "actual", "token", "should", "be", "passed", "in", ".", "however", "for", "cases", "like", "disabled", "merge", "code", "classification", "we", "just", "get", "the", "token", "kind", "and", "classify", "based", "on", "that", "instead", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L48123-L48206", "partition": "test"} +{"repo": "twinssbc/Ionic2-Calendar", "path": "demo/typescript.js", "func_name": "getParametersFromRightHandSideOfAssignment", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Digs into an an initializer or RHS operand of an assignment operation\nto get the parameters of an apt signature corresponding to a\nfunction expression or a class expression.\n\n@param rightHandSide the expression which may contain an appropriate set of parameters\n@returns the parameters of a signature found on the RHS if one exists; otherwise 'emptyArray'.", "docstring_tokens": ["Digs", "into", "an", "an", "initializer", "or", "RHS", "operand", "of", "an", "assignment", "operation", "to", "get", "the", "parameters", "of", "an", "apt", "signature", "corresponding", "to", "a", "function", "expression", "or", "a", "class", "expression", "."], "sha": "29c5389189364d3ccb23989c57e111c7d4009f0d", "url": "https://github.com/twinssbc/Ionic2-Calendar/blob/29c5389189364d3ccb23989c57e111c7d4009f0d/demo/typescript.js#L48416-L48434", "partition": "test"} +{"repo": "superfly/fly", "path": "examples/load-balancer/lib/balancer.js", "func_name": "score", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "compute a backend health score with time + status codes", "docstring_tokens": ["compute", "a", "backend", "health", "score", "with", "time", "+", "status", "codes"], "sha": "8189991b6b345169bde2b265e21029d857189364", "url": "https://github.com/superfly/fly/blob/8189991b6b345169bde2b265e21029d857189364/examples/load-balancer/lib/balancer.js#L89-L117", "partition": "test"} +{"repo": "superfly/fly", "path": "examples/cache-for-errors/index.js", "func_name": "origin", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is just a basic origin http server that\nlets us control status codes.\n\n`/` => successful response\n`/?status=404` => serves a 404\n`/?status=500` => serves a 500", "docstring_tokens": ["This", "is", "just", "a", "basic", "origin", "http", "server", "that", "lets", "us", "control", "status", "codes", "."], "sha": "8189991b6b345169bde2b265e21029d857189364", "url": "https://github.com/superfly/fly/blob/8189991b6b345169bde2b265e21029d857189364/examples/cache-for-errors/index.js#L38-L47", "partition": "test"} +{"repo": "mcasimir/mobile-angular-ui", "path": "demo/demo.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is an example of custom transform function", "docstring_tokens": ["This", "is", "an", "example", "of", "custom", "transform", "function"], "sha": "5ec10ac8883e31beb91a940f133290a5146a126d", "url": "https://github.com/mcasimir/mobile-angular-ui/blob/5ec10ac8883e31beb91a940f133290a5146a126d/demo/demo.js#L189-L206", "partition": "test"} +{"repo": "mcasimir/mobile-angular-ui", "path": "dist/js/mobile-angular-ui.gestures.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "start to consider only if movement exceeded MOVEMENT_THRESHOLD", "docstring_tokens": ["start", "to", "consider", "only", "if", "movement", "exceeded", "MOVEMENT_THRESHOLD"], "sha": "5ec10ac8883e31beb91a940f133290a5146a126d", "url": "https://github.com/mcasimir/mobile-angular-ui/blob/5ec10ac8883e31beb91a940f133290a5146a126d/dist/js/mobile-angular-ui.gestures.js#L416-L425", "partition": "test"} +{"repo": "mcasimir/mobile-angular-ui", "path": "dist/js/mobile-angular-ui.gestures.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Bind swipe gesture handlers for an element.\n\n``` js\nvar unbind = $swipe.bind(elem, {\nend: function(touch) {\nconsole.log('Swiped:', touch.direction);\nunbind();\n}\n});\n```\n\n**Swipes Detection**\n\nBefore consider a touch to be a swipe Mobile Angular UI verifies that:\n\n1. Movement is quick. Average touch velocity should exceed a `VELOCITY_THRESHOLD`.\n2. Movement is linear.\n3. Movement has a clear, non-ambiguous direction. So we can assume without error\nthat underlying `touch.direction` is exactly the swipe direction. For that\nmovement is checked against an `ANGLE_THRESHOLD`.\n\n@param {Element|$element} element The element to observe for swipe gestures.\n@param {object} eventHandlers An object with handlers for specific swipe events.\n@param {function} [eventHandlers.start] The callback for swipe start event.\n@param {function} [eventHandlers.end] The callback for swipe end event.\n@param {function} [eventHandlers.move] The callback for swipe move event.\n@param {function} [eventHandlers.cancel] The callback for swipe cancel event.\n@param {object} [options] Options to be passed to underlying [$touch.bind](../module:touch) function.\n\n@returns {function} The unbind function.\n\n@method bind\n@memberOf mobile-angular-ui.gestures.swipe~$swipe", "docstring_tokens": ["Bind", "swipe", "gesture", "handlers", "for", "an", "element", "."], "sha": "5ec10ac8883e31beb91a940f133290a5146a126d", "url": "https://github.com/mcasimir/mobile-angular-ui/blob/5ec10ac8883e31beb91a940f133290a5146a126d/dist/js/mobile-angular-ui.gestures.js#L464-L467", "partition": "test"} +{"repo": "mcasimir/mobile-angular-ui", "path": "dist/js/mobile-angular-ui.gestures.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "`TouchInfo` is an object containing the following extended informations about any touch\nevent.\n\n@property {string} type Normalized event type. Despite of pointer device is always one of `touchstart`, `touchend`, `touchmove`, `touchcancel`.\n@property {Date} timestamp The time object corresponding to the moment this touch event happened.\n@property {integer} duration The difference between this touch event and the corresponding `touchstart`.\n@property {float} startX X coord of related `touchstart`.\n@property {float} startY Y coord of related `touchstart`.\n@property {float} prevX X coord of previous `touchstart` or `touchmove`.\n@property {float} prevY Y coord of previous `touchstart` or `touchmove`.\n@property {float} x X coord of this touch event.\n@property {float} y Y coord of this touch event.\n@property {float} step Distance between `[prevX, prevY]` and `[x, y]` points.\n@property {float} stepX Distance between `prevX` and `x`.\n@property {float} stepY Distance between `prevY` and `y`.\n@property {float} velocity Instantaneous velocity of a touch event in pixels per second.\n@property {float} averageVelocity Average velocity of a touch event from its corresponding `touchstart` in pixels per second.\n@property {float} distance Distance between `[startX, startY]` and `[x, y]` points.\n@property {float} distanceX Distance between `startX` and `x`.\n@property {float} distanceY Distance between `startY` and `y`.\n@property {float} total Total number of pixels covered by movement, taking account of direction changes and turnarounds.\n@property {float} totalX Total number of pixels covered by horizontal movement, taking account of direction changes and turnarounds.\n@property {float} totalY Total number of pixels covered by vertical, taking account of direction changes and turnarounds.\n@property {string} direction The current prevalent direction for this touch, one of `LEFT`, `RIGHT`, `TOP`, `BOTTOM`.\n@property {float} angle Angle in degree between x axis and the vector `[x, y]`, is `null` when no movement happens.\n\n@class TouchInfo\n@ngdoc type\n@memberOf mobile-angular-ui.gestures.touch~$touch", "docstring_tokens": ["TouchInfo", "is", "an", "object", "containing", "the", "following", "extended", "informations", "about", "any", "touch", "event", "."], "sha": "5ec10ac8883e31beb91a940f133290a5146a126d", "url": "https://github.com/mcasimir/mobile-angular-ui/blob/5ec10ac8883e31beb91a940f133290a5146a126d/dist/js/mobile-angular-ui.gestures.js#L817-L917", "partition": "test"} +{"repo": "mcasimir/mobile-angular-ui", "path": "dist/js/mobile-angular-ui.gestures.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Callbacks on touchstart", "docstring_tokens": ["Callbacks", "on", "touchstart"], "sha": "5ec10ac8883e31beb91a940f133290a5146a126d", "url": "https://github.com/mcasimir/mobile-angular-ui/blob/5ec10ac8883e31beb91a940f133290a5146a126d/dist/js/mobile-angular-ui.gestures.js#L1009-L1023", "partition": "test"} +{"repo": "mcasimir/mobile-angular-ui", "path": "dist/js/mobile-angular-ui.gestures.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "return current element transform matrix in a cross-browser way", "docstring_tokens": ["return", "current", "element", "transform", "matrix", "in", "a", "cross", "-", "browser", "way"], "sha": "5ec10ac8883e31beb91a940f133290a5146a126d", "url": "https://github.com/mcasimir/mobile-angular-ui/blob/5ec10ac8883e31beb91a940f133290a5146a126d/dist/js/mobile-angular-ui.gestures.js#L1263-L1269", "partition": "test"} +{"repo": "mcasimir/mobile-angular-ui", "path": "dist/js/mobile-angular-ui.gestures.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "set current element transform matrix in a cross-browser way", "docstring_tokens": ["set", "current", "element", "transform", "matrix", "in", "a", "cross", "-", "browser", "way"], "sha": "5ec10ac8883e31beb91a940f133290a5146a126d", "url": "https://github.com/mcasimir/mobile-angular-ui/blob/5ec10ac8883e31beb91a940f133290a5146a126d/dist/js/mobile-angular-ui.gestures.js#L1272-L1275", "partition": "test"} +{"repo": "mcasimir/mobile-angular-ui", "path": "dist/js/mobile-angular-ui.gestures.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recompose a transform from decomposition `t` and apply it to element `e`", "docstring_tokens": ["Recompose", "a", "transform", "from", "decomposition", "t", "and", "apply", "it", "to", "element", "e"], "sha": "5ec10ac8883e31beb91a940f133290a5146a126d", "url": "https://github.com/mcasimir/mobile-angular-ui/blob/5ec10ac8883e31beb91a940f133290a5146a126d/dist/js/mobile-angular-ui.gestures.js#L1688-L1691", "partition": "test"} +{"repo": "ElemeFE/cooking", "path": "packages/cooking/lib/cooking.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "loader.vue => module.loaders.vue", "docstring_tokens": ["loader", ".", "vue", "=", ">", "module", ".", "loaders", ".", "vue"], "sha": "bb9c2f6bf00894deebb26c0229385960f3645c89", "url": "https://github.com/ElemeFE/cooking/blob/bb9c2f6bf00894deebb26c0229385960f3645c89/packages/cooking/lib/cooking.js#L19-L29", "partition": "test"} +{"repo": "directus/sdk-js", "path": "src/index.js", "func_name": "getPayload", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieves the payload from a JWT\n@param {String} token The JWT to retrieve the payload from\n@return {Object} The JWT payload", "docstring_tokens": ["Retrieves", "the", "payload", "from", "a", "JWT"], "sha": "f1e76fe844820886b77450b216228f3af62ed7b5", "url": "https://github.com/directus/sdk-js/blob/f1e76fe844820886b77450b216228f3af62ed7b5/src/index.js#L11-L24", "partition": "test"} +{"repo": "GitbookIO/theme-default", "path": "src/js/theme/navigation.js", "func_name": "setChapterActive", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set a chapter as active in summary and update state", "docstring_tokens": ["Set", "a", "chapter", "as", "active", "in", "summary", "and", "update", "state"], "sha": "a8e920453dc8e4eb522840b61606486622848099", "url": "https://github.com/GitbookIO/theme-default/blob/a8e920453dc8e4eb522840b61606486622848099/src/js/theme/navigation.js#L123-L165", "partition": "test"} +{"repo": "GitbookIO/theme-default", "path": "src/js/theme/navigation.js", "func_name": "getChapterHash", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the hash of link for a chapter", "docstring_tokens": ["Return", "the", "hash", "of", "link", "for", "a", "chapter"], "sha": "a8e920453dc8e4eb522840b61606486622848099", "url": "https://github.com/GitbookIO/theme-default/blob/a8e920453dc8e4eb522840b61606486622848099/src/js/theme/navigation.js#L168-L174", "partition": "test"} +{"repo": "GitbookIO/theme-default", "path": "src/js/theme/navigation.js", "func_name": "handleScrolling", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handle user scrolling", "docstring_tokens": ["Handle", "user", "scrolling"], "sha": "a8e920453dc8e4eb522840b61606486622848099", "url": "https://github.com/GitbookIO/theme-default/blob/a8e920453dc8e4eb522840b61606486622848099/src/js/theme/navigation.js#L177-L216", "partition": "test"} +{"repo": "GitbookIO/theme-default", "path": "src/js/theme/toolbar.js", "func_name": "insertAt", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Insert a jquery element at a specific position", "docstring_tokens": ["Insert", "a", "jquery", "element", "at", "a", "specific", "position"], "sha": "a8e920453dc8e4eb522840b61606486622848099", "url": "https://github.com/GitbookIO/theme-default/blob/a8e920453dc8e4eb522840b61606486622848099/src/js/theme/toolbar.js#L15-L25", "partition": "test"} +{"repo": "GitbookIO/theme-default", "path": "src/js/theme/toolbar.js", "func_name": "createDropdownMenu", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a dropdown menu", "docstring_tokens": ["Create", "a", "dropdown", "menu"], "sha": "a8e920453dc8e4eb522840b61606486622848099", "url": "https://github.com/GitbookIO/theme-default/blob/a8e920453dc8e4eb522840b61606486622848099/src/js/theme/toolbar.js#L33-L79", "partition": "test"} +{"repo": "GitbookIO/theme-default", "path": "src/js/theme/toolbar.js", "func_name": "createButton", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a new button in the toolbar", "docstring_tokens": ["Create", "a", "new", "button", "in", "the", "toolbar"], "sha": "a8e920453dc8e4eb522840b61606486622848099", "url": "https://github.com/GitbookIO/theme-default/blob/a8e920453dc8e4eb522840b61606486622848099/src/js/theme/toolbar.js#L82-L116", "partition": "test"} +{"repo": "GitbookIO/theme-default", "path": "src/js/theme/toolbar.js", "func_name": "removeButton", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove a button provided its id", "docstring_tokens": ["Remove", "a", "button", "provided", "its", "id"], "sha": "a8e920453dc8e4eb522840b61606486622848099", "url": "https://github.com/GitbookIO/theme-default/blob/a8e920453dc8e4eb522840b61606486622848099/src/js/theme/toolbar.js#L185-L191", "partition": "test"} +{"repo": "GitbookIO/theme-default", "path": "src/js/theme/toolbar.js", "func_name": "removeButtons", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove multiple buttons from an array of ids", "docstring_tokens": ["Remove", "multiple", "buttons", "from", "an", "array", "of", "ids"], "sha": "a8e920453dc8e4eb522840b61606486622848099", "url": "https://github.com/GitbookIO/theme-default/blob/a8e920453dc8e4eb522840b61606486622848099/src/js/theme/toolbar.js#L194-L200", "partition": "test"} +{"repo": "GitbookIO/theme-default", "path": "src/js/theme/sidebar.js", "func_name": "toggleSidebar", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Toggle sidebar with or withour animation", "docstring_tokens": ["Toggle", "sidebar", "with", "or", "withour", "animation"], "sha": "a8e920453dc8e4eb522840b61606486622848099", "url": "https://github.com/GitbookIO/theme-default/blob/a8e920453dc8e4eb522840b61606486622848099/src/js/theme/sidebar.js#L8-L16", "partition": "test"} +{"repo": "GitbookIO/theme-default", "path": "src/js/theme/sidebar.js", "func_name": "filterSummary", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Filter summary with a list of path", "docstring_tokens": ["Filter", "summary", "with", "a", "list", "of", "path"], "sha": "a8e920453dc8e4eb522840b61606486622848099", "url": "https://github.com/GitbookIO/theme-default/blob/a8e920453dc8e4eb522840b61606486622848099/src/js/theme/sidebar.js#L37-L47", "partition": "test"} +{"repo": "GitbookIO/theme-default", "path": "src/js/theme/dropdown.js", "func_name": "init", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Bind all dropdown", "docstring_tokens": ["Bind", "all", "dropdown"], "sha": "a8e920453dc8e4eb522840b61606486622848099", "url": "https://github.com/GitbookIO/theme-default/blob/a8e920453dc8e4eb522840b61606486622848099/src/js/theme/dropdown.js#L16-L20", "partition": "test"} +{"repo": "GitbookIO/theme-default", "path": "src/js/theme/keyboard.js", "func_name": "init", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Bind keyboard shortcuts", "docstring_tokens": ["Bind", "keyboard", "shortcuts"], "sha": "a8e920453dc8e4eb522840b61606486622848099", "url": "https://github.com/GitbookIO/theme-default/blob/a8e920453dc8e4eb522840b61606486622848099/src/js/theme/keyboard.js#L16-L31", "partition": "test"} +{"repo": "h2non/toxy", "path": "index.js", "func_name": "addDirective", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add directive helper.\n\n@param {String}\n@function addDirective\n@private", "docstring_tokens": ["Add", "directive", "helper", "."], "sha": "48b461eea5a82d0e972e0d6bc99f466adbbbc49f", "url": "https://github.com/h2non/toxy/blob/48b461eea5a82d0e972e0d6bc99f466adbbbc49f/index.js#L120-L143", "partition": "test"} +{"repo": "h2non/toxy", "path": "lib/directive.js", "func_name": "Directive", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Directive encapsulates a directive function providing convenient\nmethods and abstractions used by toxy higher layers to manage and configure directives.\n\n@param {Function} directive\n@class Directive\n@extends Rule", "docstring_tokens": ["Directive", "encapsulates", "a", "directive", "function", "providing", "convenient", "methods", "and", "abstractions", "used", "by", "toxy", "higher", "layers", "to", "manage", "and", "configure", "directives", "."], "sha": "48b461eea5a82d0e972e0d6bc99f466adbbbc49f", "url": "https://github.com/h2non/toxy/blob/48b461eea5a82d0e972e0d6bc99f466adbbbc49f/lib/directive.js#L14-L19", "partition": "test"} +{"repo": "h2non/toxy", "path": "lib/toxy.js", "func_name": "Toxy", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new Toxy HTTP proxy.\n\n@param {Object} opts\n@class Toxy\n@extends Proxy", "docstring_tokens": ["Creates", "a", "new", "Toxy", "HTTP", "proxy", "."], "sha": "48b461eea5a82d0e972e0d6bc99f466adbbbc49f", "url": "https://github.com/h2non/toxy/blob/48b461eea5a82d0e972e0d6bc99f466adbbbc49f/lib/toxy.js#L17-L29", "partition": "test"} +{"repo": "react-webpack-generators/generator-react-webpack", "path": "generators/setup-env/utils.js", "func_name": "getModifiedConfigModuleIndex", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns updated index module requiring and exporting the newly created environment.\n\n@param {string} fileStr\n@param {string} snakedEnv\n@param {string} classedEnv\n@return {string} file contents of updated conf/webpack/index.js", "docstring_tokens": ["Returns", "updated", "index", "module", "requiring", "and", "exporting", "the", "newly", "created", "environment", "."], "sha": "9c682541787602290fc6d115d90dbd3386cfda10", "url": "https://github.com/react-webpack-generators/generator-react-webpack/blob/9c682541787602290fc6d115d90dbd3386cfda10/generators/setup-env/utils.js#L44-L64", "partition": "test"} +{"repo": "react-webpack-generators/generator-react-webpack", "path": "generators/app/postcss.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add postcss support to the given webpack base configuration object\n@param {String} path The config file name", "docstring_tokens": ["Add", "postcss", "support", "to", "the", "given", "webpack", "base", "configuration", "object"], "sha": "9c682541787602290fc6d115d90dbd3386cfda10", "url": "https://github.com/react-webpack-generators/generator-react-webpack/blob/9c682541787602290fc6d115d90dbd3386cfda10/generators/app/postcss.js#L13-L98", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/metadata/index.js", "func_name": "Metadata", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Represents cluster and schema information.\nThe metadata class acts as a internal state of the driver.\n@param {ClientOptions} options\n@param {ControlConnection} controlConnection Control connection used to retrieve information.\n@constructor", "docstring_tokens": ["Represents", "cluster", "and", "schema", "information", ".", "The", "metadata", "class", "acts", "as", "a", "internal", "state", "of", "the", "driver", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/metadata/index.js#L55-L68", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/metadata/index.js", "func_name": "checkUdtTypes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "check for udts and get the metadata", "docstring_tokens": ["check", "for", "udts", "and", "get", "the", "metadata"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/metadata/index.js#L882-L910", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/metadata/index.js", "func_name": "PreparedQueries", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Allows to store prepared queries and retrieval by query or query id.\n@param {Number} maxPrepared\n@param {Function} logger\n@constructor\n@ignore", "docstring_tokens": ["Allows", "to", "store", "prepared", "queries", "and", "retrieval", "by", "query", "or", "query", "id", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/metadata/index.js#L987-L993", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/errors.js", "func_name": "DriverError", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Contains the error classes exposed by the driver.\n@module errors\n \nBase Error\n@private", "docstring_tokens": ["Contains", "the", "error", "classes", "exposed", "by", "the", "driver", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/errors.js#L13-L20", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/errors.js", "func_name": "NoHostAvailableError", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Represents an error when a query cannot be performed because no host is available or could be reached by the driver.\n@param {Object} innerErrors An object map containing the error per host tried\n@param {String} [message]\n@constructor", "docstring_tokens": ["Represents", "an", "error", "when", "a", "query", "cannot", "be", "performed", "because", "no", "host", "is", "available", "or", "could", "be", "reached", "by", "the", "driver", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/errors.js#L30-L44", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/errors.js", "func_name": "BusyConnectionError", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Represents a client-side error indicating that all connections to a certain host have reached\nthe maximum amount of in-flight requests supported.\n@param {String} address\n@param {Number} maxRequestsPerConnection\n@param {Number} connectionLength\n@constructor", "docstring_tokens": ["Represents", "a", "client", "-", "side", "error", "indicating", "that", "all", "connections", "to", "a", "certain", "host", "have", "reached", "the", "maximum", "amount", "of", "in", "-", "flight", "requests", "supported", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/errors.js#L143-L149", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/client-options.js", "func_name": "extend", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extends and validates the user options\n@param {Object} [baseOptions] The source object instance that will be overridden\n@param {Object} userOptions\n@returns {Object}", "docstring_tokens": ["Extends", "and", "validates", "the", "user", "options"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/client-options.js#L89-L129", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/client-options.js", "func_name": "validatePoliciesOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validates the policies from the client options.\n@param {ClientOptions.policies} policiesOptions\n@private", "docstring_tokens": ["Validates", "the", "policies", "from", "the", "client", "options", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/client-options.js#L136-L156", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/client-options.js", "func_name": "validateProtocolOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validates the protocol options.\n@param {ClientOptions.protocolOptions} protocolOptions\n@private", "docstring_tokens": ["Validates", "the", "protocol", "options", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/client-options.js#L163-L171", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/client-options.js", "func_name": "validateSocketOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validates the socket options.\n@param {ClientOptions.socketOptions} socketOptions\n@private", "docstring_tokens": ["Validates", "the", "socket", "options", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/client-options.js#L178-L188", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/client-options.js", "func_name": "validateEncodingOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validates the encoding options.\n@param {ClientOptions.encoding} encodingOptions\n@private", "docstring_tokens": ["Validates", "the", "encoding", "options", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/client-options.js#L195-L217", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/client-options.js", "func_name": "setProtocolDependentDefaults", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets the default options that depend on the protocol version.\n@param {ClientOptions} options\n@param {Number} version", "docstring_tokens": ["Sets", "the", "default", "options", "that", "depend", "on", "the", "protocol", "version", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/client-options.js#L224-L232", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/types/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the typeInfo of a given type name\n@param name\n@returns {{code: number, info: *|Object}}", "docstring_tokens": ["Returns", "the", "typeInfo", "of", "a", "given", "type", "name"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/types/index.js#L126-L155", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/types/index.js", "func_name": "getDataTypeNameByCode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the data type name for a given type definition\n@internal\n@ignore\n@throws {ArgumentError}", "docstring_tokens": ["Gets", "the", "data", "type", "name", "for", "a", "given", "type", "definition"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/types/index.js#L393-L416", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/types/index.js", "func_name": "FrameHeader", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "classes \nRepresents a frame header that could be used to read from a Buffer or to write to a Buffer\n@ignore\n@param {Number} version Protocol version\n@param {Number} flags\n@param {Number} streamId\n@param {Number} opcode\n@param {Number} bodyLength\n@constructor", "docstring_tokens": ["classes", "Represents", "a", "frame", "header", "that", "could", "be", "used", "to", "read", "from", "a", "Buffer", "or", "to", "write", "to", "a", "Buffer"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/types/index.js#L430-L436", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/types/index.js", "func_name": "generateTimestamp", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generates a value representing the timestamp for the query in microseconds based on the date and the microseconds provided\n@param {Date} [date] The date to generate the value, if not provided it will use the current date.\n@param {Number} [microseconds] A number from 0 to 999 used to build the microseconds part of the date.\n@returns {Long}", "docstring_tokens": ["Generates", "a", "value", "representing", "the", "timestamp", "for", "the", "query", "in", "microseconds", "based", "on", "the", "date", "and", "the", "microseconds", "provided"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/types/index.js#L544-L563", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/types/mutable-long.js", "func_name": "MutableLong", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Constructs a signed int64 representation.\n@constructor\n@ignore", "docstring_tokens": ["Constructs", "a", "signed", "int64", "representation", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/types/mutable-long.js#L14-L17", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/metadata/aggregate.js", "func_name": "Aggregate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new Aggregate.\n@classdesc Describes a CQL aggregate.\n@alias module:metadata~Aggregate\n@constructor", "docstring_tokens": ["Creates", "a", "new", "Aggregate", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/metadata/aggregate.js#L9-L55", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/host.js", "func_name": "Host", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new Host instance.\n@classdesc\nRepresents a Cassandra node.\n@extends EventEmitter\n@constructor", "docstring_tokens": ["Creates", "a", "new", "Host", "instance", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/host.js#L19-L89", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/policies/speculative-execution.js", "func_name": "ConstantSpeculativeExecutionPolicy", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new instance of ConstantSpeculativeExecutionPolicy.\n@classdesc\nA {@link SpeculativeExecutionPolicy} that schedules a given number of speculative executions,\nseparated by a fixed delay.\n@constructor\n@param {Number} delay The delay between each speculative execution.\n@param {Number} maxSpeculativeExecutions The amount of speculative executions that should be scheduled after the\ninitial execution. Must be strictly positive.\n@extends {SpeculativeExecutionPolicy}", "docstring_tokens": ["Creates", "a", "new", "instance", "of", "ConstantSpeculativeExecutionPolicy", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/policies/speculative-execution.js#L90-L99", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/metadata/materialized-view.js", "func_name": "MaterializedView", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new MaterializedView.\n@param {String} name Name of the View.\n@classdesc Describes a CQL materialized view.\n@alias module:metadata~MaterializedView\n@augments {module:metadata~DataCollection}\n@constructor", "docstring_tokens": ["Creates", "a", "new", "MaterializedView", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/metadata/materialized-view.js#L12-L29", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/metadata/data-collection.js", "func_name": "DataCollection", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new instance of DataCollection\n@param {String} name Name of the data object.\n@classdesc Describes a table or a view\n@alias module:metadata~DataCollection\n@constructor\n@abstract", "docstring_tokens": ["Creates", "a", "new", "instance", "of", "DataCollection"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/metadata/data-collection.js#L12-L145", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "examples/concurrent-executions/execute-in-loop.js", "func_name": "example", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Inserts multiple rows in a table limiting the amount of parallel requests.\n\nNote that here is a built-in method in the driver executeConcurrent() that allows you to execute\nmultiple simultaneous requests using an Array or a Stream. Check out execute-concurrent-array.js for more\ninformation.\n\nYou can also use existing libraries to limit concurrency in a loop, for example:\n- https://caolan.github.io/async/docs.html#eachLimit\n- http://bluebirdjs.com/docs/api/promise.map.html", "docstring_tokens": ["Inserts", "multiple", "rows", "in", "a", "table", "limiting", "the", "amount", "of", "parallel", "requests", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/examples/concurrent-executions/execute-in-loop.js#L18-L49", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/metadata/table-metadata.js", "func_name": "TableMetadata", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new instance of TableMetadata\n@classdesc Describes a table\n@param {String} name Name of the Table\n@augments {module:metadata~DataCollection}\n@alias module:metadata~TableMetadata\n@constructor", "docstring_tokens": ["Creates", "a", "new", "instance", "of", "TableMetadata"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/metadata/table-metadata.js#L14-L59", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/metadata/schema-parser.js", "func_name": "SchemaParserV1", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Used to parse schema information for Cassandra versions 1.2.x, and 2.x\n@param {ClientOptions} options The client options\n@param {ControlConnection} cc\n@constructor\n@ignore", "docstring_tokens": ["Used", "to", "parse", "schema", "information", "for", "Cassandra", "versions", "1", ".", "2", ".", "x", "and", "2", ".", "x"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/metadata/schema-parser.js#L403-L410", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/metadata/schema-parser.js", "func_name": "SchemaParserV2", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Used to parse schema information for Cassandra versions 3.x and above\n@param {ClientOptions} options The client options\n@param {ControlConnection} cc The control connection to be used\n@param {Function} udtResolver The function to be used to retrieve the udts.\n@constructor\n@ignore", "docstring_tokens": ["Used", "to", "parse", "schema", "information", "for", "Cassandra", "versions", "3", ".", "x", "and", "above"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/metadata/schema-parser.js#L682-L691", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/metadata/schema-parser.js", "func_name": "SchemaParserV3", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Used to parse schema information for Cassandra versions 4.x and above.\n\nThis parser similar to [SchemaParserV2] expect it also parses virtual\nkeyspaces.\n\n@param {ClientOptions} options The client options\n@param {ControlConnection} cc The control connection to be used\n@param {Function} udtResolver The function to be used to retrieve the udts.\n@constructor\n@ignore", "docstring_tokens": ["Used", "to", "parse", "schema", "information", "for", "Cassandra", "versions", "4", ".", "x", "and", "above", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/metadata/schema-parser.js#L1081-L1084", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/metadata/schema-parser.js", "func_name": "getByVersion", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new instance if the currentInstance is not valid for the\nprovided Cassandra version\n@param {ClientOptions} options The client options\n@param {ControlConnection} cc The control connection to be used\n@param {Function} udtResolver The function to be used to retrieve the udts.\n@param {Array.} [version] The cassandra version\n@param {SchemaParser} [currentInstance] The current instance\n@returns {SchemaParser}", "docstring_tokens": ["Creates", "a", "new", "instance", "if", "the", "currentInstance", "is", "not", "valid", "for", "the", "provided", "Cassandra", "version"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/metadata/schema-parser.js#L1371-L1382", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/client.js", "func_name": "encodeRoutingKey", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wrapper function as encoding a routing key could throw a TypeError", "docstring_tokens": ["Wrapper", "function", "as", "encoding", "a", "routing", "key", "could", "throw", "a", "TypeError"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/client.js#L1074-L1087", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "examples/runner.js", "func_name": "getJsFiles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This script is used to check that the samples run correctly.\nIt is not a valid example, see README.md and subdirectories for more information.\n List all js files in the directory", "docstring_tokens": ["This", "script", "is", "used", "to", "check", "that", "the", "samples", "run", "correctly", ".", "It", "is", "not", "a", "valid", "example", "see", "README", ".", "md", "and", "subdirectories", "for", "more", "information", ".", "List", "all", "js", "files", "in", "the", "directory"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/examples/runner.js#L14-L31", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/metadata/schema-function.js", "func_name": "SchemaFunction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new SchemaFunction.\n@classdesc Describes a CQL function.\n@alias module:metadata~SchemaFunction\n@constructor", "docstring_tokens": ["Creates", "a", "new", "SchemaFunction", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/metadata/schema-function.js#L9-L54", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/utils.js", "func_name": "copyBuffer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a copy of a buffer", "docstring_tokens": ["Creates", "a", "copy", "of", "a", "buffer"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/utils.js#L70-L74", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/utils.js", "func_name": "fixStack", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Appends the original stack trace to the error after a tick of the event loop", "docstring_tokens": ["Appends", "the", "original", "stack", "trace", "to", "the", "error", "after", "a", "tick", "of", "the", "event", "loop"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/utils.js#L79-L84", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/utils.js", "func_name": "log", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Uses the logEmitter to emit log events\n@param {String} type\n@param {String} info\n@param [furtherInfo]", "docstring_tokens": ["Uses", "the", "logEmitter", "to", "emit", "log", "events"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/utils.js#L92-L100", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/utils.js", "func_name": "toLowerCaseProperties", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a new object with the property names set to lowercase.", "docstring_tokens": ["Returns", "a", "new", "object", "with", "the", "property", "names", "set", "to", "lowercase", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/utils.js#L145-L153", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/utils.js", "func_name": "deepExtend", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extends the target by the most inner props of sources\n@param {Object} target\n@returns {Object}", "docstring_tokens": ["Extends", "the", "target", "by", "the", "most", "inner", "props", "of", "sources"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/utils.js#L160-L188", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/utils.js", "func_name": "arrayIterator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Uses the iterator protocol to go through the items of the Array\n@param arr\n@returns {{next: function}}", "docstring_tokens": ["Uses", "the", "iterator", "protocol", "to", "go", "through", "the", "items", "of", "the", "Array"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/utils.js#L223-L231", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/utils.js", "func_name": "iteratorToArray", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert the iterator values into an array\n@param iterator\n@returns {Array}", "docstring_tokens": ["Convert", "the", "iterator", "values", "into", "an", "array"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/utils.js#L238-L246", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/utils.js", "func_name": "binarySearch", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Searches the specified Array for the provided key using the binary\nsearch algorithm. The Array must be sorted.\n@param {Array} arr\n@param key\n@param {function} compareFunc\n@returns {number} The position of the key in the Array, if it is found.\nIf it is not found, it returns a negative number which is the bitwise complement of the index of the first element that is larger than key.", "docstring_tokens": ["Searches", "the", "specified", "Array", "for", "the", "provided", "key", "using", "the", "binary", "search", "algorithm", ".", "The", "Array", "must", "be", "sorted", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/utils.js#L257-L279", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/utils.js", "func_name": "insertSorted", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Inserts the value in the position determined by its natural order determined by the compare func\n@param {Array} arr\n@param item\n@param {function} compareFunc", "docstring_tokens": ["Inserts", "the", "value", "in", "the", "position", "determined", "by", "its", "natural", "order", "determined", "by", "the", "compare", "func"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/utils.js#L287-L296", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/utils.js", "func_name": "validateFn", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validates the provided parameter is of type function.\n@param {Function} fn The instance to validate.\n@param {String} [name] Name of the function to use in the error message. Defaults to 'callback'.\n@returns {Function}", "docstring_tokens": ["Validates", "the", "provided", "parameter", "is", "of", "type", "function", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/utils.js#L304-L309", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/utils.js", "func_name": "stringRepeat", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a string with a value repeated n times\n@param {String} val\n@param {Number} times\n@returns {String}", "docstring_tokens": ["Returns", "a", "string", "with", "a", "value", "repeated", "n", "times"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/utils.js#L378-L386", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/utils.js", "func_name": "promiseWrapper", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wraps the callback-based method. When no originalCallback is not defined, it returns a Promise.\n@param {ClientOptions} options\n@param {Function} originalCallback\n@param {Function} handler\n@returns {Promise|undefined}", "docstring_tokens": ["Wraps", "the", "callback", "-", "based", "method", ".", "When", "no", "originalCallback", "is", "not", "defined", "it", "returns", "a", "Promise", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/utils.js#L413-L424", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/policies/load-balancing.js", "func_name": "WhiteListPolicy", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a new policy that wraps the provided child policy but only \"allow\" hosts\nfrom the provided while list.\n@class\n@classdesc\nA load balancing policy wrapper that ensure that only hosts from a provided\nwhite list will ever be returned.\n

    \nThis policy wraps another load balancing policy and will delegate the choice\nof hosts to the wrapped policy with the exception that only hosts contained\nin the white list provided when constructing this policy will ever be\nreturned. Any host not in the while list will be considered ignored\nand thus will not be connected to.\n

    \nThis policy can be useful to ensure that the driver only connects to a\npredefined set of hosts. Keep in mind however that this policy defeats\nsomewhat the host auto-detection of the driver. As such, this policy is only\nuseful in a few special cases or for testing, but is not optimal in general.\nIf all you want to do is limiting connections to hosts of the local\ndata-center then you should use DCAwareRoundRobinPolicy and *not* this policy\nin particular.\n@param {LoadBalancingPolicy} childPolicy the wrapped policy.\n@param {Array.} whiteList the white listed hosts address in the format ipAddress:port.\nOnly hosts from this list may get connected\nto (whether they will get connected to or not depends on the child policy).\n@extends LoadBalancingPolicy\n@constructor", "docstring_tokens": ["Create", "a", "new", "policy", "that", "wraps", "the", "provided", "child", "policy", "but", "only", "allow", "hosts", "from", "the", "provided", "while", "list", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/policies/load-balancing.js#L390-L403", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/metadata/event-debouncer.js", "func_name": "EventDebouncer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Debounce protocol events by acting on those events with a sliding delay.\n@param {Number} delay\n@param {Function} logger\n@ignore\n@constructor", "docstring_tokens": ["Debounce", "protocol", "events", "by", "acting", "on", "those", "events", "with", "a", "sliding", "delay", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/metadata/event-debouncer.js#L15-L20", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/readers.js", "func_name": "FrameReader", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Buffer forward reader of CQL binary frames\n@param {FrameHeader} header\n@param {Buffer} body\n@param {Number} [offset]", "docstring_tokens": ["Buffer", "forward", "reader", "of", "CQL", "binary", "frames"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/readers.js#L23-L28", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/connection.js", "func_name": "Connection", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Represents a connection to a Cassandra node\n@param {String} endpoint An string containing ip address and port of the host\n@param {Number|null} protocolVersion\n@param {ClientOptions} options\n@extends EventEmitter\n@constructor", "docstring_tokens": ["Represents", "a", "connection", "to", "a", "Cassandra", "node"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/connection.js#L30-L98", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/types/time-uuid.js", "func_name": "getClockId", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a buffer of length 2 representing the clock identifier\n@param {String|Buffer} clockId\n@returns {Buffer}\n@private", "docstring_tokens": ["Returns", "a", "buffer", "of", "length", "2", "representing", "the", "clock", "identifier"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/types/time-uuid.js#L271-L284", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/types/time-uuid.js", "func_name": "getNodeId", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a buffer of length 6 representing the clock identifier\n@param {String|Buffer} nodeId\n@returns {Buffer}\n@private", "docstring_tokens": ["Returns", "a", "buffer", "of", "length", "6", "representing", "the", "clock", "identifier"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/types/time-uuid.js#L292-L305", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/types/time-uuid.js", "func_name": "getTicks", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the ticks portion of a timestamp. If the ticks are not provided an internal counter is used that gets reset at 10000.\n@private\n@param {Number} [ticks]\n@returns {Number}", "docstring_tokens": ["Returns", "the", "ticks", "portion", "of", "a", "timestamp", ".", "If", "the", "ticks", "are", "not", "provided", "an", "internal", "counter", "is", "used", "that", "gets", "reset", "at", "10000", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/types/time-uuid.js#L313-L322", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/types/time-uuid.js", "func_name": "getTimeWithTicks", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an object with the time representation of the date expressed in milliseconds since unix epoch\nand a ticks property for the 100-nanoseconds precision.\n@private\n@returns {{time: Number, ticks: Number}}", "docstring_tokens": ["Returns", "an", "object", "with", "the", "time", "representation", "of", "the", "date", "expressed", "in", "milliseconds", "since", "unix", "epoch", "and", "a", "ticks", "property", "for", "the", "100", "-", "nanoseconds", "precision", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/types/time-uuid.js#L330-L346", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/types/time-uuid.js", "func_name": "generateBuffer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generates a 16-length Buffer instance\n@private\n@param {Date} date\n@param {Number} ticks\n@param {String|Buffer} nodeId\n@param {String|Buffer} clockId\n@returns {Buffer}", "docstring_tokens": ["Generates", "a", "16", "-", "length", "Buffer", "instance"], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/types/time-uuid.js#L368-L393", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/encoder.js", "func_name": "Encoder", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Serializes and deserializes to and from a CQL type and a Javascript Type.\n@param {Number} protocolVersion\n@param {ClientOptions} options\n@constructor", "docstring_tokens": ["Serializes", "and", "deserializes", "to", "and", "from", "a", "CQL", "type", "and", "a", "Javascript", "Type", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/encoder.js#L101-L112", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/types/duration.js", "func_name": "numberOfLeadingZeros", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the number of zero bits preceding the highest-order one-bit in the binary representation of the value.\n@param {Long} value\n@returns {Number}", "docstring_tokens": ["Returns", "the", "number", "of", "zero", "bits", "preceding", "the", "highest", "-", "order", "one", "-", "bit", "in", "the", "binary", "representation", "of", "the", "value", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/types/duration.js#L579-L607", "partition": "test"} +{"repo": "datastax/nodejs-driver", "path": "lib/metadata/schema-index.js", "func_name": "Index", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new Index instance.\n@classdesc Describes a CQL index.\n@param {String} name\n@param {String} target\n@param {Number|String} kind\n@param {Object} options\n@alias module:metadata~Index\n@constructor", "docstring_tokens": ["Creates", "a", "new", "Index", "instance", "."], "sha": "6766188870f7099aeb393719820245b69d789d23", "url": "https://github.com/datastax/nodejs-driver/blob/6766188870f7099aeb393719820245b69d789d23/lib/metadata/schema-index.js#L22-L43", "partition": "test"} +{"repo": "es-analysis/plato", "path": "lib/assets/scripts/plato-sortable-file-list.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "work-horse @param: key The 'data-' to sort by @return: descending sorted array of

  • elements", "docstring_tokens": ["work", "-", "horse"], "sha": "a944bb9313785bcc47fb27b257bb2518c86174bd", "url": "https://github.com/es-analysis/plato/blob/a944bb9313785bcc47fb27b257bb2518c86174bd/lib/assets/scripts/plato-sortable-file-list.js#L32-L36", "partition": "test"} +{"repo": "es-analysis/plato", "path": "lib/assets/scripts/vendor/codemirror/codemirror.js", "func_name": "loadMode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "STATE UPDATES Used to get the editor into a consistent state again when options change.", "docstring_tokens": ["STATE", "UPDATES", "Used", "to", "get", "the", "editor", "into", "a", "consistent", "state", "again", "when", "options", "change", "."], "sha": "a944bb9313785bcc47fb27b257bb2518c86174bd", "url": "https://github.com/es-analysis/plato/blob/a944bb9313785bcc47fb27b257bb2518c86174bd/lib/assets/scripts/vendor/codemirror/codemirror.js#L194-L200", "partition": "test"} +{"repo": "es-analysis/plato", "path": "lib/assets/scripts/vendor/codemirror/codemirror.js", "func_name": "updateScrollbars", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Re-synchronize the fake scrollbars with the actual size of the content. Optionally force a scrollTop.", "docstring_tokens": ["Re", "-", "synchronize", "the", "fake", "scrollbars", "with", "the", "actual", "size", "of", "the", "content", ".", "Optionally", "force", "a", "scrollTop", "."], "sha": "a944bb9313785bcc47fb27b257bb2518c86174bd", "url": "https://github.com/es-analysis/plato/blob/a944bb9313785bcc47fb27b257bb2518c86174bd/lib/assets/scripts/vendor/codemirror/codemirror.js#L305-L330", "partition": "test"} +{"repo": "es-analysis/plato", "path": "lib/assets/scripts/vendor/codemirror/codemirror.js", "func_name": "restartBlink", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Cursor-blinking", "docstring_tokens": ["Cursor", "-", "blinking"], "sha": "a944bb9313785bcc47fb27b257bb2518c86174bd", "url": "https://github.com/es-analysis/plato/blob/a944bb9313785bcc47fb27b257bb2518c86174bd/lib/assets/scripts/vendor/codemirror/codemirror.js#L754-L763", "partition": "test"} +{"repo": "es-analysis/plato", "path": "lib/assets/scripts/vendor/codemirror/codemirror.js", "func_name": "coordsChar", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Coords must be lineSpace-local", "docstring_tokens": ["Coords", "must", "be", "lineSpace", "-", "local"], "sha": "a944bb9313785bcc47fb27b257bb2518c86174bd", "url": "https://github.com/es-analysis/plato/blob/a944bb9313785bcc47fb27b257bb2518c86174bd/lib/assets/scripts/vendor/codemirror/codemirror.js#L1001-L1018", "partition": "test"} +{"repo": "es-analysis/plato", "path": "lib/assets/scripts/vendor/codemirror/codemirror.js", "func_name": "updateDoc", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Replace the range from from to to by the strings in newText. Afterwards, set the selection to selFrom, selTo.", "docstring_tokens": ["Replace", "the", "range", "from", "from", "to", "to", "by", "the", "strings", "in", "newText", ".", "Afterwards", "set", "the", "selection", "to", "selFrom", "selTo", "."], "sha": "a944bb9313785bcc47fb27b257bb2518c86174bd", "url": "https://github.com/es-analysis/plato/blob/a944bb9313785bcc47fb27b257bb2518c86174bd/lib/assets/scripts/vendor/codemirror/codemirror.js#L1849-L1862", "partition": "test"} +{"repo": "es-analysis/plato", "path": "lib/assets/scripts/vendor/codemirror/codemirror.js", "func_name": "setSelection", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Update the selection. Last two args are only used by updateDoc, since they have to be expressed in the line numbers before the update.", "docstring_tokens": ["Update", "the", "selection", ".", "Last", "two", "args", "are", "only", "used", "by", "updateDoc", "since", "they", "have", "to", "be", "expressed", "in", "the", "line", "numbers", "before", "the", "update", "."], "sha": "a944bb9313785bcc47fb27b257bb2518c86174bd", "url": "https://github.com/es-analysis/plato/blob/a944bb9313785bcc47fb27b257bb2518c86174bd/lib/assets/scripts/vendor/codemirror/codemirror.js#L2067-L2085", "partition": "test"} +{"repo": "es-analysis/plato", "path": "lib/assets/scripts/vendor/codemirror/codemirror.js", "func_name": "highlightLine", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Run the given mode's parser over a line, update the styles array, which contains alternating fragments of text and CSS classes.", "docstring_tokens": ["Run", "the", "given", "mode", "s", "parser", "over", "a", "line", "update", "the", "styles", "array", "which", "contains", "alternating", "fragments", "of", "text", "and", "CSS", "classes", "."], "sha": "a944bb9313785bcc47fb27b257bb2518c86174bd", "url": "https://github.com/es-analysis/plato/blob/a944bb9313785bcc47fb27b257bb2518c86174bd/lib/assets/scripts/vendor/codemirror/codemirror.js#L3524-L3549", "partition": "test"} +{"repo": "es-analysis/plato", "path": "lib/assets/scripts/vendor/codemirror/codemirror.js", "func_name": "e_prop", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Allow 3rd-party code to override event properties by adding an override object to an event object.", "docstring_tokens": ["Allow", "3rd", "-", "party", "code", "to", "override", "event", "properties", "by", "adding", "an", "override", "object", "to", "an", "event", "object", "."], "sha": "a944bb9313785bcc47fb27b257bb2518c86174bd", "url": "https://github.com/es-analysis/plato/blob/a944bb9313785bcc47fb27b257bb2518c86174bd/lib/assets/scripts/vendor/codemirror/codemirror.js#L4038-L4041", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "Flow", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Flow.js is a library providing multiple simultaneous, stable and\nresumable uploads via the HTML5 File API.\n@param [opts]\n@param {number} [opts.chunkSize]\n@param {bool} [opts.forceChunkSize]\n@param {number} [opts.simultaneousUploads]\n@param {bool} [opts.singleFile]\n@param {string} [opts.fileParameterName]\n@param {number} [opts.progressCallbacksInterval]\n@param {number} [opts.speedSmoothingFactor]\n@param {Object|Function} [opts.query]\n@param {Object|Function} [opts.headers]\n@param {bool} [opts.withCredentials]\n@param {Function} [opts.preprocess]\n@param {string} [opts.method]\n@param {string|Function} [opts.testMethod]\n@param {string|Function} [opts.uploadMethod]\n@param {bool} [opts.prioritizeFirstAndLastChunk]\n@param {bool} [opts.allowDuplicateUploads]\n@param {string|Function} [opts.target]\n@param {number} [opts.maxChunkRetries]\n@param {number} [opts.chunkRetryInterval]\n@param {Array.} [opts.permanentErrors]\n@param {Array.} [opts.successStatuses]\n@param {Function} [opts.initFileFn]\n@param {Function} [opts.readFileFn]\n@param {Function} [opts.generateUniqueIdentifier]\n@constructor", "docstring_tokens": ["Flow", ".", "js", "is", "a", "library", "providing", "multiple", "simultaneous", "stable", "and", "resumable", "uploads", "via", "the", "HTML5", "File", "API", "."], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L41-L160", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove event callback\n@function\n@param {string} [event] removes all events if not specified\n@param {Function} [fn] removes all callbacks of event if not specified", "docstring_tokens": ["Remove", "event", "callback"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L186-L199", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fire an event\n@function\n@param {string} event event name\n@param {...} args arguments of a callback\n@return {bool} value is false if at least one of the event handlers which handled this event\nreturned false. Otherwise it returns true.", "docstring_tokens": ["Fire", "an", "event"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L209-L224", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read webkit dataTransfer object\n@param event", "docstring_tokens": ["Read", "webkit", "dataTransfer", "object"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L230-L281", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate unique identifier for a file\n@function\n@param {FlowFile} file\n@returns {string}", "docstring_tokens": ["Generate", "unique", "identifier", "for", "a", "file"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L289-L297", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Upload next chunk from the queue\n@function\n@returns {boolean}\n@private", "docstring_tokens": ["Upload", "next", "chunk", "from", "the", "queue"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L305-L364", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Assign a browse action to one or more DOM nodes.\n@function\n@param {Element|Array.} domNodes\n@param {boolean} isDirectory Pass in true to allow directories to\n@param {boolean} singleFile prevent multi file upload\n@param {Object} attributes set custom attributes:\nhttp://www.w3.org/TR/html-markup/input.file.html#input.file-attributes\neg: accept: 'image/*'\nbe selected (Chrome only).", "docstring_tokens": ["Assign", "a", "browse", "action", "to", "one", "or", "more", "DOM", "nodes", "."], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L378-L425", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Assign one or more DOM nodes as a drop target.\n@function\n@param {Element|Array.} domNodes", "docstring_tokens": ["Assign", "one", "or", "more", "DOM", "nodes", "as", "a", "drop", "target", "."], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L432-L441", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Un-assign drop event from DOM nodes\n@function\n@param domNodes", "docstring_tokens": ["Un", "-", "assign", "drop", "event", "from", "DOM", "nodes"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L448-L457", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a boolean indicating whether or not the instance is currently\nuploading anything.\n@function\n@returns {boolean}", "docstring_tokens": ["Returns", "a", "boolean", "indicating", "whether", "or", "not", "the", "instance", "is", "currently", "uploading", "anything", "."], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L465-L474", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "should upload next chunk\n@function\n@returns {boolean|number}", "docstring_tokens": ["should", "upload", "next", "chunk"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L481-L498", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Start or resume uploading.\n@function", "docstring_tokens": ["Start", "or", "resume", "uploading", "."], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L504-L521", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a HTML5 File object to the list of files.\n@function\n@param {FileList|Array} fileList\n@param {Event} [event] event is optional", "docstring_tokens": ["Add", "a", "HTML5", "File", "object", "to", "the", "list", "of", "files", "."], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L588-L611", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Cancel upload of a specific FlowFile object from the list.\n@function\n@param {FlowFile} file", "docstring_tokens": ["Cancel", "upload", "of", "a", "specific", "FlowFile", "object", "from", "the", "list", "."], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L619-L627", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Look up a FlowFile object by its unique identifier.\n@function\n@param {string} uniqueIdentifier\n@returns {boolean|FlowFile} false if file was not found", "docstring_tokens": ["Look", "up", "a", "FlowFile", "object", "by", "its", "unique", "identifier", "."], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L635-L643", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns remaining time to upload all files in seconds. Accuracy is based on average speed.\nIf speed is zero, time remaining will be equal to positive infinity `Number.POSITIVE_INFINITY`\n@function\n@returns {number}", "docstring_tokens": ["Returns", "remaining", "time", "to", "upload", "all", "files", "in", "seconds", ".", "Accuracy", "is", "based", "on", "average", "speed", ".", "If", "speed", "is", "zero", "time", "remaining", "will", "be", "equal", "to", "positive", "infinity", "Number", ".", "POSITIVE_INFINITY"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L677-L693", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Update speed parameters\n@link http://stackoverflow.com/questions/2779600/how-to-estimate-download-time-remaining-accurately\n@function", "docstring_tokens": ["Update", "speed", "parameters"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L813-L824", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "For internal usage only.\nCallback when something happens within the chunk.\n@function\n@param {FlowChunk} chunk\n@param {string} event can be 'progress', 'success', 'error' or 'retry'\n@param {string} [message]", "docstring_tokens": ["For", "internal", "usage", "only", ".", "Callback", "when", "something", "happens", "within", "the", "chunk", "."], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L834-L870", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Abort current upload\n@function", "docstring_tokens": ["Abort", "current", "upload"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L894-L907", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Clear current chunks and slice file again\n@function", "docstring_tokens": ["Clear", "current", "chunks", "and", "slice", "file", "again"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L930-L948", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get current upload progress status\n@function\n@returns {number} from 0 to 1", "docstring_tokens": ["Get", "current", "upload", "progress", "status"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L955-L973", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Indicates if file is has finished uploading and received a response\n@function\n@returns {boolean}", "docstring_tokens": ["Indicates", "if", "file", "is", "has", "finished", "uploading", "and", "received", "a", "response"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L996-L1006", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns remaining time to finish upload file in seconds. Accuracy is based on average speed.\nIf speed is zero, time remaining will be equal to positive infinity `Number.POSITIVE_INFINITY`\n@function\n@returns {number}", "docstring_tokens": ["Returns", "remaining", "time", "to", "finish", "upload", "file", "in", "seconds", ".", "Accuracy", "is", "based", "on", "average", "speed", ".", "If", "speed", "is", "zero", "time", "remaining", "will", "be", "equal", "to", "positive", "infinity", "Number", ".", "POSITIVE_INFINITY"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L1027-L1039", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "webAPIFileRead", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Default read function using the webAPI\n\n@function webAPIFileRead(fileObj, startByte, endByte, fileType, chunk)", "docstring_tokens": ["Default", "read", "function", "using", "the", "webAPI"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L1066-L1077", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Makes a GET request without any data to see if the chunk has already\nbeen uploaded in a previous session\n@function", "docstring_tokens": ["Makes", "a", "GET", "request", "without", "any", "data", "to", "see", "if", "the", "chunk", "has", "already", "been", "uploaded", "in", "a", "previous", "session"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L1299-L1307", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Uploads the actual data in a POST call\n@function", "docstring_tokens": ["Uploads", "the", "actual", "data", "in", "a", "POST", "call"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L1337-L1376", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieve current chunk upload status\n@function\n@returns {string} 'pending', 'uploading', 'success', 'error'", "docstring_tokens": ["Retrieve", "current", "chunk", "upload", "status"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L1396-L1425", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Prepare Xhr request. Set query, headers and data\n@param {string} method GET or POST\n@param {bool} isTest is this a test request\n@param {string} [paramsMethod] octet or form\n@param {Blob} [blob] to send\n@returns {FormData|Blob|Null} data to send", "docstring_tokens": ["Prepare", "Xhr", "request", ".", "Set", "query", "headers", "and", "data"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L1477-L1510", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "evalOpts", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If option is a function, evaluate it with given params\n@param {*} data\n@param {...} args arguments of a callback\n@returns {*}", "docstring_tokens": ["If", "option", "is", "a", "function", "evaluate", "it", "with", "given", "params"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L1531-L1538", "partition": "test"} +{"repo": "flowjs/flow.js", "path": "dist/flow.js", "func_name": "each", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Iterate each element of an object\n@function\n@param {Array|Object} obj object or an array to iterate\n@param {Function} callback first argument is a value and second is a key.\n@param {Object=} context Object to become context (`this`) for the iterator function.", "docstring_tokens": ["Iterate", "each", "element", "of", "an", "object"], "sha": "aadc5a72b1414d87ed1aa3563b30209f9b1f7773", "url": "https://github.com/flowjs/flow.js/blob/aadc5a72b1414d87ed1aa3563b30209f9b1f7773/dist/flow.js#L1577-L1597", "partition": "test"} +{"repo": "alexiusacademia/electron-db", "path": "index.js", "func_name": "createTable", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a table | a json file\nThe second argument is optional, if ommitted, the file\nwill be created at the default location.\n@param {[string]} arguments[0] [Table name]\n@param {[string]} arguments[1] [Location of the database file] (Optional)\n@param {[function]} arguments[2] [Callbak ]\n function createTable(tableName, callback) {", "docstring_tokens": ["Create", "a", "table", "|", "a", "json", "file", "The", "second", "argument", "is", "optional", "if", "ommitted", "the", "file", "will", "be", "created", "at", "the", "default", "location", "."], "sha": "630ac39969e27d68bd85eb048f99e0d2b64fd67b", "url": "https://github.com/alexiusacademia/electron-db/blob/630ac39969e27d68bd85eb048f99e0d2b64fd67b/index.js#L39-L77", "partition": "test"} +{"repo": "alexiusacademia/electron-db", "path": "index.js", "func_name": "valid", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks if a json file contains valid JSON string", "docstring_tokens": ["Checks", "if", "a", "json", "file", "contains", "valid", "JSON", "string"], "sha": "630ac39969e27d68bd85eb048f99e0d2b64fd67b", "url": "https://github.com/alexiusacademia/electron-db/blob/630ac39969e27d68bd85eb048f99e0d2b64fd67b/index.js#L82-L101", "partition": "test"} +{"repo": "alexiusacademia/electron-db", "path": "index.js", "func_name": "insertTableContent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Insert object to table. The object will be appended with the property, id\nwhich uses timestamp as value.\nThere are 3 required arguments.\n@param {string} arguments[0] [Table name]\n@param {string} arguments[1] [Location of the database file] (Optional)\n@param {string} arguments[2] [Row object]\n@param {Function} arguments[3] [Callback function]\n function insertTableContent(tableName, tableRow, callback) {", "docstring_tokens": ["Insert", "object", "to", "table", ".", "The", "object", "will", "be", "appended", "with", "the", "property", "id", "which", "uses", "timestamp", "as", "value", ".", "There", "are", "3", "required", "arguments", "."], "sha": "630ac39969e27d68bd85eb048f99e0d2b64fd67b", "url": "https://github.com/alexiusacademia/electron-db/blob/630ac39969e27d68bd85eb048f99e0d2b64fd67b/index.js#L113-L154", "partition": "test"} +{"repo": "alexiusacademia/electron-db", "path": "index.js", "func_name": "count", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Count the number of rows for a given table.\n@param {string} FirstArgument Table name\n@param {string} SecondArgument Location of the database file (Optional)\n@param {callback} ThirdArgument Function callback", "docstring_tokens": ["Count", "the", "number", "of", "rows", "for", "a", "given", "table", "."], "sha": "630ac39969e27d68bd85eb048f99e0d2b64fd67b", "url": "https://github.com/alexiusacademia/electron-db/blob/630ac39969e27d68bd85eb048f99e0d2b64fd67b/index.js#L284-L313", "partition": "test"} +{"repo": "alexiusacademia/electron-db", "path": "index.js", "func_name": "updateRow", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Update a row or record which satisfies the where clause\n@param {[string]} arguments[0] [Table name]\n@param {string} arguments[1] [Location of the database file] (Optional)\n@param {[object]} arguments[2] [Objet for WHERE clause]\n@param {[object]} arguments[3] [Object for SET clause]\n@param {Function} arguments[4] [Callback function]\n function updateRow(tableName, where, set, callback) {", "docstring_tokens": ["Update", "a", "row", "or", "record", "which", "satisfies", "the", "where", "clause"], "sha": "630ac39969e27d68bd85eb048f99e0d2b64fd67b", "url": "https://github.com/alexiusacademia/electron-db/blob/630ac39969e27d68bd85eb048f99e0d2b64fd67b/index.js#L408-L493", "partition": "test"} +{"repo": "expressjs/method-override", "path": "index.js", "func_name": "createHeaderGetter", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a getter for the given header name.", "docstring_tokens": ["Create", "a", "getter", "for", "the", "given", "header", "name", "."], "sha": "5b83d4f0dc3db414df6c7e4a5da93dec170153de", "url": "https://github.com/expressjs/method-override/blob/5b83d4f0dc3db414df6c7e4a5da93dec170153de/index.js#L112-L134", "partition": "test"} +{"repo": "cloudinary/cloudinary_js", "path": "js/jquery.cloudinary.js", "func_name": "Param", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Represents a single parameter\n@class Param\n@param {string} name - The name of the parameter in snake_case\n@param {string} shortName - The name of the serialized form of the parameter.\nIf a value is not provided, the parameter will not be serialized.\n@param {function} [process=cloudinary.Util.identity ] - Manipulate origValue when value is called\n@ignore", "docstring_tokens": ["Represents", "a", "single", "parameter"], "sha": "c5ef98e858ba83e7c2c13a1d898748b571a5931b", "url": "https://github.com/cloudinary/cloudinary_js/blob/c5ef98e858ba83e7c2c13a1d898748b571a5931b/js/jquery.cloudinary.js#L1001-L1023", "partition": "test"} +{"repo": "cloudinary/cloudinary_js", "path": "js/jquery.cloudinary.js", "func_name": "ArrayParam", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A parameter that represents an array\n@param {string} name - The name of the parameter in snake_case\n@param {string} shortName - The name of the serialized form of the parameter\nIf a value is not provided, the parameter will not be serialized.\n@param {string} [sep='.'] - The separator to use when joining the array elements together\n@param {function} [process=cloudinary.Util.identity ] - Manipulate origValue when value is called\n@class ArrayParam\n@extends Param\n@ignore", "docstring_tokens": ["A", "parameter", "that", "represents", "an", "array"], "sha": "c5ef98e858ba83e7c2c13a1d898748b571a5931b", "url": "https://github.com/cloudinary/cloudinary_js/blob/c5ef98e858ba83e7c2c13a1d898748b571a5931b/js/jquery.cloudinary.js#L1136-L1142", "partition": "test"} +{"repo": "cloudinary/cloudinary_js", "path": "js/jquery.cloudinary.js", "func_name": "TransformationParam", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A parameter that represents a transformation\n@param {string} name - The name of the parameter in snake_case\n@param {string} [shortName='t'] - The name of the serialized form of the parameter\n@param {string} [sep='.'] - The separator to use when joining the array elements together\n@param {function} [process=cloudinary.Util.identity ] - Manipulate origValue when value is called\n@class TransformationParam\n@extends Param\n@ignore", "docstring_tokens": ["A", "parameter", "that", "represents", "a", "transformation"], "sha": "c5ef98e858ba83e7c2c13a1d898748b571a5931b", "url": "https://github.com/cloudinary/cloudinary_js/blob/c5ef98e858ba83e7c2c13a1d898748b571a5931b/js/jquery.cloudinary.js#L1214-L1223", "partition": "test"} +{"repo": "cloudinary/cloudinary_js", "path": "js/jquery.cloudinary.js", "func_name": "RangeParam", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A parameter that represents a range\n@param {string} name - The name of the parameter in snake_case\n@param {string} shortName - The name of the serialized form of the parameter\nIf a value is not provided, the parameter will not be serialized.\n@param {function} [process=norm_range_value ] - Manipulate origValue when value is called\n@class RangeParam\n@extends Param\n@ignore", "docstring_tokens": ["A", "parameter", "that", "represents", "a", "range"], "sha": "c5ef98e858ba83e7c2c13a1d898748b571a5931b", "url": "https://github.com/cloudinary/cloudinary_js/blob/c5ef98e858ba83e7c2c13a1d898748b571a5931b/js/jquery.cloudinary.js#L1288-L1293", "partition": "test"} +{"repo": "cloudinary/cloudinary_js", "path": "js/jquery.cloudinary.js", "func_name": "Configuration", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Cloudinary configuration class\n@constructor Configuration\n@param {Object} options - configuration parameters", "docstring_tokens": ["Cloudinary", "configuration", "class"], "sha": "c5ef98e858ba83e7c2c13a1d898748b571a5931b", "url": "https://github.com/cloudinary/cloudinary_js/blob/c5ef98e858ba83e7c2c13a1d898748b571a5931b/js/jquery.cloudinary.js#L1899-L1905", "partition": "test"} +{"repo": "cloudinary/cloudinary_js", "path": "js/jquery.cloudinary.js", "func_name": "Cloudinary", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Main Cloudinary class\n@class Cloudinary\n@param {Object} options - options to configure Cloudinary\n@see Configuration for more details\n@example\nvar cl = new cloudinary.Cloudinary( { cloud_name: \"mycloud\"});\nvar imgTag = cl.image(\"myPicID\");", "docstring_tokens": ["Main", "Cloudinary", "class"], "sha": "c5ef98e858ba83e7c2c13a1d898748b571a5931b", "url": "https://github.com/cloudinary/cloudinary_js/blob/c5ef98e858ba83e7c2c13a1d898748b571a5931b/js/jquery.cloudinary.js#L3561-L3599", "partition": "test"} +{"repo": "cloudinary/cloudinary_js", "path": "webpack.config.js", "func_name": "getMode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determine the build mode.\n@param {object} env - webpack environment\n@param {boolean} [env.production] - when true, set mode to production\n@param {boolean} [env.development] - when true, set mode to development\n@param {object} argv - webpack options\n@param {string} [argv.mode] - the build mode", "docstring_tokens": ["Determine", "the", "build", "mode", "."], "sha": "c5ef98e858ba83e7c2c13a1d898748b571a5931b", "url": "https://github.com/cloudinary/cloudinary_js/blob/c5ef98e858ba83e7c2c13a1d898748b571a5931b/webpack.config.js#L20-L25", "partition": "test"} +{"repo": "cloudinary/cloudinary_js", "path": "webpack.config.js", "func_name": "resolveLodash", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This function is used by webpack to resolve individual lodash modules\n@param context\n@param request\n@param callback", "docstring_tokens": ["This", "function", "is", "used", "by", "webpack", "to", "resolve", "individual", "lodash", "modules"], "sha": "c5ef98e858ba83e7c2c13a1d898748b571a5931b", "url": "https://github.com/cloudinary/cloudinary_js/blob/c5ef98e858ba83e7c2c13a1d898748b571a5931b/webpack.config.js#L33-L44", "partition": "test"} +{"repo": "cloudinary/cloudinary_js", "path": "webpack.config.js", "func_name": "baseConfig", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate a webpack configuration\n@param {string} name the name of the package\n@param {string} mode either development or production\n@return {object} webpack configuration", "docstring_tokens": ["Generate", "a", "webpack", "configuration"], "sha": "c5ef98e858ba83e7c2c13a1d898748b571a5931b", "url": "https://github.com/cloudinary/cloudinary_js/blob/c5ef98e858ba83e7c2c13a1d898748b571a5931b/webpack.config.js#L53-L138", "partition": "test"} +{"repo": "cloudinary/cloudinary_js", "path": "src/url.js", "func_name": "finalizeResourceType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the resource type and action type based on the given configuration\n@function Cloudinary#finalizeResourceType\n@param {Object|string} resourceType\n@param {string} [type='upload']\n@param {string} [urlSuffix]\n@param {boolean} [useRootPath]\n@param {boolean} [shorten]\n@returns {string} resource_type/type\n@ignore", "docstring_tokens": ["Return", "the", "resource", "type", "and", "action", "type", "based", "on", "the", "given", "configuration"], "sha": "c5ef98e858ba83e7c2c13a1d898748b571a5931b", "url": "https://github.com/cloudinary/cloudinary_js/blob/c5ef98e858ba83e7c2c13a1d898748b571a5931b/src/url.js#L95-L130", "partition": "test"} +{"repo": "davidfig/pixi-viewport", "path": "dist/drag.js", "func_name": "Drag", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "enable one-finger touch to drag\n@private\n@param {Viewport} parent\n@param {object} [options]\n@param {string} [options.direction=all] direction to drag (all, x, or y)\n@param {boolean} [options.wheel=true] use wheel to scroll in y direction (unless wheel plugin is active)\n@param {number} [options.wheelScroll=1] number of pixels to scroll with each wheel spin\n@param {boolean} [options.reverse] reverse the direction of the wheel scroll\n@param {boolean|string} [options.clampWheel] (true, x, or y) clamp wheel (to avoid weird bounce with mouse wheel)\n@param {string} [options.underflow=center] (top/bottom/center and left/right/center, or center) where to place world if too small for screen\n@param {number} [options.factor=1] factor to multiply drag to increase the speed of movement\n@param {string} [options.mouseButtons=all] changes which mouse buttons trigger drag, use: 'all', 'left', right' 'middle', or some combination, like, 'middle-right'", "docstring_tokens": ["enable", "one", "-", "finger", "touch", "to", "drag"], "sha": "b769a1eb8f7d7ec0295d74f7d7714848b92efebb", "url": "https://github.com/davidfig/pixi-viewport/blob/b769a1eb8f7d7ec0295d74f7d7714848b92efebb/dist/drag.js#L33-L51", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "each", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Array-like iteration for objects.\n\n@param {Object} object\nThe object to iterate over\n\n@param {obj:EachCallback} fn\nThe callback function which is called for each key in the object.", "docstring_tokens": ["Array", "-", "like", "iteration", "for", "objects", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L271-L275", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "reduce", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Array-like reduce for objects.\n\n@param {Object} object\nThe Object that you want to reduce.\n\n@param {Function} fn\nA callback function which is called for each key in the object. It\nreceives the accumulated value and the per-iteration value and key\nas arguments.\n\n@param {Mixed} [initial = 0]\nStarting value\n\n@return {Mixed}\nThe final accumulated value.", "docstring_tokens": ["Array", "-", "like", "reduce", "for", "objects", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L294-L300", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "isPlain", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns whether an object appears to be a \"plain\" object - that is, a\ndirect instance of `Object`.\n\n@param {Object} value\n@return {Boolean}", "docstring_tokens": ["Returns", "whether", "an", "object", "appears", "to", "be", "a", "plain", "object", "-", "that", "is", "a", "direct", "instance", "of", "Object", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L352-L354", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "logByType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Log messages to the console and history based on the type of message\n\n@private\n@param {string} type\nThe name of the console method to use.\n\n@param {Array} args\nThe arguments to be passed to the matching console method.\n\n@param {boolean} [stringify]\nBy default, only old IEs should get console argument stringification,\nbut this is exposed as a parameter to facilitate testing.", "docstring_tokens": ["Log", "messages", "to", "the", "console", "and", "history", "based", "on", "the", "type", "of", "message"], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L382-L441", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "createEl", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates an element and applies properties.\n\n@param {string} [tagName='div']\nName of tag to be created.\n\n@param {Object} [properties={}]\nElement properties to be applied.\n\n@param {Object} [attributes={}]\nElement attributes to be applied.\n\n@param {String|Element|TextNode|Array|Function} [content]\nContents for the element (see: {@link dom:normalizeContent})\n\n@return {Element}\nThe element that was created.", "docstring_tokens": ["Creates", "an", "element", "and", "applies", "properties", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L737-L773", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "addClass", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a CSS class name to an element\n\n@param {Element} element\nElement to add class name to.\n\n@param {string} classToAdd\nClass name to add.\n\n@return {Element}\nThe dom element with the added class name.", "docstring_tokens": ["Add", "a", "CSS", "class", "name", "to", "an", "element"], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L849-L860", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "toggleClass", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The callback definition for toggleElClass.\n\n@callback Dom~PredicateCallback\n@param {Element} element\nThe DOM element of the Component.\n\n@param {string} classToToggle\nThe `className` that wants to be toggled\n\n@return {boolean|undefined}\n- If true the `classToToggle` will get added to `element`.\n- If false the `classToToggle` will get removed from `element`.\n- If undefined this callback will be ignored\n \nAdds or removes a CSS class name on an element depending on an optional\ncondition or the presence/absence of the class name.\n\n@param {Element} element\nThe element to toggle a class name on.\n\n@param {string} classToToggle\nThe class that should be toggled\n\n@param {boolean|PredicateCallback} [predicate]\nSee the return value for {@link Dom~PredicateCallback}\n\n@return {Element}\nThe element with a class that has been toggled.", "docstring_tokens": ["The", "callback", "definition", "for", "toggleElClass", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L919-L947", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "getPointerPosition", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "x and y coordinates for a dom element or mouse pointer\n\n@typedef {Object} Dom~Coordinates\n\n@property {number} x\nx coordinate in pixels\n\n@property {number} y\ny coordinate in pixels\n \nGet pointer position in element\nReturns an object with x and y coordinates.\nThe base on the coordinates are the bottom left of the element.\n\n@param {Element} el\nElement on which to get the pointer position on\n\n@param {EventTarget~Event} event\nEvent object\n\n@return {Dom~Coordinates}\nA Coordinates object corresponding to the mouse position.", "docstring_tokens": ["x", "and", "y", "coordinates", "for", "a", "dom", "element", "or", "mouse", "pointer"], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L1203-L1223", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "appendContent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Normalizes and appends content to an element.\n\n@param {Element} el\nElement to append normalized content to.\n\n\n@param {String|Element|TextNode|Array|Function} content\nSee the `content` argument of {@link dom:normalizeContent}\n\n@return {Element}\nThe element with appended normalized content.", "docstring_tokens": ["Normalizes", "and", "appends", "content", "to", "an", "element", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L1319-L1324", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "getData", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the cache object where data for an element is stored\n\n@param {Element} el\nElement to store data for.\n\n@return {Object}\nThe cache object for that el that was passed in.", "docstring_tokens": ["Returns", "the", "cache", "object", "where", "data", "for", "an", "element", "is", "stored"], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L1467-L1479", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "hasData", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns whether or not an element has cached data\n\n@param {Element} el\nCheck if this element has cached data.\n\n@return {boolean}\n- True if the DOM element has cached data.\n- False otherwise.", "docstring_tokens": ["Returns", "whether", "or", "not", "an", "element", "has", "cached", "data"], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L1491-L1499", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "removeData", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Delete data for the element from the cache and the guid attr from getElementById\n\n@param {Element} el\nRemove cached data for this element.", "docstring_tokens": ["Delete", "data", "for", "the", "element", "from", "the", "cache", "and", "the", "guid", "attr", "from", "getElementById"], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L1507-L1528", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "_handleMultipleEvents", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Loops through an array of event types and calls the requested method for each type.\n\n@param {Function} fn\nThe event method we want to use.\n\n@param {Element|Object} elem\nElement or object to bind listeners to\n\n@param {string} type\nType of event to bind to.\n\n@param {EventTarget~EventListener} callback\nEvent listener.", "docstring_tokens": ["Loops", "through", "an", "array", "of", "event", "types", "and", "calls", "the", "requested", "method", "for", "each", "type", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L1593-L1598", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "off", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes event listeners from an element\n\n@param {Element|Object} elem\nObject to remove listeners from.\n\n@param {string|string[]} [type]\nType of listener to remove. Don't include to remove all events from element.\n\n@param {EventTarget~EventListener} [fn]\nSpecific listener to remove. Don't include to remove listeners for an event\ntype.", "docstring_tokens": ["Removes", "event", "listeners", "from", "an", "element"], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L1839-L1893", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "one", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Trigger a listener only once for an event\n\n@param {Element|Object} elem\nElement or object to bind to.\n\n@param {string|string[]} type\nName/type of event\n\n@param {Event~EventListener} fn\nEvent Listener function", "docstring_tokens": ["Trigger", "a", "listener", "only", "once", "for", "an", "event"], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L1970-L1982", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "autoSetup", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set up any tags that have a data-setup `attribute` when the player is started.", "docstring_tokens": ["Set", "up", "any", "tags", "that", "have", "a", "data", "-", "setup", "attribute", "when", "the", "player", "is", "started", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L2004-L2068", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "autoSetupTimeout", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wait until the page is loaded before running autoSetup. This will be called in\nautoSetup if `hasLoaded` returns false.\n\n@param {number} wait\nHow long to wait in ms\n\n@param {module:videojs} [vjs]\nThe videojs library function", "docstring_tokens": ["Wait", "until", "the", "page", "is", "loaded", "before", "running", "autoSetup", ".", "This", "will", "be", "called", "in", "autoSetup", "if", "hasLoaded", "returns", "false", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L2080-L2086", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "setTextContent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add text to a DOM element.\n\n@param {Element} el\nThe Element to add text content to.\n\n@param {string} content\nThe text to add to the element.", "docstring_tokens": ["Add", "text", "to", "a", "DOM", "element", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L2131-L2137", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "throttle", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wraps the given function, `fn`, with a new function that only invokes `fn`\nat most once per every `wait` milliseconds.\n\n@param {Function} fn\nThe function to be throttled.\n\n@param {Number} wait\nThe number of milliseconds by which to throttle.\n\n@return {Function}", "docstring_tokens": ["Wraps", "the", "given", "function", "fn", "with", "a", "new", "function", "that", "only", "invokes", "fn", "at", "most", "once", "per", "every", "wait", "milliseconds", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L2193-L2206", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "isValidEventType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Whether a value is a valid event type - non-empty string or array.\n\n@private\n@param {string|Array} type\nThe type value to test.\n\n@return {boolean}\nWhether or not the type is a valid event type.", "docstring_tokens": ["Whether", "a", "value", "is", "a", "valid", "event", "type", "-", "non", "-", "empty", "string", "or", "array", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L2395-L2401", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "Component", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A callback that is called when a component is ready. Does not have any\nparamters and any callback value will be ignored.\n\n@callback Component~ReadyCallback\n@this Component\n \nCreates an instance of this class.\n\n@param {Player} player\nThe `Player` that this class should be attached to.\n\n@param {Object} [options]\nThe key/value store of player options.\n\n@param {Object[]} [options.children]\nAn array of children objects to intialize this component with. Children objects have\na name property that will be used if more than one component of the same type needs to be\nadded.\n\n@param {Component~ReadyCallback} [ready]\nFunction that gets called when the `Component` is ready.", "docstring_tokens": ["A", "callback", "that", "is", "called", "when", "a", "component", "is", "ready", ".", "Does", "not", "have", "any", "paramters", "and", "any", "callback", "value", "will", "be", "ignored", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L3015-L3072", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "rangeCheck", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "An object that contains ranges of time for various reasons.\n\n@typedef {Object} TimeRange\n\n@property {number} length\nThe number of time ranges represented by this Object\n\n@property {time-ranges:indexFunction} start\nReturns the time offset at which a specified time range begins.\n\n@property {time-ranges:indexFunction} end\nReturns the time offset at which a specified time range begins.\n\n@see https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges\n \nCheck if any of the time ranges are over the maximum index.\n\n@param {string} fnName\nThe function name to use for logging\n\n@param {number} index\nThe index to check\n\n@param {number} maxIndex\nThe maximum possible index\n\n@throws {Error} if the timeRanges provided are over the maxIndex", "docstring_tokens": ["An", "object", "that", "contains", "ranges", "of", "time", "for", "various", "reasons", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L4656-L4660", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "getRange", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if any of the time ranges are over the maximum index.\n\n@param {string} fnName\nThe function name to use for logging\n\n@param {string} valueIndex\nThe proprety that should be used to get the time. should be 'start' or 'end'\n\n@param {Array} ranges\nAn array of time ranges\n\n@param {Array} [rangeIndex=0]\nThe index to start the search at\n\n@return {number}\nThe time that offset at the specified index.\n\n\n@depricated rangeIndex must be set to a value, in the future this will throw an error.\n@throws {Error} if rangeIndex is more than the length of ranges", "docstring_tokens": ["Check", "if", "any", "of", "the", "time", "ranges", "are", "over", "the", "maximum", "index", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L4684-L4687", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "createTimeRangesObj", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a time range object givent ranges of time.\n\n@param {Array} [ranges]\nAn array of time ranges.", "docstring_tokens": ["Create", "a", "time", "range", "object", "givent", "ranges", "of", "time", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L4695-L4712", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "createTimeRanges", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Should create a fake `TimeRange` object which mimics an HTML5 time range instance.\n\n@param {number|Array} start\nThe start of a single range or an array of ranges\n\n@param {number} end\nThe end of a single range.\n\n@private", "docstring_tokens": ["Should", "create", "a", "fake", "TimeRange", "object", "which", "mimics", "an", "HTML5", "time", "range", "instance", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L4725-L4732", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "TextTrackCueList", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create an instance of this class..\n\n@param {Array} cues\nA list of cues to be initialized with", "docstring_tokens": ["Create", "an", "instance", "of", "this", "class", ".."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L6295-L6327", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "getFileExtension", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the extension of the passed file name. It will return an empty string\nif passed an invalid path.\n\n@param {string} path\nThe fileName path like '/path/to/file.mp4'\n\n@returns {string}\nThe extension in lower case or an empty string if no\nextension could be found.", "docstring_tokens": ["Returns", "the", "extension", "of", "the", "passed", "file", "name", ".", "It", "will", "return", "an", "empty", "string", "if", "passed", "an", "invalid", "path", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L6702-L6713", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "loadTrack", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Load a `TextTrack` from a specifed url.\n\n@param {string} src\nUrl to load track from.\n\n@param {TextTrack} track\nTrack to add cues to. Comes from the content at the end of `url`.\n\n@private", "docstring_tokens": ["Load", "a", "TextTrack", "from", "a", "specifed", "url", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L6805-L6840", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "constructColor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Construct an rgba color from a given hex color code.\n\n@param {number} color\nHex number for color, like #f0e.\n\n@param {number} opacity\nValue for opacity, 0.0 - 1.0.\n\n@return {string}\nThe rgba color that was created, like 'rgba(255, 0, 0, 0.3)'.\n\n@private", "docstring_tokens": ["Construct", "an", "rgba", "color", "from", "a", "given", "hex", "color", "code", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L9528-L9532", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "checkVolumeSupport", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if volume control is supported and if it isn't hide the\n`Component` that was passed using the `vjs-hidden` class.\n\n@param {Component} self\nThe component that should be hidden if volume is unsupported\n\n@param {Player} player\nA reference to the player\n\n@private", "docstring_tokens": ["Check", "if", "volume", "control", "is", "supported", "and", "if", "it", "isn", "t", "hide", "the", "Component", "that", "was", "passed", "using", "the", "vjs", "-", "hidden", "class", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L12048-L12061", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "parseOptionValue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the actual value of an option.\n\n@param {string} value\nThe value to get\n\n@param {Function} [parser]\nOptional function to adjust the value.\n\n@return {Mixed}\n- Will be `undefined` if no value exists\n- Will be `undefined` if the given value is \"none\".\n- Will be the actual value otherwise.\n\n@private", "docstring_tokens": ["Get", "the", "actual", "value", "of", "an", "option", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L15406-L15414", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "checkProgress", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wait for the first `timeupdate` with currentTime > 0 - there may be several with 0", "docstring_tokens": ["Wait", "for", "the", "first", "timeupdate", "with", "currentTime", ">", "0", "-", "there", "may", "be", "several", "with", "0"], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L16186-L16194", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "findFirstPassingTechSourcePair", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Iterate over each `innerArray` element once per `outerArray` element and execute `tester` with both. If `tester` returns a non-falsy value, exit early and return that value.", "docstring_tokens": ["Iterate", "over", "each", "innerArray", "element", "once", "per", "outerArray", "element", "and", "execute", "tester", "with", "both", ".", "If", "tester", "returns", "a", "non", "-", "falsy", "value", "exit", "early", "and", "return", "that", "value", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L19823-L19837", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "markPluginAsActive", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Marks a plugin as \"active\" on a player.\n\nAlso, ensures that the player has an object for tracking active plugins.\n\n@private\n@param {Player} player\nA Video.js player instance.\n\n@param {string} name\nThe name of a plugin.", "docstring_tokens": ["Marks", "a", "plugin", "as", "active", "on", "a", "player", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L21248-L21251", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "triggerSetupEvent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Triggers a pair of plugin setup events.\n\n@private\n@param {Player} player\nA Video.js player instance.\n\n@param {Plugin~PluginEventHash} hash\nA plugin event hash.\n\n@param {Boolean} [before]\nIf true, prefixes the event name with \"before\". In other words,\nuse this to trigger \"beforepluginsetup\" instead of \"pluginsetup\".", "docstring_tokens": ["Triggers", "a", "pair", "of", "plugin", "setup", "events", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L21267-L21272", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "createBasicPlugin", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Takes a basic plugin function and returns a wrapper function which marks\non the player that the plugin has been activated.\n\n@private\n@param {string} name\nThe name of the plugin.\n\n@param {Function} plugin\nThe basic plugin.\n\n@returns {Function}\nA wrapper function for the given plugin.", "docstring_tokens": ["Takes", "a", "basic", "plugin", "function", "and", "returns", "a", "wrapper", "function", "which", "marks", "on", "the", "player", "that", "the", "plugin", "has", "been", "activated", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L21288-L21312", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "createPluginFactory", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Takes a plugin sub-class and returns a factory function for generating\ninstances of it.\n\nThis factory function will replace itself with an instance of the requested\nsub-class of Plugin.\n\n@private\n@param {string} name\nThe name of the plugin.\n\n@param {Plugin} PluginSubClass\nThe advanced plugin.\n\n@returns {Function}", "docstring_tokens": ["Takes", "a", "plugin", "sub", "-", "class", "and", "returns", "a", "factory", "function", "for", "generating", "instances", "of", "it", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L21330-L21354", "partition": "test"} +{"repo": "pureqml/qmlcore", "path": "platform/video.videojs/dist/video.es.js", "func_name": "videojs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Doubles as the main function for users to create a player instance and also\nthe main library object.\nThe `videojs` function can be used to initialize or retrieve a player.\n\n@param {string|Element} id\nVideo element or video element ID\n\n@param {Object} [options]\nOptional options object for config/settings\n\n@param {Component~ReadyCallback} [ready]\nOptional ready callback\n\n@return {Player}\nA player instance", "docstring_tokens": ["Doubles", "as", "the", "main", "function", "for", "users", "to", "create", "a", "player", "instance", "and", "also", "the", "main", "library", "object", ".", "The", "videojs", "function", "can", "be", "used", "to", "initialize", "or", "retrieve", "a", "player", "."], "sha": "21416cb4b45dce6cf6c603dfa43d6683e0d48638", "url": "https://github.com/pureqml/qmlcore/blob/21416cb4b45dce6cf6c603dfa43d6683e0d48638/platform/video.videojs/dist/video.es.js#L21837-L21907", "partition": "test"} +{"repo": "phretaddin/schemapack", "path": "benchmarks.js", "func_name": "byteCount", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Comment out if you didn't `npm install lz-string`", "docstring_tokens": ["Comment", "out", "if", "you", "didn", "t", "npm", "install", "lz", "-", "string"], "sha": "d02de6a662830416ee3f30f2c82518d21fd71049", "url": "https://github.com/phretaddin/schemapack/blob/d02de6a662830416ee3f30f2c82518d21fd71049/benchmarks.js#L12-L14", "partition": "test"} +{"repo": "benkeen/d3pie", "path": "website/pages/generator/tabs/data/tabData.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Randomizes whatever colors are currently being used.\n@private", "docstring_tokens": ["Randomizes", "whatever", "colors", "are", "currently", "being", "used", "."], "sha": "24b488a4f44226c407186c007365ab775f92a426", "url": "https://github.com/benkeen/d3pie/blob/24b488a4f44226c407186c007365ab775f92a426/website/pages/generator/tabs/data/tabData.js#L143-L151", "partition": "test"} +{"repo": "benkeen/d3pie", "path": "website/core/mediator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Publishes a message to anyone who's subscribed to it.\n@param moduleID\n@param message\n@param data\n@private", "docstring_tokens": ["Publishes", "a", "message", "to", "anyone", "who", "s", "subscribed", "to", "it", "."], "sha": "24b488a4f44226c407186c007365ab775f92a426", "url": "https://github.com/benkeen/d3pie/blob/24b488a4f44226c407186c007365ab775f92a426/website/core/mediator.js#L51-L67", "partition": "test"} +{"repo": "benkeen/d3pie", "path": "website/core/pageHelper.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "this catches ALL nav clicks, not just in the main navbar", "docstring_tokens": ["this", "catches", "ALL", "nav", "clicks", "not", "just", "in", "the", "main", "navbar"], "sha": "24b488a4f44226c407186c007365ab775f92a426", "url": "https://github.com/benkeen/d3pie/blob/24b488a4f44226c407186c007365ab775f92a426/website/core/pageHelper.js#L28-L44", "partition": "test"} +{"repo": "benkeen/d3pie", "path": "website/core/pageHelper.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This was added to get around some CSS nonsense with the homepage slider script. It adds a class to the body\nelement that specifies the current viewport width.\n@private", "docstring_tokens": ["This", "was", "added", "to", "get", "around", "some", "CSS", "nonsense", "with", "the", "homepage", "slider", "script", ".", "It", "adds", "a", "class", "to", "the", "body", "element", "that", "specifies", "the", "current", "viewport", "width", "."], "sha": "24b488a4f44226c407186c007365ab775f92a426", "url": "https://github.com/benkeen/d3pie/blob/24b488a4f44226c407186c007365ab775f92a426/website/core/pageHelper.js#L51-L66", "partition": "test"} +{"repo": "benkeen/d3pie", "path": "website/libs/handlebars.dev.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "For compatibility and usage outside of module systems, make the Handlebars object a namespace", "docstring_tokens": ["For", "compatibility", "and", "usage", "outside", "of", "module", "systems", "make", "the", "Handlebars", "object", "a", "namespace"], "sha": "24b488a4f44226c407186c007365ab775f92a426", "url": "https://github.com/benkeen/d3pie/blob/24b488a4f44226c407186c007365ab775f92a426/website/libs/handlebars.dev.js#L509-L523", "partition": "test"} +{"repo": "benkeen/d3pie", "path": "website/libs/handlebars.dev.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "the params and contexts arguments are passed in arrays to fill in", "docstring_tokens": ["the", "params", "and", "contexts", "arguments", "are", "passed", "in", "arrays", "to", "fill", "in"], "sha": "24b488a4f44226c407186c007365ab775f92a426", "url": "https://github.com/benkeen/d3pie/blob/24b488a4f44226c407186c007365ab775f92a426/website/libs/handlebars.dev.js#L2656-L2667", "partition": "test"} +{"repo": "benkeen/d3pie", "path": "website/pages/generator/tabs/misc/tabMisc.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Listen for data changes so we can keep track of the current canvas size.\n@param msg\n@private", "docstring_tokens": ["Listen", "for", "data", "changes", "so", "we", "can", "keep", "track", "of", "the", "current", "canvas", "size", "."], "sha": "24b488a4f44226c407186c007365ab775f92a426", "url": "https://github.com/benkeen/d3pie/blob/24b488a4f44226c407186c007365ab775f92a426/website/pages/generator/tabs/misc/tabMisc.js#L121-L124", "partition": "test"} +{"repo": "benkeen/d3pie", "path": "website/pages/about/aboutPage.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "bah! God this plugin sucks. Doesn't even pass in the slide number we're going TO.", "docstring_tokens": ["bah!", "God", "this", "plugin", "sucks", ".", "Doesn", "t", "even", "pass", "in", "the", "slide", "number", "we", "re", "going", "TO", "."], "sha": "24b488a4f44226c407186c007365ab775f92a426", "url": "https://github.com/benkeen/d3pie/blob/24b488a4f44226c407186c007365ab775f92a426/website/pages/about/aboutPage.js#L64-L79", "partition": "test"} +{"repo": "benkeen/d3pie", "path": "gruntfile.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The first step of the build process. This sets various settings in the main grunt config for the current build environment.\nThese govern how the subsequent tasks behave.", "docstring_tokens": ["The", "first", "step", "of", "the", "build", "process", ".", "This", "sets", "various", "settings", "in", "the", "main", "grunt", "config", "for", "the", "current", "build", "environment", ".", "These", "govern", "how", "the", "subsequent", "tasks", "behave", "."], "sha": "24b488a4f44226c407186c007365ab775f92a426", "url": "https://github.com/benkeen/d3pie/blob/24b488a4f44226c407186c007365ab775f92a426/gruntfile.js#L47-L61", "partition": "test"} +{"repo": "benkeen/d3pie", "path": "website/pages/generator/generatorPage.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parses the generator fields and get the latest values.\n@private", "docstring_tokens": ["Parses", "the", "generator", "fields", "and", "get", "the", "latest", "values", "."], "sha": "24b488a4f44226c407186c007365ab775f92a426", "url": "https://github.com/benkeen/d3pie/blob/24b488a4f44226c407186c007365ab775f92a426/website/pages/generator/generatorPage.js#L156-L168", "partition": "test"} +{"repo": "ressio/lazy-load-xt", "path": "dist/jquery.lazyloadxt.extra.js", "func_name": "getOrDef", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return options.prop if obj.prop is undefined, otherwise return obj.prop\n@param {*} obj\n@param {*} prop\n@returns *", "docstring_tokens": ["Return", "options", ".", "prop", "if", "obj", ".", "prop", "is", "undefined", "otherwise", "return", "obj", ".", "prop"], "sha": "d8e620b9f7e629679dba1dc9e8376a45d4326cbe", "url": "https://github.com/ressio/lazy-load-xt/blob/d8e620b9f7e629679dba1dc9e8376a45d4326cbe/dist/jquery.lazyloadxt.extra.js#L65-L67", "partition": "test"} +{"repo": "ressio/lazy-load-xt", "path": "src/jquery.lazyloadxt.simple.js", "func_name": "calcViewport", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Save visible viewport boundary to viewportXXX variables", "docstring_tokens": ["Save", "visible", "viewport", "boundary", "to", "viewportXXX", "variables"], "sha": "d8e620b9f7e629679dba1dc9e8376a45d4326cbe", "url": "https://github.com/ressio/lazy-load-xt/blob/d8e620b9f7e629679dba1dc9e8376a45d4326cbe/src/jquery.lazyloadxt.simple.js#L72-L82", "partition": "test"} +{"repo": "mcdcorp/opentest", "path": "server/src/public/js/ng/root-ctrl.js", "func_name": "checkVersion", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check the release version in GitHub, compare it with the installed\nversion and notify the user if a new version is available.", "docstring_tokens": ["Check", "the", "release", "version", "in", "GitHub", "compare", "it", "with", "the", "installed", "version", "and", "notify", "the", "user", "if", "a", "new", "version", "is", "available", "."], "sha": "302967ae09f3d92cd1438f04ed701b2a3006e598", "url": "https://github.com/mcdcorp/opentest/blob/302967ae09f3d92cd1438f04ed701b2a3006e598/server/src/public/js/ng/root-ctrl.js#L33-L69", "partition": "test"} +{"repo": "mcdcorp/opentest", "path": "server/src/public/js/ng/root-ctrl.js", "func_name": "parseVersion", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parses a semantic version string into an array of three integers.", "docstring_tokens": ["Parses", "a", "semantic", "version", "string", "into", "an", "array", "of", "three", "integers", "."], "sha": "302967ae09f3d92cd1438f04ed701b2a3006e598", "url": "https://github.com/mcdcorp/opentest/blob/302967ae09f3d92cd1438f04ed701b2a3006e598/server/src/public/js/ng/root-ctrl.js#L248-L259", "partition": "test"} +{"repo": "natergj/excel4node", "path": "source/lib/cell/index.js", "func_name": "cellAccessor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Module repesenting a Cell Accessor\n@alias Worksheet.cell\n@namespace\n@func Worksheet.cell\n@desc Access a range of cells in order to manipulate values\n@param {Number} row1 Row of top left cell\n@param {Number} col1 Column of top left cell\n@param {Number} row2 Row of bottom right cell (optional)\n@param {Number} col2 Column of bottom right cell (optional)\n@param {Boolean} isMerged Merged the cell range into a single cell\n@returns {cellBlock}", "docstring_tokens": ["Module", "repesenting", "a", "Cell", "Accessor"], "sha": "f359412b3d3769ce338f00dfab75c5f80b9f6336", "url": "https://github.com/natergj/excel4node/blob/f359412b3d3769ce338f00dfab75c5f80b9f6336/source/lib/cell/index.js#L333-L371", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/projects.js", "func_name": "allProjects", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get a sanitized listing of all projects, along with the users who have access", "docstring_tokens": ["Get", "a", "sanitized", "listing", "of", "all", "projects", "along", "with", "the", "users", "who", "have", "access"], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/projects.js#L14-L38", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/libconfig.js", "func_name": "getConfig", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "main function. Get the config, using rc", "docstring_tokens": ["main", "function", ".", "Get", "the", "config", "using", "rc"], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/libconfig.js#L73-L93", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/libconfig.js", "func_name": "filterEnv", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Filter process.env.FOO to process.env.strider_foo for rc's benefit", "docstring_tokens": ["Filter", "process", ".", "env", ".", "FOO", "to", "process", ".", "env", ".", "strider_foo", "for", "rc", "s", "benefit"], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/libconfig.js#L131-L141", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/utils/index.js", "func_name": "mergePlugins", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "merge plugins from the DB with ones from strider.json. The latter overrides the former", "docstring_tokens": ["merge", "plugins", "from", "the", "DB", "with", "ones", "from", "strider", ".", "json", ".", "The", "latter", "overrides", "the", "former"], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/utils/index.js#L49-L64", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/plugin-templates.js", "func_name": "registerTemplate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate func for string template names", "docstring_tokens": ["Generate", "func", "for", "string", "template", "names"], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/plugin-templates.js#L12-L21", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/plugin-templates.js", "func_name": "getPluginTemplate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This generates a generator that will render the appropriate block in a form suitable for async.parallel.", "docstring_tokens": ["This", "generates", "a", "generator", "that", "will", "render", "the", "appropriate", "block", "in", "a", "form", "suitable", "for", "async", ".", "parallel", "."], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/plugin-templates.js#L32-L43", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/plugin-templates.js", "func_name": "engine", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Express 3 Template Engine", "docstring_tokens": ["Express", "3", "Template", "Engine"], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/plugin-templates.js#L47-L54", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/websockets.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "-> true if the socket was found and removed. false if it wasn't found", "docstring_tokens": ["-", ">", "true", "if", "the", "socket", "was", "found", "and", "removed", ".", "false", "if", "it", "wasn", "t", "found"], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/websockets.js#L39-L43", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/websockets.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "socket callback. Adds a new socket", "docstring_tokens": ["socket", "callback", ".", "Adds", "a", "new", "socket"], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/websockets.js#L45-L53", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/jobs.js", "func_name": "status", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "failed, passed, errored, running, submitted", "docstring_tokens": ["failed", "passed", "errored", "running", "submitted"], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/jobs.js#L43-L50", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/backchannel.js", "func_name": "prepareJob", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Prepare the job for execution, save to database, and fire off a `job.new` event.\n\njob is expected to be populated with:\n- a trigger\n- a ref\n- the project name\n- the user id (if applicable)\n- type\n- created timestamp\n\nXXX: should this function go in a different file? idk. We'll\ndefinitely move it around when we make strider OO.", "docstring_tokens": ["Prepare", "the", "job", "for", "execution", "save", "to", "database", "and", "fire", "off", "a", "job", ".", "new", "event", "."], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/backchannel.js#L60-L128", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/models/upgrade/from0to1.js", "func_name": "killAttrs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "remove attributes from a model", "docstring_tokens": ["remove", "attributes", "from", "a", "model"], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/models/upgrade/from0to1.js#L162-L166", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/middleware.js", "func_name": "bodySetter", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Custom middleware to save unparsed request body to req.content", "docstring_tokens": ["Custom", "middleware", "to", "save", "unparsed", "request", "body", "to", "req", ".", "content"], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/middleware.js#L28-L46", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/middleware.js", "func_name": "requireBody", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Require the specified req.body parameters, or else return a 400 with a descriptive JSON body", "docstring_tokens": ["Require", "the", "specified", "req", ".", "body", "parameters", "or", "else", "return", "a", "400", "with", "a", "descriptive", "JSON", "body"], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/middleware.js#L49-L72", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/middleware.js", "func_name": "anonProject", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "just link project but doesn't fail if there's no auth", "docstring_tokens": ["just", "link", "project", "but", "doesn", "t", "fail", "if", "there", "s", "no", "auth"], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/middleware.js#L204-L236", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/auth.js", "func_name": "requireUser", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Require a logged in session", "docstring_tokens": ["Require", "a", "logged", "in", "session"], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/auth.js#L272-L279", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/auth.js", "func_name": "requireAdminOr401", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Require admin privileges", "docstring_tokens": ["Require", "admin", "privileges"], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/auth.js#L290-L296", "partition": "test"} +{"repo": "Strider-CD/strider", "path": "lib/swig-tags.js", "func_name": "pluginBlock", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Plugin block is the tag used to specify that the contents can be overridden by extensions.", "docstring_tokens": ["Plugin", "block", "is", "the", "tag", "used", "to", "specify", "that", "the", "contents", "can", "be", "overridden", "by", "extensions", "."], "sha": "56cafbc9687ebb7b67d485ec387a03cb85791c7c", "url": "https://github.com/Strider-CD/strider/blob/56cafbc9687ebb7b67d485ec387a03cb85791c7c/lib/swig-tags.js#L5-L22", "partition": "test"} +{"repo": "nowsecure/node-applesign", "path": "lib/appdir.js", "func_name": "_findNested", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "return an array of strings with the absolute paths of the sub-apps found inside appdir", "docstring_tokens": ["return", "an", "array", "of", "strings", "with", "the", "absolute", "paths", "of", "the", "sub", "-", "apps", "found", "inside", "appdir"], "sha": "84847c3f4a5037263d3b08ecc4cb049ff91ef259", "url": "https://github.com/nowsecure/node-applesign/blob/84847c3f4a5037263d3b08ecc4cb049ff91ef259/lib/appdir.js#L97-L107", "partition": "test"} +{"repo": "nowsecure/node-applesign", "path": "lib/appdir.js", "func_name": "binAbsLibs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "return a list of the libs that must be inside the app", "docstring_tokens": ["return", "a", "list", "of", "the", "libs", "that", "must", "be", "inside", "the", "app"], "sha": "84847c3f4a5037263d3b08ecc4cb049ff91ef259", "url": "https://github.com/nowsecure/node-applesign/blob/84847c3f4a5037263d3b08ecc4cb049ff91ef259/lib/appdir.js#L135-L156", "partition": "test"} +{"repo": "nowsecure/node-applesign", "path": "lib/appdir.js", "func_name": "_findLibraries", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get all dependencies from appbin recursively", "docstring_tokens": ["get", "all", "dependencies", "from", "appbin", "recursively"], "sha": "84847c3f4a5037263d3b08ecc4cb049ff91ef259", "url": "https://github.com/nowsecure/node-applesign/blob/84847c3f4a5037263d3b08ecc4cb049ff91ef259/lib/appdir.js#L159-L180", "partition": "test"} +{"repo": "nowsecure/node-applesign", "path": "lib/info-plist.js", "func_name": "fix", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "ES7 is not yet here", "docstring_tokens": ["ES7", "is", "not", "yet", "here"], "sha": "84847c3f4a5037263d3b08ecc4cb049ff91ef259", "url": "https://github.com/nowsecure/node-applesign/blob/84847c3f4a5037263d3b08ecc4cb049ff91ef259/lib/info-plist.js#L8-L36", "partition": "test"} +{"repo": "evanshortiss/env-var", "path": "lib/variable.js", "func_name": "generateAccessor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an accessor wrapped by error handling and args passing logic\n@param {String} accessorPath", "docstring_tokens": ["Returns", "an", "accessor", "wrapped", "by", "error", "handling", "and", "args", "passing", "logic"], "sha": "9b1e660fe0a0e9049a59ccee91fca58d718923e5", "url": "https://github.com/evanshortiss/env-var/blob/9b1e660fe0a0e9049a59ccee91fca58d718923e5/lib/variable.js#L28-L62", "partition": "test"} +{"repo": "evanshortiss/env-var", "path": "lib/variable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Ensures a variable is set in the given environment container. Throws an\nEnvVarError if the variable is not set or a default is not provided\n@param {Boolean} isRequired", "docstring_tokens": ["Ensures", "a", "variable", "is", "set", "in", "the", "given", "environment", "container", ".", "Throws", "an", "EnvVarError", "if", "the", "variable", "is", "not", "set", "or", "a", "default", "is", "not", "provided"], "sha": "9b1e660fe0a0e9049a59ccee91fca58d718923e5", "url": "https://github.com/evanshortiss/env-var/blob/9b1e660fe0a0e9049a59ccee91fca58d718923e5/lib/variable.js#L101-L111", "partition": "test"} +{"repo": "shepherdwind/velocity.js", "path": "src/compile/blocks.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "parse macro call", "docstring_tokens": ["parse", "macro", "call"], "sha": "1fa2b459d1fff5c897a0671ed9797c5603505d88", "url": "https://github.com/shepherdwind/velocity.js/blob/1fa2b459d1fff5c897a0671ed9797c5603505d88/src/compile/blocks.js#L77-L135", "partition": "test"} +{"repo": "npm/read-package-json", "path": "read-json.js", "func_name": "checkBinReferences_", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Warn if the bin references don't point to anything. This might be better in\nnormalize-package-data if it had access to the file path.", "docstring_tokens": ["Warn", "if", "the", "bin", "references", "don", "t", "point", "to", "anything", ".", "This", "might", "be", "better", "in", "normalize", "-", "package", "-", "data", "if", "it", "had", "access", "to", "the", "file", "path", "."], "sha": "67f2d8d501e2621441a8235b08d589fbeeb7dba6", "url": "https://github.com/npm/read-package-json/blob/67f2d8d501e2621441a8235b08d589fbeeb7dba6/read-json.js#L372-L400", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/file/FileInput.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initializes the file-picker, connects it to runtime and dispatches event ready when done.\n\n@method init", "docstring_tokens": ["Initializes", "the", "file", "-", "picker", "connects", "it", "to", "runtime", "and", "dispatches", "event", "ready", "when", "done", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/file/FileInput.js#L226-L271", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/file/FileInput.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets a new value for the option specified by name\n\n@method setOption\n@param name\n@param value", "docstring_tokens": ["Sets", "a", "new", "value", "for", "the", "option", "specified", "by", "name"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/file/FileInput.js#L293-L316", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/runtime/Transporter.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "we require this to run only once", "docstring_tokens": ["we", "require", "this", "to", "run", "only", "once"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/runtime/Transporter.js#L57-L60", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/file/FileReader.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Aborts preloading process.\n\n@method abort", "docstring_tokens": ["Aborts", "preloading", "process", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/file/FileReader.js#L153-L166", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/EventTarget.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if any handlers were registered to the specified event\n\n@method hasEventListener\n@param {String} [type] Type or basically a name of the event to check\n@return {Mixed} Returns a handler if it was found and false, if - not", "docstring_tokens": ["Check", "if", "any", "handlers", "were", "registered", "to", "the", "specified", "event"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/EventTarget.js#L96-L105", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/EventTarget.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Unregister the handler from the event, or if former was not specified - unregister all handlers\n\n@method removeEventListener\n@param {String} type Type or basically a name of the event\n@param {Function} [fn] Handler to unregister", "docstring_tokens": ["Unregister", "the", "handler", "from", "the", "event", "or", "if", "former", "was", "not", "specified", "-", "unregister", "all", "handlers"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/EventTarget.js#L114-L151", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/EventTarget.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Register a handler to the event type that will run only once\n\n@method bindOnce\n@since >1.4.1\n@param {String} type Type or basically a name of the event to subscribe to\n@param {Function} fn Callback function that will be called when event happens\n@param {Number} [priority=0] Priority of the event handler - handlers with higher priorities will be called first\n@param {Object} [scope=this] A scope to invoke event handler in", "docstring_tokens": ["Register", "a", "handler", "to", "the", "event", "type", "that", "will", "run", "only", "once"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/EventTarget.js#L258-L264", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/runtime/Runtime.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks if the runtime has specific capability\n\n@method can\n@param {String} cap Name of capability to check\n@param {Mixed} [value] If passed, capability should somehow correlate to the value\n@param {Object} [refCaps] Set of capabilities to check the specified cap against (defaults to internal set)\n@return {Boolean} true if runtime has such capability and false, if - not", "docstring_tokens": ["Checks", "if", "the", "runtime", "has", "specific", "capability"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/runtime/Runtime.js#L230-L253", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/runtime/flash/Runtime.js", "func_name": "getShimVersion", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the version of the Flash Player\n\n@method getShimVersion\n@private\n@return {Number} Flash Player version", "docstring_tokens": ["Get", "the", "version", "of", "the", "Flash", "Player"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/runtime/flash/Runtime.js#L36-L51", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/runtime/flash/Runtime.js", "func_name": "removeSWF", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Cross-browser SWF removal\n- Especially needed to safely and completely remove a SWF in Internet Explorer\n\nOriginated from SWFObject v2.2 ", "docstring_tokens": ["Cross", "-", "browser", "SWF", "removal", "-", "Especially", "needed", "to", "safely", "and", "completely", "remove", "a", "SWF", "in", "Internet", "Explorer"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/runtime/flash/Runtime.js#L60-L79", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Url.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if specified url has the same origin as the current document\n\n@method hasSameOrigin\n@static\n@param {String|Object} url\n@return {Boolean}", "docstring_tokens": ["Check", "if", "specified", "url", "has", "the", "same", "origin", "as", "the", "current", "document"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Url.js#L127-L137", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Basic.js", "func_name": "ctor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "give child `class` a place to define its own methods", "docstring_tokens": ["give", "child", "class", "a", "place", "to", "define", "its", "own", "methods"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Basic.js#L155-L166", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Basic.js", "func_name": "inArray", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find an element in array and return it's index if present, otherwise return -1.\n\n@method inArray\n@static\n@param {Mixed} needle Element to find\n@param {Array} array\n@return {Int} Index of the element, or -1 if not found", "docstring_tokens": ["Find", "an", "element", "in", "array", "and", "return", "it", "s", "index", "if", "present", "otherwise", "return", "-", "1", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Basic.js#L317-L330", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Basic.js", "func_name": "arrayDiff", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns elements of first array if they are not present in second. And false - otherwise.\n\n@private\n@method arrayDiff\n@param {Array} needles\n@param {Array} array\n@return {Array|Boolean}", "docstring_tokens": ["Returns", "elements", "of", "first", "array", "if", "they", "are", "not", "present", "in", "second", ".", "And", "false", "-", "otherwise", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Basic.js#L342-L359", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Basic.js", "func_name": "arrayIntersect", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find intersection of two arrays.\n\n@private\n@method arrayIntersect\n@param {Array} array1\n@param {Array} array2\n@return {Array} Intersection of two arrays or null if there is none", "docstring_tokens": ["Find", "intersection", "of", "two", "arrays", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Basic.js#L371-L379", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Basic.js", "func_name": "parseSizeStr", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parses the specified size string into a byte value. For example 10kb becomes 10240.\n\n@method parseSizeStr\n@static\n@param {String/Number} size String to parse or number to just pass through.\n@return {Number} Size in bytes.", "docstring_tokens": ["Parses", "the", "specified", "size", "string", "into", "a", "byte", "value", ".", "For", "example", "10kb", "becomes", "10240", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Basic.js#L452-L473", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/xhr/FormData.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Append another key-value pair to the FormData object\n\n@method append\n@param {String} name Name for the new field\n@param {String|Blob|Array|Object} value Value for the field", "docstring_tokens": ["Append", "another", "key", "-", "value", "pair", "to", "the", "FormData", "object"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/xhr/FormData.js#L33-L60", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/xhr/FormData.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Loop over the fields in FormData and invoke the callback for each of them.\n\n@method each\n@param {Function} cb Callback to call for each field", "docstring_tokens": ["Loop", "over", "the", "fields", "in", "FormData", "and", "invoke", "the", "callback", "for", "each", "of", "them", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/xhr/FormData.js#L98-L106", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Dom.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks if specified DOM element has specified class.\n\n@method hasClass\n@static\n@param {Object} obj DOM element like object to add handler to.\n@param {String} name Class name", "docstring_tokens": ["Checks", "if", "specified", "DOM", "element", "has", "specified", "class", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Dom.js#L41-L48", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Dom.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds specified className to specified DOM element.\n\n@method addClass\n@static\n@param {Object} obj DOM element like object to add handler to.\n@param {String} name Class name", "docstring_tokens": ["Adds", "specified", "className", "to", "specified", "DOM", "element", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Dom.js#L58-L62", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Dom.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes specified className from specified DOM element.\n\n@method removeClass\n@static\n@param {Object} obj DOM element like object to add handler to.\n@param {String} name Class name", "docstring_tokens": ["Removes", "specified", "className", "from", "specified", "DOM", "element", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Dom.js#L72-L79", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Dom.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a given computed style of a DOM element.\n\n@method getStyle\n@static\n@param {Object} obj DOM element like object.\n@param {String} name Style you want to get from the DOM element", "docstring_tokens": ["Returns", "a", "given", "computed", "style", "of", "a", "DOM", "element", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Dom.js#L89-L95", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Dom.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the absolute x, y position of an Element. The position will be returned in a object with x, y fields.\n\n@method getPos\n@static\n@param {Element} node HTML element or element id to get x, y position from.\n@param {Element} root Optional root element to stop calculations at.\n@return {object} Absolute position of the specified element object with x, y fields.", "docstring_tokens": ["Returns", "the", "absolute", "x", "y", "position", "of", "an", "Element", ".", "The", "position", "will", "be", "returned", "in", "a", "object", "with", "x", "y", "fields", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Dom.js#L107-L159", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Dom.js", "func_name": "getIEPos", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the x, y cordinate for an element on IE 6 and IE 7", "docstring_tokens": ["Returns", "the", "x", "y", "cordinate", "for", "an", "element", "on", "IE", "6", "and", "IE", "7"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Dom.js#L114-L128", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Dom.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the size of the specified node in pixels.\n\n@method getSize\n@static\n@param {Node} node Node to get the size of.\n@return {Object} Object with a w and h property.", "docstring_tokens": ["Returns", "the", "size", "of", "the", "specified", "node", "in", "pixels", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Dom.js#L169-L174", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Events.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove all kind of events from the specified object\n\n@method removeAllEvents\n@static\n@param {Object} obj DOM element to remove event listeners from.\n@param {String} [key] unique key to match, when removing events.", "docstring_tokens": ["Remove", "all", "kind", "of", "events", "from", "the", "specified", "object"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Events.js#L160-L168", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/runtime/html5/xhr/XMLHttpRequest.js", "func_name": "_preloadAndSend", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "here we go... ugly fix for ugly bug", "docstring_tokens": ["here", "we", "go", "...", "ugly", "fix", "for", "ugly", "bug"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/runtime/html5/xhr/XMLHttpRequest.js#L279-L297", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/runtime/html5/image/Image.js", "func_name": "_rotateToOrientaion", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Transform canvas coordination according to specified frame size and orientation\nOrientation value is from EXIF tag\n@author Shinichi Tomita ", "docstring_tokens": ["Transform", "canvas", "coordination", "according", "to", "specified", "frame", "size", "and", "orientation", "Orientation", "value", "is", "from", "EXIF", "tag"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/runtime/html5/image/Image.js#L315-L381", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/runtime/html5/file/FileDrop.js", "func_name": "getEntries", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "keep quering recursively till no more entries", "docstring_tokens": ["keep", "quering", "recursively", "till", "no", "more", "entries"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/runtime/html5/file/FileDrop.js#L182-L191", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/xhr/XMLHttpRequest.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets the request method, request URL, synchronous flag, request username, and request password.\n\nThrows a \"SyntaxError\" exception if one of the following is true:\n\nmethod is not a valid HTTP method.\nurl cannot be resolved.\nurl contains the \"user:password\" format in the userinfo production.\nThrows a \"SecurityError\" exception if method is a case-insensitive match for CONNECT, TRACE or TRACK.\n\nThrows an \"InvalidAccessError\" exception if one of the following is true:\n\nEither user or password is passed as argument and the origin of url does not match the XMLHttpRequest origin.\nThere is an associated XMLHttpRequest document and either the timeout attribute is not zero,\nthe withCredentials attribute is true, or the responseType attribute is not the empty string.\n\n\n@method open\n@param {String} method HTTP method to use on request\n@param {String} url URL to request\n@param {Boolean} [async=true] If false request will be done in synchronous manner. Asynchronous by default.\n@param {String} [user] Username to use in HTTP authentication process on server-side\n@param {String} [password] Password to use in HTTP authentication process on server-side", "docstring_tokens": ["Sets", "the", "request", "method", "request", "URL", "synchronous", "flag", "request", "username", "and", "request", "password", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/xhr/XMLHttpRequest.js#L292-L357", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/xhr/XMLHttpRequest.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Appends an header to the list of author request headers, or if header is already\nin the list of author request headers, combines its value with value.\n\nThrows an \"InvalidStateError\" exception if the state is not OPENED or if the send() flag is set.\nThrows a \"SyntaxError\" exception if header is not a valid HTTP header field name or if value\nis not a valid HTTP header field value.\n\n@method setRequestHeader\n@param {String} header\n@param {String|Number} value", "docstring_tokens": ["Appends", "an", "header", "to", "the", "list", "of", "author", "request", "headers", "or", "if", "header", "is", "already", "in", "the", "list", "of", "author", "request", "headers", "combines", "its", "value", "with", "value", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/xhr/XMLHttpRequest.js#L371-L430", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/xhr/XMLHttpRequest.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the header field value from the response of which the field name matches header,\nunless the field name is Set-Cookie or Set-Cookie2.\n\n@method getResponseHeader\n@param {String} header\n@return {String} value(s) for the specified header or null", "docstring_tokens": ["Returns", "the", "header", "field", "value", "from", "the", "response", "of", "which", "the", "field", "name", "matches", "header", "unless", "the", "field", "name", "is", "Set", "-", "Cookie", "or", "Set", "-", "Cookie2", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/xhr/XMLHttpRequest.js#L462-L489", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/xhr/XMLHttpRequest.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets the Content-Type header for the response to mime.\nThrows an \"InvalidStateError\" exception if the state is LOADING or DONE.\nThrows a \"SyntaxError\" exception if mime is not a valid media type.\n\n@method overrideMimeType\n@param String mime Mime type to set", "docstring_tokens": ["Sets", "the", "Content", "-", "Type", "header", "for", "the", "response", "to", "mime", ".", "Throws", "an", "InvalidStateError", "exception", "if", "the", "state", "is", "LOADING", "or", "DONE", ".", "Throws", "a", "SyntaxError", "exception", "if", "mime", "is", "not", "a", "valid", "media", "type", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/xhr/XMLHttpRequest.js#L499-L524", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/xhr/XMLHttpRequest.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initiates the request. The optional argument provides the request entity body.\nThe argument is ignored if request method is GET or HEAD.\n\nThrows an \"InvalidStateError\" exception if the state is not OPENED or if the send() flag is set.\n\n@method send\n@param {Blob|Document|String|FormData} [data] Request entity body\n@param {Object} [options] Set of requirements and pre-requisities for runtime initialization", "docstring_tokens": ["Initiates", "the", "request", ".", "The", "optional", "argument", "provides", "the", "request", "entity", "body", ".", "The", "argument", "is", "ignored", "if", "request", "method", "is", "GET", "or", "HEAD", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/xhr/XMLHttpRequest.js#L536-L600", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/xhr/XMLHttpRequest.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Cancels any network activity.\n\n@method abort", "docstring_tokens": ["Cancels", "any", "network", "activity", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/xhr/XMLHttpRequest.js#L607-L625", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "build/utils.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extends the specified object with another object.\n\n@author Moxiecode\n@method extend\n@param {Object} target Object to extend.\n@param {Object} [obj]* Multiple objects to extend with.\n@return {Object} Same as target, the extended object.", "docstring_tokens": ["Extends", "the", "specified", "object", "with", "another", "object", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/build/utils.js#L47-L64", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/image/Image.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Properly destroys the image and frees resources in use. If any. Recommended way to dispose\nmoxie.image.Image object.\n\n@method destroy", "docstring_tokens": ["Properly", "destroys", "the", "image", "and", "frees", "resources", "in", "use", ".", "If", "any", ".", "Recommended", "way", "to", "dispose", "moxie", ".", "image", ".", "Image", "object", "."], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/image/Image.js#L582-L592", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Extra.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Defines property with specified descriptor on an object\n\n@method defineProperty\n@static\n@param {Object} obj Object to add property to\n@param {String} prop Property name\n@param {Object} desc Set of key-value pairs defining descriptor for the property", "docstring_tokens": ["Defines", "property", "with", "specified", "descriptor", "on", "an", "object"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Extra.js#L30-L40", "partition": "test"} +{"repo": "moxiecode/moxie", "path": "src/javascript/core/utils/Extra.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Defines getter or setter, depending on a type param\n\n@method defineGSetter\n@static\n@private\n@param {String} prop Property name\n@param {Object} desc Set of key-value pairs defining descriptor for the property\n@param {String} type Can take value of 'set' or 'get'", "docstring_tokens": ["Defines", "getter", "or", "setter", "depending", "on", "a", "type", "param"], "sha": "09eaf578f38480dc4b8e2017c473c496883b6168", "url": "https://github.com/moxiecode/moxie/blob/09eaf578f38480dc4b8e2017c473c496883b6168/src/javascript/core/utils/Extra.js#L78-L109", "partition": "test"} +{"repo": "format-message/format-message", "path": "packages/format-message-parse/index.js", "func_name": "SyntaxError", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "SyntaxError\nHolds information about bad syntax found in a message pattern", "docstring_tokens": ["SyntaxError", "Holds", "information", "about", "bad", "syntax", "found", "in", "a", "message", "pattern"], "sha": "7c683c57373d2999ba60f1d2ac47e09c848606dd", "url": "https://github.com/format-message/format-message/blob/7c683c57373d2999ba60f1d2ac47e09c848606dd/packages/format-message-parse/index.js#L433-L442", "partition": "test"} +{"repo": "ldez/cubejs", "path": "lib/solve.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The twist of the 8 corners, 0 <= twist < 3^7. The orientation of the DRB corner is fully determined by the orientation of the other corners.", "docstring_tokens": ["The", "twist", "of", "the", "8", "corners", "0", "<", "=", "twist", "<", "3^7", ".", "The", "orientation", "of", "the", "DRB", "corner", "is", "fully", "determined", "by", "the", "orientation", "of", "the", "other", "corners", "."], "sha": "36b38b676ddf4f939583e020455a0834264d61f3", "url": "https://github.com/ldez/cubejs/blob/36b38b676ddf4f939583e020455a0834264d61f3/lib/solve.js#L196-L215", "partition": "test"} +{"repo": "ldez/cubejs", "path": "lib/solve.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The flip of the 12 edges, 0 <= flip < 2^11. The orientation of the BR edge is fully determined by the orientation of the other edges.", "docstring_tokens": ["The", "flip", "of", "the", "12", "edges", "0", "<", "=", "flip", "<", "2^11", ".", "The", "orientation", "of", "the", "BR", "edge", "is", "fully", "determined", "by", "the", "orientation", "of", "the", "other", "edges", "."], "sha": "36b38b676ddf4f939583e020455a0834264d61f3", "url": "https://github.com/ldez/cubejs/blob/36b38b676ddf4f939583e020455a0834264d61f3/lib/solve.js#L218-L237", "partition": "test"} +{"repo": "ldez/cubejs", "path": "lib/solve.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parity of the corner permutation", "docstring_tokens": ["Parity", "of", "the", "corner", "permutation"], "sha": "36b38b676ddf4f939583e020455a0834264d61f3", "url": "https://github.com/ldez/cubejs/blob/36b38b676ddf4f939583e020455a0834264d61f3/lib/solve.js#L239-L250", "partition": "test"} +{"repo": "ldez/cubejs", "path": "lib/solve.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parity of the edges permutation. Parity of corners and edges are the same if the cube is solvable.", "docstring_tokens": ["Parity", "of", "the", "edges", "permutation", ".", "Parity", "of", "corners", "and", "edges", "are", "the", "same", "if", "the", "cube", "is", "solvable", "."], "sha": "36b38b676ddf4f939583e020455a0834264d61f3", "url": "https://github.com/ldez/cubejs/blob/36b38b676ddf4f939583e020455a0834264d61f3/lib/solve.js#L253-L264", "partition": "test"} +{"repo": "Quartz/Chartbuilder", "path": "src/js/util/catch-chart-mistakes.js", "func_name": "all_modulo", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determine if all tickValues are modulo some interval value", "docstring_tokens": ["Determine", "if", "all", "tickValues", "are", "modulo", "some", "interval", "value"], "sha": "fc6ce64e73b9ef378223afcab7057020f6dce260", "url": "https://github.com/Quartz/Chartbuilder/blob/fc6ce64e73b9ef378223afcab7057020f6dce260/src/js/util/catch-chart-mistakes.js#L42-L60", "partition": "test"} +{"repo": "Quartz/Chartbuilder", "path": "src/js/util/process-dates.js", "func_name": "autoDateFormatAndFrequency", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Automatically calculate date frequency if not selected", "docstring_tokens": ["Automatically", "calculate", "date", "frequency", "if", "not", "selected"], "sha": "fc6ce64e73b9ef378223afcab7057020f6dce260", "url": "https://github.com/Quartz/Chartbuilder/blob/fc6ce64e73b9ef378223afcab7057020f6dce260/src/js/util/process-dates.js#L277-L366", "partition": "test"} +{"repo": "Quartz/Chartbuilder", "path": "src/js/util/validate-chart-model.js", "func_name": "validate_chart_model", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Test whether a string is a valid Chartbuilder model\n@param {string} modelStr - unparsed string of chart model JSON\n@returns {object or null} parsed - parsed object\n@static\n@memberof helper", "docstring_tokens": ["Test", "whether", "a", "string", "is", "a", "valid", "Chartbuilder", "model"], "sha": "fc6ce64e73b9ef378223afcab7057020f6dce260", "url": "https://github.com/Quartz/Chartbuilder/blob/fc6ce64e73b9ef378223afcab7057020f6dce260/src/js/util/validate-chart-model.js#L8-L24", "partition": "test"} +{"repo": "Quartz/Chartbuilder", "path": "src/js/util/helper.js", "func_name": "exact_ticks", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate an exact number of ticks given a domain\n\n@param {number[]} domain - min/max of the current scale\n@param {number} numticks - desired number of ticks\n@return {string[]} Array of ticks\n@static\n@memberof helper", "docstring_tokens": ["Generate", "an", "exact", "number", "of", "ticks", "given", "a", "domain"], "sha": "fc6ce64e73b9ef378223afcab7057020f6dce260", "url": "https://github.com/Quartz/Chartbuilder/blob/fc6ce64e73b9ef378223afcab7057020f6dce260/src/js/util/helper.js#L17-L42", "partition": "test"} +{"repo": "Quartz/Chartbuilder", "path": "src/js/util/helper.js", "func_name": "round_to_precision", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "round_to_precision\nRound a number to N decimal places\n\n@param {number} num - Number to be rounded\n@param {number} precision - Desired precision\n@param {boolean} supress_thou_sep\n@static\n@memberof helper\n@return {number} Rounded number", "docstring_tokens": ["round_to_precision", "Round", "a", "number", "to", "N", "decimal", "places"], "sha": "fc6ce64e73b9ef378223afcab7057020f6dce260", "url": "https://github.com/Quartz/Chartbuilder/blob/fc6ce64e73b9ef378223afcab7057020f6dce260/src/js/util/helper.js#L111-L137", "partition": "test"} +{"repo": "Quartz/Chartbuilder", "path": "src/js/util/helper.js", "func_name": "merge_or_apply", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Given a defaults object and a source object, copy the value from the source\nif it contains the same key, otherwise return the default. Skip keys that\nonly exist in the source object.\n@param {object} defaults - Default schema\n@param {object} source - Source object to copy properties from\n@returns {object} - Result has identical keys to defaults\n@static\n@memberof helper", "docstring_tokens": ["Given", "a", "defaults", "object", "and", "a", "source", "object", "copy", "the", "value", "from", "the", "source", "if", "it", "contains", "the", "same", "key", "otherwise", "return", "the", "default", ".", "Skip", "keys", "that", "only", "exist", "in", "the", "source", "object", "."], "sha": "fc6ce64e73b9ef378223afcab7057020f6dce260", "url": "https://github.com/Quartz/Chartbuilder/blob/fc6ce64e73b9ef378223afcab7057020f6dce260/src/js/util/helper.js#L202-L214", "partition": "test"} +{"repo": "Quartz/Chartbuilder", "path": "src/js/util/helper.js", "func_name": "suggest_tick_num", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Given a the domain of a scale suggest the most numerous number\nof round number ticks that it cold be divided into while still containing\nvalues evenly divisible by 1, 2, 2.5, 5, 10, or 25.\n@param {array} domain - An array of two number like objects\n@returns {integer} - Result is a single integer representing a nice number of ticks to use\n@static\n@memberof helper", "docstring_tokens": ["Given", "a", "the", "domain", "of", "a", "scale", "suggest", "the", "most", "numerous", "number", "of", "round", "number", "ticks", "that", "it", "cold", "be", "divided", "into", "while", "still", "containing", "values", "evenly", "divisible", "by", "1", "2", "2", ".", "5", "5", "10", "or", "25", "."], "sha": "fc6ce64e73b9ef378223afcab7057020f6dce260", "url": "https://github.com/Quartz/Chartbuilder/blob/fc6ce64e73b9ef378223afcab7057020f6dce260/src/js/util/helper.js#L225-L251", "partition": "test"} +{"repo": "Quartz/Chartbuilder", "path": "src/js/stores/SessionStore.js", "func_name": "detectNumberSeparators", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get thousands and decimal separators based on locale", "docstring_tokens": ["Get", "thousands", "and", "decimal", "separators", "based", "on", "locale"], "sha": "fc6ce64e73b9ef378223afcab7057020f6dce260", "url": "https://github.com/Quartz/Chartbuilder/blob/fc6ce64e73b9ef378223afcab7057020f6dce260/src/js/stores/SessionStore.js#L89-L106", "partition": "test"} +{"repo": "remarkjs/remark-validate-links", "path": "index.js", "func_name": "transformerFactory", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Factory to create a transformer based on the given info and set.", "docstring_tokens": ["Factory", "to", "create", "a", "transformer", "based", "on", "the", "given", "info", "and", "set", "."], "sha": "caa1f9fa8ca09567951cf28f9252f642ab36ad9a", "url": "https://github.com/remarkjs/remark-validate-links/blob/caa1f9fa8ca09567951cf28f9252f642ab36ad9a/index.js#L140-L199", "partition": "test"} +{"repo": "remarkjs/remark-validate-links", "path": "index.js", "func_name": "validate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if `file` references headings or files not in `exposed`.", "docstring_tokens": ["Check", "if", "file", "references", "headings", "or", "files", "not", "in", "exposed", "."], "sha": "caa1f9fa8ca09567951cf28f9252f642ab36ad9a", "url": "https://github.com/remarkjs/remark-validate-links/blob/caa1f9fa8ca09567951cf28f9252f642ab36ad9a/index.js#L202-L254", "partition": "test"} +{"repo": "remarkjs/remark-validate-links", "path": "index.js", "func_name": "onresource", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handle resources.", "docstring_tokens": ["Handle", "resources", "."], "sha": "caa1f9fa8ca09567951cf28f9252f642ab36ad9a", "url": "https://github.com/remarkjs/remark-validate-links/blob/caa1f9fa8ca09567951cf28f9252f642ab36ad9a/index.js#L279-L380", "partition": "test"} +{"repo": "remarkjs/remark-validate-links", "path": "index.js", "func_name": "warnAll", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Utility to warn `reason` for each node in `nodes` on `file`.", "docstring_tokens": ["Utility", "to", "warn", "reason", "for", "each", "node", "in", "nodes", "on", "file", "."], "sha": "caa1f9fa8ca09567951cf28f9252f642ab36ad9a", "url": "https://github.com/remarkjs/remark-validate-links/blob/caa1f9fa8ca09567951cf28f9252f642ab36ad9a/index.js#L384-L390", "partition": "test"} +{"repo": "remarkjs/remark-validate-links", "path": "index.js", "func_name": "getClosest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Suggest a possible similar reference.", "docstring_tokens": ["Suggest", "a", "possible", "similar", "reference", "."], "sha": "caa1f9fa8ca09567951cf28f9252f642ab36ad9a", "url": "https://github.com/remarkjs/remark-validate-links/blob/caa1f9fa8ca09567951cf28f9252f642ab36ad9a/index.js#L393-L415", "partition": "test"} +{"repo": "remarkjs/remark-validate-links", "path": "index.js", "func_name": "getHash", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the `hash` of `uri`, if applicable.", "docstring_tokens": ["Get", "the", "hash", "of", "uri", "if", "applicable", "."], "sha": "caa1f9fa8ca09567951cf28f9252f642ab36ad9a", "url": "https://github.com/remarkjs/remark-validate-links/blob/caa1f9fa8ca09567951cf28f9252f642ab36ad9a/index.js#L418-L421", "partition": "test"} +{"repo": "nDmitry/grunt-postcss", "path": "tasks/postcss.js", "func_name": "getPrevMap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an input map contents if a custom map path was specified\n@param {string} from Input CSS path\n@returns {?string}", "docstring_tokens": ["Returns", "an", "input", "map", "contents", "if", "a", "custom", "map", "path", "was", "specified"], "sha": "a9f4009426e43ba32b49c879651b573897523b3c", "url": "https://github.com/nDmitry/grunt-postcss/blob/a9f4009426e43ba32b49c879651b573897523b3c/tasks/postcss.js#L17-L25", "partition": "test"} +{"repo": "JayChase/angular2-useful-swiper", "path": "bs-config.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "to add back in logging comment this line out", "docstring_tokens": ["to", "add", "back", "in", "logging", "comment", "this", "line", "out"], "sha": "57071cb8a8e82c6a9ab86aa1d46e6195de9c9a1f", "url": "https://github.com/JayChase/angular2-useful-swiper/blob/57071cb8a8e82c6a9ab86aa1d46e6195de9c9a1f/bs-config.js#L13-L19", "partition": "test"} +{"repo": "trevoro/node-named", "path": "lib/protocol.js", "func_name": "parseIPv4", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "turns a dotted-decimal address into a UInt32", "docstring_tokens": ["turns", "a", "dotted", "-", "decimal", "address", "into", "a", "UInt32"], "sha": "2b1adaa459ffbad19a5d81ddaa12b8e4018e10ca", "url": "https://github.com/trevoro/node-named/blob/2b1adaa459ffbad19a5d81ddaa12b8e4018e10ca/lib/protocol.js#L106-L120", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "getNested", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Iterator used to walk down a nested object.\n\nIf Bottle.config.strict is true, this method will throw an exception if it encounters an\nundefined path\n\n@param Object obj\n@param String prop\n@return mixed\n@throws Error if Bottle is unable to resolve the requested service.", "docstring_tokens": ["Iterator", "used", "to", "walk", "down", "a", "nested", "object", "."], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L46-L52", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "getNestedBottle", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get a nested bottle. Will set and return if not set.\n\n@param String name\n@return Bottle", "docstring_tokens": ["Get", "a", "nested", "bottle", ".", "Will", "set", "and", "return", "if", "not", "set", "."], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L60-L70", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "applyMiddleware", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Function used by provider to set up middleware for each request.\n\n@param Number id\n@param String name\n@param Object instance\n@param Object container\n@return void", "docstring_tokens": ["Function", "used", "by", "provider", "to", "set", "up", "middleware", "for", "each", "request", "."], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L91-L118", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "middleware", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Register middleware.\n\n@param String name\n@param Function func\n@return Bottle", "docstring_tokens": ["Register", "middleware", "."], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L127-L145", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "createProvider", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create the provider properties on the container\n\n@param String name\n@param Function Provider\n@return Bottle", "docstring_tokens": ["Create", "the", "provider", "properties", "on", "the", "container"], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L176-L217", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "provider", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Register a provider.\n\n@param String fullname\n@param Function Provider\n@return Bottle", "docstring_tokens": ["Register", "a", "provider", "."], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L227-L243", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "createService", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Private helper for creating service and service factories.\n\n@param String name\n@param Function Service\n@return Bottle", "docstring_tokens": ["Private", "helper", "for", "creating", "service", "and", "service", "factories", "."], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L265-L277", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "service", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Register a class service\n\n@param String name\n@param Function Service\n@return Bottle", "docstring_tokens": ["Register", "a", "class", "service"], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L286-L288", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "serviceFactory", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Register a function service", "docstring_tokens": ["Register", "a", "function", "service"], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L293-L295", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "defineValue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Define a mutable property on the container.\n\n@param String name\n@param mixed val\n@return void\n@scope container", "docstring_tokens": ["Define", "a", "mutable", "property", "on", "the", "container", "."], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L305-L312", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "setValueObject", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Iterator for setting a plain object literal via defineValue\n\n@param Object container\n@param string name", "docstring_tokens": ["Iterator", "for", "setting", "a", "plain", "object", "literal", "via", "defineValue"], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L320-L327", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "value", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Register a value\n\n@param String name\n@param mixed val\n@return Bottle", "docstring_tokens": ["Register", "a", "value"], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L337-L343", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "constant", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Register a constant\n\n@param String name\n@param mixed value\n@return Bottle", "docstring_tokens": ["Register", "a", "constant"], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L368-L373", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "decorator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Register decorator.\n\n@param String fullname\n@param Function func\n@return Bottle", "docstring_tokens": ["Register", "decorator", "."], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L382-L400", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "instanceFactory", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Register an instance factory inside a generic factory.\n\n@param {String} name - The name of the service\n@param {Function} Factory - The factory function, matches the signature required for the\n`factory` method\n@return Bottle", "docstring_tokens": ["Register", "an", "instance", "factory", "inside", "a", "generic", "factory", "."], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L432-L438", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "pop", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get an instance of bottle.\n\nIf a name is provided the instance will be stored in a local hash. Calling Bottle.pop multiple\ntimes with the same name will return the same instance.\n\n@param String name\n@return Bottle", "docstring_tokens": ["Get", "an", "instance", "of", "bottle", "."], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L473-L484", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "register", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Register a service, factory, provider, or value based on properties on the object.\n\nproperties:\n* Obj.$name String required ex: `'Thing'`\n* Obj.$type String optional 'service', 'factory', 'provider', 'value'. Default: 'service'\n* Obj.$inject Mixed optional only useful with $type 'service' name or array of names\n* Obj.$value Mixed optional Normally Obj is registered on the container. However, if this\nproperty is included, it's value will be registered on the container\ninstead of the object itsself. Useful for registering objects on the\nbottle container without modifying those objects with bottle specific keys.\n\n@param Function Obj\n@return Bottle", "docstring_tokens": ["Register", "a", "service", "factory", "provider", "or", "value", "based", "on", "properties", "on", "the", "object", "."], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L512-L515", "partition": "test"} +{"repo": "young-steveo/bottlejs", "path": "dist/bottle.js", "func_name": "resetProviders", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Resets providers on a bottle instance. If 'names' array is provided, only the named providers will be reset.\n\n@param Array names\n@return void", "docstring_tokens": ["Resets", "providers", "on", "a", "bottle", "instance", ".", "If", "names", "array", "is", "provided", "only", "the", "named", "providers", "will", "be", "reset", "."], "sha": "2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51", "url": "https://github.com/young-steveo/bottlejs/blob/2e7652ac79aeafa2b51b12a7f7afcd1086ff5c51/dist/bottle.js#L535-L550", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/utils/ast-utils.js", "func_name": "throwIfInvalidNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "For internal use. Throws if is passed an invalid AST node, else does nothing.", "docstring_tokens": ["For", "internal", "use", ".", "Throws", "if", "is", "passed", "an", "invalid", "AST", "node", "else", "does", "nothing", "."], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/utils/ast-utils.js#L16-L20", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/rules/emit.js", "func_name": "isEvent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determines whether the given call name refers to an event declaration using scope resolution.", "docstring_tokens": ["Determines", "whether", "the", "given", "call", "name", "refers", "to", "an", "event", "declaration", "using", "scope", "resolution", "."], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/rules/emit.js#L22-L29", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/rules/emit.js", "func_name": "registerEventName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Stores each declared event in the file and its corresponding parent contract", "docstring_tokens": ["Stores", "each", "declared", "event", "in", "the", "file", "and", "its", "corresponding", "parent", "contract"], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/rules/emit.js#L33-L36", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/rules/no-unused-vars.js", "func_name": "inspectVariableDeclarator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "collect all variable declarations from VariableDeclarators and DeclarativeExpressions", "docstring_tokens": ["collect", "all", "variable", "declarations", "from", "VariableDeclarators", "and", "DeclarativeExpressions"], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/rules/no-unused-vars.js#L27-L33", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/rules/no-unused-vars.js", "func_name": "inspectProgram", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "While exiting Progam Node, all the vars that haven't been used still exist inside VariableDeclarations. Report them", "docstring_tokens": ["While", "exiting", "Progam", "Node", "all", "the", "vars", "that", "haven", "t", "been", "used", "still", "exist", "inside", "VariableDeclarations", ".", "Report", "them"], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/rules/no-unused-vars.js#L45-L56", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/rules/no-unused-vars.js", "func_name": "inspectIdentifier", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "As soon as the first use of a variable is encountered, delete that variable's node from allVariableDeclarations", "docstring_tokens": ["As", "soon", "as", "the", "first", "use", "of", "a", "variable", "is", "encountered", "delete", "that", "variable", "s", "node", "from", "allVariableDeclarations"], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/rules/no-unused-vars.js#L59-L71", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/rules/function-order.js", "func_name": "inspectFunctionsOfContract", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set cursor to point to first visibility in order of vis. array.\nFor each function Fi inside contract, if Fi's vis is same as that pointed by cursor, ignore func.\nIf not, check the pos in the order of Fi's vis. If ahead, simply move cursor forward to Fi's vis.'s\nposition in array. If behind, report func.", "docstring_tokens": ["Set", "cursor", "to", "point", "to", "first", "visibility", "in", "order", "of", "vis", ".", "array", ".", "For", "each", "function", "Fi", "inside", "contract", "if", "Fi", "s", "vis", "is", "same", "as", "that", "pointed", "by", "cursor", "ignore", "func", ".", "If", "not", "check", "the", "pos", "in", "the", "order", "of", "Fi", "s", "vis", ".", "If", "ahead", "simply", "move", "cursor", "forward", "to", "Fi", "s", "vis", ".", "s", "position", "in", "array", ".", "If", "behind", "report", "func", "."], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/rules/function-order.js#L130-L159", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/rules/function-whitespace.js", "func_name": "inspectCallExpression", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "same could potentially be applied to FunctionDeclaration", "docstring_tokens": ["same", "could", "potentially", "be", "applied", "to", "FunctionDeclaration"], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/rules/function-whitespace.js#L74-L127", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/rules/pragma-on-top.js", "func_name": "inspectExperimentalPragmaStatement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Experimental pragmas, if they exist, must be above everything EXCEPT pragma solidity & other experimental pragmas.", "docstring_tokens": ["Experimental", "pragmas", "if", "they", "exist", "must", "be", "above", "everything", "EXCEPT", "pragma", "solidity", "&", "other", "experimental", "pragmas", "."], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/rules/pragma-on-top.js#L76-L107", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/autofix/source-code-fixer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Apply fixes to source code depending on whichever errors can be fixed.\n@param {String} sourceCode Code to fix\n@param {Array} errorMessages Error objects that describe the error and possibly how to fix it.\n@returns {Object} fixed Contains fixed code and information about fixes applied & remaining un-fixed errors.", "docstring_tokens": ["Apply", "fixes", "to", "source", "code", "depending", "on", "whichever", "errors", "can", "be", "fixed", "."], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/autofix/source-code-fixer.js#L29-L85", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/rules/indentation.js", "func_name": "inspectTopLevelDeclaration", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Ensure level 1 indentation before all immediate children of top-level declarations", "docstring_tokens": ["Ensure", "level", "1", "indentation", "before", "all", "immediate", "children", "of", "top", "-", "level", "declarations"], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/rules/indentation.js#L132-L196", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/rules/indentation.js", "func_name": "inspectBlockStatement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Ensure 1 extra indentation inside Block than before it", "docstring_tokens": ["Ensure", "1", "extra", "indentation", "inside", "Block", "than", "before", "it"], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/rules/indentation.js#L201-L279", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/utils/source-code-utils.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Function to retrieve the source code text being linted. Returns the complete source code if no node specified\n@param {Object} node The AST node whose source code (specifically) is needed\n@param {int} beforeCount Include beforeCount number of characters prior to the node's code\n@param {int} afterCount Include afterCount number of characters following the node's code\n@returns {String} sourceCodeText source code of the specified node plus extra characters specified by beforeCount & afterCount", "docstring_tokens": ["Function", "to", "retrieve", "the", "source", "code", "text", "being", "linted", ".", "Returns", "the", "complete", "source", "code", "if", "no", "node", "specified"], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/utils/source-code-utils.js#L48-L65", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/rules/operator-whitespace.js", "func_name": "inspectVariableDeclaration", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "statement like `var x = 10` doesn't come under AssignmentExpression, so needs to be checked separately", "docstring_tokens": ["statement", "like", "var", "x", "=", "10", "doesn", "t", "come", "under", "AssignmentExpression", "so", "needs", "to", "be", "checked", "separately"], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/rules/operator-whitespace.js#L51-L72", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/rule-context.js", "func_name": "RuleContext", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "context object Constructor to set read-only properties and provide additional functionality to the rules using it\n@param {String} ruleName Name of the rule the object is for\n@param {Object} ruleDesc Description of the rule the object is for\n@param {Object} ruleMeta meta object defined inside the rule file by rule developer\n@param {Object} Solium Main Solium object from which to inherit functionality to provide to the rules", "docstring_tokens": ["context", "object", "Constructor", "to", "set", "read", "-", "only", "properties", "and", "provide", "additional", "functionality", "to", "the", "rules", "using", "it"], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/rule-context.js#L23-L67", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/utils/rule-loader.js", "func_name": "resolveUpstream", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Given a ruleset name, determine whether its a core set or a sharable config and load the rule config accordingly.\n@param {String} upstream The ruleset to resolve\n@returns {Object} ruleConfigs Set of rule configs exported by the upstream ruleset.", "docstring_tokens": ["Given", "a", "ruleset", "name", "determine", "whether", "its", "a", "core", "set", "or", "a", "sharable", "config", "and", "load", "the", "rule", "config", "accordingly", "."], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/utils/rule-loader.js#L27-L63", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/utils/rule-loader.js", "func_name": "resolvePluginConfig", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create provided plugin's default rule configuration\n@param {String} name Plugin name without 'solium-plugin-' prefix\n@param {Object} plugin The plugin Object as exported by the solium plugin\n@returns {Object} config Rule configuration object for the given plugin", "docstring_tokens": ["Create", "provided", "plugin", "s", "default", "rule", "configuration"], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/utils/rule-loader.js#L73-L81", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/cli.js", "func_name": "writeConfigFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Synchronously write the passed configuration to the file whose absolute path is SOLIUMRC_FILENAME_ABSOLUTE\n@param {Object} config User Configuration object\n@returns {void}", "docstring_tokens": ["Synchronously", "write", "the", "passed", "configuration", "to", "the", "file", "whose", "absolute", "path", "is", "SOLIUMRC_FILENAME_ABSOLUTE"], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/cli.js#L43-L54", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/cli.js", "func_name": "lintString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Lint a source code string based on user settings. If autofix is enabled, write the fixed code back to file.\n@param {String} sourceCode The source code to be linted\n@param {Object} userConfig User configuration\n@param {Object} errorReporter The error reporter to use\n@param {String} fileName (optional) File name to use when reporting errors\n@returns {Integer} numOfErrors Number of Lint ERRORS that occured.", "docstring_tokens": ["Lint", "a", "source", "code", "string", "based", "on", "user", "settings", ".", "If", "autofix", "is", "enabled", "write", "the", "fixed", "code", "back", "to", "file", "."], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/cli.js#L89-L131", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/cli.js", "func_name": "lintFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Lint a file based on user settings\n@param {String} fileName The path to the file to be linted\n@param {Object} userConfig User configuration\n@param {Object} errorReporter The error reporter to use\n@returns {Integer} numOfErrors Number of Lint ERRORS that occured (the result returned by lintString())", "docstring_tokens": ["Lint", "a", "file", "based", "on", "user", "settings"], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/cli.js#L144-L155", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/cli.js", "func_name": "createCliOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Function responsible for defining all the available commandline options & version information\n@param {Object} cliObject Commander Object handling the cli", "docstring_tokens": ["Function", "responsible", "for", "defining", "all", "the", "available", "commandline", "options", "&", "version", "information"], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/cli.js#L211-L247", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/utils/rule-inspector.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determine whether the options object supplied is valid according to the schema passed.\n@param {Array} options List of options\n@param {Array} listItemsSchema A list of schema objects defining schema for every item in the options list.\n@returns {Boolean} isValid True if options list is valid, false otherwise.", "docstring_tokens": ["Determine", "whether", "the", "options", "object", "supplied", "is", "valid", "according", "to", "the", "schema", "passed", "."], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/utils/rule-inspector.js#L38-L47", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/rules/visibility-first.js", "func_name": "inspectFD", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find index of the first visibility modifier in declaration. Find the first non-VM before this first VM found above. If non-VM found, report the VM.", "docstring_tokens": ["Find", "index", "of", "the", "first", "visibility", "modifier", "in", "declaration", ".", "Find", "the", "first", "non", "-", "VM", "before", "this", "first", "VM", "found", "above", ".", "If", "non", "-", "VM", "found", "report", "the", "VM", "."], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/rules/visibility-first.js#L23-L44", "partition": "test"} +{"repo": "duaraghav8/Ethlint", "path": "lib/rules/double-quotes.js", "func_name": "isHex", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determine whether the provided literal is in Hex Notation\n@param {String} literal The literal to test for Hex Notation\n@returns {Boolean}", "docstring_tokens": ["Determine", "whether", "the", "provided", "literal", "is", "in", "Hex", "Notation"], "sha": "7d264373709561148c7166601ac39370e78f74b1", "url": "https://github.com/duaraghav8/Ethlint/blob/7d264373709561148c7166601ac39370e78f74b1/lib/rules/double-quotes.js#L13-L22", "partition": "test"} +{"repo": "danigb/soundfont-player", "path": "lib/legacy.js", "func_name": "Soundfont", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a Soundfont object\n\n@param {AudioContext} context - the [audio context](https://developer.mozilla.org/en/docs/Web/API/AudioContext)\n@param {Function} nameToUrl - (Optional) a function that maps the sound font name to the url\n@return {Soundfont} a soundfont object", "docstring_tokens": ["Create", "a", "Soundfont", "object"], "sha": "42f2e6ee5afb84dc5c483a906f7b9d108ba2c0ad", "url": "https://github.com/danigb/soundfont-player/blob/42f2e6ee5afb84dc5c483a906f7b9d108ba2c0ad/lib/legacy.js#L12-L21", "partition": "test"} +{"repo": "danigb/soundfont-player", "path": "lib/legacy.js", "func_name": "oscillatorPlayer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a function that plays an oscillator\n\n@param {AudioContext} ac - the audio context\n@param {Hash} defaultOptions - (Optional) a hash of options:\n- vcoType: the oscillator type (default: 'sine')\n- gain: the output gain value (default: 0.4)\n- destination: the player destination (default: ac.destination)", "docstring_tokens": ["Returns", "a", "function", "that", "plays", "an", "oscillator"], "sha": "42f2e6ee5afb84dc5c483a906f7b9d108ba2c0ad", "url": "https://github.com/danigb/soundfont-player/blob/42f2e6ee5afb84dc5c483a906f7b9d108ba2c0ad/lib/legacy.js#L96-L128", "partition": "test"} +{"repo": "danigb/soundfont-player", "path": "lib/index.js", "func_name": "instrument", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Load a soundfont instrument. It returns a promise that resolves to a\ninstrument object.\n\nThe instrument object returned by the promise has the following properties:\n\n- name: the instrument name\n- play: A function to play notes from the buffer with the signature\n`play(note, time, duration, options)`\n\n\nThe valid options are:\n\n- `format`: the soundfont format. 'mp3' by default. Can be 'ogg'\n- `soundfont`: the soundfont name. 'MusyngKite' by default. Can be 'FluidR3_GM'\n- `nameToUrl` : a function to convert from instrument names to URL\n- `destination`: by default Soundfont uses the `audioContext.destination` but you can override it.\n- `gain`: the gain of the player (1 by default)\n- `notes`: an array of the notes to decode. It can be an array of strings\nwith note names or an array of numbers with midi note numbers. This is a\nperformance option: since decoding mp3 is a cpu intensive process, you can limit\nlimit the number of notes you want and reduce the time to load the instrument.\n\n@param {AudioContext} ac - the audio context\n@param {String} name - the instrument name. For example: 'acoustic_grand_piano'\n@param {Object} options - (Optional) the same options as Soundfont.loadBuffers\n@return {Promise}\n\n@example\nvar Soundfont = require('sounfont-player')\nSoundfont.instrument('marimba').then(function (marimba) {\nmarimba.play('C4')\n})", "docstring_tokens": ["Load", "a", "soundfont", "instrument", ".", "It", "returns", "a", "promise", "that", "resolves", "to", "a", "instrument", "object", "."], "sha": "42f2e6ee5afb84dc5c483a906f7b9d108ba2c0ad", "url": "https://github.com/danigb/soundfont-player/blob/42f2e6ee5afb84dc5c483a906f7b9d108ba2c0ad/lib/index.js#L40-L53", "partition": "test"} +{"repo": "moovel/node-yolo", "path": "util/has_lib.js", "func_name": "hasSystemLib", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks for lib using ldconfig if present, or searching SYSTEM_PATHS\notherwise.\n@param String library name, e.g. 'jpeg' in 'libjpeg64.so' (see first line)\n@return Boolean exists", "docstring_tokens": ["Checks", "for", "lib", "using", "ldconfig", "if", "present", "or", "searching", "SYSTEM_PATHS", "otherwise", "."], "sha": "1c52c30de306854a7bd22d6cac4bc5bf9a71d3fa", "url": "https://github.com/moovel/node-yolo/blob/1c52c30de306854a7bd22d6cac4bc5bf9a71d3fa/util/has_lib.js#L36-L62", "partition": "test"} +{"repo": "koajs/ratelimit", "path": "index.js", "func_name": "thenify", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Helper function to convert a callback to a Promise.", "docstring_tokens": ["Helper", "function", "to", "convert", "a", "callback", "to", "a", "Promise", "."], "sha": "3eb2e7d1694f77628041af0b1a3f1bc4b8dbf275", "url": "https://github.com/koajs/ratelimit/blob/3eb2e7d1694f77628041af0b1a3f1bc4b8dbf275/index.js#L97-L106", "partition": "test"} +{"repo": "kimmobrunfeldt/chokidar-cli", "path": "index.js", "func_name": "startWatching", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Estimates spent working hours based on commit dates", "docstring_tokens": ["Estimates", "spent", "working", "hours", "based", "on", "commit", "dates"], "sha": "00aee901e41673e85ab5183d4e58eacafec5c983", "url": "https://github.com/kimmobrunfeldt/chokidar-cli/blob/00aee901e41673e85ab5183d4e58eacafec5c983/index.js#L136-L174", "partition": "test"} +{"repo": "kimmobrunfeldt/chokidar-cli", "path": "index.js", "func_name": "_resolveIgnoreOpt", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Takes string or array of strings", "docstring_tokens": ["Takes", "string", "or", "array", "of", "strings"], "sha": "00aee901e41673e85ab5183d4e58eacafec5c983", "url": "https://github.com/kimmobrunfeldt/chokidar-cli/blob/00aee901e41673e85ab5183d4e58eacafec5c983/index.js#L193-L210", "partition": "test"} +{"repo": "aragon/aragon-ui", "path": "src/proptypes.js", "func_name": "requireProp", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Require a prop to not be empty", "docstring_tokens": ["Require", "a", "prop", "to", "not", "be", "empty"], "sha": "1c55ea5b5fe4885eab907602fb9d45cccf8f55dc", "url": "https://github.com/aragon/aragon-ui/blob/1c55ea5b5fe4885eab907602fb9d45cccf8f55dc/src/proptypes.js#L9-L15", "partition": "test"} +{"repo": "aragon/aragon-ui", "path": "src/proptypes.js", "func_name": "_0to1", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Accept any number in the 0 => 1 range", "docstring_tokens": ["Accept", "any", "number", "in", "the", "0", "=", ">", "1", "range"], "sha": "1c55ea5b5fe4885eab907602fb9d45cccf8f55dc", "url": "https://github.com/aragon/aragon-ui/blob/1c55ea5b5fe4885eab907602fb9d45cccf8f55dc/src/proptypes.js#L18-L32", "partition": "test"} +{"repo": "accurat/accurapp", "path": "packages/webpack-preset-accurapp/customBlocks.js", "func_name": "babel", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The thread-loader parallelizes code compilation, useful with babel since\nit transpiles both application javascript and node_modules javascript", "docstring_tokens": ["The", "thread", "-", "loader", "parallelizes", "code", "compilation", "useful", "with", "babel", "since", "it", "transpiles", "both", "application", "javascript", "and", "node_modules", "javascript"], "sha": "4658397daa4a983830b4f881287c880e66efaaae", "url": "https://github.com/accurat/accurapp/blob/4658397daa4a983830b4f881287c880e66efaaae/packages/webpack-preset-accurapp/customBlocks.js#L17-L37", "partition": "test"} +{"repo": "accurat/accurapp", "path": "packages/webpack-preset-accurapp/customBlocks.js", "func_name": "imageLoader", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Images smaller than 10kb are loaded as a base64 encoded url instead of file url", "docstring_tokens": ["Images", "smaller", "than", "10kb", "are", "loaded", "as", "a", "base64", "encoded", "url", "instead", "of", "file", "url"], "sha": "4658397daa4a983830b4f881287c880e66efaaae", "url": "https://github.com/accurat/accurapp/blob/4658397daa4a983830b4f881287c880e66efaaae/packages/webpack-preset-accurapp/customBlocks.js#L58-L68", "partition": "test"} +{"repo": "accurat/accurapp", "path": "packages/webpack-preset-accurapp/customBlocks.js", "func_name": "csvLoader", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse .csv files with PapaParse and return it in a JSON format", "docstring_tokens": ["Parse", ".", "csv", "files", "with", "PapaParse", "and", "return", "it", "in", "a", "JSON", "format"], "sha": "4658397daa4a983830b4f881287c880e66efaaae", "url": "https://github.com/accurat/accurapp/blob/4658397daa4a983830b4f881287c880e66efaaae/packages/webpack-preset-accurapp/customBlocks.js#L128-L139", "partition": "test"} +{"repo": "accurat/accurapp", "path": "packages/webpack-preset-accurapp/customBlocks.js", "func_name": "cssSvgLoader", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Url-loader for svgs in css", "docstring_tokens": ["Url", "-", "loader", "for", "svgs", "in", "css"], "sha": "4658397daa4a983830b4f881287c880e66efaaae", "url": "https://github.com/accurat/accurapp/blob/4658397daa4a983830b4f881287c880e66efaaae/packages/webpack-preset-accurapp/customBlocks.js#L192-L206", "partition": "test"} +{"repo": "accurat/accurapp", "path": "packages/webpack-preset-accurapp/customBlocks.js", "func_name": "prependEntry", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add entryPoint at beginning of 'entry' array", "docstring_tokens": ["Add", "entryPoint", "at", "beginning", "of", "entry", "array"], "sha": "4658397daa4a983830b4f881287c880e66efaaae", "url": "https://github.com/accurat/accurapp/blob/4658397daa4a983830b4f881287c880e66efaaae/packages/webpack-preset-accurapp/customBlocks.js#L259-L268", "partition": "test"} +{"repo": "accurat/accurapp", "path": "packages/accurapp-scripts/scripts/build.js", "func_name": "build", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create the production build and print the deployment instructions.", "docstring_tokens": ["Create", "the", "production", "build", "and", "print", "the", "deployment", "instructions", "."], "sha": "4658397daa4a983830b4f881287c880e66efaaae", "url": "https://github.com/accurat/accurapp/blob/4658397daa4a983830b4f881287c880e66efaaae/packages/accurapp-scripts/scripts/build.js#L52-L73", "partition": "test"} +{"repo": "dwightjack/vue-types", "path": "examples/userlist/dist/bundle.js", "func_name": "mergeData", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Helper that recursively merges two data objects together.", "docstring_tokens": ["Helper", "that", "recursively", "merges", "two", "data", "objects", "together", "."], "sha": "083089dbef1bc351b7b242546c24e6f5a2ddaed0", "url": "https://github.com/dwightjack/vue-types/blob/083089dbef1bc351b7b242546c24e6f5a2ddaed0/examples/userlist/dist/bundle.js#L1175-L1194", "partition": "test"} +{"repo": "dwightjack/vue-types", "path": "examples/userlist/dist/bundle.js", "func_name": "withDefault", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds a `def` method to the object returning a new object with passed in argument as `default` property\n\n@param {object} type - Object to enhance\n@returns {object} the passed-in prop type", "docstring_tokens": ["Adds", "a", "def", "method", "to", "the", "object", "returning", "a", "new", "object", "with", "passed", "in", "argument", "as", "default", "property"], "sha": "083089dbef1bc351b7b242546c24e6f5a2ddaed0", "url": "https://github.com/dwightjack/vue-types/blob/083089dbef1bc351b7b242546c24e6f5a2ddaed0/examples/userlist/dist/bundle.js#L11364-L11393", "partition": "test"} +{"repo": "dwightjack/vue-types", "path": "examples/userlist/dist/bundle.js", "func_name": "withValidate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds a validate method useful to set the prop `validator` function.\n\n@param {object} type Prop type to extend\n@returns {object} the passed-in prop type", "docstring_tokens": ["Adds", "a", "validate", "method", "useful", "to", "set", "the", "prop", "validator", "function", "."], "sha": "083089dbef1bc351b7b242546c24e6f5a2ddaed0", "url": "https://github.com/dwightjack/vue-types/blob/083089dbef1bc351b7b242546c24e6f5a2ddaed0/examples/userlist/dist/bundle.js#L11417-L11425", "partition": "test"} +{"repo": "dwightjack/vue-types", "path": "examples/userlist/dist/bundle.js", "func_name": "toType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds `isRequired` and `def` modifiers to an object\n\n@param {string} name - Type internal name\n@param {object} obj - Object to enhance\n@returns {object}", "docstring_tokens": ["Adds", "isRequired", "and", "def", "modifiers", "to", "an", "object"], "sha": "083089dbef1bc351b7b242546c24e6f5a2ddaed0", "url": "https://github.com/dwightjack/vue-types/blob/083089dbef1bc351b7b242546c24e6f5a2ddaed0/examples/userlist/dist/bundle.js#L11434-L11455", "partition": "test"} +{"repo": "dwightjack/vue-types", "path": "examples/userlist/dist/bundle.js", "func_name": "validateType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validates a given value against a prop type object\n\n@param {Object|*} type - Type to use for validation. Either a type object or a constructor\n@param {*} value - Value to check\n@param {boolean} silent - Silence warnings\n@returns {boolean}", "docstring_tokens": ["Validates", "a", "given", "value", "against", "a", "prop", "type", "object"], "sha": "083089dbef1bc351b7b242546c24e6f5a2ddaed0", "url": "https://github.com/dwightjack/vue-types/blob/083089dbef1bc351b7b242546c24e6f5a2ddaed0/examples/userlist/dist/bundle.js#L11465-L11526", "partition": "test"} +{"repo": "WebReflection/dom4", "path": "build/dom4.max.js", "func_name": "CustomEvent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "the infamous substitute", "docstring_tokens": ["the", "infamous", "substitute"], "sha": "2189e1b75d442ab4f776e69d0d77d23b8ed4581b", "url": "https://github.com/WebReflection/dom4/blob/2189e1b75d442ab4f776e69d0d77d23b8ed4581b/build/dom4.max.js#L456-L475", "partition": "test"} +{"repo": "WebReflection/dom4", "path": "build/dom4.max.js", "func_name": "initCustomEvent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "attached at runtime", "docstring_tokens": ["attached", "at", "runtime"], "sha": "2189e1b75d442ab4f776e69d0d77d23b8ed4581b", "url": "https://github.com/WebReflection/dom4/blob/2189e1b75d442ab4f776e69d0d77d23b8ed4581b/build/dom4.max.js#L478-L484", "partition": "test"} +{"repo": "chrisbateman/impetus", "path": "dist/impetus.js", "func_name": "cleanUpRuntimeEvents", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes all events set by this instance during runtime", "docstring_tokens": ["Removes", "all", "events", "set", "by", "this", "instance", "during", "runtime"], "sha": "ef9fefec150655c06e2aec9e628422909fd5f4ce", "url": "https://github.com/chrisbateman/impetus/blob/ef9fefec150655c06e2aec9e628422909fd5f4ce/dist/impetus.js#L174-L181", "partition": "test"} +{"repo": "chrisbateman/impetus", "path": "dist/impetus.js", "func_name": "addRuntimeEvents", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add all required runtime events", "docstring_tokens": ["Add", "all", "required", "runtime", "events"], "sha": "ef9fefec150655c06e2aec9e628422909fd5f4ce", "url": "https://github.com/chrisbateman/impetus/blob/ef9fefec150655c06e2aec9e628422909fd5f4ce/dist/impetus.js#L186-L195", "partition": "test"} +{"repo": "chrisbateman/impetus", "path": "dist/impetus.js", "func_name": "normalizeEvent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a custom normalized event object from touch and mouse events\n@param {Event} ev\n@returns {Object} with x, y, and id properties", "docstring_tokens": ["Creates", "a", "custom", "normalized", "event", "object", "from", "touch", "and", "mouse", "events"], "sha": "ef9fefec150655c06e2aec9e628422909fd5f4ce", "url": "https://github.com/chrisbateman/impetus/blob/ef9fefec150655c06e2aec9e628422909fd5f4ce/dist/impetus.js#L209-L225", "partition": "test"} +{"repo": "chrisbateman/impetus", "path": "dist/impetus.js", "func_name": "onDown", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initializes movement tracking\n@param {Object} ev Normalized event", "docstring_tokens": ["Initializes", "movement", "tracking"], "sha": "ef9fefec150655c06e2aec9e628422909fd5f4ce", "url": "https://github.com/chrisbateman/impetus/blob/ef9fefec150655c06e2aec9e628422909fd5f4ce/dist/impetus.js#L231-L245", "partition": "test"} +{"repo": "chrisbateman/impetus", "path": "dist/impetus.js", "func_name": "onMove", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles move events\n@param {Object} ev Normalized event", "docstring_tokens": ["Handles", "move", "events"], "sha": "ef9fefec150655c06e2aec9e628422909fd5f4ce", "url": "https://github.com/chrisbateman/impetus/blob/ef9fefec150655c06e2aec9e628422909fd5f4ce/dist/impetus.js#L251-L261", "partition": "test"} +{"repo": "chrisbateman/impetus", "path": "dist/impetus.js", "func_name": "addTrackingPoint", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Records movement for the last 100ms\n@param {number} x\n@param {number} y [description]", "docstring_tokens": ["Records", "movement", "for", "the", "last", "100ms"], "sha": "ef9fefec150655c06e2aec9e628422909fd5f4ce", "url": "https://github.com/chrisbateman/impetus/blob/ef9fefec150655c06e2aec9e628422909fd5f4ce/dist/impetus.js#L291-L301", "partition": "test"} +{"repo": "chrisbateman/impetus", "path": "dist/impetus.js", "func_name": "updateAndRender", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculate new values, call update function", "docstring_tokens": ["Calculate", "new", "values", "call", "update", "function"], "sha": "ef9fefec150655c06e2aec9e628422909fd5f4ce", "url": "https://github.com/chrisbateman/impetus/blob/ef9fefec150655c06e2aec9e628422909fd5f4ce/dist/impetus.js#L306-L330", "partition": "test"} +{"repo": "chrisbateman/impetus", "path": "dist/impetus.js", "func_name": "startDecelAnim", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize animation of values coming to a stop", "docstring_tokens": ["Initialize", "animation", "of", "values", "coming", "to", "a", "stop"], "sha": "ef9fefec150655c06e2aec9e628422909fd5f4ce", "url": "https://github.com/chrisbateman/impetus/blob/ef9fefec150655c06e2aec9e628422909fd5f4ce/dist/impetus.js#L389-L408", "partition": "test"} +{"repo": "chrisbateman/impetus", "path": "dist/impetus.js", "func_name": "stepDecelAnim", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Animates values slowing down", "docstring_tokens": ["Animates", "values", "slowing", "down"], "sha": "ef9fefec150655c06e2aec9e628422909fd5f4ce", "url": "https://github.com/chrisbateman/impetus/blob/ef9fefec150655c06e2aec9e628422909fd5f4ce/dist/impetus.js#L413-L472", "partition": "test"} +{"repo": "chrisbateman/impetus", "path": "src/Impetus.js", "func_name": "checkBounds", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determine position relative to bounds\n@param {Boolean} restrict Whether to restrict target to bounds", "docstring_tokens": ["Determine", "position", "relative", "to", "bounds"], "sha": "ef9fefec150655c06e2aec9e628422909fd5f4ce", "url": "https://github.com/chrisbateman/impetus/blob/ef9fefec150655c06e2aec9e628422909fd5f4ce/src/Impetus.js#L338-L368", "partition": "test"} +{"repo": "aliqin/atui", "path": "build/webpack.lib.js", "func_name": "initCompDirs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get all components dirs", "docstring_tokens": ["get", "all", "components", "dirs"], "sha": "910e25b2dd8db456b5f7e47b48271c898dcb9a21", "url": "https://github.com/aliqin/atui/blob/910e25b2dd8db456b5f7e47b48271c898dcb9a21/build/webpack.lib.js#L10-L20", "partition": "test"} +{"repo": "micmro/PerfCascade", "path": "build-utils/grunt-tasks/changelog-custom.js", "func_name": "appendLogToFileStream", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Writes a log to a file\n@param {string} fileName filename/path to write to\n@param {string} newLog new Changelog entry to add\n@param {number} headerLineCount Number of lines the header occupies", "docstring_tokens": ["Writes", "a", "log", "to", "a", "file"], "sha": "de4c4ac60d2683d4820175645bc5f99164a2ace6", "url": "https://github.com/micmro/PerfCascade/blob/de4c4ac60d2683d4820175645bc5f99164a2ace6/build-utils/grunt-tasks/changelog-custom.js#L30-L48", "partition": "test"} +{"repo": "micmro/PerfCascade", "path": "src/zip/zip.js", "func_name": "doSeek", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "seek last length bytes of file for EOCDR", "docstring_tokens": ["seek", "last", "length", "bytes", "of", "file", "for", "EOCDR"], "sha": "de4c4ac60d2683d4820175645bc5f99164a2ace6", "url": "https://github.com/micmro/PerfCascade/blob/de4c4ac60d2683d4820175645bc5f99164a2ace6/src/zip/zip.js#L626-L638", "partition": "test"} +{"repo": "auth0/sandboxjs", "path": "lib/cronJob.js", "func_name": "CronJob", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates an object representing a CronJob\n\n@constructor", "docstring_tokens": ["Creates", "an", "object", "representing", "a", "CronJob"], "sha": "285d9cc995eda9c2ad76618c2805b9d126994ab4", "url": "https://github.com/auth0/sandboxjs/blob/285d9cc995eda9c2ad76618c2805b9d126994ab4/lib/cronJob.js#L15-L50", "partition": "test"} +{"repo": "auth0/sandboxjs", "path": "lib/sandbox.js", "func_name": "Sandbox", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates an object representing a user's webtask.io credentials\n\n@constructor\n@param {Object} options - Options used to configure the profile\n@param {String} options.url - The url of the webtask cluster where code will run\n@param {String} options.container - The name of the container in which code will run\n@param {String} options.token - The JWT (see: http://jwt.io) issued by webtask.io that grants rights to run code in the indicated container\n@param {String} [options.onBeforeRequest] - An array of hook functions to be invoked with a prepared request", "docstring_tokens": ["Creates", "an", "object", "representing", "a", "user", "s", "webtask", ".", "io", "credentials"], "sha": "285d9cc995eda9c2ad76618c2805b9d126994ab4", "url": "https://github.com/auth0/sandboxjs/blob/285d9cc995eda9c2ad76618c2805b9d126994ab4/lib/sandbox.js#L35-L56", "partition": "test"} +{"repo": "auth0/sandboxjs", "path": "lib/webtask.js", "func_name": "Webtask", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates an object representing a Webtask\n\n@constructor", "docstring_tokens": ["Creates", "an", "object", "representing", "a", "Webtask"], "sha": "285d9cc995eda9c2ad76618c2805b9d126994ab4", "url": "https://github.com/auth0/sandboxjs/blob/285d9cc995eda9c2ad76618c2805b9d126994ab4/lib/webtask.js#L17-L101", "partition": "test"} +{"repo": "othiym23/async-listener", "path": "index.js", "func_name": "wrappedPromise", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Updates to this class should also be applied to the the ES6 version in es6-wrapped-promise.js.", "docstring_tokens": ["Updates", "to", "this", "class", "should", "also", "be", "applied", "to", "the", "the", "ES6", "version", "in", "es6", "-", "wrapped", "-", "promise", ".", "js", "."], "sha": "01a02ee123db3d4a98e0cc5dda6f8ef82c55f81e", "url": "https://github.com/othiym23/async-listener/blob/01a02ee123db3d4a98e0cc5dda6f8ef82c55f81e/index.js#L427-L464", "partition": "test"} +{"repo": "othiym23/async-listener", "path": "glue.js", "func_name": "union", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Simple helper function that's probably faster than using Array\nfilter methods and can be inlined.", "docstring_tokens": ["Simple", "helper", "function", "that", "s", "probably", "faster", "than", "using", "Array", "filter", "methods", "and", "can", "be", "inlined", "."], "sha": "01a02ee123db3d4a98e0cc5dda6f8ef82c55f81e", "url": "https://github.com/othiym23/async-listener/blob/01a02ee123db3d4a98e0cc5dda6f8ef82c55f81e/glue.js#L60-L83", "partition": "test"} +{"repo": "othiym23/async-listener", "path": "glue.js", "func_name": "simpleWrap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "for performance in the case where there are no handlers, just the listener", "docstring_tokens": ["for", "performance", "in", "the", "case", "where", "there", "are", "no", "handlers", "just", "the", "listener"], "sha": "01a02ee123db3d4a98e0cc5dda6f8ef82c55f81e", "url": "https://github.com/othiym23/async-listener/blob/01a02ee123db3d4a98e0cc5dda6f8ef82c55f81e/glue.js#L363-L383", "partition": "test"} +{"repo": "othiym23/async-listener", "path": "glue.js", "func_name": "wrapCallback", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called each time an asynchronous function that's been monkeypatched in\nindex.js is called. If there are no listeners, return the function\nunwrapped. If there are any asyncListeners and any of them have callbacks,\npass them off to asyncWrap for later use, otherwise just call the listener.", "docstring_tokens": ["Called", "each", "time", "an", "asynchronous", "function", "that", "s", "been", "monkeypatched", "in", "index", ".", "js", "is", "called", ".", "If", "there", "are", "no", "listeners", "return", "the", "function", "unwrapped", ".", "If", "there", "are", "any", "asyncListeners", "and", "any", "of", "them", "have", "callbacks", "pass", "them", "off", "to", "asyncWrap", "for", "later", "use", "otherwise", "just", "call", "the", "listener", "."], "sha": "01a02ee123db3d4a98e0cc5dda6f8ef82c55f81e", "url": "https://github.com/othiym23/async-listener/blob/01a02ee123db3d4a98e0cc5dda6f8ef82c55f81e/glue.js#L391-L405", "partition": "test"} +{"repo": "yortus/asyncawait", "path": "comparison/largest/largest-bluebird.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Finds the largest file in the given directory, optionally performing a recursive search.\n@param {string} dir - the directory to search.\n@param {object?} options - optional settings: { recurse?: boolean; preview?: boolean }.\n@returns {object?} null if no files found, otherwise an object of the form\n{ path: string; size: number; preview?: string, searched: number; }", "docstring_tokens": ["Finds", "the", "largest", "file", "in", "the", "given", "directory", "optionally", "performing", "a", "recursive", "search", "."], "sha": "7b4f573ecc7e388a1b05fa0c454bbe5d1b0154f2", "url": "https://github.com/yortus/asyncawait/blob/7b4f573ecc7e388a1b05fa0c454bbe5d1b0154f2/comparison/largest/largest-bluebird.js#L15-L70", "partition": "test"} +{"repo": "yortus/asyncawait", "path": "src/async/makeAsyncFunc.js", "func_name": "makeAsyncFunc", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Function for creating a specific variant of the async function.", "docstring_tokens": ["Function", "for", "creating", "a", "specific", "variant", "of", "the", "async", "function", "."], "sha": "7b4f573ecc7e388a1b05fa0c454bbe5d1b0154f2", "url": "https://github.com/yortus/asyncawait/blob/7b4f573ecc7e388a1b05fa0c454bbe5d1b0154f2/src/async/makeAsyncFunc.js#L11-L31", "partition": "test"} +{"repo": "yortus/asyncawait", "path": "src/async/makeAsyncFunc.js", "func_name": "makeAsyncIterator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Function for creating iterable suspendable functions.", "docstring_tokens": ["Function", "for", "creating", "iterable", "suspendable", "functions", "."], "sha": "7b4f573ecc7e388a1b05fa0c454bbe5d1b0154f2", "url": "https://github.com/yortus/asyncawait/blob/7b4f573ecc7e388a1b05fa0c454bbe5d1b0154f2/src/async/makeAsyncFunc.js#L33-L71", "partition": "test"} +{"repo": "yortus/asyncawait", "path": "src/async/makeAsyncFunc.js", "func_name": "makeAsyncNonIterator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Function for creating non-iterable suspendable functions.", "docstring_tokens": ["Function", "for", "creating", "non", "-", "iterable", "suspendable", "functions", "."], "sha": "7b4f573ecc7e388a1b05fa0c454bbe5d1b0154f2", "url": "https://github.com/yortus/asyncawait/blob/7b4f573ecc7e388a1b05fa0c454bbe5d1b0154f2/src/async/makeAsyncFunc.js#L73-L112", "partition": "test"} +{"repo": "yortus/asyncawait", "path": "src/await/makeAwaitFunc.js", "func_name": "traverseClone", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Object traversal with cloning.", "docstring_tokens": ["Object", "traversal", "with", "cloning", "."], "sha": "7b4f573ecc7e388a1b05fa0c454bbe5d1b0154f2", "url": "https://github.com/yortus/asyncawait/blob/7b4f573ecc7e388a1b05fa0c454bbe5d1b0154f2/src/await/makeAwaitFunc.js#L90-L113", "partition": "test"} +{"repo": "yortus/asyncawait", "path": "src/await/makeAwaitFunc.js", "func_name": "thunkToPromise", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert a thunk to a promise.", "docstring_tokens": ["Convert", "a", "thunk", "to", "a", "promise", "."], "sha": "7b4f573ecc7e388a1b05fa0c454bbe5d1b0154f2", "url": "https://github.com/yortus/asyncawait/blob/7b4f573ecc7e388a1b05fa0c454bbe5d1b0154f2/src/await/makeAwaitFunc.js#L133-L138", "partition": "test"} +{"repo": "yortus/asyncawait", "path": "comparison/countFiles/countFiles-synchronous.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the number of files in the given directory.", "docstring_tokens": ["Returns", "the", "number", "of", "files", "in", "the", "given", "directory", "."], "sha": "7b4f573ecc7e388a1b05fa0c454bbe5d1b0154f2", "url": "https://github.com/yortus/asyncawait/blob/7b4f573ecc7e388a1b05fa0c454bbe5d1b0154f2/comparison/countFiles/countFiles-synchronous.js#L7-L16", "partition": "test"} +{"repo": "algolia/gatsby-plugin-algolia", "path": "gatsby-node.js", "func_name": "scopedCopyIndex", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Copy the settings, synonyms, and rules of the source index to the target index\n@param client\n@param sourceIndex\n@param targetIndex\n@return {Promise}", "docstring_tokens": ["Copy", "the", "settings", "synonyms", "and", "rules", "of", "the", "source", "index", "to", "the", "target", "index"], "sha": "8bc3959f6d23fc683fa9b7041391faaa8d831f5d", "url": "https://github.com/algolia/gatsby-plugin-algolia/blob/8bc3959f6d23fc683fa9b7041391faaa8d831f5d/gatsby-node.js#L83-L90", "partition": "test"} +{"repo": "algolia/gatsby-plugin-algolia", "path": "gatsby-node.js", "func_name": "moveIndex", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "moves the source index to the target index\n@param client\n@param sourceIndex\n@param targetIndex\n@return {Promise}", "docstring_tokens": ["moves", "the", "source", "index", "to", "the", "target", "index"], "sha": "8bc3959f6d23fc683fa9b7041391faaa8d831f5d", "url": "https://github.com/algolia/gatsby-plugin-algolia/blob/8bc3959f6d23fc683fa9b7041391faaa8d831f5d/gatsby-node.js#L99-L105", "partition": "test"} +{"repo": "algolia/gatsby-plugin-algolia", "path": "gatsby-node.js", "func_name": "indexExists", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Does an Algolia index exist already\n\n@param index", "docstring_tokens": ["Does", "an", "Algolia", "index", "exist", "already"], "sha": "8bc3959f6d23fc683fa9b7041391faaa8d831f5d", "url": "https://github.com/algolia/gatsby-plugin-algolia/blob/8bc3959f6d23fc683fa9b7041391faaa8d831f5d/gatsby-node.js#L112-L119", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "index.js", "func_name": "loadModule", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Load the given module.\n@private", "docstring_tokens": ["Load", "the", "given", "module", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/index.js#L95-L124", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/language.js", "func_name": "parseAcceptLanguage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse the Accept-Language header.\n@private", "docstring_tokens": ["Parse", "the", "Accept", "-", "Language", "header", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/language.js#L31-L46", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/language.js", "func_name": "parseLanguage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse a language from the Accept-Language header.\n@private", "docstring_tokens": ["Parse", "a", "language", "from", "the", "Accept", "-", "Language", "header", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/language.js#L53-L79", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/language.js", "func_name": "getLanguagePriority", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the priority of a language.\n@private", "docstring_tokens": ["Get", "the", "priority", "of", "a", "language", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/language.js#L86-L98", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/language.js", "func_name": "specify", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the specificity of the language.\n@private", "docstring_tokens": ["Get", "the", "specificity", "of", "the", "language", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/language.js#L105-L125", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/language.js", "func_name": "preferredLanguages", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the preferred languages from an Accept-Language header.\n@public", "docstring_tokens": ["Get", "the", "preferred", "languages", "from", "an", "Accept", "-", "Language", "header", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/language.js#L132-L152", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/language.js", "func_name": "compareSpecs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compare two specs.\n@private", "docstring_tokens": ["Compare", "two", "specs", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/language.js#L159-L161", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/charset.js", "func_name": "parseAcceptCharset", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse the Accept-Charset header.\n@private", "docstring_tokens": ["Parse", "the", "Accept", "-", "Charset", "header", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/charset.js#L31-L46", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/charset.js", "func_name": "parseCharset", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse a charset from the Accept-Charset header.\n@private", "docstring_tokens": ["Parse", "a", "charset", "from", "the", "Accept", "-", "Charset", "header", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/charset.js#L53-L75", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/charset.js", "func_name": "getCharsetPriority", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the priority of a charset.\n@private", "docstring_tokens": ["Get", "the", "priority", "of", "a", "charset", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/charset.js#L82-L94", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/charset.js", "func_name": "specify", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the specificity of the charset.\n@private", "docstring_tokens": ["Get", "the", "specificity", "of", "the", "charset", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/charset.js#L101-L115", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/charset.js", "func_name": "preferredCharsets", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the preferred charsets from an Accept-Charset header.\n@public", "docstring_tokens": ["Get", "the", "preferred", "charsets", "from", "an", "Accept", "-", "Charset", "header", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/charset.js#L122-L142", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/encoding.js", "func_name": "parseEncoding", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse an encoding from the Accept-Encoding header.\n@private", "docstring_tokens": ["Parse", "an", "encoding", "from", "the", "Accept", "-", "Encoding", "header", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/encoding.js#L69-L91", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/encoding.js", "func_name": "getEncodingPriority", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the priority of an encoding.\n@private", "docstring_tokens": ["Get", "the", "priority", "of", "an", "encoding", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/encoding.js#L98-L110", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/encoding.js", "func_name": "preferredEncodings", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the preferred encodings from an Accept-Encoding header.\n@public", "docstring_tokens": ["Get", "the", "preferred", "encodings", "from", "an", "Accept", "-", "Encoding", "header", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/encoding.js#L138-L157", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/mediaType.js", "func_name": "parseAccept", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse the Accept header.\n@private", "docstring_tokens": ["Parse", "the", "Accept", "header", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/mediaType.js#L31-L46", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/mediaType.js", "func_name": "parseMediaType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse a media type from the Accept header.\n@private", "docstring_tokens": ["Parse", "a", "media", "type", "from", "the", "Accept", "header", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/mediaType.js#L53-L92", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/mediaType.js", "func_name": "getMediaTypePriority", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the priority of a media type.\n@private", "docstring_tokens": ["Get", "the", "priority", "of", "a", "media", "type", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/mediaType.js#L99-L111", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/mediaType.js", "func_name": "specify", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the specificity of the media type.\n@private", "docstring_tokens": ["Get", "the", "specificity", "of", "the", "media", "type", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/mediaType.js#L118-L155", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/mediaType.js", "func_name": "preferredMediaTypes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the preferred media types from an Accept header.\n@public", "docstring_tokens": ["Get", "the", "preferred", "media", "types", "from", "an", "Accept", "header", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/mediaType.js#L162-L182", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/mediaType.js", "func_name": "quoteCount", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Count the number of quotes in a string.\n@private", "docstring_tokens": ["Count", "the", "number", "of", "quotes", "in", "a", "string", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/mediaType.js#L216-L226", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/mediaType.js", "func_name": "splitKeyValuePair", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Split a key value pair.\n@private", "docstring_tokens": ["Split", "a", "key", "value", "pair", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/mediaType.js#L233-L246", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/mediaType.js", "func_name": "splitMediaTypes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Split an Accept header into media types.\n@private", "docstring_tokens": ["Split", "an", "Accept", "header", "into", "media", "types", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/mediaType.js#L253-L268", "partition": "test"} +{"repo": "jshttp/negotiator", "path": "lib/mediaType.js", "func_name": "splitParameters", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Split a string of parameters.\n@private", "docstring_tokens": ["Split", "a", "string", "of", "parameters", "."], "sha": "99f418e11907b60e63f0addc09fc596ddc7be5be", "url": "https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/mediaType.js#L275-L294", "partition": "test"} +{"repo": "scup/atellier", "path": "karma.conf.js", "func_name": "loadWebpackConfig", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Loads configuration while ensuring sounce-map is enabled", "docstring_tokens": ["Loads", "configuration", "while", "ensuring", "sounce", "-", "map", "is", "enabled"], "sha": "5ad6a401d78b5625eb5293891b4741aad0149788", "url": "https://github.com/scup/atellier/blob/5ad6a401d78b5625eb5293891b4741aad0149788/karma.conf.js#L46-L57", "partition": "test"} +{"repo": "jsonmaur/namor", "path": "data/scripts/build.js", "func_name": "assign", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "assigns values to an object, creating keys in\n`keyPath` if they don't exist yet.\n@param {object} obj - The object to assign values to\n@param {array} keyPath - The path to assign in object [a,b] => obj.a.b\n@param {any} value - The value to assign to the object", "docstring_tokens": ["assigns", "values", "to", "an", "object", "creating", "keys", "in", "keyPath", "if", "they", "don", "t", "exist", "yet", "."], "sha": "428aafc9eb56d5a5b25a78ff842aab535aebbb74", "url": "https://github.com/jsonmaur/namor/blob/428aafc9eb56d5a5b25a78ff842aab535aebbb74/data/scripts/build.js#L15-L25", "partition": "test"} +{"repo": "appbaseio/reactivecore", "path": "src/utils/analytics.js", "func_name": "getFilterString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "transforms the selectedValues from store into the X-Search-Filters string for analytics", "docstring_tokens": ["transforms", "the", "selectedValues", "from", "store", "into", "the", "X", "-", "Search", "-", "Filters", "string", "for", "analytics"], "sha": "793de229c19013e5f2734d8d0b91332618aeb1ec", "url": "https://github.com/appbaseio/reactivecore/blob/793de229c19013e5f2734d8d0b91332618aeb1ec/src/utils/analytics.js#L67-L87", "partition": "test"} +{"repo": "johntitus/node-horseman", "path": "lib/actions.js", "func_name": "evaluatePage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Evaluates a function on the given page.\n@this Horseman\n@param {Page} page\n@param {function} fn\n@param {...*} [arguments]", "docstring_tokens": ["Evaluates", "a", "function", "on", "the", "given", "page", "."], "sha": "831699df1708d96c91d8010a8ee975c4d022fe0e", "url": "https://github.com/johntitus/node-horseman/blob/831699df1708d96c91d8010a8ee975c4d022fe0e/lib/actions.js#L985-L1021", "partition": "test"} +{"repo": "johntitus/node-horseman", "path": "lib/actions.js", "func_name": "waitForPage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Waits for a function to evaluate to a given value on the given page\n@param {Page | undefined} page\n@param {function | object} optsOrFn - If optsOrFn is a function, use the classic signature waitForPage(page, fn, arg1, arg2, value), If arg is an object, use waitForPage(page, options)\n@param {array} optsOrFn.args - arguments of fn\n@param {function} optsOrFn.fn - function to evaluate\n@param {*} optsOrFn.value - expected value of function\n@param {number} [optsOrFn.timeout=null] - timeout in ms\n@param {...*} [arguments]\n@param {*} value\n@emits Horseman#TimeoutError", "docstring_tokens": ["Waits", "for", "a", "function", "to", "evaluate", "to", "a", "given", "value", "on", "the", "given", "page"], "sha": "831699df1708d96c91d8010a8ee975c4d022fe0e", "url": "https://github.com/johntitus/node-horseman/blob/831699df1708d96c91d8010a8ee975c4d022fe0e/lib/actions.js#L1656-L1715", "partition": "test"} +{"repo": "johntitus/node-horseman", "path": "lib/index.js", "func_name": "Horseman", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new Horseman.\n@constructor", "docstring_tokens": ["Creates", "a", "new", "Horseman", "."], "sha": "831699df1708d96c91d8010a8ee975c4d022fe0e", "url": "https://github.com/johntitus/node-horseman/blob/831699df1708d96c91d8010a8ee975c4d022fe0e/lib/index.js#L90-L162", "partition": "test"} +{"repo": "bpostlethwaite/colormap", "path": "res/draw.js", "func_name": "getColors", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Helpers here get image colors", "docstring_tokens": ["Helpers", "here", "get", "image", "colors"], "sha": "cb22a04d23b9fd47a6663d80d44ad77594bd394a", "url": "https://github.com/bpostlethwaite/colormap/blob/cb22a04d23b9fd47a6663d80d44ad77594bd394a/res/draw.js#L116-L142", "partition": "test"} +{"repo": "bpostlethwaite/colormap", "path": "res/draw.js", "func_name": "createCubehelix", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "create colormap by rotating cubehelix", "docstring_tokens": ["create", "colormap", "by", "rotating", "cubehelix"], "sha": "cb22a04d23b9fd47a6663d80d44ad77594bd394a", "url": "https://github.com/bpostlethwaite/colormap/blob/cb22a04d23b9fd47a6663d80d44ad77594bd394a/res/draw.js#L155-L163", "partition": "test"} +{"repo": "bpostlethwaite/colormap", "path": "res/draw.js", "func_name": "toImageData", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "return imagedata from colormap", "docstring_tokens": ["return", "imagedata", "from", "colormap"], "sha": "cb22a04d23b9fd47a6663d80d44ad77594bd394a", "url": "https://github.com/bpostlethwaite/colormap/blob/cb22a04d23b9fd47a6663d80d44ad77594bd394a/res/draw.js#L166-L169", "partition": "test"} +{"repo": "bpostlethwaite/colormap", "path": "res/draw.js", "func_name": "compress", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "return interpolated imagedata with only each @factor pixel left", "docstring_tokens": ["return", "interpolated", "imagedata", "with", "only", "each"], "sha": "cb22a04d23b9fd47a6663d80d44ad77594bd394a", "url": "https://github.com/bpostlethwaite/colormap/blob/cb22a04d23b9fd47a6663d80d44ad77594bd394a/res/draw.js#L172-L183", "partition": "test"} +{"repo": "bpostlethwaite/colormap", "path": "res/draw.js", "func_name": "toColormap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "convert imagedata to colormap JSON", "docstring_tokens": ["convert", "imagedata", "to", "colormap", "JSON"], "sha": "cb22a04d23b9fd47a6663d80d44ad77594bd394a", "url": "https://github.com/bpostlethwaite/colormap/blob/cb22a04d23b9fd47a6663d80d44ad77594bd394a/res/draw.js#L186-L197", "partition": "test"} +{"repo": "phonegap/phonegap-plugin-contentsync", "path": "src/windows/SyncProxy.js", "func_name": "startDownload", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "this can throw exceptions, callers responsibility", "docstring_tokens": ["this", "can", "throw", "exceptions", "callers", "responsibility"], "sha": "2e4a40732fc444185033cfa711f0bd779413cbcf", "url": "https://github.com/phonegap/phonegap-plugin-contentsync/blob/2e4a40732fc444185033cfa711f0bd779413cbcf/src/windows/SyncProxy.js#L38-L43", "partition": "test"} +{"repo": "phonegap/phonegap-plugin-contentsync", "path": "www/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "ContentSync constructor.\n\n@param {Object} options to initiate a new content synchronization.\n@param {String} src is a URL to the content sync end-point.\n@param {String} id is used as a unique identifier for the sync operation\n@param {Object} type defines the sync strategy applied to the content.\n@param {String} replace completely removes existing content then copies new content.\n@param {String} merge does not modify existing content, but adds new content.\n@param {Object} headers are used to set the headers for when we send a request to the src URL\n@param {Boolean} validateSrc whether to validate src url with a HEAD request before download (ios only, default true).\n@return {ContentSync} instance that can be monitored and cancelled.", "docstring_tokens": ["ContentSync", "constructor", "."], "sha": "2e4a40732fc444185033cfa711f0bd779413cbcf", "url": "https://github.com/phonegap/phonegap-plugin-contentsync/blob/2e4a40732fc444185033cfa711f0bd779413cbcf/www/index.js#L23-L111", "partition": "test"} +{"repo": "tjmehta/coworkers", "path": "lib/rabbit-utils/create-app-channel.js", "func_name": "createAppChannel", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create consumer or publisher RabbitMQ channel\n@param {String} key channel key {consumer, publisher}\n@return {Promise} channel promise", "docstring_tokens": ["Create", "consumer", "or", "publisher", "RabbitMQ", "channel"], "sha": "358049d2e77e9bfe4eab4ebf384ccb7cade9f11b", "url": "https://github.com/tjmehta/coworkers/blob/358049d2e77e9bfe4eab4ebf384ccb7cade9f11b/lib/rabbit-utils/create-app-channel.js#L20-L55", "partition": "test"} +{"repo": "tjmehta/coworkers", "path": "lib/rabbit-utils/create-app-channel.js", "func_name": "errorHandler", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "channel error handler", "docstring_tokens": ["channel", "error", "handler"], "sha": "358049d2e77e9bfe4eab4ebf384ccb7cade9f11b", "url": "https://github.com/tjmehta/coworkers/blob/358049d2e77e9bfe4eab4ebf384ccb7cade9f11b/lib/rabbit-utils/create-app-channel.js#L71-L80", "partition": "test"} +{"repo": "tjmehta/coworkers", "path": "lib/rabbit-utils/create-app-connection.js", "func_name": "createAppConnection", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a RabbitMQ connection\n@param {Application} app coworkers application\n@param {String} url connection url\n@param {Object} [socketOptions] connection socket options\n@return {Promise} connection promise", "docstring_tokens": ["Create", "a", "RabbitMQ", "connection"], "sha": "358049d2e77e9bfe4eab4ebf384ccb7cade9f11b", "url": "https://github.com/tjmehta/coworkers/blob/358049d2e77e9bfe4eab4ebf384ccb7cade9f11b/lib/rabbit-utils/create-app-connection.js#L22-L38", "partition": "test"} +{"repo": "tjmehta/coworkers", "path": "lib/rabbit-utils/create-app-connection.js", "func_name": "errorHandler", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "connection error handler", "docstring_tokens": ["connection", "error", "handler"], "sha": "358049d2e77e9bfe4eab4ebf384ccb7cade9f11b", "url": "https://github.com/tjmehta/coworkers/blob/358049d2e77e9bfe4eab4ebf384ccb7cade9f11b/lib/rabbit-utils/create-app-connection.js#L52-L60", "partition": "test"} +{"repo": "tjmehta/coworkers", "path": "lib/application.js", "func_name": "Application", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize a new `Application` inherits from EventEmitter\n@constructor\n@param {Object|RabbitSchema} [options|schema] coworkers application options or rabbitmq schema\n@param {RabbitSchema} [options.schema] a RabbitMQ schema created by https://npmjs.com/rabbitmq-schema, optional\n@param {Boolean} [options.cluster] whether to use clustering or not\n@param {String} [options.queueName] queue name which this application is consuming\n@api public", "docstring_tokens": ["Initialize", "a", "new", "Application", "inherits", "from", "EventEmitter"], "sha": "358049d2e77e9bfe4eab4ebf384ccb7cade9f11b", "url": "https://github.com/tjmehta/coworkers/blob/358049d2e77e9bfe4eab4ebf384ccb7cade9f11b/lib/application.js#L41-L92", "partition": "test"} +{"repo": "tjmehta/coworkers", "path": "lib/rabbit-utils/assert-and-consume-app-queue.js", "func_name": "assertAndConsumeAppQueue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Start consuming message from app's queues\n@param {Application} app coworkers instance\n@param {String} queueName app queue's name\n@return {Promise} consume promise (yields consumer tag)", "docstring_tokens": ["Start", "consuming", "message", "from", "app", "s", "queues"], "sha": "358049d2e77e9bfe4eab4ebf384ccb7cade9f11b", "url": "https://github.com/tjmehta/coworkers/blob/358049d2e77e9bfe4eab4ebf384ccb7cade9f11b/lib/rabbit-utils/assert-and-consume-app-queue.js#L13-L24", "partition": "test"} +{"repo": "ipfs/js-datastore-core", "path": "src/shard.js", "func_name": "parseShardFun", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert a given string to the matching sharding function.\n\n@param {string} str\n@returns {ShardV1}", "docstring_tokens": ["Convert", "a", "given", "string", "to", "the", "matching", "sharding", "function", "."], "sha": "60de9e4f61f96503bbe589a42755ee9b24f961d0", "url": "https://github.com/ipfs/js-datastore-core/blob/60de9e4f61f96503bbe589a42755ee9b24f961d0/src/shard.js#L87-L123", "partition": "test"} +{"repo": "DylanPiercey/set-dom", "path": "src/index.js", "func_name": "isEqualNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks if nodes are equal using the following by checking if\nthey are both ignored, have the same checksum, or have the\nsame contents.\n\n@param {Node} a - One of the nodes to compare.\n@param {Node} b - Another node to compare.", "docstring_tokens": ["Checks", "if", "nodes", "are", "equal", "using", "the", "following", "by", "checking", "if", "they", "are", "both", "ignored", "have", "the", "same", "checksum", "or", "have", "the", "same", "contents", "."], "sha": "846b9337246e3b06e6b41b228beeea21e66d0b03", "url": "https://github.com/DylanPiercey/set-dom/blob/846b9337246e3b06e6b41b228beeea21e66d0b03/src/index.js#L228-L237", "partition": "test"} +{"repo": "DylanPiercey/set-dom", "path": "src/index.js", "func_name": "dispatch", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recursively trigger an event for a node and it's children.\nOnly emits events for keyed nodes.\n\n@param {Node} node - the initial node.\n@return {Node}", "docstring_tokens": ["Recursively", "trigger", "an", "event", "for", "a", "node", "and", "it", "s", "children", ".", "Only", "emits", "events", "for", "keyed", "nodes", "."], "sha": "846b9337246e3b06e6b41b228beeea21e66d0b03", "url": "https://github.com/DylanPiercey/set-dom/blob/846b9337246e3b06e6b41b228beeea21e66d0b03/src/index.js#L292-L307", "partition": "test"} +{"repo": "libp2p/js-libp2p-websocket-star-rendezvous", "path": "src/routes.js", "func_name": "join", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "join this signaling server network", "docstring_tokens": ["join", "this", "signaling", "server", "network"], "sha": "78cdf22892aede27a705363352fa86e819d9e950", "url": "https://github.com/libp2p/js-libp2p-websocket-star-rendezvous/blob/78cdf22892aede27a705363352fa86e819d9e950/src/routes.js#L68-L126", "partition": "test"} +{"repo": "bootprint/bootprint-json-schema", "path": "handlebars/helpers.js", "func_name": "dataType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a descriptive string for a datatype\n@param value\n@returns {String} a string like string[] or object[][]", "docstring_tokens": ["Returns", "a", "descriptive", "string", "for", "a", "datatype"], "sha": "4c2f990ebd48a2bba924dc93bbf008e1328d071f", "url": "https://github.com/bootprint/bootprint-json-schema/blob/4c2f990ebd48a2bba924dc93bbf008e1328d071f/handlebars/helpers.js#L93-L105", "partition": "test"} +{"repo": "mysticatea/event-target-shim", "path": "dist/event-target-shim.js", "func_name": "pd", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get private data.\n@param {Event} event The event object to get private data.\n@returns {PrivateData} The private data of the event.\n@private", "docstring_tokens": ["Get", "private", "data", "."], "sha": "89a7c7cb62971c45ae566a47f42436af923011b9", "url": "https://github.com/mysticatea/event-target-shim/blob/89a7c7cb62971c45ae566a47f42436af923011b9/dist/event-target-shim.js#L44-L52", "partition": "test"} +{"repo": "mysticatea/event-target-shim", "path": "dist/event-target-shim.js", "func_name": "defineRedirectDescriptor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the property descriptor to redirect a given property.\n@param {string} key Property name to define property descriptor.\n@returns {PropertyDescriptor} The property descriptor to redirect the property.\n@private", "docstring_tokens": ["Get", "the", "property", "descriptor", "to", "redirect", "a", "given", "property", "."], "sha": "89a7c7cb62971c45ae566a47f42436af923011b9", "url": "https://github.com/mysticatea/event-target-shim/blob/89a7c7cb62971c45ae566a47f42436af923011b9/dist/event-target-shim.js#L345-L356", "partition": "test"} +{"repo": "mysticatea/event-target-shim", "path": "dist/event-target-shim.js", "func_name": "defineCallDescriptor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the property descriptor to call a given method property.\n@param {string} key Property name to define property descriptor.\n@returns {PropertyDescriptor} The property descriptor to call the method property.\n@private", "docstring_tokens": ["Get", "the", "property", "descriptor", "to", "call", "a", "given", "method", "property", "."], "sha": "89a7c7cb62971c45ae566a47f42436af923011b9", "url": "https://github.com/mysticatea/event-target-shim/blob/89a7c7cb62971c45ae566a47f42436af923011b9/dist/event-target-shim.js#L364-L373", "partition": "test"} +{"repo": "mysticatea/event-target-shim", "path": "dist/event-target-shim.js", "func_name": "defineWrapper", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Define new wrapper class.\n@param {Function} BaseEvent The base wrapper class.\n@param {Object} proto The prototype of the original event.\n@returns {Function} The defined wrapper class.\n@private", "docstring_tokens": ["Define", "new", "wrapper", "class", "."], "sha": "89a7c7cb62971c45ae566a47f42436af923011b9", "url": "https://github.com/mysticatea/event-target-shim/blob/89a7c7cb62971c45ae566a47f42436af923011b9/dist/event-target-shim.js#L382-L414", "partition": "test"} +{"repo": "mysticatea/event-target-shim", "path": "dist/event-target-shim.js", "func_name": "getWrapper", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the wrapper class of a given prototype.\n@param {Object} proto The prototype of the original event to get its wrapper.\n@returns {Function} The wrapper class.\n@private", "docstring_tokens": ["Get", "the", "wrapper", "class", "of", "a", "given", "prototype", "."], "sha": "89a7c7cb62971c45ae566a47f42436af923011b9", "url": "https://github.com/mysticatea/event-target-shim/blob/89a7c7cb62971c45ae566a47f42436af923011b9/dist/event-target-shim.js#L422-L433", "partition": "test"} +{"repo": "mysticatea/event-target-shim", "path": "dist/event-target-shim.js", "func_name": "wrapEvent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wrap a given event to management a dispatching.\n@param {EventTarget} eventTarget The event target of this dispatching.\n@param {Object} event The event to wrap.\n@returns {Event} The wrapper instance.\n@private", "docstring_tokens": ["Wrap", "a", "given", "event", "to", "management", "a", "dispatching", "."], "sha": "89a7c7cb62971c45ae566a47f42436af923011b9", "url": "https://github.com/mysticatea/event-target-shim/blob/89a7c7cb62971c45ae566a47f42436af923011b9/dist/event-target-shim.js#L442-L445", "partition": "test"} +{"repo": "mysticatea/event-target-shim", "path": "dist/event-target-shim.js", "func_name": "getListeners", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get listeners.\n@param {EventTarget} eventTarget The event target to get.\n@returns {Map} The listeners.\n@private", "docstring_tokens": ["Get", "listeners", "."], "sha": "89a7c7cb62971c45ae566a47f42436af923011b9", "url": "https://github.com/mysticatea/event-target-shim/blob/89a7c7cb62971c45ae566a47f42436af923011b9/dist/event-target-shim.js#L526-L534", "partition": "test"} +{"repo": "mysticatea/event-target-shim", "path": "dist/event-target-shim.js", "func_name": "defineEventAttributeDescriptor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the property descriptor for the event attribute of a given event.\n@param {string} eventName The event name to get property descriptor.\n@returns {PropertyDescriptor} The property descriptor.\n@private", "docstring_tokens": ["Get", "the", "property", "descriptor", "for", "the", "event", "attribute", "of", "a", "given", "event", "."], "sha": "89a7c7cb62971c45ae566a47f42436af923011b9", "url": "https://github.com/mysticatea/event-target-shim/blob/89a7c7cb62971c45ae566a47f42436af923011b9/dist/event-target-shim.js#L542-L601", "partition": "test"} +{"repo": "mysticatea/event-target-shim", "path": "dist/event-target-shim.js", "func_name": "defineCustomEventTarget", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Define a custom EventTarget with event attributes.\n@param {string[]} eventNames Event names for event attributes.\n@returns {EventTarget} The custom EventTarget.\n@private", "docstring_tokens": ["Define", "a", "custom", "EventTarget", "with", "event", "attributes", "."], "sha": "89a7c7cb62971c45ae566a47f42436af923011b9", "url": "https://github.com/mysticatea/event-target-shim/blob/89a7c7cb62971c45ae566a47f42436af923011b9/dist/event-target-shim.js#L623-L642", "partition": "test"} +{"repo": "lyfeyaj/qn-webpack", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Perform upload to qiniu", "docstring_tokens": ["Perform", "upload", "to", "qiniu"], "sha": "46d262f6235caa894198d73fcf926306e29ddd72", "url": "https://github.com/lyfeyaj/qn-webpack/blob/46d262f6235caa894198d73fcf926306e29ddd72/index.js#L106-L137", "partition": "test"} +{"repo": "lyfeyaj/qn-webpack", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retry all failed files one by one", "docstring_tokens": ["Retry", "all", "failed", "files", "one", "by", "one"], "sha": "46d262f6235caa894198d73fcf926306e29ddd72", "url": "https://github.com/lyfeyaj/qn-webpack/blob/46d262f6235caa894198d73fcf926306e29ddd72/index.js#L140-L168", "partition": "test"} +{"repo": "taataa/tapspace", "path": "lib/Touchable/Sensor.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Mouse support No hover support.", "docstring_tokens": ["Mouse", "support", "No", "hover", "support", "."], "sha": "7ad0ecf4e410d8b761c0a843f34aac97f08e6eb3", "url": "https://github.com/taataa/tapspace/blob/7ad0ecf4e410d8b761c0a843f34aac97f08e6eb3/lib/Touchable/Sensor.js#L143-L165", "partition": "test"} +{"repo": "travisjeffery/mocha-teamcity-reporter", "path": "lib/teamcityBrowser.js", "func_name": "teamcity", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize a new `Teamcity` reporter for the browser.\n\n@param {Runner} runner\n@param {options} options\n@api public", "docstring_tokens": ["Initialize", "a", "new", "Teamcity", "reporter", "for", "the", "browser", "."], "sha": "7d7f185a648d4fc6f6f329e9b660c5abad9eda5c", "url": "https://github.com/travisjeffery/mocha-teamcity-reporter/blob/7d7f185a648d4fc6f6f329e9b660c5abad9eda5c/lib/teamcityBrowser.js#L41-L76", "partition": "test"} +{"repo": "mongodb-js/mongodb-extjson", "path": "lib/bson/binary.js", "func_name": "convert", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Module dependencies.\n@ignore", "docstring_tokens": ["Module", "dependencies", "."], "sha": "d60c810266dcaa31e124a87a7224567c8330ea62", "url": "https://github.com/mongodb-js/mongodb-extjson/blob/d60c810266dcaa31e124a87a7224567c8330ea62/lib/bson/binary.js#L7-L10", "partition": "test"} +{"repo": "mongodb-js/mongodb-extjson", "path": "lib/ext_json.js", "func_name": "parse", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse an Extended JSON string, constructing the JavaScript value or object described by that\nstring.\n\n@param {string} text\n@param {object} [options] Optional settings\n@param {boolean} [options.relaxed=true] Attempt to return native JS types where possible, rather than BSON types (if true)\n@return {object}\n\n@example\nconst EJSON = require('mongodb-extjson');\nconst text = '{ \"int32\": { \"$numberInt\": \"10\" } }';\n\n// prints { int32: { [String: '10'] _bsontype: 'Int32', value: '10' } }\nconsole.log(EJSON.parse(text, { relaxed: false }));\n\n// prints { int32: 10 }\nconsole.log(EJSON.parse(text));", "docstring_tokens": ["Parse", "an", "Extended", "JSON", "string", "constructing", "the", "JavaScript", "value", "or", "object", "described", "by", "that", "string", "."], "sha": "d60c810266dcaa31e124a87a7224567c8330ea62", "url": "https://github.com/mongodb-js/mongodb-extjson/blob/d60c810266dcaa31e124a87a7224567c8330ea62/lib/ext_json.js#L131-L139", "partition": "test"} +{"repo": "mongodb-js/mongodb-extjson", "path": "lib/ext_json.js", "func_name": "stringify", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Converts a BSON document to an Extended JSON string, optionally replacing values if a replacer\nfunction is specified or optionally including only the specified properties if a replacer array\nis specified.\n\n@param {object} value The value to convert to extended JSON\n@param {function|array} [replacer] A function that alters the behavior of the stringification process, or an array of String and Number objects that serve as a whitelist for selecting/filtering the properties of the value object to be included in the JSON string. If this value is null or not provided, all properties of the object are included in the resulting JSON string\n@param {string|number} [space] A String or Number object that's used to insert white space into the output JSON string for readability purposes.\n@param {object} [options] Optional settings\n@param {boolean} [options.relaxed=true] Enabled Extended JSON's `relaxed` mode\n@returns {string}\n\n@example\nconst EJSON = require('mongodb-extjson');\nconst Int32 = require('mongodb').Int32;\nconst doc = { int32: new Int32(10) };\n\n// prints '{\"int32\":{\"$numberInt\":\"10\"}}'\nconsole.log(EJSON.stringify(doc, { relaxed: false }));\n\n// prints '{\"int32\":10}'\nconsole.log(EJSON.stringify(doc));", "docstring_tokens": ["Converts", "a", "BSON", "document", "to", "an", "Extended", "JSON", "string", "optionally", "replacing", "values", "if", "a", "replacer", "function", "is", "specified", "or", "optionally", "including", "only", "the", "specified", "properties", "if", "a", "replacer", "array", "is", "specified", "."], "sha": "d60c810266dcaa31e124a87a7224567c8330ea62", "url": "https://github.com/mongodb-js/mongodb-extjson/blob/d60c810266dcaa31e124a87a7224567c8330ea62/lib/ext_json.js#L174-L185", "partition": "test"} +{"repo": "mongodb-js/mongodb-extjson", "path": "lib/ext_json.js", "func_name": "serialize", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Serializes an object to an Extended JSON string, and reparse it as a JavaScript object.\n\n@param {object} bson The object to serialize\n@param {object} [options] Optional settings passed to the `stringify` function\n@return {object}", "docstring_tokens": ["Serializes", "an", "object", "to", "an", "Extended", "JSON", "string", "and", "reparse", "it", "as", "a", "JavaScript", "object", "."], "sha": "d60c810266dcaa31e124a87a7224567c8330ea62", "url": "https://github.com/mongodb-js/mongodb-extjson/blob/d60c810266dcaa31e124a87a7224567c8330ea62/lib/ext_json.js#L194-L197", "partition": "test"} +{"repo": "donejs/done-component", "path": "component.js", "func_name": "makeDefineVirtualModule", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Make functions that will define virtual modules", "docstring_tokens": ["Make", "functions", "that", "will", "define", "virtual", "modules"], "sha": "8ba12f3ea84629d0a3bc81660eeda199b9bb9c70", "url": "https://github.com/donejs/done-component/blob/8ba12f3ea84629d0a3bc81660eeda199b9bb9c70/component.js#L156-L242", "partition": "test"} +{"repo": "donejs/done-component", "path": "component.js", "func_name": "getFilename", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "!steal-remove-start", "docstring_tokens": ["!steal", "-", "remove", "-", "start"], "sha": "8ba12f3ea84629d0a3bc81660eeda199b9bb9c70", "url": "https://github.com/donejs/done-component/blob/8ba12f3ea84629d0a3bc81660eeda199b9bb9c70/component.js#L259-L264", "partition": "test"} +{"repo": "multiformats/js-multistream-select", "path": "src/listener/match-semver.js", "func_name": "matchSemver", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Match protocols using semver `~` matching.\n\n@param {string} myProtocol\n@param {string} senderProtocol\n@param {function(Error, boolean)} callback\n@returns {undefined}\n@type {matchHandler}", "docstring_tokens": ["Match", "protocols", "using", "semver", "~", "matching", "."], "sha": "9854a1de5f44249a5d75a193f9033b4067403142", "url": "https://github.com/multiformats/js-multistream-select/blob/9854a1de5f44249a5d75a193f9033b4067403142/src/listener/match-semver.js#L14-L30", "partition": "test"} +{"repo": "multiformats/js-multistream-select", "path": "src/listener/match-exact.js", "func_name": "matchExact", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Match protocols exactly.\n\n@param {string} myProtocol\n@param {string} senderProtocol\n@param {function(Error, boolean)} callback\n@returns {undefined}\n@type {matchHandler}", "docstring_tokens": ["Match", "protocols", "exactly", "."], "sha": "9854a1de5f44249a5d75a193f9033b4067403142", "url": "https://github.com/multiformats/js-multistream-select/blob/9854a1de5f44249a5d75a193f9033b4067403142/src/listener/match-exact.js#L12-L15", "partition": "test"} +{"repo": "arusahni/ngtweet", "path": "dist/ngtweet.js", "func_name": "diffArrays", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Diff two arrays.\n@param {Array} arr1 - The first array\n@param {Array} arr2 - The second array\n@return {boolean} true if the arrays are different, false otherwise", "docstring_tokens": ["Diff", "two", "arrays", "."], "sha": "60e19c174be0f868193568858ad8172def50d5fa", "url": "https://github.com/arusahni/ngtweet/blob/60e19c174be0f868193568858ad8172def50d5fa/dist/ngtweet.js#L116-L129", "partition": "test"} +{"repo": "arusahni/ngtweet", "path": "dist/ngtweet.js", "func_name": "getSourceRuleString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Turn the rules for a sourceType into a human-readable string\n@param {string[][]} sourceRule - The sourceType rules\n@return {string} the readable rules", "docstring_tokens": ["Turn", "the", "rules", "for", "a", "sourceType", "into", "a", "human", "-", "readable", "string"], "sha": "60e19c174be0f868193568858ad8172def50d5fa", "url": "https://github.com/arusahni/ngtweet/blob/60e19c174be0f868193568858ad8172def50d5fa/dist/ngtweet.js#L136-L145", "partition": "test"} +{"repo": "arusahni/ngtweet", "path": "dist/ngtweet.js", "func_name": "getTimelineArgs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the arguments for the timeline based on parameter rules\n@param {Object} scope - The directive scope\n@return {Object} Key-Value arg object", "docstring_tokens": ["Get", "the", "arguments", "for", "the", "timeline", "based", "on", "parameter", "rules"], "sha": "60e19c174be0f868193568858ad8172def50d5fa", "url": "https://github.com/arusahni/ngtweet/blob/60e19c174be0f868193568858ad8172def50d5fa/dist/ngtweet.js#L152-L181", "partition": "test"} +{"repo": "genify/toolkit2", "path": "lib/util/klass.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "find method in klass prototype chain", "docstring_tokens": ["find", "method", "in", "klass", "prototype", "chain"], "sha": "bb40480731f363327e055f7120d3fd6de6336cda", "url": "https://github.com/genify/toolkit2/blob/bb40480731f363327e055f7120d3fd6de6336cda/lib/util/klass.js#L8-L28", "partition": "test"} +{"repo": "genify/toolkit2", "path": "lib/cache.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "dump files to temporary directory\n@param {Object} config - config object\n@return {Void}", "docstring_tokens": ["dump", "files", "to", "temporary", "directory"], "sha": "bb40480731f363327e055f7120d3fd6de6336cda", "url": "https://github.com/genify/toolkit2/blob/bb40480731f363327e055f7120d3fd6de6336cda/lib/cache.js#L17-L60", "partition": "test"} +{"repo": "genify/toolkit2", "path": "lib/cache.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "zip files package\n@param {Object} config - config object\n@return {Void}", "docstring_tokens": ["zip", "files", "package"], "sha": "bb40480731f363327e055f7120d3fd6de6336cda", "url": "https://github.com/genify/toolkit2/blob/bb40480731f363327e055f7120d3fd6de6336cda/lib/cache.js#L66-L89", "partition": "test"} +{"repo": "genify/toolkit2", "path": "lib/cache.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "upload package to web cache server\n@param {Object} config - config object\n@return {Void}", "docstring_tokens": ["upload", "package", "to", "web", "cache", "server"], "sha": "bb40480731f363327e055f7120d3fd6de6336cda", "url": "https://github.com/genify/toolkit2/blob/bb40480731f363327e055f7120d3fd6de6336cda/lib/cache.js#L95-L158", "partition": "test"} +{"repo": "genify/toolkit2", "path": "lib/cache.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "clear temporary infomation\n@param {Object} config - config object\n@return {Void}", "docstring_tokens": ["clear", "temporary", "infomation"], "sha": "bb40480731f363327e055f7120d3fd6de6336cda", "url": "https://github.com/genify/toolkit2/blob/bb40480731f363327e055f7120d3fd6de6336cda/lib/cache.js#L164-L168", "partition": "test"} +{"repo": "genify/toolkit2", "path": "lib/cache.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "abort process when error\n@param {Object} config - config object\n@return {Void}", "docstring_tokens": ["abort", "process", "when", "error"], "sha": "bb40480731f363327e055f7120d3fd6de6336cda", "url": "https://github.com/genify/toolkit2/blob/bb40480731f363327e055f7120d3fd6de6336cda/lib/cache.js#L174-L179", "partition": "test"} +{"repo": "genify/toolkit2", "path": "lib/script/nej/util.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "dump dependency config", "docstring_tokens": ["dump", "dependency", "config"], "sha": "bb40480731f363327e055f7120d3fd6de6336cda", "url": "https://github.com/genify/toolkit2/blob/bb40480731f363327e055f7120d3fd6de6336cda/lib/script/nej/util.js#L209-L224", "partition": "test"} +{"repo": "genify/toolkit2", "path": "lib/script/nej/util.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "parse nej patch", "docstring_tokens": ["parse", "nej", "patch"], "sha": "bb40480731f363327e055f7120d3fd6de6336cda", "url": "https://github.com/genify/toolkit2/blob/bb40480731f363327e055f7120d3fd6de6336cda/lib/script/nej/util.js#L304-L321", "partition": "test"} +{"repo": "genify/toolkit2", "path": "lib/script/nej/util.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "eval content to dump nej patch", "docstring_tokens": ["eval", "content", "to", "dump", "nej", "patch"], "sha": "bb40480731f363327e055f7120d3fd6de6336cda", "url": "https://github.com/genify/toolkit2/blob/bb40480731f363327e055f7120d3fd6de6336cda/lib/script/nej/util.js#L323-L340", "partition": "test"} +{"repo": "genify/toolkit2", "path": "lib/script/nej/util.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "do nej define", "docstring_tokens": ["do", "nej", "define"], "sha": "bb40480731f363327e055f7120d3fd6de6336cda", "url": "https://github.com/genify/toolkit2/blob/bb40480731f363327e055f7120d3fd6de6336cda/lib/script/nej/util.js#L359-L366", "partition": "test"} +{"repo": "genify/toolkit2", "path": "lib/explorer/html.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "check all html file", "docstring_tokens": ["check", "all", "html", "file"], "sha": "bb40480731f363327e055f7120d3fd6de6336cda", "url": "https://github.com/genify/toolkit2/blob/bb40480731f363327e055f7120d3fd6de6336cda/lib/explorer/html.js#L70-L78", "partition": "test"} +{"repo": "genify/toolkit2", "path": "lib/meta/html.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "source map file path", "docstring_tokens": ["source", "map", "file", "path"], "sha": "bb40480731f363327e055f7120d3fd6de6336cda", "url": "https://github.com/genify/toolkit2/blob/bb40480731f363327e055f7120d3fd6de6336cda/lib/meta/html.js#L108-L114", "partition": "test"} +{"repo": "genify/toolkit2", "path": "lib/meta/html.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "nej module root", "docstring_tokens": ["nej", "module", "root"], "sha": "bb40480731f363327e055f7120d3fd6de6336cda", "url": "https://github.com/genify/toolkit2/blob/bb40480731f363327e055f7120d3fd6de6336cda/lib/meta/html.js#L127-L137", "partition": "test"} +{"repo": "genify/toolkit2", "path": "lib/meta/html.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "html path adjust", "docstring_tokens": ["html", "path", "adjust"], "sha": "bb40480731f363327e055f7120d3fd6de6336cda", "url": "https://github.com/genify/toolkit2/blob/bb40480731f363327e055f7120d3fd6de6336cda/lib/meta/html.js#L143-L150", "partition": "test"} +{"repo": "genify/toolkit2", "path": "main.js", "func_name": "global", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "export klass or api", "docstring_tokens": ["export", "klass", "or", "api"], "sha": "bb40480731f363327e055f7120d3fd6de6336cda", "url": "https://github.com/genify/toolkit2/blob/bb40480731f363327e055f7120d3fd6de6336cda/main.js#L53-L74", "partition": "test"} +{"repo": "bigeasy/strata", "path": "benchmark/murmur3.js", "func_name": "fmix32", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "We don't use `>>> 0`. We let the values negate. The only use of addition in Murmur uses the result of a multiplication, which will be converted to unsigned integer by our 16-bit at a time multiplication.", "docstring_tokens": ["We", "don", "t", "use", ">>>", "0", ".", "We", "let", "the", "values", "negate", ".", "The", "only", "use", "of", "addition", "in", "Murmur", "uses", "the", "result", "of", "a", "multiplication", "which", "will", "be", "converted", "to", "unsigned", "integer", "by", "our", "16", "-", "bit", "at", "a", "time", "multiplication", "."], "sha": "76bc8cc38de0fc7eb7fad3c0c59dbe4d253ed35a", "url": "https://github.com/bigeasy/strata/blob/76bc8cc38de0fc7eb7fad3c0c59dbe4d253ed35a/benchmark/murmur3.js#L19-L26", "partition": "test"} +{"repo": "bigeasy/strata", "path": "benchmark/murmur3.js", "func_name": "fmix32_pure", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "With this, unused, function we always make sure we have an unsigned integer value, but it's not absolutely necessary. We're only interested in the integer value when we perform addition or write the value to our buffer. We do not do this within Murmur's mix function. I'm leaving it in place for a benchmark where I can gauge the cost of `>>> 0`.", "docstring_tokens": ["With", "this", "unused", "function", "we", "always", "make", "sure", "we", "have", "an", "unsigned", "integer", "value", "but", "it", "s", "not", "absolutely", "necessary", ".", "We", "re", "only", "interested", "in", "the", "integer", "value", "when", "we", "perform", "addition", "or", "write", "the", "value", "to", "our", "buffer", ".", "We", "do", "not", "do", "this", "within", "Murmur", "s", "mix", "function", ".", "I", "m", "leaving", "it", "in", "place", "for", "a", "benchmark", "where", "I", "can", "gauge", "the", "cost", "of", ">>>", "0", "."], "sha": "76bc8cc38de0fc7eb7fad3c0c59dbe4d253ed35a", "url": "https://github.com/bigeasy/strata/blob/76bc8cc38de0fc7eb7fad3c0c59dbe4d253ed35a/benchmark/murmur3.js#L34-L41", "partition": "test"} +{"repo": "daliwali/simulacra", "path": "lib/bind_keys.js", "func_name": "bindKeys", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Define getters & setters. This function is the internal entry point to a lot\nof functionality.\n\n@param {*} [scope]\n@param {Object} obj\n@param {Object} def\n@param {Node} parentNode - This is not the same as\n`Node.prototype.parentNode`, this is the internal parent node if the key\nwas bound to its parent.\n@param {Array} path", "docstring_tokens": ["Define", "getters", "&", "setters", ".", "This", "function", "is", "the", "internal", "entry", "point", "to", "a", "lot", "of", "functionality", "."], "sha": "b6bb7e2486f7722101f9e416ec345d49f3afa901", "url": "https://github.com/daliwali/simulacra/blob/b6bb7e2486f7722101f9e416ec345d49f3afa901/lib/bind_keys.js#L37-L75", "partition": "test"} +{"repo": "daliwali/simulacra", "path": "lib/bind_keys.js", "func_name": "parentSetter", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Special case for binding same node as parent.", "docstring_tokens": ["Special", "case", "for", "binding", "same", "node", "as", "parent", "."], "sha": "b6bb7e2486f7722101f9e416ec345d49f3afa901", "url": "https://github.com/daliwali/simulacra/blob/b6bb7e2486f7722101f9e416ec345d49f3afa901/lib/bind_keys.js#L110-L133", "partition": "test"} +{"repo": "daliwali/simulacra", "path": "lib/bind_keys.js", "func_name": "replaceNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The return value of this function is a Node to be added, otherwise null.", "docstring_tokens": ["The", "return", "value", "of", "this", "function", "is", "a", "Node", "to", "be", "added", "otherwise", "null", "."], "sha": "b6bb7e2486f7722101f9e416ec345d49f3afa901", "url": "https://github.com/daliwali/simulacra/blob/b6bb7e2486f7722101f9e416ec345d49f3afa901/lib/bind_keys.js#L244-L302", "partition": "test"} +{"repo": "daliwali/simulacra", "path": "lib/bind_keys.js", "func_name": "pop", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Below are optimized array mutator methods. They have to exist within this closure. Note that the native implementations of these methods do not trigger setter functions on array indices.", "docstring_tokens": ["Below", "are", "optimized", "array", "mutator", "methods", ".", "They", "have", "to", "exist", "within", "this", "closure", ".", "Note", "that", "the", "native", "implementations", "of", "these", "methods", "do", "not", "trigger", "setter", "functions", "on", "array", "indices", "."], "sha": "b6bb7e2486f7722101f9e416ec345d49f3afa901", "url": "https://github.com/daliwali/simulacra/blob/b6bb7e2486f7722101f9e416ec345d49f3afa901/lib/bind_keys.js#L309-L318", "partition": "test"} +{"repo": "daliwali/simulacra", "path": "lib/bind_keys.js", "func_name": "changeValue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Default behavior when a return value is given for a change function.", "docstring_tokens": ["Default", "behavior", "when", "a", "return", "value", "is", "given", "for", "a", "change", "function", "."], "sha": "b6bb7e2486f7722101f9e416ec345d49f3afa901", "url": "https://github.com/daliwali/simulacra/blob/b6bb7e2486f7722101f9e416ec345d49f3afa901/lib/bind_keys.js#L426-L448", "partition": "test"} +{"repo": "daliwali/simulacra", "path": "lib/bind_keys.js", "func_name": "getNextNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find next node in a potentially sparse array.", "docstring_tokens": ["Find", "next", "node", "in", "a", "potentially", "sparse", "array", "."], "sha": "b6bb7e2486f7722101f9e416ec345d49f3afa901", "url": "https://github.com/daliwali/simulacra/blob/b6bb7e2486f7722101f9e416ec345d49f3afa901/lib/bind_keys.js#L452-L462", "partition": "test"} +{"repo": "daliwali/simulacra", "path": "lib/bind_keys.js", "func_name": "updateChange", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal event listener to update data on input change.", "docstring_tokens": ["Internal", "event", "listener", "to", "update", "data", "on", "input", "change", "."], "sha": "b6bb7e2486f7722101f9e416ec345d49f3afa901", "url": "https://github.com/daliwali/simulacra/blob/b6bb7e2486f7722101f9e416ec345d49f3afa901/lib/bind_keys.js#L466-L479", "partition": "test"} +{"repo": "daliwali/simulacra", "path": "lib/index.js", "func_name": "simulacra", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Bind an object to the DOM.\n\n@param {Object} obj\n@param {Object} def\n@param {Node} [matchNode]\n@return {Node}", "docstring_tokens": ["Bind", "an", "object", "to", "the", "DOM", "."], "sha": "b6bb7e2486f7722101f9e416ec345d49f3afa901", "url": "https://github.com/daliwali/simulacra/blob/b6bb7e2486f7722101f9e416ec345d49f3afa901/lib/index.js#L66-L110", "partition": "test"} +{"repo": "daliwali/simulacra", "path": "lib/index.js", "func_name": "cleanNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal function to strip empty text nodes.", "docstring_tokens": ["Internal", "function", "to", "strip", "empty", "text", "nodes", "."], "sha": "b6bb7e2486f7722101f9e416ec345d49f3afa901", "url": "https://github.com/daliwali/simulacra/blob/b6bb7e2486f7722101f9e416ec345d49f3afa901/lib/index.js#L225-L239", "partition": "test"} +{"repo": "daliwali/simulacra", "path": "lib/process_nodes.js", "func_name": "processNodes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal function to remove bound nodes and replace them with markers.\n\n@param {*} [scope]\n@param {Node} node\n@param {Object} def\n@return {Node}", "docstring_tokens": ["Internal", "function", "to", "remove", "bound", "nodes", "and", "replace", "them", "with", "markers", "."], "sha": "b6bb7e2486f7722101f9e416ec345d49f3afa901", "url": "https://github.com/daliwali/simulacra/blob/b6bb7e2486f7722101f9e416ec345d49f3afa901/lib/process_nodes.js#L31-L118", "partition": "test"} +{"repo": "daliwali/simulacra", "path": "lib/process_nodes.js", "func_name": "matchNodes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal function to find and set matching DOM nodes on cloned nodes.\n\n@param {*} [scope]\n@param {Node} node\n@param {Object} def", "docstring_tokens": ["Internal", "function", "to", "find", "and", "set", "matching", "DOM", "nodes", "on", "cloned", "nodes", "."], "sha": "b6bb7e2486f7722101f9e416ec345d49f3afa901", "url": "https://github.com/daliwali/simulacra/blob/b6bb7e2486f7722101f9e416ec345d49f3afa901/lib/process_nodes.js#L128-L164", "partition": "test"} +{"repo": "daliwali/simulacra", "path": "lib/rehydrate.js", "func_name": "rehydrate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Rehydration of existing DOM nodes by recursively checking equality.\n\n@param {*} scope\n@param {Object} obj\n@param {Object} def\n@param {Node} node\n@param {Node} matchNode", "docstring_tokens": ["Rehydration", "of", "existing", "DOM", "nodes", "by", "recursively", "checking", "equality", "."], "sha": "b6bb7e2486f7722101f9e416ec345d49f3afa901", "url": "https://github.com/daliwali/simulacra/blob/b6bb7e2486f7722101f9e416ec345d49f3afa901/lib/rehydrate.js#L31-L107", "partition": "test"} +{"repo": "daliwali/simulacra", "path": "lib/render.js", "func_name": "render", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal function for rendering strings. The benchmark to beat is plain old\nstring concatenation and for loops. Although this won't be faster, it should\nwork with more or less the same functionality as the DOM version.\n\nOnly a tiny subset of the actual DOM is implemented here, so it may not work\nfor all front-end functionality.\n\n@param {Object} obj\n@param {Object} def\n@param {String} [html]\n@return {String}", "docstring_tokens": ["Internal", "function", "for", "rendering", "strings", ".", "The", "benchmark", "to", "beat", "is", "plain", "old", "string", "concatenation", "and", "for", "loops", ".", "Although", "this", "won", "t", "be", "faster", "it", "should", "work", "with", "more", "or", "less", "the", "same", "functionality", "as", "the", "DOM", "version", "."], "sha": "b6bb7e2486f7722101f9e416ec345d49f3afa901", "url": "https://github.com/daliwali/simulacra/blob/b6bb7e2486f7722101f9e416ec345d49f3afa901/lib/render.js#L123-L158", "partition": "test"} +{"repo": "daliwali/simulacra", "path": "lib/feature_check.js", "func_name": "featureCheck", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if capabilities are available, or throw an error.\n\n@param {*} globalScope", "docstring_tokens": ["Check", "if", "capabilities", "are", "available", "or", "throw", "an", "error", "."], "sha": "b6bb7e2486f7722101f9e416ec345d49f3afa901", "url": "https://github.com/daliwali/simulacra/blob/b6bb7e2486f7722101f9e416ec345d49f3afa901/lib/feature_check.js#L10-L39", "partition": "test"} +{"repo": "c01nd01r/vue-bem-cn", "path": "dist/vue-bem-cn.es6.js", "func_name": "bemNames", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create String from BEM entitys\n@param {Object} entitys BEM entitys\n@param {String} entitys.block Block\n@param {String} [entitys.el] Element\n@param {Object} [entitys.mods] Modifiers\n@param {String} [entitys.mixin] Mixin\n@param {Object} delimiters Delimiters for BEM entitys\n@returns {String}", "docstring_tokens": ["Create", "String", "from", "BEM", "entitys"], "sha": "7d5c910e21691ba6e3ecb2702aa277292fe33aca", "url": "https://github.com/c01nd01r/vue-bem-cn/blob/7d5c910e21691ba6e3ecb2702aa277292fe33aca/dist/vue-bem-cn.es6.js#L66-L97", "partition": "test"} +{"repo": "probot/probot-config", "path": "lib/index.js", "func_name": "deepMergeConfigs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Merges an array of configs\n\n@param {array} configs The configs to merge\n@param {object} options https://github.com/KyleAMathews/deepmerge#options\n@returns {object} The merged configuration", "docstring_tokens": ["Merges", "an", "array", "of", "configs"], "sha": "dbdbc8b2d421997797a6e229f2e01c189c1696db", "url": "https://github.com/probot/probot-config/blob/dbdbc8b2d421997797a6e229f2e01c189c1696db/lib/index.js#L34-L36", "partition": "test"} +{"repo": "probot/probot-config", "path": "lib/index.js", "func_name": "loadYaml", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Loads a file from GitHub\n\n@param {Context} context A Probot context\n@param {object} params Params to fetch the file with\n@returns {Promise} The parsed YAML file\n@async", "docstring_tokens": ["Loads", "a", "file", "from", "GitHub"], "sha": "dbdbc8b2d421997797a6e229f2e01c189c1696db", "url": "https://github.com/probot/probot-config/blob/dbdbc8b2d421997797a6e229f2e01c189c1696db/lib/index.js#L46-L57", "partition": "test"} +{"repo": "probot/probot-config", "path": "lib/index.js", "func_name": "getBaseParams", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Computes parameters for the repository specified in base\n\nBase can either be the name of a repository in the same organization or\na full slug \"organization/repo\".\n\n@param {object} params An object containing owner, repo and path\n@param {string} base A string specifying the base repository\n@returns {object} The params of the base configuration", "docstring_tokens": ["Computes", "parameters", "for", "the", "repository", "specified", "in", "base"], "sha": "dbdbc8b2d421997797a6e229f2e01c189c1696db", "url": "https://github.com/probot/probot-config/blob/dbdbc8b2d421997797a6e229f2e01c189c1696db/lib/index.js#L69-L84", "partition": "test"} +{"repo": "probot/probot-config", "path": "lib/index.js", "func_name": "getConfig", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Loads the specified config file from the context's repository\n\nIf the config file contains a top-level key \"_extends\", it is merged\nwith a config of the same name in the repository specified by the\n_extends key. The repository of the base configuration can either be\ngiven as \"repository\" or as \"organization/repository\".\n\nIf the config file does not exist in the context's repository, `null`\nis returned. If the base repository does not exist or does not contain\nthe config file, it is ignored.\n\nIf a default config is given, it is merged with the config from the\nrepository, if it exists.\n\n@param {Context} context A Probot context\n@param {string} fileName Name of the config file\n@param {object} defaultConfig A default config that is merged in\n@param {object} deepMergeOptions from deepmerge\n@returns {object} The merged configuration\n@async", "docstring_tokens": ["Loads", "the", "specified", "config", "file", "from", "the", "context", "s", "repository"], "sha": "dbdbc8b2d421997797a6e229f2e01c189c1696db", "url": "https://github.com/probot/probot-config/blob/dbdbc8b2d421997797a6e229f2e01c189c1696db/lib/index.js#L108-L137", "partition": "test"} +{"repo": "othiym23/shimmer", "path": "index.js", "func_name": "defineProperty", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets a property on an object, preserving its enumerability. This function assumes that the property is already writable.", "docstring_tokens": ["Sets", "a", "property", "on", "an", "object", "preserving", "its", "enumerability", ".", "This", "function", "assumes", "that", "the", "property", "is", "already", "writable", "."], "sha": "b2b29d760aa664767f71f37dbcbfac0b9250421b", "url": "https://github.com/othiym23/shimmer/blob/b2b29d760aa664767f71f37dbcbfac0b9250421b/index.js#L12-L20", "partition": "test"} +{"repo": "othiym23/shimmer", "path": "index.js", "func_name": "shimmer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Keep initialization idempotent.", "docstring_tokens": ["Keep", "initialization", "idempotent", "."], "sha": "b2b29d760aa664767f71f37dbcbfac0b9250421b", "url": "https://github.com/othiym23/shimmer/blob/b2b29d760aa664767f71f37dbcbfac0b9250421b/index.js#L23-L28", "partition": "test"} +{"repo": "lavas-project/hexo-pwa", "path": "index.js", "func_name": "injectManifest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "inject manifest html fragment into page code\n\n@param {string} data html\n@return {string}", "docstring_tokens": ["inject", "manifest", "html", "fragment", "into", "page", "code"], "sha": "05599aa1ec09e057c5d4c6f9376f8c642105a019", "url": "https://github.com/lavas-project/hexo-pwa/blob/05599aa1ec09e057c5d4c6f9376f8c642105a019/index.js#L68-L76", "partition": "test"} +{"repo": "lavas-project/hexo-pwa", "path": "index.js", "func_name": "injectSWRegister", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "inject service worker registion fragment into page code\n\n@param {string} data html\n@return {string}", "docstring_tokens": ["inject", "service", "worker", "registion", "fragment", "into", "page", "code"], "sha": "05599aa1ec09e057c5d4c6f9376f8c642105a019", "url": "https://github.com/lavas-project/hexo-pwa/blob/05599aa1ec09e057c5d4c6f9376f8c642105a019/index.js#L84-L92", "partition": "test"} +{"repo": "lavas-project/hexo-pwa", "path": "index.js", "func_name": "injectAsyncLoadPageJS", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "inject async load page js fragment\n\n@param {string} data html\n@return {string}", "docstring_tokens": ["inject", "async", "load", "page", "js", "fragment"], "sha": "05599aa1ec09e057c5d4c6f9376f8c642105a019", "url": "https://github.com/lavas-project/hexo-pwa/blob/05599aa1ec09e057c5d4c6f9376f8c642105a019/index.js#L100-L108", "partition": "test"} +{"repo": "rhysd/rehype-react", "path": "index.js", "func_name": "rehype2react", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Attach a react compiler.\n\n@param {Unified} processor - Instance.\n@param {Object?} [options]\n@param {Object?} [options.components]\n- Components.\n@param {string?} [options.prefix]\n- Key prefix.\n@param {Function?} [options.createElement]\n- `h()`.", "docstring_tokens": ["Attach", "a", "react", "compiler", "."], "sha": "4f352b985ac89383a1d4e38270adb251388a849a", "url": "https://github.com/rhysd/rehype-react/blob/4f352b985ac89383a1d4e38270adb251388a849a/index.js#L23-L53", "partition": "test"} +{"repo": "patrick-steele-idem/child-process-promise", "path": "lib/index.js", "func_name": "doExec", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Promise wrapper for exec, execFile\n\n@param {String} method\n@param {...*} args\n@return {Promise}", "docstring_tokens": ["Promise", "wrapper", "for", "exec", "execFile"], "sha": "217609b5e12f12616c1c3987fe7451b8fa293112", "url": "https://github.com/patrick-steele-idem/child-process-promise/blob/217609b5e12f12616c1c3987fe7451b8fa293112/lib/index.js#L16-L47", "partition": "test"} +{"repo": "patrick-steele-idem/child-process-promise", "path": "lib/index.js", "func_name": "doSpawn", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "`spawn` as Promised\n\n@param {String} command\n@param {Array} args\n@param {Object} options\n@return {Promise}", "docstring_tokens": ["spawn", "as", "Promised"], "sha": "217609b5e12f12616c1c3987fe7451b8fa293112", "url": "https://github.com/patrick-steele-idem/child-process-promise/blob/217609b5e12f12616c1c3987fe7451b8fa293112/lib/index.js#L80-L152", "partition": "test"} +{"repo": "trendmicro-frontend/react-liquid-gauge", "path": "docs/bundle.js", "func_name": "slope2", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculate a one-sided slope.", "docstring_tokens": ["Calculate", "a", "one", "-", "sided", "slope", "."], "sha": "c8b24bd48a504539e25553a66097466f75917af6", "url": "https://github.com/trendmicro-frontend/react-liquid-gauge/blob/c8b24bd48a504539e25553a66097466f75917af6/docs/bundle.js#L8023-L8026", "partition": "test"} +{"repo": "trendmicro-frontend/react-liquid-gauge", "path": "docs/bundle.js", "func_name": "shouldSetAttribute", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks whether a property name is a writeable attribute.\n@method", "docstring_tokens": ["Checks", "whether", "a", "property", "name", "is", "a", "writeable", "attribute", "."], "sha": "c8b24bd48a504539e25553a66097466f75917af6", "url": "https://github.com/trendmicro-frontend/react-liquid-gauge/blob/c8b24bd48a504539e25553a66097466f75917af6/docs/bundle.js#L13886-L13908", "partition": "test"} +{"repo": "trendmicro-frontend/react-liquid-gauge", "path": "docs/bundle.js", "func_name": "createMarkupForProperty", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates markup for a property.\n\n@param {string} name\n@param {*} value\n@return {?string} Markup string, or null if the property was invalid.", "docstring_tokens": ["Creates", "markup", "for", "a", "property", "."], "sha": "c8b24bd48a504539e25553a66097466f75917af6", "url": "https://github.com/trendmicro-frontend/react-liquid-gauge/blob/c8b24bd48a504539e25553a66097466f75917af6/docs/bundle.js#L14264-L14283", "partition": "test"} +{"repo": "trendmicro-frontend/react-liquid-gauge", "path": "docs/bundle.js", "func_name": "trapBubbledEvent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Traps top-level events by using event bubbling.\n\n@param {string} topLevelType Record from `BrowserEventConstants`.\n@param {string} handlerBaseName Event name (e.g. \"click\").\n@param {object} element Element on which to attach listener.\n@return {?object} An object with a remove function which will forcefully\nremove the listener.\n@internal", "docstring_tokens": ["Traps", "top", "-", "level", "events", "by", "using", "event", "bubbling", "."], "sha": "c8b24bd48a504539e25553a66097466f75917af6", "url": "https://github.com/trendmicro-frontend/react-liquid-gauge/blob/c8b24bd48a504539e25553a66097466f75917af6/docs/bundle.js#L19662-L19667", "partition": "test"} +{"repo": "trendmicro-frontend/react-liquid-gauge", "path": "docs/bundle.js", "func_name": "createUpdateQueue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Singly linked-list of updates. When an update is scheduled, it is added to the queue of the current fiber and the work-in-progress fiber. The two queues are separate but they share a persistent structure. During reconciliation, updates are removed from the work-in-progress fiber, but they remain on the current fiber. That ensures that if a work-in-progress is aborted, the aborted updates are recovered by cloning from current. The work-in-progress queue is always a subset of the current queue. When the tree is committed, the work-in-progress becomes the current.", "docstring_tokens": ["Singly", "linked", "-", "list", "of", "updates", ".", "When", "an", "update", "is", "scheduled", "it", "is", "added", "to", "the", "queue", "of", "the", "current", "fiber", "and", "the", "work", "-", "in", "-", "progress", "fiber", ".", "The", "two", "queues", "are", "separate", "but", "they", "share", "a", "persistent", "structure", ".", "During", "reconciliation", "updates", "are", "removed", "from", "the", "work", "-", "in", "-", "progress", "fiber", "but", "they", "remain", "on", "the", "current", "fiber", ".", "That", "ensures", "that", "if", "a", "work", "-", "in", "-", "progress", "is", "aborted", "the", "aborted", "updates", "are", "recovered", "by", "cloning", "from", "current", ".", "The", "work", "-", "in", "-", "progress", "queue", "is", "always", "a", "subset", "of", "the", "current", "queue", ".", "When", "the", "tree", "is", "committed", "the", "work", "-", "in", "-", "progress", "becomes", "the", "current", "."], "sha": "c8b24bd48a504539e25553a66097466f75917af6", "url": "https://github.com/trendmicro-frontend/react-liquid-gauge/blob/c8b24bd48a504539e25553a66097466f75917af6/docs/bundle.js#L22209-L22223", "partition": "test"} +{"repo": "trendmicro-frontend/react-liquid-gauge", "path": "docs/bundle.js", "func_name": "mountClassInstance", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Invokes the mount life-cycles on a previously never rendered instance.", "docstring_tokens": ["Invokes", "the", "mount", "life", "-", "cycles", "on", "a", "previously", "never", "rendered", "instance", "."], "sha": "c8b24bd48a504539e25553a66097466f75917af6", "url": "https://github.com/trendmicro-frontend/react-liquid-gauge/blob/c8b24bd48a504539e25553a66097466f75917af6/docs/bundle.js#L22680-L22716", "partition": "test"} +{"repo": "trendmicro-frontend/react-liquid-gauge", "path": "docs/bundle.js", "func_name": "requestWork", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "requestWork is called by the scheduler whenever a root receives an update. It's up to the renderer to call renderRoot at some point in the future.", "docstring_tokens": ["requestWork", "is", "called", "by", "the", "scheduler", "whenever", "a", "root", "receives", "an", "update", ".", "It", "s", "up", "to", "the", "renderer", "to", "call", "renderRoot", "at", "some", "point", "in", "the", "future", "."], "sha": "c8b24bd48a504539e25553a66097466f75917af6", "url": "https://github.com/trendmicro-frontend/react-liquid-gauge/blob/c8b24bd48a504539e25553a66097466f75917af6/docs/bundle.js#L27108-L27159", "partition": "test"} +{"repo": "trendmicro-frontend/react-liquid-gauge", "path": "docs/bundle.js", "func_name": "shouldYield", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "When working on async work, the reconciler asks the renderer if it should yield execution. For DOM, we implement this with requestIdleCallback.", "docstring_tokens": ["When", "working", "on", "async", "work", "the", "reconciler", "asks", "the", "renderer", "if", "it", "should", "yield", "execution", ".", "For", "DOM", "we", "implement", "this", "with", "requestIdleCallback", "."], "sha": "c8b24bd48a504539e25553a66097466f75917af6", "url": "https://github.com/trendmicro-frontend/react-liquid-gauge/blob/c8b24bd48a504539e25553a66097466f75917af6/docs/bundle.js#L27328-L27337", "partition": "test"} +{"repo": "trendmicro-frontend/react-liquid-gauge", "path": "docs/bundle.js", "func_name": "deleteValueForProperty", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Deletes the value for a property on a node.\n\n@param {DOMElement} node\n@param {string} name", "docstring_tokens": ["Deletes", "the", "value", "for", "a", "property", "on", "a", "node", "."], "sha": "c8b24bd48a504539e25553a66097466f75917af6", "url": "https://github.com/trendmicro-frontend/react-liquid-gauge/blob/c8b24bd48a504539e25553a66097466f75917af6/docs/bundle.js#L27961-L27980", "partition": "test"} +{"repo": "trendmicro-frontend/react-liquid-gauge", "path": "docs/bundle.js", "func_name": "updateProperties$1", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Apply the diff.", "docstring_tokens": ["Apply", "the", "diff", "."], "sha": "c8b24bd48a504539e25553a66097466f75917af6", "url": "https://github.com/trendmicro-frontend/react-liquid-gauge/blob/c8b24bd48a504539e25553a66097466f75917af6/docs/bundle.js#L30482-L30510", "partition": "test"} +{"repo": "simonepri/sympact", "path": "index.js", "func_name": "sympact", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Measures the impact of running a certain script on your system.\nMonitors the cpu and memory usage of the whole tree of processes generated by\nthe script provided.\n@public\n@param {string} code The source code to test.\n@param {Object} [options] Optional configurations.\n@param {number} [options.interval=125] Sampling interval in milliseconds.\n@param {string} [options.cwd=caller] CWD for the script.\n@return {Promise.} An object containing the results.", "docstring_tokens": ["Measures", "the", "impact", "of", "running", "a", "certain", "script", "on", "your", "system", ".", "Monitors", "the", "cpu", "and", "memory", "usage", "of", "the", "whole", "tree", "of", "processes", "generated", "by", "the", "script", "provided", "."], "sha": "ff60a2325afa2e0aaf8f85d0d0473b41117476e2", "url": "https://github.com/simonepri/sympact/blob/ff60a2325afa2e0aaf8f85d0d0473b41117476e2/index.js#L20-L60", "partition": "test"} +{"repo": "MathieuTurcotte/node-backoff", "path": "lib/strategy/exponential.js", "func_name": "ExponentialBackoffStrategy", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Exponential backoff strategy.", "docstring_tokens": ["Exponential", "backoff", "strategy", "."], "sha": "f384eff062d585ebd878aab7ecf29eb56c1efd7d", "url": "https://github.com/MathieuTurcotte/node-backoff/blob/f384eff062d585ebd878aab7ecf29eb56c1efd7d/lib/strategy/exponential.js#L10-L22", "partition": "test"} +{"repo": "MathieuTurcotte/node-backoff", "path": "lib/backoff.js", "func_name": "Backoff", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A class to hold the state of a backoff operation. Accepts a backoff strategy to generate the backoff delays.", "docstring_tokens": ["A", "class", "to", "hold", "the", "state", "of", "a", "backoff", "operation", ".", "Accepts", "a", "backoff", "strategy", "to", "generate", "the", "backoff", "delays", "."], "sha": "f384eff062d585ebd878aab7ecf29eb56c1efd7d", "url": "https://github.com/MathieuTurcotte/node-backoff/blob/f384eff062d585ebd878aab7ecf29eb56c1efd7d/lib/backoff.js#L10-L22", "partition": "test"} +{"repo": "MathieuTurcotte/node-backoff", "path": "lib/function_call.js", "func_name": "FunctionCall", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wraps a function to be called in a backoff loop.", "docstring_tokens": ["Wraps", "a", "function", "to", "be", "called", "in", "a", "backoff", "loop", "."], "sha": "f384eff062d585ebd878aab7ecf29eb56c1efd7d", "url": "https://github.com/MathieuTurcotte/node-backoff/blob/f384eff062d585ebd878aab7ecf29eb56c1efd7d/lib/function_call.js#L12-L31", "partition": "test"} +{"repo": "scttnlsn/mubsub", "path": "lib/channel.js", "func_name": "Channel", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Channel constructor.\n\n@param {Connection} connection\n@param {String} [name] optional channel/collection name, default is 'mubsub'\n@param {Object} [options] optional options\n- `size` max size of the collection in bytes, default is 5mb\n- `max` max amount of documents in the collection\n- `retryInterval` time in ms to wait if no docs found, default is 200ms\n- `recreate` recreate the tailable cursor on error, default is true\n@api public", "docstring_tokens": ["Channel", "constructor", "."], "sha": "6f1b6d7da675b312a81fbff8be9bebc44a151dd5", "url": "https://github.com/scttnlsn/mubsub/blob/6f1b6d7da675b312a81fbff8be9bebc44a151dd5/lib/channel.js#L18-L34", "partition": "test"} +{"repo": "scttnlsn/mubsub", "path": "lib/connection.js", "func_name": "Connection", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Connection constructor.\n\n@param {String|Db} uri string or Db instance\n@param {Object} mongo driver options\n@api public", "docstring_tokens": ["Connection", "constructor", "."], "sha": "6f1b6d7da675b312a81fbff8be9bebc44a151dd5", "url": "https://github.com/scttnlsn/mubsub/blob/6f1b6d7da675b312a81fbff8be9bebc44a151dd5/lib/connection.js#L13-L35", "partition": "test"} +{"repo": "dy/draggy", "path": "index.js", "func_name": "Draggable", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Make an element draggable.\n\n@constructor\n\n@param {HTMLElement} target An element whether in/out of DOM\n@param {Object} options An draggable options\n\n@return {HTMLElement} Target element", "docstring_tokens": ["Make", "an", "element", "draggable", "."], "sha": "8cc9edeb1b4e17f4e9f5b6a92e4d63720a8526a7", "url": "https://github.com/dy/draggy/blob/8cc9edeb1b4e17f4e9f5b6a92e4d63720a8526a7/index.js#L67-L123", "partition": "test"} +{"repo": "lps-js/lps.js", "path": "src/engine/ConjunctionMap.js", "func_name": "ConjunctionMap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Maps conjunctions to a value.\n@constructor", "docstring_tokens": ["Maps", "conjunctions", "to", "a", "value", "."], "sha": "f91fd5c5e738be909dea7996cb05014c716664d3", "url": "https://github.com/lps-js/lps.js/blob/f91fd5c5e738be909dea7996cb05014c716664d3/src/engine/ConjunctionMap.js#L13-L59", "partition": "test"} +{"repo": "lps-js/lps.js", "path": "src/utility/sortTimables.js", "func_name": "sortTimables", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sort timables into set of earlyConjuncts and laterConjuncts\n@param {Array} conjunction The conjunction. Must be an array of functors or timables\n@param {number} forTime A positive integer of the time to determine earlyConjuncts\n@return {Array} Return a pair of early conjuncts and later conjuncts", "docstring_tokens": ["Sort", "timables", "into", "set", "of", "earlyConjuncts", "and", "laterConjuncts"], "sha": "f91fd5c5e738be909dea7996cb05014c716664d3", "url": "https://github.com/lps-js/lps.js/blob/f91fd5c5e738be909dea7996cb05014c716664d3/src/utility/sortTimables.js#L26-L96", "partition": "test"} +{"repo": "lps-js/lps.js", "path": "src/LPS.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Construct the program arguments predicate\n@private\n@param {array} programArgs The array of program arguments\n@return {Functor} The constructed predicate that contains the program arguments", "docstring_tokens": ["Construct", "the", "program", "arguments", "predicate"], "sha": "f91fd5c5e738be909dea7996cb05014c716664d3", "url": "https://github.com/lps-js/lps.js/blob/f91fd5c5e738be909dea7996cb05014c716664d3/src/LPS.js#L53-L65", "partition": "test"} +{"repo": "lps-js/lps.js", "path": "src/LPS.js", "func_name": "createProgramArgsUpdaterFunc", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a function to update a given program with the given program arguments\n@param {array} programArgs Array of program arguments\n@return {[type]} [description]", "docstring_tokens": ["Create", "a", "function", "to", "update", "a", "given", "program", "with", "the", "given", "program", "arguments"], "sha": "f91fd5c5e738be909dea7996cb05014c716664d3", "url": "https://github.com/lps-js/lps.js/blob/f91fd5c5e738be909dea7996cb05014c716664d3/src/LPS.js#L72-L78", "partition": "test"} +{"repo": "lps-js/lps.js", "path": "src/engine/Engine.js", "func_name": "processCycleObservations", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Process observations for the current cycle\n@return {LiteralTreeMap} Returns the set of observed event for the current time.", "docstring_tokens": ["Process", "observations", "for", "the", "current", "cycle"], "sha": "f91fd5c5e738be909dea7996cb05014c716664d3", "url": "https://github.com/lps-js/lps.js/blob/f91fd5c5e738be909dea7996cb05014c716664d3/src/engine/Engine.js#L131-L192", "partition": "test"} +{"repo": "lps-js/lps.js", "path": "src/engine/Engine.js", "func_name": "actionsSelector", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Select the appropriate set of actions from the given goal trees such that\nconstraints are not violated for the current cycle.\n@param {Array} goalTrees The goal trees to choose actions from\n@return {LiteralTreeMap} The set of actions chosen to execute", "docstring_tokens": ["Select", "the", "appropriate", "set", "of", "actions", "from", "the", "given", "goal", "trees", "such", "that", "constraints", "are", "not", "violated", "for", "the", "current", "cycle", "."], "sha": "f91fd5c5e738be909dea7996cb05014c716664d3", "url": "https://github.com/lps-js/lps.js/blob/f91fd5c5e738be909dea7996cb05014c716664d3/src/engine/Engine.js#L200-L261", "partition": "test"} +{"repo": "lps-js/lps.js", "path": "src/engine/Engine.js", "func_name": "performCycle", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Performs the state transition for a single cycle.\n@return {Promise} Returns a promise that when fulfilled, indicates the completion of the\ncycle processing.", "docstring_tokens": ["Performs", "the", "state", "transition", "for", "a", "single", "cycle", "."], "sha": "f91fd5c5e738be909dea7996cb05014c716664d3", "url": "https://github.com/lps-js/lps.js/blob/f91fd5c5e738be909dea7996cb05014c716664d3/src/engine/Engine.js#L268-L328", "partition": "test"} +{"repo": "willconant/flow-js", "path": "flow.js", "func_name": "applyArgs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "converts native arguments object to an array and applies function", "docstring_tokens": ["converts", "native", "arguments", "object", "to", "an", "array", "and", "applies", "function"], "sha": "8336df1741a663b458cd96ba12ad2c3e13f89b84", "url": "https://github.com/willconant/flow-js/blob/8336df1741a663b458cd96ba12ad2c3e13f89b84/flow.js#L8-L10", "partition": "test"} +{"repo": "willconant/flow-js", "path": "flow.js", "func_name": "define", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "defines a flow given any number of functions as arguments", "docstring_tokens": ["defines", "a", "flow", "given", "any", "number", "of", "functions", "as", "arguments"], "sha": "8336df1741a663b458cd96ba12ad2c3e13f89b84", "url": "https://github.com/willconant/flow-js/blob/8336df1741a663b458cd96ba12ad2c3e13f89b84/flow.js#L13-L98", "partition": "test"} +{"repo": "willconant/flow-js", "path": "flow.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The flowState is the actual object each step in the flow is applied to. It acts as a callback to the next function. It also maintains the internal state of each execution and acts as a place for users to save values between steps of the flow.", "docstring_tokens": ["The", "flowState", "is", "the", "actual", "object", "each", "step", "in", "the", "flow", "is", "applied", "to", ".", "It", "acts", "as", "a", "callback", "to", "the", "next", "function", ".", "It", "also", "maintains", "the", "internal", "state", "of", "each", "execution", "and", "acts", "as", "a", "place", "for", "users", "to", "save", "values", "between", "steps", "of", "the", "flow", "."], "sha": "8336df1741a663b458cd96ba12ad2c3e13f89b84", "url": "https://github.com/willconant/flow-js/blob/8336df1741a663b458cd96ba12ad2c3e13f89b84/flow.js#L24-L41", "partition": "test"} +{"repo": "willconant/flow-js", "path": "flow.js", "func_name": "exec", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "defines a flow and evaluates it immediately. The first flow function won't receive any arguments.", "docstring_tokens": ["defines", "a", "flow", "and", "evaluates", "it", "immediately", ".", "The", "first", "flow", "function", "won", "t", "receive", "any", "arguments", "."], "sha": "8336df1741a663b458cd96ba12ad2c3e13f89b84", "url": "https://github.com/willconant/flow-js/blob/8336df1741a663b458cd96ba12ad2c3e13f89b84/flow.js#L101-L104", "partition": "test"} +{"repo": "AlverLyu/sm.js", "path": "lib/utils.js", "func_name": "padStart", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Pads supplied string with character to fill the desired length.\n\n@param {*} str String to pad\n@param {*} length Desired length of result string\n@param {*} padChar Character to use as padding", "docstring_tokens": ["Pads", "supplied", "string", "with", "character", "to", "fill", "the", "desired", "length", "."], "sha": "6beab32a225f8e4465387c2c995aa2df77f8c67c", "url": "https://github.com/AlverLyu/sm.js/blob/6beab32a225f8e4465387c2c995aa2df77f8c67c/lib/utils.js#L54-L60", "partition": "test"} +{"repo": "AlverLyu/sm.js", "path": "lib/sm2.js", "func_name": "SM2Curve", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The SM2 elliptic curve", "docstring_tokens": ["The", "SM2", "elliptic", "curve"], "sha": "6beab32a225f8e4465387c2c995aa2df77f8c67c", "url": "https://github.com/AlverLyu/sm.js/blob/6beab32a225f8e4465387c2c995aa2df77f8c67c/lib/sm2.js#L25-L31", "partition": "test"} +{"repo": "AlverLyu/sm.js", "path": "lib/sm2.js", "func_name": "SM2KeyPair", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "SM2 public and private key pair\n\nEither `pub` and `pri` can be a hex string or byte array or null.\nIf `pub` is a string, it should be the same format as output of pubToString().", "docstring_tokens": ["SM2", "public", "and", "private", "key", "pair"], "sha": "6beab32a225f8e4465387c2c995aa2df77f8c67c", "url": "https://github.com/AlverLyu/sm.js/blob/6beab32a225f8e4465387c2c995aa2df77f8c67c/lib/sm2.js#L91-L135", "partition": "test"} +{"repo": "yola/gulp-static-i18n", "path": "index.js", "func_name": "gulpStaticI18n", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "plugin wrapper so streams can pipe to it.", "docstring_tokens": ["plugin", "wrapper", "so", "streams", "can", "pipe", "to", "it", "."], "sha": "a8d1d654047152a56690f5eb0b536177ec000517", "url": "https://github.com/yola/gulp-static-i18n/blob/a8d1d654047152a56690f5eb0b536177ec000517/index.js#L90-L96", "partition": "test"} +{"repo": "jeffharrell/minicart", "path": "src/util/events.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add an event to an object and optionally adjust it's scope\n\n@param obj {HTMLElement} The object to attach the event to\n@param type {string} The type of event excluding \"on\"\n@param fn {function} The function\n@param scope {object} Object to adjust the scope to (optional)", "docstring_tokens": ["Add", "an", "event", "to", "an", "object", "and", "optionally", "adjust", "it", "s", "scope"], "sha": "41066535b978637c2c3ec651d74b406b9510e7c7", "url": "https://github.com/jeffharrell/minicart/blob/41066535b978637c2c3ec651d74b406b9510e7c7/src/util/events.js#L28-L35", "partition": "test"} +{"repo": "jeffharrell/minicart", "path": "src/util/events.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove an event from an object\n\n@param obj {HTMLElement} The object to remove the event from\n@param type {string} The type of event excluding \"on\"\n@param fn {function} The function", "docstring_tokens": ["Remove", "an", "event", "from", "an", "object"], "sha": "41066535b978637c2c3ec651d74b406b9510e7c7", "url": "https://github.com/jeffharrell/minicart/blob/41066535b978637c2c3ec651d74b406b9510e7c7/src/util/events.js#L45-L61", "partition": "test"} +{"repo": "jeffharrell/minicart", "path": "src/view.js", "func_name": "View", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a view model.\n\n@constructor\n@param {object} model", "docstring_tokens": ["Creates", "a", "view", "model", "."], "sha": "41066535b978637c2c3ec651d74b406b9510e7c7", "url": "https://github.com/jeffharrell/minicart/blob/41066535b978637c2c3ec651d74b406b9510e7c7/src/view.js#L20-L39", "partition": "test"} +{"repo": "jeffharrell/minicart", "path": "src/product.js", "func_name": "Product", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new product.\n\n@constructor\n@param {object} data Item data", "docstring_tokens": ["Creates", "a", "new", "product", "."], "sha": "41066535b978637c2c3ec651d74b406b9510e7c7", "url": "https://github.com/jeffharrell/minicart/blob/41066535b978637c2c3ec651d74b406b9510e7c7/src/product.js#L38-L50", "partition": "test"} +{"repo": "jeffharrell/minicart", "path": "src/cart.js", "func_name": "Cart", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Renders the Mini Cart to the page's DOM.\n\n@constructor\n@param {string} name Name of the cart (used as a key for storage)\n@param {duration} number Time in milliseconds that the cart data should persist", "docstring_tokens": ["Renders", "the", "Mini", "Cart", "to", "the", "page", "s", "DOM", "."], "sha": "41066535b978637c2c3ec651d74b406b9510e7c7", "url": "https://github.com/jeffharrell/minicart/blob/41066535b978637c2c3ec651d74b406b9510e7c7/src/cart.js#L20-L43", "partition": "test"} +{"repo": "napolitano/cordova-plugin-intent", "path": "example/app/platforms/android/cordova/lib/retry.js", "func_name": "onRejected", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "on rejection either retry, or throw the error", "docstring_tokens": ["on", "rejection", "either", "retry", "or", "throw", "the", "error"], "sha": "0a47226e64da1e349e2ab2f5e9e0cc2a4e1c5555", "url": "https://github.com/napolitano/cordova-plugin-intent/blob/0a47226e64da1e349e2ab2f5e9e0cc2a4e1c5555/example/app/platforms/android/cordova/lib/retry.js#L51-L64", "partition": "test"} +{"repo": "creationix/js-github", "path": "mixins/github-db.js", "func_name": "fixDate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "GitHub has a nasty habit of stripping whitespace from messages and losing the timezone. This information is required to make our hashes match up, so we guess it by mutating the value till the hash matches. If we're unable to match, we will just force the hash when saving to the cache.", "docstring_tokens": ["GitHub", "has", "a", "nasty", "habit", "of", "stripping", "whitespace", "from", "messages", "and", "losing", "the", "timezone", ".", "This", "information", "is", "required", "to", "make", "our", "hashes", "match", "up", "so", "we", "guess", "it", "by", "mutating", "the", "value", "till", "the", "hash", "matches", ".", "If", "we", "re", "unable", "to", "match", "we", "will", "just", "force", "the", "hash", "when", "saving", "to", "the", "cache", "."], "sha": "ca5c033e854509b39bcf2987dd3b02eafcb7da8a", "url": "https://github.com/creationix/js-github/blob/ca5c033e854509b39bcf2987dd3b02eafcb7da8a/mixins/github-db.js#L358-L386", "partition": "test"} +{"repo": "lokku/jquery-nstslider", "path": "src/jquery.nstSlider.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "for test, removed by Grunt", "docstring_tokens": ["for", "test", "removed", "by", "Grunt"], "sha": "ebf2752c070f4fc0b787a26336f5952a4bb1a15c", "url": "https://github.com/lokku/jquery-nstslider/blob/ebf2752c070f4fc0b787a26336f5952a4bb1a15c/src/jquery.nstSlider.js#L1100-L1123", "partition": "test"} +{"repo": "lokku/jquery-nstslider", "path": "src/jquery.nstSlider.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "just call set_position on the current values", "docstring_tokens": ["just", "call", "set_position", "on", "the", "current", "values"], "sha": "ebf2752c070f4fc0b787a26336f5952a4bb1a15c", "url": "https://github.com/lokku/jquery-nstslider/blob/ebf2752c070f4fc0b787a26336f5952a4bb1a15c/src/jquery.nstSlider.js#L1562-L1587", "partition": "test"} +{"repo": "cyraxx/pogobuf", "path": "pogobuf/pogobuf.googlelogin.js", "func_name": "GoogleLogin", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Google login client.\n@class GoogleLogin\n@memberof pogobuf", "docstring_tokens": ["Google", "login", "client", "."], "sha": "7e905906b77d77d69bfad1a974309bf35c02d9db", "url": "https://github.com/cyraxx/pogobuf/blob/7e905906b77d77d69bfad1a974309bf35c02d9db/pogobuf/pogobuf.googlelogin.js#L11-L110", "partition": "test"} +{"repo": "cyraxx/pogobuf", "path": "pogobuf/pogobuf.utils.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Provides cell IDs of nearby cells based on the given coords and radius\n@param {number} lat\n@param {number} lng\n@param {number} [radius=3]\n@param {number} [level=15]\n@returns {array}\n@static", "docstring_tokens": ["Provides", "cell", "IDs", "of", "nearby", "cells", "based", "on", "the", "given", "coords", "and", "radius"], "sha": "7e905906b77d77d69bfad1a974309bf35c02d9db", "url": "https://github.com/cyraxx/pogobuf/blob/7e905906b77d77d69bfad1a974309bf35c02d9db/pogobuf/pogobuf.utils.js#L23-L61", "partition": "test"} +{"repo": "cyraxx/pogobuf", "path": "pogobuf/pogobuf.utils.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Utility method that finds the name of the key for a given enum value and makes it\nlook a little nicer.\n@param {object} enumObj\n@param {number} val\n@returns {string}\n@static", "docstring_tokens": ["Utility", "method", "that", "finds", "the", "name", "of", "the", "key", "for", "a", "given", "enum", "value", "and", "makes", "it", "look", "a", "little", "nicer", "."], "sha": "7e905906b77d77d69bfad1a974309bf35c02d9db", "url": "https://github.com/cyraxx/pogobuf/blob/7e905906b77d77d69bfad1a974309bf35c02d9db/pogobuf/pogobuf.utils.js#L224-L233", "partition": "test"} +{"repo": "cyraxx/pogobuf", "path": "pogobuf/pogobuf.utils.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Utility method to convert all Long.js objects to integers or strings\n@param {object} object \u2013 An object\n@returns {object}\n@static", "docstring_tokens": ["Utility", "method", "to", "convert", "all", "Long", ".", "js", "objects", "to", "integers", "or", "strings"], "sha": "7e905906b77d77d69bfad1a974309bf35c02d9db", "url": "https://github.com/cyraxx/pogobuf/blob/7e905906b77d77d69bfad1a974309bf35c02d9db/pogobuf/pogobuf.utils.js#L268-L290", "partition": "test"} +{"repo": "cyraxx/pogobuf", "path": "pogobuf/pogobuf.utils.js", "func_name": "Random", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Lehmer random module used by the app to generate request ids", "docstring_tokens": ["Lehmer", "random", "module", "used", "by", "the", "app", "to", "generate", "request", "ids"], "sha": "7e905906b77d77d69bfad1a974309bf35c02d9db", "url": "https://github.com/cyraxx/pogobuf/blob/7e905906b77d77d69bfad1a974309bf35c02d9db/pogobuf/pogobuf.utils.js#L297-L303", "partition": "test"} +{"repo": "FGRibreau/forever-webui", "path": "public/js/pretty.js", "func_name": "prettyDate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Takes an ISO time and returns a string representing how long ago the date represents.", "docstring_tokens": ["Takes", "an", "ISO", "time", "and", "returns", "a", "string", "representing", "how", "long", "ago", "the", "date", "represents", "."], "sha": "fe9b4a219097c56daddc3e6f3943dcc20a80fbcd", "url": "https://github.com/FGRibreau/forever-webui/blob/fe9b4a219097c56daddc3e6f3943dcc20a80fbcd/public/js/pretty.js#L9-L26", "partition": "test"} +{"repo": "acalvoa/sails-hook-multitenant", "path": "examples/assets/dependencies/sails.io.js", "func_name": "LoggerFactory", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A little logger for this library to use internally.\nBasically just a wrapper around `console.log` with\nsupport for feature-detection.\n\n@api private\n@factory", "docstring_tokens": ["A", "little", "logger", "for", "this", "library", "to", "use", "internally", ".", "Basically", "just", "a", "wrapper", "around", "console", ".", "log", "with", "support", "for", "feature", "-", "detection", "."], "sha": "640a51cc1cbf47487e20172524e9efbb765cdf25", "url": "https://github.com/acalvoa/sails-hook-multitenant/blob/640a51cc1cbf47487e20172524e9efbb765cdf25/examples/assets/dependencies/sails.io.js#L412-L443", "partition": "test"} +{"repo": "acalvoa/sails-hook-multitenant", "path": "examples/assets/dependencies/sails.io.js", "func_name": "runRequestQueue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "What is the `requestQueue`?\n\nThe request queue is used to simplify app-level connection logic--\ni.e. so you don't have to wait for the socket to be connected\nto start trying to synchronize data.\n\n@api private\n@param {SailsSocket} socket", "docstring_tokens": ["What", "is", "the", "requestQueue", "?"], "sha": "640a51cc1cbf47487e20172524e9efbb765cdf25", "url": "https://github.com/acalvoa/sails-hook-multitenant/blob/640a51cc1cbf47487e20172524e9efbb765cdf25/examples/assets/dependencies/sails.io.js#L464-L485", "partition": "test"} +{"repo": "acalvoa/sails-hook-multitenant", "path": "examples/assets/dependencies/sails.io.js", "func_name": "jsonp", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Send a JSONP request.\n\n@param {Object} opts [optional]\n@param {Function} cb\n@return {XMLHttpRequest}", "docstring_tokens": ["Send", "a", "JSONP", "request", "."], "sha": "640a51cc1cbf47487e20172524e9efbb765cdf25", "url": "https://github.com/acalvoa/sails-hook-multitenant/blob/640a51cc1cbf47487e20172524e9efbb765cdf25/examples/assets/dependencies/sails.io.js#L497-L519", "partition": "test"} +{"repo": "dataplug-io/dataplug-cli", "path": "lib/configDeclarationToYargs.js", "func_name": "validateParameterValue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validates parameter value", "docstring_tokens": ["Validates", "parameter", "value"], "sha": "53be4a92bcb81a8ff4a50f6a4202c00aad18e105", "url": "https://github.com/dataplug-io/dataplug-cli/blob/53be4a92bcb81a8ff4a50f6a4202c00aad18e105/lib/configDeclarationToYargs.js#L7-L30", "partition": "test"} +{"repo": "dataplug-io/dataplug-cli", "path": "lib/configDeclarationToYargs.js", "func_name": "parameterDeclarationToYargs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Converts parameter declaration to yargs", "docstring_tokens": ["Converts", "parameter", "declaration", "to", "yargs"], "sha": "53be4a92bcb81a8ff4a50f6a4202c00aad18e105", "url": "https://github.com/dataplug-io/dataplug-cli/blob/53be4a92bcb81a8ff4a50f6a4202c00aad18e105/lib/configDeclarationToYargs.js#L35-L72", "partition": "test"} +{"repo": "dataplug-io/dataplug-cli", "path": "lib/configDeclarationToYargs.js", "func_name": "configDeclarationToYargs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Converts configuration declaration to yargs options\n\n@param {ConfigDeclaration} configDeclaration", "docstring_tokens": ["Converts", "configuration", "declaration", "to", "yargs", "options"], "sha": "53be4a92bcb81a8ff4a50f6a4202c00aad18e105", "url": "https://github.com/dataplug-io/dataplug-cli/blob/53be4a92bcb81a8ff4a50f6a4202c00aad18e105/lib/configDeclarationToYargs.js#L79-L84", "partition": "test"} +{"repo": "runk/node-chardet", "path": "encoding/sbcs.js", "func_name": "NGramParser", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This class recognizes single-byte encodings. Because the encoding scheme is so\nsimple, language statistics are used to do the matching.", "docstring_tokens": ["This", "class", "recognizes", "single", "-", "byte", "encodings", ".", "Because", "the", "encoding", "scheme", "is", "so", "simple", "language", "statistics", "are", "used", "to", "do", "the", "matching", "."], "sha": "5156e3063ae8e8ba7f0d599378d024a4f403993c", "url": "https://github.com/runk/node-chardet/blob/5156e3063ae8e8ba7f0d599378d024a4f403993c/encoding/sbcs.js#L9-L91", "partition": "test"} +{"repo": "zurb/foundation-apps", "path": "js/angular/services/foundation.mediaquery.js", "func_name": "collectScenariosFromElement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Collects a scenario object and templates from element", "docstring_tokens": ["Collects", "a", "scenario", "object", "and", "templates", "from", "element"], "sha": "2b311d183325811cca371826667eacadf6b09bff", "url": "https://github.com/zurb/foundation-apps/blob/2b311d183325811cca371826667eacadf6b09bff/js/angular/services/foundation.mediaquery.js#L279-L304", "partition": "test"} +{"repo": "mklabs/tiny-lr", "path": "lib/index.js", "func_name": "changed", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Changed helper, helps with notifying the server of a file change", "docstring_tokens": ["Changed", "helper", "helps", "with", "notifying", "the", "server", "of", "a", "file", "change"], "sha": "d68d983eaf80b5bae78b2dba259a1ad5e3b03a63", "url": "https://github.com/mklabs/tiny-lr/blob/d68d983eaf80b5bae78b2dba259a1ad5e3b03a63/lib/index.js#L36-L46", "partition": "test"} +{"repo": "dataminr/react-components", "path": "src/js/mixins/PortalMixins.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new detatched DOM node to render child components within.\n@param {Object} children The items to be displayed in the portal.\n@param {Object} [element] Optional HTML Element to append PageMessage object to.", "docstring_tokens": ["Creates", "a", "new", "detatched", "DOM", "node", "to", "render", "child", "components", "within", "."], "sha": "0aa29ed8562ee35fd8e682a5052ac979cd409de7", "url": "https://github.com/dataminr/react-components/blob/0aa29ed8562ee35fd8e682a5052ac979cd409de7/src/js/mixins/PortalMixins.js#L9-L13", "partition": "test"} +{"repo": "dataminr/react-components", "path": "src/js/mixins/PortalMixins.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Unmounts the components rendered in the portal and removes the associated DOM node.", "docstring_tokens": ["Unmounts", "the", "components", "rendered", "in", "the", "portal", "and", "removes", "the", "associated", "DOM", "node", "."], "sha": "0aa29ed8562ee35fd8e682a5052ac979cd409de7", "url": "https://github.com/dataminr/react-components/blob/0aa29ed8562ee35fd8e682a5052ac979cd409de7/src/js/mixins/PortalMixins.js#L27-L37", "partition": "test"} +{"repo": "dataminr/react-components", "path": "src/js/table/TableStore.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Triggers quick filtering and advanced filtering of the data if either of those properties have been set.\n@param {Array} data - Cloned Table.data.\n@returns {Array} - The subset of fully filtered data.", "docstring_tokens": ["Triggers", "quick", "filtering", "and", "advanced", "filtering", "of", "the", "data", "if", "either", "of", "those", "properties", "have", "been", "set", "."], "sha": "0aa29ed8562ee35fd8e682a5052ac979cd409de7", "url": "https://github.com/dataminr/react-components/blob/0aa29ed8562ee35fd8e682a5052ac979cd409de7/src/js/table/TableStore.js#L234-L246", "partition": "test"} +{"repo": "dataminr/react-components", "path": "src/js/table/TableStore.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates an instance of Table.\n@param {String} id - The unique identifier used to access the Table instance.\n@param {String} definition - A defined Table.\n@param {Function} dataFormatter - A function that will allow for post processing of data from the server.\n@return {object} The newly created Table instance", "docstring_tokens": ["Creates", "an", "instance", "of", "Table", "."], "sha": "0aa29ed8562ee35fd8e682a5052ac979cd409de7", "url": "https://github.com/dataminr/react-components/blob/0aa29ed8562ee35fd8e682a5052ac979cd409de7/src/js/table/TableStore.js#L463-L466", "partition": "test"} +{"repo": "dataminr/react-components", "path": "src/js/table/TableStore.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles all events sent from the dispatcher. Filters out to only those sent via the Table\n@param {Object} payload - Contains action details.", "docstring_tokens": ["Handles", "all", "events", "sent", "from", "the", "dispatcher", ".", "Filters", "out", "to", "only", "those", "sent", "via", "the", "Table"], "sha": "0aa29ed8562ee35fd8e682a5052ac979cd409de7", "url": "https://github.com/dataminr/react-components/blob/0aa29ed8562ee35fd8e682a5052ac979cd409de7/src/js/table/TableStore.js#L498-L537", "partition": "test"} +{"repo": "dataminr/react-components", "path": "src/js/mixins/DataMixins.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Requests data for a component when the filter property changes. When comparing filters we do a direct\ncomparison in addition to a JSON stringify comparison. This fixes issues where the filters object is a new literal\nobject every time, but isn't actually changing. Using a JSON stringify has the downside of causing requestData to\nbe called if the objects are in a different order, but that is pretty unlikely to happen. The setTimeout insures that\nthe currently dispatched action has completed the dispatching process before the request data\naction is kicked off.\n@param {object} nextProps - The set of properties that will be on the component after it updates.", "docstring_tokens": ["Requests", "data", "for", "a", "component", "when", "the", "filter", "property", "changes", ".", "When", "comparing", "filters", "we", "do", "a", "direct", "comparison", "in", "addition", "to", "a", "JSON", "stringify", "comparison", ".", "This", "fixes", "issues", "where", "the", "filters", "object", "is", "a", "new", "literal", "object", "every", "time", "but", "isn", "t", "actually", "changing", ".", "Using", "a", "JSON", "stringify", "has", "the", "downside", "of", "causing", "requestData", "to", "be", "called", "if", "the", "objects", "are", "in", "a", "different", "order", "but", "that", "is", "pretty", "unlikely", "to", "happen", ".", "The", "setTimeout", "insures", "that", "the", "currently", "dispatched", "action", "has", "completed", "the", "dispatching", "process", "before", "the", "request", "data", "action", "is", "kicked", "off", "."], "sha": "0aa29ed8562ee35fd8e682a5052ac979cd409de7", "url": "https://github.com/dataminr/react-components/blob/0aa29ed8562ee35fd8e682a5052ac979cd409de7/src/js/mixins/DataMixins.js#L16-L22", "partition": "test"} +{"repo": "dataminr/react-components", "path": "src/js/mixins/DataMixins.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Used to add and remove the listeners required when requesting data from the server.\n@param {object} store - The object returned from the store file associated with the component.\n@returns {{componentDidMount: componentDidMount, componentWillUnmount: componentWillUnmount}} - React lifecycle functions.", "docstring_tokens": ["Used", "to", "add", "and", "remove", "the", "listeners", "required", "when", "requesting", "data", "from", "the", "server", "."], "sha": "0aa29ed8562ee35fd8e682a5052ac979cd409de7", "url": "https://github.com/dataminr/react-components/blob/0aa29ed8562ee35fd8e682a5052ac979cd409de7/src/js/mixins/DataMixins.js#L63-L81", "partition": "test"} +{"repo": "dataminr/react-components", "path": "src/js/mixins/DataMixins.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds the listeners required when requesting data from the server.", "docstring_tokens": ["Adds", "the", "listeners", "required", "when", "requesting", "data", "from", "the", "server", "."], "sha": "0aa29ed8562ee35fd8e682a5052ac979cd409de7", "url": "https://github.com/dataminr/react-components/blob/0aa29ed8562ee35fd8e682a5052ac979cd409de7/src/js/mixins/DataMixins.js#L68-L71", "partition": "test"} +{"repo": "dataminr/react-components", "path": "src/js/mixins/DataMixins.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes the listeners required when requesting data from the server.", "docstring_tokens": ["Removes", "the", "listeners", "required", "when", "requesting", "data", "from", "the", "server", "."], "sha": "0aa29ed8562ee35fd8e682a5052ac979cd409de7", "url": "https://github.com/dataminr/react-components/blob/0aa29ed8562ee35fd8e682a5052ac979cd409de7/src/js/mixins/DataMixins.js#L76-L79", "partition": "test"} +{"repo": "dataminr/react-components", "path": "src/js/table/TableActions.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Action for populating table data. Used both for initial and subsequent loads.\n@param {String} id - Unique identifier for the Table component.\n@param {Object} definition - A configuration object for the Table.\n@param {Function} dataFormatter - A function that will allow for post processing of data from the server.\n@param {Object} filters - The query string params to be sent with any data requests to the server.", "docstring_tokens": ["Action", "for", "populating", "table", "data", ".", "Used", "both", "for", "initial", "and", "subsequent", "loads", "."], "sha": "0aa29ed8562ee35fd8e682a5052ac979cd409de7", "url": "https://github.com/dataminr/react-components/blob/0aa29ed8562ee35fd8e682a5052ac979cd409de7/src/js/table/TableActions.js#L22-L33", "partition": "test"} +{"repo": "dataminr/react-components", "path": "src/js/table/TableActions.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Filters out table data that does not match the filter value for table cols that have quickFilter set to true.\n@param {String} id - The unique identifier of the Table instance to request filtering data for.\n@param {String|Number} value - The string or number used to filter out table rows that are not a match.", "docstring_tokens": ["Filters", "out", "table", "data", "that", "does", "not", "match", "the", "filter", "value", "for", "table", "cols", "that", "have", "quickFilter", "set", "to", "true", "."], "sha": "0aa29ed8562ee35fd8e682a5052ac979cd409de7", "url": "https://github.com/dataminr/react-components/blob/0aa29ed8562ee35fd8e682a5052ac979cd409de7/src/js/table/TableActions.js#L65-L74", "partition": "test"} +{"repo": "dataminr/react-components", "path": "src/js/table/TableActions.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Moves the cursor forwards or backwards through paginated data.\n@param {String} id - The unique identifier of the Table instance to paginate.\n@param {String} direction - the direction paginate (right or left).", "docstring_tokens": ["Moves", "the", "cursor", "forwards", "or", "backwards", "through", "paginated", "data", "."], "sha": "0aa29ed8562ee35fd8e682a5052ac979cd409de7", "url": "https://github.com/dataminr/react-components/blob/0aa29ed8562ee35fd8e682a5052ac979cd409de7/src/js/table/TableActions.js#L98-L107", "partition": "test"} +{"repo": "dataminr/react-components", "path": "src/js/table/TableActions.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Bulk toggle selection for table rows.\n@param {String} id - The unique identifier of the Table instance to toggle bulk selection for.\n@param {Boolean} deselect - There are selected items in the filtered data set, so we need to deselect them.", "docstring_tokens": ["Bulk", "toggle", "selection", "for", "table", "rows", "."], "sha": "0aa29ed8562ee35fd8e682a5052ac979cd409de7", "url": "https://github.com/dataminr/react-components/blob/0aa29ed8562ee35fd8e682a5052ac979cd409de7/src/js/table/TableActions.js#L132-L141", "partition": "test"} +{"repo": "dataminr/react-components", "path": "src/js/table/TableActions.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Selects or deselects a table row.\n@param {String} id - The unique identifier of the Table instance to select a row within.\n@param {Number} rowIndex - The index of the table row containing the select box that was toggled.", "docstring_tokens": ["Selects", "or", "deselects", "a", "table", "row", "."], "sha": "0aa29ed8562ee35fd8e682a5052ac979cd409de7", "url": "https://github.com/dataminr/react-components/blob/0aa29ed8562ee35fd8e682a5052ac979cd409de7/src/js/table/TableActions.js#L148-L157", "partition": "test"} +{"repo": "rubenv/angular-gettext-tools", "path": "lib/extract.js", "func_name": "extractValue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extract the value, default translate filter behavior\nelse if it is an attribute we need to get its value first\n@param {String} attr Key name\n@param {Node} node\n@return {String}", "docstring_tokens": ["Extract", "the", "value", "default", "translate", "filter", "behavior", "else", "if", "it", "is", "an", "attribute", "we", "need", "to", "get", "its", "value", "first"], "sha": "b580af80b590aac13c6f2f603735d31ed994f5ff", "url": "https://github.com/rubenv/angular-gettext-tools/blob/b580af80b590aac13c6f2f603735d31ed994f5ff/lib/extract.js#L419-L424", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calls the map function on the passed object with a specified callback. This\nuses `Ember.ArrayPolyfill`'s-map method when necessary.\n\n@method map\n@param {Object} obj The object that should be mapped\n@param {Function} callback The callback to execute\n@param {Object} thisArg Value to use as this when executing *callback*\n\n@return {Array} An array of mapped values.", "docstring_tokens": ["Calls", "the", "map", "function", "on", "the", "passed", "object", "with", "a", "specified", "callback", ".", "This", "uses", "Ember", ".", "ArrayPolyfill", "s", "-", "map", "method", "when", "necessary", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L1917-L1919", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calls the filter function on the passed object with a specified callback. This\nuses `Ember.ArrayPolyfill`'s-filter method when necessary.\n\n@method filter\n@param {Object} obj The object to call filter on\n@param {Function} callback The callback to execute\n@param {Object} thisArg Value to use as this when executing *callback*\n\n@return {Array} An array containing the filtered values", "docstring_tokens": ["Calls", "the", "filter", "function", "on", "the", "passed", "object", "with", "a", "specified", "callback", ".", "This", "uses", "Ember", ".", "ArrayPolyfill", "s", "-", "filter", "method", "when", "necessary", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L1946-L1948", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an array of indexes of the first occurrences of the passed elements\non the passed object.\n\n```javascript\nvar array = [1, 2, 3, 4, 5];\nEmber.EnumerableUtils.indexesOf(array, [2, 5]); // [1, 4]\n\nvar fubar = \"Fubarr\";\nEmber.EnumerableUtils.indexesOf(fubar, ['b', 'r']); // [2, 4]\n```\n\n@method indexesOf\n@param {Object} obj The object to check for element indexes\n@param {Array} elements The elements to search for on *obj*\n\n@return {Array} An array of indexes.", "docstring_tokens": ["Returns", "an", "array", "of", "indexes", "of", "the", "first", "occurrences", "of", "the", "passed", "elements", "on", "the", "passed", "object", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L1983-L1987", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds an object to an array. If the array already includes the object this\nmethod has no effect.\n\n@method addObject\n@param {Array} array The array the passed item should be added to\n@param {Object} item The item to add to the passed array\n\n@return 'undefined'", "docstring_tokens": ["Adds", "an", "object", "to", "an", "array", ".", "If", "the", "array", "already", "includes", "the", "object", "this", "method", "has", "no", "effect", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L1999-L2002", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Replaces objects in an array with the passed objects.\n\n```javascript\nvar array = [1,2,3];\nEmber.EnumerableUtils.replace(array, 1, 2, [4, 5]); // [1, 4, 5]\n\nvar array = [1,2,3];\nEmber.EnumerableUtils.replace(array, 1, 1, [4, 5]); // [1, 4, 5, 3]\n\nvar array = [1,2,3];\nEmber.EnumerableUtils.replace(array, 10, 1, [4, 5]); // [1, 2, 3, 4, 5]\n```\n\n@method replace\n@param {Array} array The array the objects should be inserted into.\n@param {Number} idx Starting index in the array to replace. If *idx* >=\nlength, then append to the end of the array.\n@param {Number} amt Number of elements that should be removed from the array,\nstarting at *idx*\n@param {Array} objects An array of zero or more objects that should be\ninserted into the array at *idx*\n\n@return {Array} The modified array.", "docstring_tokens": ["Replaces", "objects", "in", "an", "array", "with", "the", "passed", "objects", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L2064-L2070", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculates the intersection of two arrays. This method returns a new array\nfilled with the records that the two passed arrays share with each other.\nIf there is no intersection, an empty array will be returned.\n\n```javascript\nvar array1 = [1, 2, 3, 4, 5];\nvar array2 = [1, 3, 5, 6, 7];\n\nEmber.EnumerableUtils.intersection(array1, array2); // [1, 3, 5]\n\nvar array1 = [1, 2, 3];\nvar array2 = [4, 5, 6];\n\nEmber.EnumerableUtils.intersection(array1, array2); // []\n```\n\n@method intersection\n@param {Array} array1 The first array\n@param {Array} array2 The second array\n\n@return {Array} The intersection of the two passed arrays.", "docstring_tokens": ["Calculates", "the", "intersection", "of", "two", "arrays", ".", "This", "method", "returns", "a", "new", "array", "filled", "with", "the", "records", "that", "the", "two", "passed", "arrays", "share", "with", "each", "other", ".", "If", "there", "is", "no", "intersection", "an", "empty", "array", "will", "be", "returned", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L2095-L2105", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "removeListener", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove an event listener\n\nArguments should match those passed to `Ember.addListener`.\n\n@method removeListener\n@for Ember\n@param obj\n@param {String} eventName\n@param {Object|Function} targetOrMethod A target object or a function\n@param {Function|String} method A function or the name of a function to be called on `target`", "docstring_tokens": ["Remove", "an", "event", "listener"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L2424-L2457", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "suspendListener", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Suspend listener during callback.\n\nThis should only be used by the target of the event listener\nwhen it is taking an action that would cause the event, e.g.\nan object might suspend its property change listener while it is\nsetting that property.\n\n@method suspendListener\n@for Ember\n\n@private\n@param obj\n@param {String} eventName\n@param {Object|Function} targetOrMethod A target object or a function\n@param {Function|String} method A function or the name of a function to be called on `target`\n@param {Function} callback", "docstring_tokens": ["Suspend", "listener", "during", "callback", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L2477-L2494", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "dependentKeysDidChange", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "called whenever a property has just changed to update dependent keys", "docstring_tokens": ["called", "whenever", "a", "property", "has", "just", "changed", "to", "update", "dependent", "keys"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L2845-L2852", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "set", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets the value of a property on an object, respecting computed properties\nand notifying observers and other listeners of the change. If the\nproperty is not defined but the object implements the `setUnknownProperty`\nmethod then that will be invoked as well.\n\n@method set\n@for Ember\n@param {Object} obj The object to modify.\n@param {String} keyName The property key to set\n@param {Object} value The value to set\n@return {Object} the passed value.", "docstring_tokens": ["Sets", "the", "value", "of", "a", "property", "on", "an", "object", "respecting", "computed", "properties", "and", "notifying", "observers", "and", "other", "listeners", "of", "the", "change", ".", "If", "the", "property", "is", "not", "defined", "but", "the", "object", "implements", "the", "setUnknownProperty", "method", "then", "that", "will", "be", "invoked", "as", "well", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L3014-L3068", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds a value to the map. If a value for the given key has already been\nprovided, the new value will replace the old value.\n\n@method set\n@param {*} key\n@param {*} value", "docstring_tokens": ["Adds", "a", "value", "to", "the", "map", ".", "If", "a", "value", "for", "the", "given", "key", "has", "already", "been", "provided", "the", "new", "value", "will", "replace", "the", "old", "value", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L3363-L3371", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes a value from the map for an associated key.\n\n@method remove\n@param {*} key\n@return {Boolean} true if an item was removed, false otherwise", "docstring_tokens": ["Removes", "a", "value", "from", "the", "map", "for", "an", "associated", "key", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L3380-L3395", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Iterate over all the keys and values. Calls the function once\nfor each key, passing in the key and value, in that order.\n\nThe keys are guaranteed to be iterated over in insertion order.\n\n@method forEach\n@param {Function} callback\n@param {*} self if passed, the `this` value inside the\ncallback. By default, `this` is the map.", "docstring_tokens": ["Iterate", "over", "all", "the", "keys", "and", "values", ".", "Calls", "the", "function", "once", "for", "each", "key", "passing", "in", "the", "key", "and", "value", "in", "that", "order", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L3422-L3430", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Disconnects the binding instance. Changes will no longer be relayed. You\nwill not usually need to call this method.\n\n@method disconnect\n@param {Object} obj The root object you passed when connecting the binding.\n@return {Ember.Binding} `this`", "docstring_tokens": ["Disconnects", "the", "binding", "instance", ".", "Changes", "will", "no", "longer", "be", "relayed", ".", "You", "will", "not", "usually", "need", "to", "call", "this", "method", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L7402-L7416", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "filter", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "`RSVP.filter` is similar to JavaScript's native `filter` method, except that it\nwaits for all promises to become fulfilled before running the `filterFn` on\neach item in given to `promises`. `RSVP.filter` returns a promise that will\nbecome fulfilled with the result of running `filterFn` on the values the\npromises become fulfilled with.\n\nFor example:\n\n```javascript\n\nvar promise1 = RSVP.resolve(1);\nvar promise2 = RSVP.resolve(2);\nvar promise3 = RSVP.resolve(3);\n\nvar filterFn = function(item){\nreturn item > 1;\n};\n\nRSVP.filter(promises, filterFn).then(function(result){\nresult is [ 2, 3 ]\n});\n```\n\nIf any of the `promises` given to `RSVP.filter` are rejected, the first promise\nthat is rejected will be given as an argument to the returned promise's\nrejection handler. For example:\n\n```javascript\nvar promise1 = RSVP.resolve(1);\nvar promise2 = RSVP.reject(new Error(\"2\"));\nvar promise3 = RSVP.reject(new Error(\"3\"));\nvar promises = [ promise1, promise2, promise3 ];\n\nvar filterFn = function(item){\nreturn item > 1;\n};\n\nRSVP.filter(promises, filterFn).then(function(array){\nCode here never runs because there are rejected promises!\n}, function(reason) {\nreason.message === \"2\"\n});\n```\n\n`RSVP.filter` will also wait for any promises returned from `filterFn`.\nFor instance, you may want to fetch a list of users then return a subset\nof those users based on some asynchronous operation:\n\n```javascript\n\nvar alice = { name: 'alice' };\nvar bob = { name: 'bob' };\nvar users = [ alice, bob ];\n\nvar promises = users.map(function(user){\nreturn RSVP.resolve(user);\n});\n\nvar filterFn = function(user){\nHere, Alice has permissions to create a blog post, but Bob does not.\nreturn getPrivilegesForUser(user).then(function(privs){\nreturn privs.can_create_blog_post === true;\n});\n};\nRSVP.filter(promises, filterFn).then(function(users){\ntrue, because the server told us only Alice can create a blog post.\nusers.length === 1;\nfalse, because Alice is the only user present in `users`\nusers[0] === bob;\n});\n```\n\n@method filter\n@for RSVP\n@param {Array} promises\n@param {Function} filterFn - function to be called on each resolved value to\nfilter the final results.\n@param {String} label optional string describing the promise. Useful for\ntooling.\n@return {Promise}", "docstring_tokens": ["RSVP", ".", "filter", "is", "similar", "to", "JavaScript", "s", "native", "filter", "method", "except", "that", "it", "waits", "for", "all", "promises", "to", "become", "fulfilled", "before", "running", "the", "filterFn", "on", "each", "item", "in", "given", "to", "promises", ".", "RSVP", ".", "filter", "returns", "a", "promise", "that", "will", "become", "fulfilled", "with", "the", "result", "of", "running", "filterFn", "on", "the", "values", "the", "promises", "become", "fulfilled", "with", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L9074-L9095", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "Container", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A lightweight container that helps to assemble and decouple components. Public api for the container is still in flux. The public api, specified on the application namespace should be considered the stable api.", "docstring_tokens": ["A", "lightweight", "container", "that", "helps", "to", "assemble", "and", "decouple", "components", ".", "Public", "api", "for", "the", "container", "is", "still", "in", "flux", ".", "The", "public", "api", "specified", "on", "the", "application", "namespace", "should", "be", "considered", "the", "stable", "api", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L10716-L10734", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Registers a factory for later injection.\n\nExample:\n\n```javascript\nvar container = new Container();\n\ncontainer.register('model:user', Person, {singleton: false });\ncontainer.register('fruit:favorite', Orange);\ncontainer.register('communication:main', Email, {singleton: false});\n```\n\n@method register\n@param {String} fullName\n@param {Function} factory\n@param {Object} options", "docstring_tokens": ["Registers", "a", "factory", "for", "later", "injection", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L10845-L10860", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Unregister a fullName\n\n```javascript\nvar container = new Container();\ncontainer.register('model:user', User);\n\ncontainer.lookup('model:user') instanceof User //=> true\n\ncontainer.unregister('model:user')\ncontainer.lookup('model:user') === undefined //=> true\n```\n\n@method unregister\n@param {String} fullName", "docstring_tokens": ["Unregister", "a", "fullName"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L10878-L10888", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Given a fullName return the corresponding factory.\n\nBy default `resolve` will retrieve the factory from\nits container's registry.\n\n```javascript\nvar container = new Container();\ncontainer.register('api:twitter', Twitter);\n\ncontainer.resolve('api:twitter') // => Twitter\n```\n\nOptionally the container can be provided with a custom resolver.\nIf provided, `resolve` will first provide the custom resolver\nthe oppertunity to resolve the fullName, otherwise it will fallback\nto the registry.\n\n```javascript\nvar container = new Container();\ncontainer.resolver = function(fullName) {\nlookup via the module system of choice\n};\n\nthe twitter factory is added to the module system\ncontainer.resolve('api:twitter') // => Twitter\n```\n\n@method resolve\n@param {String} fullName\n@return {Function} fullName's factory", "docstring_tokens": ["Given", "a", "fullName", "return", "the", "corresponding", "factory", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L10922-L10935", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Used only via `injection`.\n\nProvides a specialized form of injection, specifically enabling\nall objects of one type to be injected with a reference to another\nobject.\n\nFor example, provided each object of type `controller` needed a `router`.\none would do the following:\n\n```javascript\nvar container = new Container();\n\ncontainer.register('router:main', Router);\ncontainer.register('controller:user', UserController);\ncontainer.register('controller:post', PostController);\n\ncontainer.typeInjection('controller', 'router', 'router:main');\n\nvar user = container.lookup('controller:user');\nvar post = container.lookup('controller:post');\n\nuser.router instanceof Router; //=> true\npost.router instanceof Router; //=> true\n\nboth controllers share the same router\nuser.router === post.router; //=> true\n```\n\n@private\n@method typeInjection\n@param {String} type\n@param {String} property\n@param {String} fullName", "docstring_tokens": ["Used", "only", "via", "injection", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L11121-L11126", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Defines injection rules.\n\nThese rules are used to inject dependencies onto objects when they\nare instantiated.\n\nTwo forms of injections are possible:\n\nInjecting one fullName on another fullName\nInjecting one fullName on a type\n\nExample:\n\n```javascript\nvar container = new Container();\n\ncontainer.register('source:main', Source);\ncontainer.register('model:user', User);\ncontainer.register('model:post', Post);\n\ninjecting one fullName on another fullName\neg. each user model gets a post model\ncontainer.injection('model:user', 'post', 'model:post');\n\ninjecting one fullName on another type\ncontainer.injection('model', 'source', 'source:main');\n\nvar user = container.lookup('model:user');\nvar post = container.lookup('model:post');\n\nuser.source instanceof Source; //=> true\npost.source instanceof Source; //=> true\n\nuser.post instanceof Post; //=> true\n\nand both models share the same source\nuser.source === post.source; //=> true\n```\n\n@method injection\n@param {String} factoryName\n@param {String} property\n@param {String} injectionName", "docstring_tokens": ["Defines", "injection", "rules", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L11172-L11186", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Used only via `factoryInjection`.\n\nProvides a specialized form of injection, specifically enabling\nall factory of one type to be injected with a reference to another\nobject.\n\nFor example, provided each factory of type `model` needed a `store`.\none would do the following:\n\n```javascript\nvar container = new Container();\n\ncontainer.register('store:main', SomeStore);\n\ncontainer.factoryTypeInjection('model', 'store', 'store:main');\n\nvar store = container.lookup('store:main');\nvar UserFactory = container.lookupFactory('model:user');\n\nUserFactory.store instanceof SomeStore; //=> true\n```\n\n@private\n@method factoryTypeInjection\n@param {String} type\n@param {String} property\n@param {String} fullName", "docstring_tokens": ["Used", "only", "via", "factoryInjection", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L11218-L11222", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieve the value given a key, if the value is present at the current\nlevel use it, otherwise walk up the parent hierarchy and try again. If\nno matching key is found, return undefined.\n\n@method get\n@param {String} key\n@return {any}", "docstring_tokens": ["Retrieve", "the", "value", "given", "a", "key", "if", "the", "value", "is", "present", "at", "the", "current", "level", "use", "it", "otherwise", "walk", "up", "the", "parent", "hierarchy", "and", "try", "again", ".", "If", "no", "matching", "key", "is", "found", "return", "undefined", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L11557-L11567", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check for the existence of given a key, if the key is present at the current\nlevel return true, otherwise walk up the parent hierarchy and try again. If\nno matching key is found, return false.\n\n@method has\n@param {String} key\n@return {Boolean}", "docstring_tokens": ["Check", "for", "the", "existence", "of", "given", "a", "key", "if", "the", "key", "is", "present", "at", "the", "current", "level", "return", "true", "otherwise", "walk", "up", "the", "parent", "hierarchy", "and", "try", "again", ".", "If", "no", "matching", "key", "is", "found", "return", "false", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L11599-L11611", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Iterate and invoke a callback for each local key-value pair.\n\n@method eachLocal\n@param {Function} callback\n@param {Object} binding", "docstring_tokens": ["Iterate", "and", "invoke", "a", "callback", "for", "each", "local", "key", "-", "value", "pair", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L11620-L11628", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Replaces underscores, spaces, or camelCase with dashes.\n\n```javascript\n'innerHTML'.dasherize(); // 'inner-html'\n'action_name'.dasherize(); // 'action-name'\n'css-class-name'.dasherize(); // 'css-class-name'\n'my favorite items'.dasherize(); // 'my-favorite-items'\n```\n\n@method dasherize\n@param {String} str The string to dasherize.\n@return {String} the dasherized string.", "docstring_tokens": ["Replaces", "underscores", "spaces", "or", "camelCase", "with", "dashes", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L12086-L12099", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set the value of a property to the current value plus some amount.\n\n```javascript\nperson.incrementProperty('age');\nteam.incrementProperty('score', 2);\n```\n\n@method incrementProperty\n@param {String} keyName The name of the property to increment\n@param {Number} increment The amount to increment by. Defaults to 1\n@return {Number} The new property value", "docstring_tokens": ["Set", "the", "value", "of", "a", "property", "to", "the", "current", "value", "plus", "some", "amount", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L12733-L12738", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set the value of a property to the current value minus some amount.\n\n```javascript\nplayer.decrementProperty('lives');\norc.decrementProperty('health', 5);\n```\n\n@method decrementProperty\n@param {String} keyName The name of the property to decrement\n@param {Number} decrement The amount to decrement by. Defaults to 1\n@return {Number} The new property value", "docstring_tokens": ["Set", "the", "value", "of", "a", "property", "to", "the", "current", "value", "minus", "some", "amount", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L12753-L12758", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new subclass.\n\n```javascript\nApp.Person = Ember.Object.extend({\nsay: function(thing) {\nalert(thing);\n}\n});\n```\n\nThis defines a new subclass of Ember.Object: `App.Person`. It contains one method: `say()`.\n\nYou can also create a subclass from any existing class by calling its `extend()` method. For example, you might want to create a subclass of Ember's built-in `Ember.View` class:\n\n```javascript\nApp.PersonView = Ember.View.extend({\ntagName: 'li',\nclassNameBindings: ['isAdministrator']\n});\n```\n\nWhen defining a subclass, you can override methods but still access the implementation of your parent class by calling the special `_super()` method:\n\n```javascript\nApp.Person = Ember.Object.extend({\nsay: function(thing) {\nvar name = this.get('name');\nalert(name + ' says: ' + thing);\n}\n});\n\nApp.Soldier = App.Person.extend({\nsay: function(thing) {\nthis._super(thing + \", sir!\");\n},\nmarch: function(numberOfHours) {\nalert(this.get('name') + ' marches for ' + numberOfHours + ' hours.')\n}\n});\n\nvar yehuda = App.Soldier.create({\nname: \"Yehuda Katz\"\n});\n\nyehuda.say(\"Yes\"); // alerts \"Yehuda Katz says: Yes, sir!\"\n```\n\nThe `create()` on line #17 creates an *instance* of the `App.Soldier` class. The `extend()` on line #8 creates a *subclass* of `App.Person`. Any instance of the `App.Person` class will *not* have the `march()` method.\n\nYou can also pass `Ember.Mixin` classes to add additional properties to the subclass.\n\n```javascript\nApp.Person = Ember.Object.extend({\nsay: function(thing) {\nalert(this.get('name') + ' says: ' + thing);\n}\n});\n\nApp.SingingMixin = Ember.Mixin.create({\nsing: function(thing){\nalert(this.get('name') + ' sings: la la la ' + thing);\n}\n});\n\nApp.BroadwayStar = App.Person.extend(App.SingingMixin, {\ndance: function() {\nalert(this.get('name') + ' dances: tap tap tap tap ');\n}\n});\n```\n\nThe `App.BroadwayStar` class contains three methods: `say()`, `sing()`, and `dance()`.\n\n@method extend\n@static\n\n@param {Ember.Mixin} [mixins]* One or more Ember.Mixin classes\n@param {Object} [arguments]* Object containing values to use within the new class", "docstring_tokens": ["Creates", "a", "new", "subclass", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L13304-L13324", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "In some cases, you may want to annotate computed properties with additional\nmetadata about how they function or what values they operate on. For\nexample, computed property functions may close over variables that are then\nno longer available for introspection.\n\nYou can pass a hash of these values to a computed property like this:\n\n```javascript\nperson: function() {\nvar personId = this.get('personId');\nreturn App.Person.create({ id: personId });\n}.property().meta({ type: App.Person })\n```\n\nOnce you've done this, you can retrieve the values saved to the computed\nproperty from your class like this:\n\n```javascript\nMyClass.metaForProperty('person');\n```\n\nThis will return the original hash that was passed to `meta()`.\n\n@method metaForProperty\n@param key {String} property name", "docstring_tokens": ["In", "some", "cases", "you", "may", "want", "to", "annotate", "computed", "properties", "with", "additional", "metadata", "about", "how", "they", "function", "or", "what", "values", "they", "operate", "on", ".", "For", "example", "computed", "property", "functions", "may", "close", "over", "variables", "that", "are", "then", "no", "longer", "available", "for", "introspection", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L13519-L13525", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an array with the items that do not have truthy values for\nkey. You can pass an optional second argument with the target value. Otherwise\nthis will match any property that evaluates to false.\n\n@method rejectBy\n@param {String} key the property to test\n@param {String} [value] optional value to test against.\n@return {Array} rejected array", "docstring_tokens": ["Returns", "an", "array", "with", "the", "items", "that", "do", "not", "have", "truthy", "values", "for", "key", ".", "You", "can", "pass", "an", "optional", "second", "argument", "with", "the", "target", "value", ".", "Otherwise", "this", "will", "match", "any", "property", "that", "evaluates", "to", "false", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L14373-L14379", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a new enumerable that excludes the passed value. The default\nimplementation returns an array regardless of the receiver type unless\nthe receiver does not contain the value.\n\n```javascript\nvar arr = [\"a\", \"b\", \"a\", \"c\"];\narr.without(\"a\"); // [\"b\", \"c\"]\n```\n\n@method without\n@param {Object} value\n@return {Ember.Enumerable}", "docstring_tokens": ["Returns", "a", "new", "enumerable", "that", "excludes", "the", "passed", "value", ".", "The", "default", "implementation", "returns", "an", "array", "regardless", "of", "the", "receiver", "type", "unless", "the", "receiver", "does", "not", "contain", "the", "value", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L14769-L14776", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a new enumerable that contains only unique values. The default\nimplementation returns an array regardless of the receiver type.\n\n```javascript\nvar arr = [\"a\", \"a\", \"b\", \"b\"];\narr.uniq(); // [\"a\", \"b\"]\n```\n\n@method uniq\n@return {Ember.Enumerable}", "docstring_tokens": ["Returns", "a", "new", "enumerable", "that", "contains", "only", "unique", "values", ".", "The", "default", "implementation", "returns", "an", "array", "regardless", "of", "the", "receiver", "type", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L14790-L14796", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If you are implementing an object that supports `Ember.Array`, call this\nmethod just before the array content changes to notify any observers and\ninvalidate any related properties. Pass the starting index of the change\nas well as a delta of the amounts to change.\n\n@method arrayContentWillChange\n@param {Number} startIdx The starting index in the array that will change.\n@param {Number} removeAmt The number of items that will be removed. If you\npass `null` assumes 0\n@param {Number} addAmt The number of items that will be added. If you\npass `null` assumes 0.\n@return {Ember.Array} receiver", "docstring_tokens": ["If", "you", "are", "implementing", "an", "object", "that", "supports", "Ember", ".", "Array", "call", "this", "method", "just", "before", "the", "array", "content", "changes", "to", "notify", "any", "observers", "and", "invalidate", "any", "related", "properties", ".", "Pass", "the", "starting", "index", "of", "the", "change", "as", "well", "as", "a", "delta", "of", "the", "amounts", "to", "change", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L15300-L15328", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If you are implementing an object that supports `Ember.Array`, call this\nmethod just after the array content changes to notify any observers and\ninvalidate any related properties. Pass the starting index of the change\nas well as a delta of the amounts to change.\n\n@method arrayContentDidChange\n@param {Number} startIdx The starting index in the array that did change.\n@param {Number} removeAmt The number of items that were removed. If you\npass `null` assumes 0\n@param {Number} addAmt The number of items that were added. If you\npass `null` assumes 0.\n@return {Ember.Array} receiver", "docstring_tokens": ["If", "you", "are", "implementing", "an", "object", "that", "supports", "Ember", ".", "Array", "call", "this", "method", "just", "after", "the", "array", "content", "changes", "to", "notify", "any", "observers", "and", "invalidate", "any", "related", "properties", ".", "Pass", "the", "starting", "index", "of", "the", "change", "as", "well", "as", "a", "delta", "of", "the", "amounts", "to", "change", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L15344-L15380", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "ReduceComputedProperty", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A computed property whose dependent keys are arrays and which is updated with\n\"one at a time\" semantics.\n\n@class ReduceComputedProperty\n@namespace Ember\n@extends Ember.ComputedProperty\n@constructor", "docstring_tokens": ["A", "computed", "property", "whose", "dependent", "keys", "are", "arrays", "and", "which", "is", "updated", "with", "one", "at", "a", "time", "semantics", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L15860-L15940", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds each object in the passed enumerable to the receiver.\n\n@method addObjects\n@param {Ember.Enumerable} objects the objects to add.\n@return {Object} receiver", "docstring_tokens": ["Adds", "each", "object", "in", "the", "passed", "enumerable", "to", "the", "receiver", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L17700-L17705", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes each object in the passed enumerable from the receiver.\n\n@method removeObjects\n@param {Ember.Enumerable} objects the objects to remove\n@return {Object} receiver", "docstring_tokens": ["Removes", "each", "object", "in", "the", "passed", "enumerable", "from", "the", "receiver", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L17731-L17736", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Triggers a named event for the object. Any additional arguments\nwill be passed as parameters to the functions that are subscribed to the\nevent.\n\n```javascript\nperson.on('didEat', function(food) {\nconsole.log('person ate some ' + food);\n});\n\nperson.trigger('didEat', 'broccoli');\n\noutputs: person ate some broccoli\n```\n@method trigger\n@param {String} name The name of the event\n@param {Object...} args Optional arguments to pass on", "docstring_tokens": ["Triggers", "a", "named", "event", "for", "the", "object", ".", "Any", "additional", "arguments", "will", "be", "passed", "as", "parameters", "to", "the", "functions", "that", "are", "subscribed", "to", "the", "event", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L18312-L18318", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add handlers to be called when the Deferred object is resolved or rejected.\n\n@method then\n@param {Function} resolve a callback function to be called when done\n@param {Function} reject a callback function to be called when failed", "docstring_tokens": ["Add", "handlers", "to", "be", "called", "when", "the", "Deferred", "object", "is", "resolved", "or", "rejected", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L18409-L18425", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Resolve a Deferred object and call any `doneCallbacks` with the given args.\n\n@method resolve", "docstring_tokens": ["Resolve", "a", "Deferred", "object", "and", "call", "any", "doneCallbacks", "with", "the", "given", "args", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L18432-L18443", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The collection of functions, keyed by name, available on this\n`ActionHandler` as action targets.\n\nThese functions will be invoked when a matching `{{action}}` is triggered\nfrom within a template and the application's current route is this route.\n\nActions can also be invoked from other parts of your application\nvia `ActionHandler#send`.\n\nThe `actions` hash will inherit action handlers from\nthe `actions` hash defined on extended parent classes\nor mixins rather than just replace the entire hash, e.g.:\n\n```js\nApp.CanDisplayBanner = Ember.Mixin.create({\nactions: {\ndisplayBanner: function(msg) {\n...\n}\n}\n});\n\nApp.WelcomeRoute = Ember.Route.extend(App.CanDisplayBanner, {\nactions: {\nplayMusic: function() {\n...\n}\n}\n});\n\n`WelcomeRoute`, when active, will be able to respond\nto both actions, since the actions hash is merged rather\nthen replaced when extending mixins / parent classes.\nthis.send('displayBanner');\nthis.send('playMusic');\n```\n\nWithin a Controller, Route, View or Component's action handler,\nthe value of the `this` context is the Controller, Route, View or\nComponent object:\n\n```js\nApp.SongRoute = Ember.Route.extend({\nactions: {\nmyAction: function() {\nthis.controllerFor(\"song\");\nthis.transitionTo(\"other.route\");\n...\n}\n}\n});\n```\n\nIt is also possible to call `this._super()` from within an\naction handler if it overrides a handler defined on a parent\nclass or mixin:\n\nTake for example the following routes:\n\n```js\nApp.DebugRoute = Ember.Mixin.create({\nactions: {\ndebugRouteInformation: function() {\nconsole.debug(\"trololo\");\n}\n}\n});\n\nApp.AnnoyingDebugRoute = Ember.Route.extend(App.DebugRoute, {\nactions: {\ndebugRouteInformation: function() {\nalso call the debugRouteInformation of mixed in App.DebugRoute\nthis._super();\n\nshow additional annoyance\nwindow.alert(...);\n}\n}\n});\n```\n\n## Bubbling\n\nBy default, an action will stop bubbling once a handler defined\non the `actions` hash handles it. To continue bubbling the action,\nyou must return `true` from the handler:\n\n```js\nApp.Router.map(function() {\nthis.resource(\"album\", function() {\nthis.route(\"song\");\n});\n});\n\nApp.AlbumRoute = Ember.Route.extend({\nactions: {\nstartPlaying: function() {\n}\n}\n});\n\nApp.AlbumSongRoute = Ember.Route.extend({\nactions: {\nstartPlaying: function() {\n...\n\nif (actionShouldAlsoBeTriggeredOnParentRoute) {\nreturn true;\n}\n}\n}\n});\n```\n\n@property actions\n@type Hash\n@default null\n \nMoves `actions` to `_actions` at extend time. Note that this currently\nmodifies the mixin themselves, which is technically dubious but\nis practically of little consequence. This may change in the future.\n\n@private\n@method willMergeMixin", "docstring_tokens": ["The", "collection", "of", "functions", "keyed", "by", "name", "available", "on", "this", "ActionHandler", "as", "action", "targets", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L18618-L18637", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Triggers a named action on the `ActionHandler`. Any parameters\nsupplied after the `actionName` string will be passed as arguments\nto the action target function.\n\nIf the `ActionHandler` has its `target` property set, actions may\nbubble to the `target`. Bubbling happens when an `actionName` can\nnot be found in the `ActionHandler`'s `actions` hash or if the\naction target function returns `true`.\n\nExample\n\n```js\nApp.WelcomeRoute = Ember.Route.extend({\nactions: {\nplayTheme: function() {\nthis.send('playMusic', 'theme.mp3');\n},\nplayMusic: function(track) {\n...\n}\n}\n});\n```\n\n@method send\n@param {String} actionName The action to trigger\n@param {*} context a context to send with the action", "docstring_tokens": ["Triggers", "a", "named", "action", "on", "the", "ActionHandler", ".", "Any", "parameters", "supplied", "after", "the", "actionName", "string", "will", "be", "passed", "as", "arguments", "to", "the", "action", "target", "function", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L18668-L18690", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Track that `newItems` were added to the tracked array at `index`.\n\n@method addItems\n@param index\n@param newItems", "docstring_tokens": ["Track", "that", "newItems", "were", "added", "to", "the", "tracked", "array", "at", "index", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L18948-L18980", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Track that `count` items were removed at `index`.\n\n@method removeItems\n@param index\n@param count", "docstring_tokens": ["Track", "that", "count", "items", "were", "removed", "at", "index", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L18989-L19010", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "see SubArray for a better implementation.", "docstring_tokens": ["see", "SubArray", "for", "a", "better", "implementation", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L19095-L19122", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "ArrayOperation", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal data structure to represent an array operation.\n\n@method ArrayOperation\n@private\n@param {string} type The type of the operation. One of\n`Ember.TrackedArray.{RETAIN, INSERT, DELETE}`\n@param {number} count The number of items in this operation.\n@param {array} items The items of the operation, if included. RETAIN and\nINSERT include their items, DELETE does not.", "docstring_tokens": ["Internal", "data", "structure", "to", "represent", "an", "array", "operation", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L19212-L19216", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "ArrayOperationMatch", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal data structure used to include information when looking up operations\nby item index.\n\n@method ArrayOperationMatch\n@private\n@param {ArrayOperation} operation\n@param {number} index The index of `operation` in the array of operations.\n@param {boolean} split Whether or not the item index searched for would\nrequire a split for a new operation type.\n@param {number} rangeStart The index of the first item in the operation,\nwith respect to the tracked array. The index of the last item can be computed\nfrom `rangeStart` and `operation.count`.", "docstring_tokens": ["Internal", "data", "structure", "used", "to", "include", "information", "when", "looking", "up", "operations", "by", "item", "index", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L19232-L19237", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Track that an item was added to the tracked array.\n\n@method addItem\n\n@param {number} index The index of the item in the tracked array.\n@param {boolean} match `true` iff the item is included in the subarray.\n\n@return {number} The index of the item in the subarray.", "docstring_tokens": ["Track", "that", "an", "item", "was", "added", "to", "the", "tracked", "array", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L19283-L19324", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Track that an item was removed from the tracked array.\n\n@method removeItem\n\n@param {number} index The index of the item in the tracked array.\n\n@return {number} The index of the item in the subarray, or `-1` if the item\nwas not in the subarray.", "docstring_tokens": ["Track", "that", "an", "item", "was", "removed", "from", "the", "tracked", "array", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L19336-L19356", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "You can directly access mapped properties by simply requesting them.\nThe `unknownProperty` handler will generate an EachArray of each item.\n\n@method unknownProperty\n@param keyName {String}\n@param value {*}", "docstring_tokens": ["You", "can", "directly", "access", "mapped", "properties", "by", "simply", "requesting", "them", ".", "The", "unknownProperty", "handler", "will", "generate", "an", "EachArray", "of", "each", "item", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L19882-L19888", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "primitive for array support.", "docstring_tokens": ["primitive", "for", "array", "support", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L20014-L20032", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Clears the set. This is useful if you want to reuse an existing set\nwithout having to recreate it.\n\n```javascript\nvar colors = new Ember.Set([\"red\", \"green\", \"blue\"]);\ncolors.length; // 3\ncolors.clear();\ncolors.length; // 0\n```\n\n@method clear\n@return {Ember.Set} An empty Set", "docstring_tokens": ["Clears", "the", "set", ".", "This", "is", "useful", "if", "you", "want", "to", "reuse", "an", "existing", "set", "without", "having", "to", "recreate", "it", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L20307-L20332", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes the last element from the set and returns it, or `null` if it's empty.\n\n```javascript\nvar colors = new Ember.Set([\"green\", \"blue\"]);\ncolors.pop(); // \"blue\"\ncolors.pop(); // \"green\"\ncolors.pop(); // null\n```\n\n@method pop\n@return {Object} The removed object from the set or null.", "docstring_tokens": ["Removes", "the", "last", "element", "from", "the", "set", "and", "returns", "it", "or", "null", "if", "it", "s", "empty", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L20417-L20422", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Use this to find children by ID instead of using jQuery", "docstring_tokens": ["Use", "this", "to", "find", "children", "by", "ID", "instead", "of", "using", "jQuery"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L21436-L21445", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds a class to the buffer, which will be rendered to the class attribute.\n\n@method addClass\n@param {String} className Class name to add to the buffer\n@chainable", "docstring_tokens": ["Adds", "a", "class", "to", "the", "buffer", "which", "will", "be", "rendered", "to", "the", "class", "attribute", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L21781-L21788", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "duck type attribute functionality like jQuery so a render buffer can be used like a jQuery object in attribute binding scenarios. \nAdds an attribute which will be rendered to the element.\n\n@method attr\n@param {String} name The name of the attribute\n@param {String} value The value to add to the attribute\n@chainable\n@return {Ember.RenderBuffer|String} this or the current attribute value", "docstring_tokens": ["duck", "type", "attribute", "functionality", "like", "jQuery", "so", "a", "render", "buffer", "can", "be", "used", "like", "a", "jQuery", "object", "in", "attribute", "binding", "scenarios", ".", "Adds", "an", "attribute", "which", "will", "be", "rendered", "to", "the", "element", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L21822-L21832", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds a property which will be rendered to the element.\n\n@method prop\n@param {String} name The name of the property\n@param {String} value The value to add to the property\n@chainable\n@return {Ember.RenderBuffer|String} this or the current property value", "docstring_tokens": ["Adds", "a", "property", "which", "will", "be", "rendered", "to", "the", "element", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L21857-L21867", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generates the HTML content for this buffer.\n\n@method string\n@return {String} The generated HTML", "docstring_tokens": ["Generates", "the", "HTML", "content", "for", "this", "buffer", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L22071-L22082", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets up event listeners for standard browser events.\n\nThis will be called after the browser sends a `DOMContentReady` event. By\ndefault, it will set up all of the listeners on the document body. If you\nwould like to register the listeners on a different element, set the event\ndispatcher's `root` property.\n\n@private\n@method setup\n@param addedEvents {Hash}", "docstring_tokens": ["Sets", "up", "event", "listeners", "for", "standard", "browser", "events", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L22183-L22208", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Registers an event listener on the document. If the given event is\ntriggered, the provided event handler will be triggered on the target view.\n\nIf the target view does not implement the event handler, or if the handler\nreturns `false`, the parent view will be called. The event will continue to\nbubble to each successive parent view until it reaches the top.\n\nFor example, to have the `mouseDown` method called on the target view when\na `mousedown` event is received from the browser, do the following:\n\n```javascript\nsetupHandler('mousedown', 'mouseDown');\n```\n\n@private\n@method setupHandler\n@param {Element} rootElement\n@param {String} event the browser-originated event to listen to\n@param {String} eventName the name of the method to call on the view", "docstring_tokens": ["Registers", "an", "event", "listener", "on", "the", "document", ".", "If", "the", "given", "event", "is", "triggered", "the", "provided", "event", "handler", "will", "be", "triggered", "on", "the", "target", "view", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L22231-L22262", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the nearest ancestor that is an instance of the provided\nclass.\n\n@method nearestInstanceOf\n@param {Class} klass Subclass of Ember.View (or Ember.View itself)\n@return Ember.View\n@deprecated", "docstring_tokens": ["Return", "the", "nearest", "ancestor", "that", "is", "an", "instance", "of", "the", "provided", "class", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L23415-L23423", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the nearest ancestor that has a given property.\n\n@function nearestWithProperty\n@param {String} property A property name\n@return Ember.View", "docstring_tokens": ["Return", "the", "nearest", "ancestor", "that", "has", "a", "given", "property", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L23453-L23460", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the nearest ancestor whose parent is an instance of\n`klass`.\n\n@method nearestChildOf\n@param {Class} klass Subclass of Ember.View (or Ember.View itself)\n@return Ember.View", "docstring_tokens": ["Return", "the", "nearest", "ancestor", "whose", "parent", "is", "an", "instance", "of", "klass", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L23470-L23477", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called on your view when it should push strings of HTML into a\n`Ember.RenderBuffer`. Most users will want to override the `template`\nor `templateName` properties instead of this method.\n\nBy default, `Ember.View` will look for a function in the `template`\nproperty and invoke it with the value of `context`. The value of\n`context` will be the view's controller unless you override it.\n\n@method render\n@param {Ember.RenderBuffer} buffer The render buffer", "docstring_tokens": ["Called", "on", "your", "view", "when", "it", "should", "push", "strings", "of", "HTML", "into", "a", "Ember", ".", "RenderBuffer", ".", "Most", "users", "will", "want", "to", "override", "the", "template", "or", "templateName", "properties", "instead", "of", "this", "method", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L23528-L23560", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set up an observer on the context. If the property changes, toggle the class name.", "docstring_tokens": ["Set", "up", "an", "observer", "on", "the", "context", ".", "If", "the", "property", "changes", "toggle", "the", "class", "name", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L23626-L23647", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Iterates through the view's attribute bindings, sets up observers for each,\nthen applies the current value of the attributes to the passed render buffer.\n\n@method _applyAttributeBindings\n@param {Ember.RenderBuffer} buffer\n@private", "docstring_tokens": ["Iterates", "through", "the", "view", "s", "attribute", "bindings", "sets", "up", "observers", "for", "each", "then", "applies", "the", "current", "value", "of", "the", "attributes", "to", "the", "passed", "render", "buffer", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L23686-L23709", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets defined after initialization by _applyAttributeBindings", "docstring_tokens": ["Gets", "defined", "after", "initialization", "by", "_applyAttributeBindings"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L23740-L23748", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse a path and return an object which holds the parsed properties.\n\nFor example a path like \"content.isEnabled:enabled:disabled\" will return the\nfollowing object:\n\n```javascript\n{\npath: \"content.isEnabled\",\nclassName: \"enabled\",\nfalsyClassName: \"disabled\",\nclassNames: \":enabled:disabled\"\n}\n```\n\n@method _parsePropertyPath\n@static\n@private", "docstring_tokens": ["Parse", "a", "path", "and", "return", "an", "object", "which", "holds", "the", "parsed", "properties", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L24742-L24764", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "when a view is rendered in a buffer, appending a child view will render that view and append the resulting buffer into its buffer.", "docstring_tokens": ["when", "a", "view", "is", "rendered", "in", "a", "buffer", "appending", "a", "child", "view", "will", "render", "that", "view", "and", "append", "the", "resulting", "buffer", "into", "its", "buffer", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L25007-L25019", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "when a view is rendered in a buffer, destroying the element will simply destroy the buffer and put the state back into the preRender state.", "docstring_tokens": ["when", "a", "view", "is", "rendered", "in", "a", "buffer", "destroying", "the", "element", "will", "simply", "destroy", "the", "buffer", "and", "put", "the", "state", "back", "into", "the", "preRender", "state", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L25024-L25030", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "once the view has been inserted into the DOM, rerendering is deferred to allow bindings to synchronize.", "docstring_tokens": ["once", "the", "view", "has", "been", "inserted", "into", "the", "DOM", "rerendering", "is", "deferred", "to", "allow", "bindings", "to", "synchronize", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L25105-L25112", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "once the view is already in the DOM, destroying it removes it from the DOM, nukes its element, and puts it back into the preRender state if inDOM.", "docstring_tokens": ["once", "the", "view", "is", "already", "in", "the", "DOM", "destroying", "it", "removes", "it", "from", "the", "DOM", "nukes", "its", "element", "and", "puts", "it", "back", "into", "the", "preRender", "state", "if", "inDOM", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L25118-L25127", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handle events from `Ember.EventDispatcher`", "docstring_tokens": ["Handle", "events", "from", "Ember", ".", "EventDispatcher"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L25141-L25149", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "When a child view is removed, destroy its element so that\nit is removed from the DOM.\n\nThe array observer that triggers this action is set up in the\n`renderToBuffer` method.\n\n@private\n@method childViewsWillChange\n@param {Ember.Array} views the child views array before mutation\n@param {Number} start the start position of the mutation\n@param {Number} removed the number of child views removed", "docstring_tokens": ["When", "a", "child", "view", "is", "removed", "destroy", "its", "element", "so", "that", "it", "is", "removed", "from", "the", "DOM", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L25514-L25523", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "When a child view is added, make sure the DOM gets updated appropriately.\n\nIf the view has already rendered an element, we tell the child view to\ncreate an element and insert it into the DOM. If the enclosing container\nview has already written to a buffer, but not yet converted that buffer\ninto an element, we insert the string representation of the child into the\nappropriate place in the buffer.\n\n@private\n@method childViewsDidChange\n@param {Ember.Array} views the array of child views afte the mutation has occurred\n@param {Number} start the start position of the mutation\n@param {Number} removed the number of child views removed\n@param {Number} the number of child views added", "docstring_tokens": ["When", "a", "child", "view", "is", "added", "make", "sure", "the", "DOM", "gets", "updated", "appropriately", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L25546-L25553", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called when a mutation to the underlying content array will occur.\n\nThis method will remove any views that are no longer in the underlying\ncontent array.\n\nInvokes whenever the content array itself will change.\n\n@method arrayWillChange\n@param {Array} content the managed collection of objects\n@param {Number} start the index at which the changes will occurr\n@param {Number} removed number of object to be removed from content", "docstring_tokens": ["Called", "when", "a", "mutation", "to", "the", "underlying", "content", "array", "will", "occur", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L25942-L25970", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called when a mutation to the underlying content array occurs.\n\nThis method will replay that mutation against the views that compose the\n`Ember.CollectionView`, ensuring that the view reflects the model.\n\nThis array observer is added in `contentDidChange`.\n\n@method arrayDidChange\n@param {Array} content the managed collection of objects\n@param {Number} start the index at which the changes occurred\n@param {Number} removed number of object removed from content\n@param {Number} added number of object added to content", "docstring_tokens": ["Called", "when", "a", "mutation", "to", "the", "underlying", "content", "array", "occurs", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L25986-L26032", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Triggers a named action on the controller context where the component is used if\nthis controller has registered for notifications of the action.\n\nFor example a component for playing or pausing music may translate click events\ninto action notifications of \"play\" or \"stop\" depending on some internal state\nof the component:\n\n\n```javascript\nApp.PlayButtonComponent = Ember.Component.extend({\nclick: function(){\nif (this.get('isPlaying')) {\nthis.sendAction('play');\n} else {\nthis.sendAction('stop');\n}\n}\n});\n```\n\nWhen used inside a template these component actions are configured to\ntrigger actions in the outer application context:\n\n```handlebars\n{{! application.hbs }}\n{{play-button play=\"musicStarted\" stop=\"musicStopped\"}}\n```\n\nWhen the component receives a browser `click` event it translate this\ninteraction into application-specific semantics (\"play\" or \"stop\") and\ntriggers the specified action name on the controller for the template\nwhere the component is used:\n\n\n```javascript\nApp.ApplicationController = Ember.Controller.extend({\nactions: {\nmusicStarted: function(){\ncalled when the play button is clicked\nand the music started playing\n},\nmusicStopped: function(){\ncalled when the play button is clicked\nand the music stopped playing\n}\n}\n});\n```\n\nIf no action name is passed to `sendAction` a default name of \"action\"\nis assumed.\n\n```javascript\nApp.NextButtonComponent = Ember.Component.extend({\nclick: function(){\nthis.sendAction();\n}\n});\n```\n\n```handlebars\n{{! application.hbs }}\n{{next-button action=\"playNextSongInAlbum\"}}\n```\n\n```javascript\nApp.ApplicationController = Ember.Controller.extend({\nactions: {\nplayNextSongInAlbum: function(){\n...\n}\n}\n});\n```\n\n@method sendAction\n@param [action] {String} the action to trigger\n@param [context] {*} a context to send with the action", "docstring_tokens": ["Triggers", "a", "named", "action", "on", "the", "controller", "context", "where", "the", "component", "is", "used", "if", "this", "controller", "has", "registered", "for", "notifications", "of", "the", "action", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L26420-L26445", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "evaluateUnboundHelper", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Renders the unbound form of an otherwise bound helper function.\n\n@private\n@method evaluateUnboundHelper\n@param {Function} fn\n@param {Object} context\n@param {Array} normalizedProperties\n@param {String} options", "docstring_tokens": ["Renders", "the", "unbound", "form", "of", "an", "otherwise", "bound", "helper", "function", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L27795-L27822", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is messed up.", "docstring_tokens": ["This", "is", "messed", "up", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L27943-L27969", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "bind", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Binds a property into the DOM. This will create a hook in DOM that the KVO system will look for and update if the property changes.", "docstring_tokens": ["Binds", "a", "property", "into", "the", "DOM", ".", "This", "will", "create", "a", "hook", "in", "DOM", "that", "the", "KVO", "system", "will", "look", "for", "and", "update", "if", "the", "property", "changes", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L28397-L28475", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "_addMetamorphCheck", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Defeatureify doesn't seem to like nested functions that need to be removed", "docstring_tokens": ["Defeatureify", "doesn", "t", "seem", "to", "like", "nested", "functions", "that", "need", "to", "be", "removed"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L30063-L30074", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Clears the current and target route handlers and triggers exit\non each of them starting at the leaf and traversing up through\nits ancestors.", "docstring_tokens": ["Clears", "the", "current", "and", "target", "route", "handlers", "and", "triggers", "exit", "on", "each", "of", "them", "starting", "at", "the", "leaf", "and", "traversing", "up", "through", "its", "ancestors", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L33254-L33266", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initializes the current router instance and sets up the change handling\nevent listeners used by the instances `location` implementation.\n\nA property named `initialURL` will be used to determine the initial URL.\nIf no value is found `/` will be used.\n\n@method startRouting\n@private", "docstring_tokens": ["Initializes", "the", "current", "router", "instance", "and", "sets", "up", "the", "change", "handling", "event", "listeners", "used", "by", "the", "instances", "location", "implementation", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L34998-L35029", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This hook is the entry point for router.js\n\n@private\n@method setup", "docstring_tokens": ["This", "hook", "is", "the", "entry", "point", "for", "router", ".", "js"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L36311-L36339", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A hook you can implement to convert the URL into the model for\nthis route.\n\n```js\nApp.Router.map(function() {\nthis.resource('post', {path: '/posts/:post_id'});\n});\n```\n\nThe model for the `post` route is `App.Post.find(params.post_id)`.\n\nBy default, if your route has a dynamic segment ending in `_id`:\n\nThe model class is determined from the segment (`post_id`'s\nclass is `App.Post`)\nThe find method is called on the model class with the value of\nthe dynamic segment.\n\nNote that for routes with dynamic segments, this hook is only\nexecuted when entered via the URL. If the route is entered\nthrough a transition (e.g. when using the `link-to` Handlebars\nhelper), then a model context is already provided and this hook\nis not called. Routes without dynamic segments will always\nexecute the model hook.\n\nThis hook follows the asynchronous/promise semantics\ndescribed in the documentation for `beforeModel`. In particular,\nif a promise returned from `model` fails, the error will be\nhandled by the `error` hook on `Ember.Route`.\n\nExample\n\n```js\nApp.PostRoute = Ember.Route.extend({\nmodel: function(params) {\nreturn App.Post.find(params.post_id);\n}\n});\n```\n\n@method model\n@param {Object} params the parameters extracted from the URL\n@param {Transition} transition\n@param {Object} queryParams the query params for this route\n@return {Object|Promise} the model for this route. If\na promise is returned, the transition will pause until\nthe promise resolves, and the resolved value of the promise\nwill be used as the model for this route.", "docstring_tokens": ["A", "hook", "you", "can", "implement", "to", "convert", "the", "URL", "into", "the", "model", "for", "this", "route", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L36537-L36561", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A hook you can implement to convert the route's model into parameters\nfor the URL.\n\n```js\nApp.Router.map(function() {\nthis.resource('post', {path: '/posts/:post_id'});\n});\n\nApp.PostRoute = Ember.Route.extend({\nmodel: function(params) {\nthe server returns `{ id: 12 }`\nreturn jQuery.getJSON(\"/posts/\" + params.post_id);\n},\n\nserialize: function(model) {\nthis will make the URL `/posts/12`\nreturn { post_id: model.id };\n}\n});\n```\n\nThe default `serialize` method will insert the model's `id` into the\nroute's dynamic segment (in this case, `:post_id`) if the segment contains '_id'.\nIf the route has multiple dynamic segments or does not contain '_id', `serialize`\nwill return `Ember.getProperties(model, params)`\n\nThis method is called when `transitionTo` is called with a context\nin order to populate the URL.\n\n@method serialize\n@param {Object} model the route's model\n@param {Array} params an Array of parameter names for the current\nroute (in the example, `['post_id']`.\n@return {Object} the serialized parameters", "docstring_tokens": ["A", "hook", "you", "can", "implement", "to", "convert", "the", "route", "s", "model", "into", "parameters", "for", "the", "URL", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L36657-L36670", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the controller for a particular route or name.\n\nThe controller instance must already have been created, either through entering the\nassociated route or using `generateController`.\n\n```js\nApp.PostRoute = Ember.Route.extend({\nsetupController: function(controller, post) {\nthis._super(controller, post);\nthis.controllerFor('posts').set('currentPost', post);\n}\n});\n```\n\n@method controllerFor\n@param {String} name the name of the route or controller\n@return {Ember.Controller}", "docstring_tokens": ["Returns", "the", "controller", "for", "a", "particular", "route", "or", "name", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L36765-L36786", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Disconnects a view that has been rendered into an outlet.\n\nYou may pass any or all of the following options to `disconnectOutlet`:\n\n`outlet`: the name of the outlet to clear (default: 'main')\n`parentView`: the name of the view containing the outlet to clear\n(default: the view rendered by the parent route)\n\nExample:\n\n```js\nApp.ApplicationRoute = App.Route.extend({\nactions: {\nshowModal: function(evt) {\nthis.render(evt.modalName, {\noutlet: 'modal',\ninto: 'application'\n});\n},\nhideModal: function(evt) {\nthis.disconnectOutlet({\noutlet: 'modal',\nparentView: 'application'\n});\n}\n}\n});\n```\n\nAlternatively, you can pass the `outlet` name directly as a string.\n\nExample:\n\n```js\nhideModal: function(evt) {\nthis.disconnectOutlet('modal');\n}\n```\n\n@method disconnectOutlet\n@param {Object|String} options the options hash or outlet name", "docstring_tokens": ["Disconnects", "a", "view", "that", "has", "been", "rendered", "into", "an", "outlet", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L37039-L37050", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is called to setup observers that will trigger a rerender.\n\n@private\n@method _setupPathObservers", "docstring_tokens": ["This", "is", "called", "to", "setup", "observers", "that", "will", "trigger", "a", "rerender", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L37458-L37496", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Event handler that invokes the link, activating the associated route.\n\n@private\n@method _invoke\n@param {Event} event", "docstring_tokens": ["Event", "handler", "that", "invokes", "the", "link", "activating", "the", "associated", "route", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L37590-L37623", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Transition into another route while replacing the current URL, if possible.\nThis will replace the current history entry instead of adding a new one.\nBeside that, it is identical to `transitionToRoute` in all other respects.\n\n```javascript\naController.replaceRoute('blogPosts');\naController.replaceRoute('blogPosts.recentEntries');\n```\n\nOptionally supply a model for the route in question. The model\nwill be serialized into the URL using the `serialize` hook of\nthe route:\n\n```javascript\naController.replaceRoute('blogPost', aPost);\n```\n\nIf a literal is passed (such as a number or a string), it will\nbe treated as an identifier instead. In this case, the `model`\nhook of the route will be triggered:\n\n```javascript\naController.replaceRoute('blogPost', 1);\n```\n\nMultiple models will be applied last to first recursively up the\nresource tree.\n\n```javascript\nApp.Router.map(function() {\nthis.resource('blogPost', {path:':blogPostId'}, function(){\nthis.resource('blogComment', {path: ':blogCommentId'});\n});\n});\n\naController.replaceRoute('blogComment', aPost, aComment);\naController.replaceRoute('blogComment', 1, 13);\n```\n\nIt is also possible to pass a URL (a string that starts with a\n`/`). This is intended for testing and debugging purposes and\nshould rarely be used in production code.\n\n```javascript\naController.replaceRoute('/');\naController.replaceRoute('/blog/post/1/comment/13');\n```\n\n@param {String} name the name of the route or a URL\n@param {...Object} models the model(s) or identifier(s) to be used\nwhile transitioning to the route.\n@for Ember.ControllerMixin\n@method replaceRoute", "docstring_tokens": ["Transition", "into", "another", "route", "while", "replacing", "the", "current", "URL", "if", "possible", ".", "This", "will", "replace", "the", "current", "history", "entry", "instead", "of", "adding", "a", "new", "one", ".", "Beside", "that", "it", "is", "identical", "to", "transitionToRoute", "in", "all", "other", "respects", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L38881-L38886", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determines if the view has already been created by checking if\nthe view has the same constructor, template, and context as the\nview in the `_outlets` object.\n\n@private\n@method _hasEquivalentView\n@param {String} outletName The name of the outlet we are checking\n@param {Object} view An Ember.View\n@return {Boolean}", "docstring_tokens": ["Determines", "if", "the", "view", "has", "already", "been", "created", "by", "checking", "if", "the", "view", "has", "the", "same", "constructor", "template", "and", "context", "as", "the", "view", "in", "the", "_outlets", "object", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L38986-L38992", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets an outlet that is pending disconnection and then\nnullifys the object on the `_outlet` object.\n\n@private\n@method _finishDisconnections", "docstring_tokens": ["Gets", "an", "outlet", "that", "is", "pending", "disconnection", "and", "then", "nullifys", "the", "object", "on", "the", "_outlet", "object", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L39041-L39050", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the current `location.hash` by parsing location.href since browsers\ninconsistently URL-decode `location.hash`.\n\nhttps://bugzilla.mozilla.org/show_bug.cgi?id=483304\n\n@private\n@method getHash", "docstring_tokens": ["Returns", "the", "current", "location", ".", "hash", "by", "parsing", "location", ".", "href", "since", "browsers", "inconsistently", "URL", "-", "decode", "location", ".", "hash", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L39267-L39278", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Replaces the current state.\n\n@private\n@method replaceState\n@param path {String}", "docstring_tokens": ["Replaces", "the", "current", "state", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L39647-L39659", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Register a callback to be invoked whenever the browser\nhistory changes, including using forward and back buttons.\n\n@private\n@method onUpdateURL\n@param callback {Function}", "docstring_tokens": ["Register", "a", "callback", "to", "be", "invoked", "whenever", "the", "browser", "history", "changes", "including", "using", "forward", "and", "back", "buttons", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L39669-L39681", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Selects the best location option based off browser support and returns an\ninstance of that Location class.\n\n@see Ember.AutoLocation\n@method create", "docstring_tokens": ["Selects", "the", "best", "location", "option", "based", "off", "browser", "support", "and", "returns", "an", "instance", "of", "that", "Location", "class", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L40045-L40091", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method is called via the container's resolver method.\nIt parses the provided `fullName` and then looks up and\nreturns the appropriate template or class.\n\n@method resolve\n@param {String} fullName the lookup string\n@return {Object} the resolved factory", "docstring_tokens": ["This", "method", "is", "called", "via", "the", "container", "s", "resolver", "method", ".", "It", "parses", "the", "provided", "fullName", "and", "then", "looks", "up", "and", "returns", "the", "appropriate", "template", "or", "class", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L40378-L40391", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Look up the template in Ember.TEMPLATES\n\n@protected\n@param {Object} parsedName a parseName object with the parsed\nfullName lookup string\n@method resolveTemplate", "docstring_tokens": ["Look", "up", "the", "template", "in", "Ember", ".", "TEMPLATES"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L40476-L40487", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If the application has not opted out of routing and has not explicitly\ndefined a router, supply a default router for the application author\nto configure.\n\nThis allows application developers to do:\n\n```javascript\nvar App = Ember.Application.create();\n\nApp.Router.map(function() {\nthis.resource('posts');\n});\n```\n\n@private\n@method defaultRouter\n@return {Ember.Router} the default router", "docstring_tokens": ["If", "the", "application", "has", "not", "opted", "out", "of", "routing", "and", "has", "not", "explicitly", "defined", "a", "router", "supply", "a", "default", "router", "for", "the", "application", "author", "to", "configure", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L40868-L40878", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Automatically initialize the application once the DOM has\nbecome ready.\n\nThe initialization itself is scheduled on the actions queue\nwhich ensures that application loading finishes before\nbooting.\n\nIf you are asynchronously loading code, you should call\n`deferReadiness()` to defer booting, and then call\n`advanceReadiness()` once all of your code has finished\nloading.\n\n@private\n@method scheduleInitialize", "docstring_tokens": ["Automatically", "initialize", "the", "application", "once", "the", "DOM", "has", "become", "ready", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L40896-L40906", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Call `advanceReadiness` after any asynchronous setup logic has completed.\nEach call to `deferReadiness` must be matched by a call to `advanceReadiness`\nor the application will never become ready and routing will not begin.\n\n@method advanceReadiness\n@see {Ember.Application#deferReadiness}", "docstring_tokens": ["Call", "advanceReadiness", "after", "any", "asynchronous", "setup", "logic", "has", "completed", ".", "Each", "call", "to", "deferReadiness", "must", "be", "matched", "by", "a", "call", "to", "advanceReadiness", "or", "the", "application", "will", "never", "become", "ready", "and", "routing", "will", "not", "begin", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L40945-L40952", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Setup up the event dispatcher to receive events on the\napplication's `rootElement` with any registered\n`customEvents`.\n\n@private\n@method setupEventDispatcher", "docstring_tokens": ["Setup", "up", "the", "event", "dispatcher", "to", "receive", "events", "on", "the", "application", "s", "rootElement", "with", "any", "registered", "customEvents", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L41252-L41259", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This creates a container with the default Ember naming conventions.\n\nIt also configures the container:\n\nregistered views are created every time they are looked up (they are\nnot singletons)\nregistered templates are not factories; the registered value is\nreturned directly.\nthe router receives the application as its `namespace` property\nall controllers receive the router as their `target` and `controllers`\nproperties\nall controllers receive the application as their `namespace` property\nthe application view receives the application controller as its\n`controller` property\nthe application view receives the application template as its\n`defaultTemplate` property\n\n@private\n@method buildContainer\n@static\n@param {Ember.Application} namespace the application to build the\ncontainer for.\n@return {Ember.Container} the built container", "docstring_tokens": ["This", "creates", "a", "container", "with", "the", "default", "Ember", "naming", "conventions", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L41364-L41413", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fetch the records of a given type and observe them for changes.\n\n@public\n@method watchRecords\n\n@param {Function} recordsAdded Callback to call to add records.\nTakes an array of objects containing wrapped records.\nThe object should have the following properties:\ncolumnValues: {Object} key and value of a table cell\nobject: {Object} the actual record object\n\n@param {Function} recordsUpdated Callback to call when a record has changed.\nTakes an array of objects containing wrapped records.\n\n@param {Function} recordsRemoved Callback to call when a record has removed.\nTakes the following parameters:\nindex: the array index where the records were removed\ncount: the number of records removed\n\n@return {Function} Method to call to remove all observers", "docstring_tokens": ["Fetch", "the", "records", "of", "a", "given", "type", "and", "observe", "them", "for", "changes", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L41940-L41979", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds observers to a model type class.\n\n@private\n@method observeModelType\n@param {Class} type The model type class\n@param {Function} typesUpdated Called when a type is modified.\n@return {Function} The function to call to remove observers", "docstring_tokens": ["Adds", "observers", "to", "a", "model", "type", "class", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L42031-L42051", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Loops over all namespaces and all objects\nattached to them\n\n@private\n@method _getObjectsOnNamespaces\n@return {Array} Array of model type strings", "docstring_tokens": ["Loops", "over", "all", "namespaces", "and", "all", "objects", "attached", "to", "them"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L42122-L42136", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This allows ember-testing to play nicely with other asynchronous\nevents, such as an application that is waiting for a CSS3\ntransition or an IndexDB transaction.\n\nFor example:\n\n```javascript\nEmber.Test.registerWaiter(function() {\nreturn myPendingTransactions() == 0;\n});\n```\nThe `context` argument allows you to optionally specify the `this`\nwith which your callback will be invoked.\n\nFor example:\n\n```javascript\nEmber.Test.registerWaiter(MyDB, MyDB.hasPendingTransactions);\n```\n\n@public\n@method registerWaiter\n@param {Object} context (optional)\n@param {Function} callback", "docstring_tokens": ["This", "allows", "ember", "-", "testing", "to", "play", "nicely", "with", "other", "asynchronous", "events", "such", "as", "an", "application", "that", "is", "waiting", "for", "a", "CSS3", "transition", "or", "an", "IndexDB", "transaction", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L43346-L43355", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "`unregisterWaiter` is used to unregister a callback that was\nregistered with `registerWaiter`.\n\n@public\n@method unregisterWaiter\n@param {Object} context (optional)\n@param {Function} callback", "docstring_tokens": ["unregisterWaiter", "is", "used", "to", "unregister", "a", "callback", "that", "was", "registered", "with", "registerWaiter", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L43365-L43376", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This removes all helpers that have been registered, and resets and functions\nthat were overridden by the helpers.\n\nExample:\n\n```javascript\nApp.removeTestHelpers();\n```\n\n@public\n@method removeTestHelpers", "docstring_tokens": ["This", "removes", "all", "helpers", "that", "have", "been", "registered", "and", "resets", "and", "functions", "that", "were", "overridden", "by", "the", "helpers", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L43540-L43546", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-1.5.1.js", "func_name": "protoWrap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method is no longer needed But still here for backwards compatibility of helper chaining", "docstring_tokens": ["This", "method", "is", "no", "longer", "needed", "But", "still", "here", "for", "backwards", "compatibility", "of", "helper", "chaining"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-1.5.1.js#L43552-L43563", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "lib/reflect.js", "func_name": "toPropertyDescriptor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adapted from ES5 section 8.10.5", "docstring_tokens": ["Adapted", "from", "ES5", "section", "8", ".", "10", ".", "5"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/lib/reflect.js#L193-L226", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "lib/reflect.js", "func_name": "normalizePropertyDescriptor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a fresh property descriptor whose standard\nattributes are guaranteed to be data properties of the right type.\nAdditionally, any non-standard enumerable properties of\nattributes are copied over to the fresh descriptor.\n\nIf attributes is undefined, will throw a TypeError.\n\nSee also: http://wiki.ecmascript.org/doku.php?id=harmony:proxies_semantics", "docstring_tokens": ["Returns", "a", "fresh", "property", "descriptor", "whose", "standard", "attributes", "are", "guaranteed", "to", "be", "data", "properties", "of", "the", "right", "type", ".", "Additionally", "any", "non", "-", "standard", "enumerable", "properties", "of", "attributes", "are", "copied", "over", "to", "the", "fresh", "descriptor", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/lib/reflect.js#L325-L339", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "lib/reflect.js", "func_name": "isCompatibleDescriptor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Performs all validation that Object.defineProperty performs,\nwithout actually defining the property. Returns a boolean\nindicating whether validation succeeded.\n\nImplementation transliterated from ES5.1 section 8.12.9", "docstring_tokens": ["Performs", "all", "validation", "that", "Object", ".", "defineProperty", "performs", "without", "actually", "defining", "the", "property", ".", "Returns", "a", "boolean", "indicating", "whether", "validation", "succeeded", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/lib/reflect.js#L382-L436", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "lib/reflect.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If getTrap returns undefined, the caller should perform the\ndefault forwarding behavior.\nIf getTrap returns normally otherwise, the return value\nwill be a callable trap function. When calling the trap function,\nthe caller is responsible for binding its |this| to |this.handler|.", "docstring_tokens": ["If", "getTrap", "returns", "undefined", "the", "caller", "should", "perform", "the", "default", "forwarding", "behavior", ".", "If", "getTrap", "returns", "normally", "otherwise", "the", "return", "value", "will", "be", "a", "callable", "trap", "function", ".", "When", "calling", "the", "trap", "function", "the", "caller", "is", "responsible", "for", "binding", "its", "|this|", "to", "|this", ".", "handler|", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/lib/reflect.js#L471-L484", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "lib/reflect.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "In the direct proxies design with refactored prototype climbing,\nthis trap is deprecated. For proxies-as-prototypes, instead\nof calling this trap, the get, set, has or enumerate traps are\ncalled instead.\n\nIn this implementation, we \"abuse\" getPropertyDescriptor to\nsupport trapping the get or set traps for proxies-as-prototypes.\nWe do this by returning a getter/setter pair that invokes\nthe corresponding traps.\n\nWhile this hack works for inherited property access, it has some\nquirks:\n\nIn Firefox, this trap is only called after a prior invocation\nof the 'has' trap has returned true. Hence, expect the following\nbehavior:\n\nvar child = Object.create(Proxy(target, handler));\nchild[name] // triggers handler.has(target, name)\n// if that returns true, triggers handler.get(target, name, child)\n\n\nOn v8, the 'in' operator, when applied to an object that inherits\nfrom a proxy, will call getPropertyDescriptor and walk the proto-chain.\nThat calls the below getPropertyDescriptor trap on the proxy. The\nresult of the 'in'-operator is then determined by whether this trap\nreturns undefined or a property descriptor object. That is why\nwe first explicitly trigger the 'has' trap to determine whether\nthe property exists.\n\nThis has the side-effect that when enumerating properties on\nan object that inherits from a proxy in v8, only properties\nfor which 'has' returns true are returned:\n\n\nvar child = Object.create(Proxy(target, handler));\nfor (var prop in child) {\n// only enumerates prop if (prop in child) returns true\n}\n", "docstring_tokens": ["In", "the", "direct", "proxies", "design", "with", "refactored", "prototype", "climbing", "this", "trap", "is", "deprecated", ".", "For", "proxies", "-", "as", "-", "prototypes", "instead", "of", "calling", "this", "trap", "the", "get", "set", "has", "or", "enumerate", "traps", "are", "called", "instead", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/lib/reflect.js#L602-L621", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "lib/reflect.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "On success, check whether the target object is indeed frozen.", "docstring_tokens": ["On", "success", "check", "whether", "the", "target", "object", "is", "indeed", "frozen", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/lib/reflect.js#L690-L706", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "lib/reflect.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "On success, check whether the target object is indeed sealed.", "docstring_tokens": ["On", "success", "check", "whether", "the", "target", "object", "is", "indeed", "sealed", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/lib/reflect.js#L711-L727", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "lib/reflect.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "On success, check whether the target object is indeed non-extensible.", "docstring_tokens": ["On", "success", "check", "whether", "the", "target", "object", "is", "indeed", "non", "-", "extensible", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/lib/reflect.js#L732-L748", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "lib/reflect.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If name denotes a sealed property, check whether handler rejects.", "docstring_tokens": ["If", "name", "denotes", "a", "sealed", "property", "check", "whether", "handler", "rejects", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/lib/reflect.js#L753-L773", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "lib/reflect.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The iterate trap should return an iterator object.", "docstring_tokens": ["The", "iterate", "trap", "should", "return", "an", "iterator", "object", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/lib/reflect.js#L1191-L1205", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "lib/reflect.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Any own non-configurable properties of the target that are not included\nin the trap result give rise to a TypeError. As such, we check whether the\nreturned result contains at least all sealed properties of the target\nobject.\n\nThe trap result is normalized.\nThe trap result is not returned directly. Instead:\n- create and return a fresh Array,\n- of which each element is coerced to String,\n- which does not contain duplicates", "docstring_tokens": ["Any", "own", "non", "-", "configurable", "properties", "of", "the", "target", "that", "are", "not", "included", "in", "the", "trap", "result", "give", "rise", "to", "a", "TypeError", ".", "As", "such", "we", "check", "whether", "the", "returned", "result", "contains", "at", "least", "all", "sealed", "properties", "of", "the", "target", "object", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/lib/reflect.js#L1219-L1273", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "lib/reflect.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "In ES6, this trap is called for all operations that require a list\nof an object's properties, including Object.getOwnPropertyNames\nand Object.keys.\n\nThe trap should return an iterator. The proxy implementation only\nchecks whether the return value is an object.", "docstring_tokens": ["In", "ES6", "this", "trap", "is", "called", "for", "all", "operations", "that", "require", "a", "list", "of", "an", "object", "s", "properties", "including", "Object", ".", "getOwnPropertyNames", "and", "Object", ".", "keys", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/lib/reflect.js#L1283-L1298", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "lib/reflect.js", "func_name": "makeUnwrapping0ArgMethod", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "returns a new function of zero arguments that recursively unwraps any proxies specified as the |this|-value. The primitive is assumed to be a zero-argument method that uses its |this|-binding.", "docstring_tokens": ["returns", "a", "new", "function", "of", "zero", "arguments", "that", "recursively", "unwraps", "any", "proxies", "specified", "as", "the", "|this|", "-", "value", ".", "The", "primitive", "is", "assumed", "to", "be", "a", "zero", "-", "argument", "method", "that", "uses", "its", "|this|", "-", "binding", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/lib/reflect.js#L1537-L1546", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "lib/autoload.js", "func_name": "load", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "load all the contract identifiers into the global scope", "docstring_tokens": ["load", "all", "the", "contract", "identifiers", "into", "the", "global", "scope"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/lib/autoload.js#L2-L10", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "SERIALIZE \nCalled when a record is saved in order to convert the\nrecord into JSON.\n\nBy default, it creates a JSON object with a key for\neach attribute and belongsTo relationship.\n\nFor example, consider this model:\n\n```javascript\nApp.Comment = DS.Model.extend({\ntitle: DS.attr(),\nbody: DS.attr(),\n\nauthor: DS.belongsTo('user')\n});\n```\n\nThe default serialization would create a JSON object like:\n\n```javascript\n{\n\"title\": \"Rails is unagi\",\n\"body\": \"Rails? Omakase? O_O\",\n\"author\": 12\n}\n```\n\nBy default, attributes are passed through as-is, unless\nyou specified an attribute type (`DS.attr('date')`). If\nyou specify a transform, the JavaScript value will be\nserialized when inserted into the JSON hash.\n\nBy default, belongs-to relationships are converted into\nIDs when inserted into the JSON hash.\n\n## IDs\n\n`serialize` takes an options hash with a single option:\n`includeId`. If this option is `true`, `serialize` will,\nby default include the ID in the JSON object it builds.\n\nThe adapter passes in `includeId: true` when serializing\na record for `createRecord`, but not for `updateRecord`.\n\n## Customization\n\nYour server may expect a different JSON format than the\nbuilt-in serialization format.\n\nIn that case, you can implement `serialize` yourself and\nreturn a JSON hash of your choosing.\n\n```javascript\nApp.PostSerializer = DS.JSONSerializer.extend({\nserialize: function(post, options) {\nvar json = {\nPOST_TTL: post.get('title'),\nPOST_BDY: post.get('body'),\nPOST_CMS: post.get('comments').mapProperty('id')\n}\n\nif (options.includeId) {\njson.POST_ID_ = post.get('id');\n}\n\nreturn json;\n}\n});\n```\n\n## Customizing an App-Wide Serializer\n\nIf you want to define a serializer for your entire\napplication, you'll probably want to use `eachAttribute`\nand `eachRelationship` on the record.\n\n```javascript\nApp.ApplicationSerializer = DS.JSONSerializer.extend({\nserialize: function(record, options) {\nvar json = {};\n\nrecord.eachAttribute(function(name) {\njson[serverAttributeName(name)] = record.get(name);\n})\n\nrecord.eachRelationship(function(name, relationship) {\nif (relationship.kind === 'hasMany') {\njson[serverHasManyName(name)] = record.get(name).mapBy('id');\n}\n});\n\nif (options.includeId) {\njson.ID_ = record.get('id');\n}\n\nreturn json;\n}\n});\n\nfunction serverAttributeName(attribute) {\nreturn attribute.underscore().toUpperCase();\n}\n\nfunction serverHasManyName(name) {\nreturn serverAttributeName(name.singularize()) + \"_IDS\";\n}\n```\n\nThis serializer will generate JSON that looks like this:\n\n```javascript\n{\n\"TITLE\": \"Rails is omakase\",\n\"BODY\": \"Yep. Omakase.\",\n\"COMMENT_IDS\": [ 1, 2, 3 ]\n}\n```\n\n## Tweaking the Default JSON\n\nIf you just want to do some small tweaks on the default JSON,\nyou can call super first and make the tweaks on the returned\nJSON.\n\n```javascript\nApp.PostSerializer = DS.JSONSerializer.extend({\nserialize: function(record, options) {\nvar json = this._super.apply(this, arguments);\n\njson.subject = json.title;\ndelete json.title;\n\nreturn json;\n}\n});\n```\n\n@method serialize\n@param {subclass of DS.Model} record\n@param {Object} options\n@return {Object} json", "docstring_tokens": ["SERIALIZE", "Called", "when", "a", "record", "is", "saved", "in", "order", "to", "convert", "the", "record", "into", "JSON", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L342-L366", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "`serializeAttribute` can be used to customize how `DS.attr`\nproperties are serialized\n\nFor example if you wanted to ensure all you attributes were always\nserialized as properties on an `attributes` object you could\nwrite:\n\n```javascript\nApp.ApplicationSerializer = DS.JSONSerializer.extend({\nserializeAttribute: function(record, json, key, attributes) {\njson.attributes = json.attributes || {};\nthis._super(record, json.attributes, key, attributes);\n}\n});\n```\n\n@method serializeAttribute\n@param {DS.Model} record\n@param {Object} json\n@param {String} key\n@param {Object} attribute", "docstring_tokens": ["serializeAttribute", "can", "be", "used", "to", "customize", "how", "DS", ".", "attr", "properties", "are", "serialized"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L391-L405", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "`serializeBelongsTo` can be used to customize how `DS.belongsTo`\nproperties are serialized.\n\nExample\n\n```javascript\nApp.PostSerializer = DS.JSONSerializer.extend({\nserializeBelongsTo: function(record, json, relationship) {\nvar key = relationship.key;\n\nvar belongsTo = get(record, key);\n\nkey = this.keyForRelationship ? this.keyForRelationship(key, \"belongsTo\") : key;\n\njson[key] = Ember.isNone(belongsTo) ? belongsTo : belongsTo.toJSON();\n}\n});\n```\n\n@method serializeBelongsTo\n@param {DS.Model} record\n@param {Object} json\n@param {Object} relationship", "docstring_tokens": ["serializeBelongsTo", "can", "be", "used", "to", "customize", "how", "DS", ".", "belongsTo", "properties", "are", "serialized", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L432-L448", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "`serializeHasMany` can be used to customize how `DS.hasMany`\nproperties are serialized.\n\nExample\n\n```javascript\nApp.PostSerializer = DS.JSONSerializer.extend({\nserializeHasMany: function(record, json, relationship) {\nvar key = relationship.key;\nif (key === 'comments') {\nreturn;\n} else {\nthis._super.apply(this, arguments);\n}\n}\n});\n```\n\n@method serializeHasMany\n@param {DS.Model} record\n@param {Object} json\n@param {Object} relationship", "docstring_tokens": ["serializeHasMany", "can", "be", "used", "to", "customize", "how", "DS", ".", "hasMany", "properties", "are", "serialized", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L474-L483", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "EXTRACT \nThe `extract` method is used to deserialize payload data from the\nserver. By default the `JSONSerializer` does not push the records\ninto the store. However records that subclass `JSONSerializer`\nsuch as the `RESTSerializer` may push records into the store as\npart of the extract call.\n\nThis method deletegates to a more specific extract method based on\nthe `requestType`.\n\nExample\n\n```javascript\nvar get = Ember.get;\nsocket.on('message', function(message) {\nvar modelName = message.model;\nvar data = message.data;\nvar type = store.modelFor(modelName);\nvar serializer = store.serializerFor(type.typeKey);\nvar record = serializer.extract(store, type, data, get(data, 'id'), 'single');\nstore.push(modelName, record);\n});\n```\n\n@method extract\n@param {DS.Store} store\n@param {subclass of DS.Model} type\n@param {Object} payload\n@param {String or Number} id\n@param {String} requestType\n@return {Object} json The deserialized payload", "docstring_tokens": ["EXTRACT", "The", "extract", "method", "is", "used", "to", "deserialize", "payload", "data", "from", "the", "server", ".", "By", "default", "the", "JSONSerializer", "does", "not", "push", "the", "records", "into", "the", "store", ".", "However", "records", "that", "subclass", "JSONSerializer", "such", "as", "the", "RESTSerializer", "may", "push", "records", "into", "the", "store", "as", "part", "of", "the", "extract", "call", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L545-L550", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "`extractMeta` is used to deserialize any meta information in the\nadapter payload. By default Ember Data expects meta information to\nbe located on the `meta` property of the payload object.\n\nExample\n\n```javascript\nApp.PostSerializer = DS.JSONSerializer.extend({\nextractMeta: function(store, type, payload) {\nif (payload && payload._pagination) {\nstore.metaForType(type, payload._pagination);\ndelete payload._pagination;\n}\n}\n});\n```\n\n@method extractMeta\n@param {DS.Store} store\n@param {subclass of DS.Model} type\n@param {Object} payload", "docstring_tokens": ["extractMeta", "is", "used", "to", "deserialize", "any", "meta", "information", "in", "the", "adapter", "payload", ".", "By", "default", "Ember", "Data", "expects", "meta", "information", "to", "be", "located", "on", "the", "meta", "property", "of", "the", "payload", "object", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L751-L756", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Saves all of the records in the `RecordArray`.\n\nExample\n\n```javascript\nvar messages = store.all(App.Message);\nmessages.forEach(function(message) {\nmessage.set('hasBeenSeen', true);\n});\nmessages.save();\n```\n\n@method save\n@return {DS.PromiseArray} promise", "docstring_tokens": ["Saves", "all", "of", "the", "records", "in", "the", "RecordArray", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L1536-L1543", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Overrides Ember.Array's replace method to implement", "docstring_tokens": ["Overrides", "Ember", ".", "Array", "s", "replace", "method", "to", "implement"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L1790-L1798", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a child record within the owner\n\n@method createRecord\n@private\n@param {Object} hash\n@return {DS.Model} record", "docstring_tokens": ["Create", "a", "child", "record", "within", "the", "owner"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L1882-L1894", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If possible, this method asks the adapter to generate an ID for\na newly created record.\n\n@method _generateId\n@private\n@param {String} type\n@returns {String} if the adapter can generate one, an ID", "docstring_tokens": ["If", "possible", "this", "method", "asks", "the", "adapter", "to", "generate", "an", "ID", "for", "a", "newly", "created", "record", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L2140-L2148", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method returns a record for a given type and id combination.\n\n@method findById\n@private\n@param {String or subclass of DS.Model} type\n@param {String|Integer} id\n@return {Promise} promise", "docstring_tokens": ["This", "method", "returns", "a", "record", "for", "a", "given", "type", "and", "id", "combination", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L2269-L2276", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method makes a series of requests to the adapter's `find` method\nand returns a promise that resolves once they are all loaded.\n\n@private\n@method findByIds\n@param {String} type\n@param {Array} ids\n@returns {Promise} promise", "docstring_tokens": ["This", "method", "makes", "a", "series", "of", "requests", "to", "the", "adapter", "s", "find", "method", "and", "returns", "a", "promise", "that", "resolves", "once", "they", "are", "all", "loaded", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L2288-L2294", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method is called by the record's `reload` method.\n\nThis method calls the adapter's `find` method, which returns a promise. When\n*that** promise resolves, `reloadRecord` will resolve the promise returned\nby the record's `reload`.\n\n@method reloadRecord\n@private\n@param {DS.Model} record\n@return {Promise} promise", "docstring_tokens": ["This", "method", "is", "called", "by", "the", "record", "s", "reload", "method", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L2359-L2369", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method takes a list of records, groups the records by type,\nconverts the records into IDs, and then invokes the adapter's `findMany`\nmethod.\n\nThe records are grouped by type to invoke `findMany` on adapters\nfor each unique type in records.\n\nIt is used both by a brand new relationship (via the `findMany`\nmethod) or when the data underlying an existing relationship\nchanges.\n\n@method fetchMany\n@private\n@param {Array} records\n@param {DS.Model} owner\n@param {Resolver} resolver", "docstring_tokens": ["This", "method", "takes", "a", "list", "of", "records", "groups", "the", "records", "by", "type", "converts", "the", "records", "into", "IDs", "and", "then", "invokes", "the", "adapter", "s", "findMany", "method", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L2389-L2410", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if a record for a given type and ID is already loaded.\n\n@method hasRecordForId\n@param {String or subclass of DS.Model} type\n@param {String|Integer} id\n@returns {Boolean}", "docstring_tokens": ["Returns", "true", "if", "a", "record", "for", "a", "given", "type", "and", "ID", "is", "already", "loaded", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L2420-L2424", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns id record for a given type and ID. If one isn't already loaded,\nit builds a new record and leaves it in the `empty` state.\n\n@method recordForId\n@private\n@param {String or subclass of DS.Model} type\n@param {String|Integer} id\n@returns {DS.Model} record", "docstring_tokens": ["Returns", "id", "record", "for", "a", "given", "type", "and", "ID", ".", "If", "one", "isn", "t", "already", "loaded", "it", "builds", "a", "new", "record", "and", "leaves", "it", "in", "the", "empty", "state", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L2436-L2448", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method delegates a query to the adapter. This is the one place where\nadapter-level semantics are exposed to the application.\n\nExposing queries this way seems preferable to creating an abstract query\nlanguage for all server-side queries, and then require all adapters to\nimplement them.\n\nThis method returns a promise, which is resolved with a `RecordArray`\nonce the server returns.\n\n@method findQuery\n@private\n@param {String or subclass of DS.Model} type\n@param {any} query an opaque query to be used by the adapter\n@return {Promise} promise", "docstring_tokens": ["This", "method", "delegates", "a", "query", "to", "the", "adapter", ".", "This", "is", "the", "one", "place", "where", "adapter", "-", "level", "semantics", "are", "exposed", "to", "the", "application", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L2552-L2568", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method returns a filtered array that contains all of the known records\nfor a given type.\n\nNote that because it's just a filter, it will have any locally\ncreated records of the type.\n\nAlso note that multiple calls to `all` for a given type will always\nreturn the same RecordArray.\n\nExample\n\n```javascript\nvar local_posts = store.all(App.Post);\n```\n\n@method all\n@param {String or subclass of DS.Model} type\n@return {DS.RecordArray}", "docstring_tokens": ["This", "method", "returns", "a", "filtered", "array", "that", "contains", "all", "of", "the", "known", "records", "for", "a", "given", "type", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L2634-L2646", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method unloads all of the known records for a given type.\n\n```javascript\nstore.unloadAll(App.Post);\n```\n\n@method unloadAll\n@param {String or subclass of DS.Model} type", "docstring_tokens": ["This", "method", "unloads", "all", "of", "the", "known", "records", "for", "a", "given", "type", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L2659-L2670", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Takes a type and filter function, and returns a live RecordArray that\nremains up to date as new records are loaded into the store or created\nlocally.\n\nThe callback function takes a materialized record, and returns true\nif the record should be included in the filter and false if it should\nnot.\n\nThe filter function is called once on all records for the type when\nit is created, and then once on each newly loaded or created record.\n\nIf any of a record's properties change, or if it changes state, the\nfilter function will be invoked again to determine whether it should\nstill be in the array.\n\nOptionally you can pass a query which will be triggered at first. The\nresults returned by the server could then appear in the filter if they\nmatch the filter function.\n\nExample\n\n```javascript\nstore.filter(App.Post, {unread: true}, function(post) {\nreturn post.get('unread');\n}).then(function(unreadPosts) {\nunreadPosts.get('length'); // 5\nvar unreadPost = unreadPosts.objectAt(0);\nunreadPosts.set('unread', false);\nunreadPosts.get('length'); // 4\n});\n```\n\n@method filter\n@param {String or subclass of DS.Model} type\n@param {Object} query optional query\n@param {Function} filter\n@return {DS.PromiseArray}", "docstring_tokens": ["Takes", "a", "type", "and", "filter", "function", "and", "returns", "a", "live", "RecordArray", "that", "remains", "up", "to", "date", "as", "new", "records", "are", "loaded", "into", "the", "store", "or", "created", "locally", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L2711-L2730", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method is called at the end of the run loop, and\nflushes any records passed into `scheduleSave`\n\n@method flushPendingSave\n@private", "docstring_tokens": ["This", "method", "is", "called", "at", "the", "end", "of", "the", "run", "loop", "and", "flushes", "any", "records", "passed", "into", "scheduleSave"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L2817-L2836", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method is called once the promise returned by an\nadapter's `createRecord`, `updateRecord` or `deleteRecord`\nis resolved.\n\nIf the data provides a server-generated ID, it will\nupdate the record and the store's indexes.\n\n@method didSaveRecord\n@private\n@param {DS.Model} record the in-flight record\n@param {Object} data optional data (see above)", "docstring_tokens": ["This", "method", "is", "called", "once", "the", "promise", "returned", "by", "an", "adapter", "s", "createRecord", "updateRecord", "or", "deleteRecord", "is", "resolved", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L2851-L2860", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "When an adapter's `createRecord`, `updateRecord` or `deleteRecord`\nresolves with data, this method extracts the ID from the supplied\ndata.\n\n@method updateId\n@private\n@param {DS.Model} record\n@param {Object} data", "docstring_tokens": ["When", "an", "adapter", "s", "createRecord", "updateRecord", "or", "deleteRecord", "resolves", "with", "data", "this", "method", "extracts", "the", "ID", "from", "the", "supplied", "data", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L2899-L2908", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a map of IDs to client IDs for a given type.\n\n@method typeMapFor\n@private\n@param type\n@return {Object} typeMap", "docstring_tokens": ["Returns", "a", "map", "of", "IDs", "to", "client", "IDs", "for", "a", "given", "type", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L2918-L2936", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Push some data for a given type into the store.\n\nThis method expects normalized data:\n\nThe ID is a key named `id` (an ID is mandatory)\nThe names of attributes are the ones you used in\nyour model's `DS.attr`s.\nYour relationships must be:\nrepresented as IDs or Arrays of IDs\nrepresented as model instances\nrepresented as URLs, under the `links` key\n\nFor this model:\n\n```js\nApp.Person = DS.Model.extend({\nfirstName: DS.attr(),\nlastName: DS.attr(),\n\nchildren: DS.hasMany('person')\n});\n```\n\nTo represent the children as IDs:\n\n```js\n{\nid: 1,\nfirstName: \"Tom\",\nlastName: \"Dale\",\nchildren: [1, 2, 3]\n}\n```\n\nTo represent the children relationship as a URL:\n\n```js\n{\nid: 1,\nfirstName: \"Tom\",\nlastName: \"Dale\",\nlinks: {\nchildren: \"/people/1/children\"\n}\n}\n```\n\nIf you're streaming data or implementing an adapter,\nmake sure that you have converted the incoming data\ninto this form.\n\nThis method can be used both to push in brand new\nrecords, as well as to update existing records.\n\n@method push\n@param {String or subclass of DS.Model} type\n@param {Object} data\n@returns {DS.Model} the record that was created or\nupdated.", "docstring_tokens": ["Push", "some", "data", "for", "a", "given", "type", "into", "the", "store", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L3051-L3066", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Push some raw data into the store.\n\nThe data will be automatically deserialized using the\nserializer for the `type` param.\n\nThis method can be used both to push in brand new\nrecords, as well as to update existing records.\n\nYou can push in more than one type of object at once.\nAll objects should be in the format expected by the\nserializer.\n\n```js\nApp.ApplicationSerializer = DS.ActiveModelSerializer;\n\nvar pushData = {\nposts: [\n{id: 1, post_title: \"Great post\", comment_ids: [2]}\n],\ncomments: [\n{id: 2, comment_body: \"Insightful comment\"}\n]\n}\n\nstore.pushPayload('post', pushData);\n```\n\n@method pushPayload\n@param {String} type\n@param {Object} payload\n@return {DS.Model} the record that was created or updated.", "docstring_tokens": ["Push", "some", "raw", "data", "into", "the", "store", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L3101-L3111", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If you have some metadata to set for a type\nyou can call `metaForType`.\n\n@method metaForType\n@param {String or subclass of DS.Model} type\n@param {Object} metadata", "docstring_tokens": ["If", "you", "have", "some", "metadata", "to", "set", "for", "a", "type", "you", "can", "call", "metaForType", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L3143-L3147", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Build a brand new record for a given type, ID, and\ninitial data.\n\n@method buildRecord\n@private\n@param {subclass of DS.Model} type\n@param {String} id\n@param {Object} data\n@returns {DS.Model} record", "docstring_tokens": ["Build", "a", "brand", "new", "record", "for", "a", "given", "type", "ID", "and", "initial", "data", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L3160-L3187", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "addUnsavedRecords", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If there are any unsaved records that are in a hasMany they won't be in the payload, so add them back in manually.", "docstring_tokens": ["If", "there", "are", "any", "unsaved", "records", "that", "are", "in", "a", "hasMany", "they", "won", "t", "be", "in", "the", "payload", "so", "add", "them", "back", "in", "manually", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L3375-L3379", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "deepClone", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The created and updated states are created outside the state chart so we can reopen their substates and add mixins as necessary.", "docstring_tokens": ["The", "created", "and", "updated", "states", "are", "created", "outside", "the", "state", "chart", "so", "we", "can", "reopen", "their", "substates", "and", "add", "mixins", "as", "necessary", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L3960-L3973", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds error messages to a given attribute and sends\n`becameInvalid` event to the record.\n\n@method add\n@param {String} attribute\n@param {Array|String} messages", "docstring_tokens": ["Adds", "error", "messages", "to", "a", "given", "attribute", "and", "sends", "becameInvalid", "event", "to", "the", "record", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L4421-L4433", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes all error messages from the given attribute and sends\n`becameValid` event to the record if there no more errors left.\n\n@method remove\n@param {String} attribute", "docstring_tokens": ["Removes", "all", "error", "messages", "from", "the", "given", "attribute", "and", "sends", "becameValid", "event", "to", "the", "record", "if", "there", "no", "more", "errors", "left", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L4457-L4469", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If the adapter did not return a hash in response to a commit,\nmerge the changed attributes and relationships into the existing\nsaved data.\n\n@method adapterDidCommit", "docstring_tokens": ["If", "the", "adapter", "did", "not", "return", "a", "hash", "in", "response", "to", "a", "commit", "merge", "the", "changed", "attributes", "and", "relationships", "into", "the", "existing", "saved", "data", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L5152-L5171", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If the model `isDirty` this function will which discard any unsaved\nchanges\n\nExample\n\n```javascript\nrecord.get('name'); // 'Untitled Document'\nrecord.set('name', 'Doc 1');\nrecord.get('name'); // 'Doc 1'\nrecord.rollback();\nrecord.get('name'); // 'Untitled Document'\n```\n\n@method rollback", "docstring_tokens": ["If", "the", "model", "isDirty", "this", "function", "will", "which", "discard", "any", "unsaved", "changes"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L5295-L5312", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The goal of this method is to temporarily disable specific observers\nthat take action in response to application changes.\n\nThis allows the system to make changes (such as materialization and\nrollback) that should not trigger secondary behavior (such as setting an\ninverse relationship or marking records as dirty).\n\nThe specific implementation will likely change as Ember proper provides\nbetter infrastructure for suspending groups of observers, and if Array\nobservation becomes more unified with regular observers.\n\n@method suspendRelationshipObservers\n@private\n@param callback\n@param binding", "docstring_tokens": ["The", "goal", "of", "this", "method", "is", "to", "temporarily", "disable", "specific", "observers", "that", "take", "action", "in", "response", "to", "application", "changes", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L5335-L5349", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Save the record and persist any changes to the record to an\nextenal source via the adapter.\n\nExample\n\n```javascript\nrecord.set('name', 'Tomster');\nrecord.save().then(function(){\nSuccess callback\n}, function() {\nError callback\n});\n```\n@method save\n@return {Promise} a promise that will be resolved when the adapter returns\nsuccessfully or rejected if the adapter returns with an error.", "docstring_tokens": ["Save", "the", "record", "and", "persist", "any", "changes", "to", "the", "record", "to", "an", "extenal", "source", "via", "the", "adapter", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L5369-L5378", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Reload the record from the adapter.\n\nThis will only work if the record has already finished loading\nand has not yet been modified (`isLoaded` but not `isDirty`,\nor `isSaving`).\n\nExample\n\n```javascript\nApp.ModelViewRoute = Ember.Route.extend({\nactions: {\nreload: function() {\nthis.get('model').reload();\n}\n}\n});\n```\n\n@method reload\n@return {Promise} a promise that will be resolved with the record when the\nadapter returns successfully or rejected if the adapter returns\nwith an error.", "docstring_tokens": ["Reload", "the", "record", "from", "the", "adapter", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L5404-L5422", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "FOR USE DURING COMMIT PROCESS", "docstring_tokens": ["FOR", "USE", "DURING", "COMMIT", "PROCESS"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L5426-L5440", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Iterates through the attributes of the model, calling the passed function on each\nattribute.\n\nThe callback method you provide should have the following signature (all\nparameters are optional):\n\n```javascript\nfunction(name, meta);\n```\n\n- `name` the name of the current property in the iteration\n- `meta` the meta object for the attribute property in the iteration\n\nNote that in addition to a callback, you can also pass an optional target\nobject that will be set as `this` on the context.\n\nExample\n\n```javascript\nApp.Person = DS.Model.extend({\nfirstName: attr('string'),\nlastName: attr('string'),\nbirthday: attr('date')\n});\n\nApp.Person.eachAttribute(function(name, meta) {\nconsole.log(name, meta);\n});\n\nprints:\nfirstName {type: \"string\", isAttribute: true, options: Object, parentType: function, name: \"firstName\"}\nlastName {type: \"string\", isAttribute: true, options: Object, parentType: function, name: \"lastName\"}\nbirthday {type: \"date\", isAttribute: true, options: Object, parentType: function, name: \"birthday\"}\n```\n\n@method eachAttribute\n@param {Function} callback The callback to execute\n@param {Object} [target] The target object to use\n@static", "docstring_tokens": ["Iterates", "through", "the", "attributes", "of", "the", "model", "calling", "the", "passed", "function", "on", "each", "attribute", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L5670-L5674", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Iterates through the transformedAttributes of the model, calling\nthe passed function on each attribute. Note the callback will not be\ncalled for any attributes that do not have an transformation type.\n\nThe callback method you provide should have the following signature (all\nparameters are optional):\n\n```javascript\nfunction(name, type);\n```\n\n- `name` the name of the current property in the iteration\n- `type` a tring contrining the name of the type of transformed\napplied to the attribute\n\nNote that in addition to a callback, you can also pass an optional target\nobject that will be set as `this` on the context.\n\nExample\n\n```javascript\nApp.Person = DS.Model.extend({\nfirstName: attr(),\nlastName: attr('string'),\nbirthday: attr('date')\n});\n\nApp.Person.eachTransformedAttribute(function(name, type) {\nconsole.log(name, type);\n});\n\nprints:\nlastName string\nbirthday date\n```\n\n@method eachTransformedAttribute\n@param {Function} callback The callback to execute\n@param {Object} [target] The target object to use\n@static", "docstring_tokens": ["Iterates", "through", "the", "transformedAttributes", "of", "the", "model", "calling", "the", "passed", "function", "on", "each", "attribute", ".", "Note", "the", "callback", "will", "not", "be", "called", "for", "any", "attributes", "that", "do", "not", "have", "an", "transformation", "type", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L5718-L5722", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This Ember.js hook allows an object to be notified when a property\nis defined.\n\nIn this case, we use it to be notified when an Ember Data user defines a\nbelongs-to relationship. In that case, we need to set up observers for\neach one, allowing us to track relationship changes and automatically\nreflect changes in the inverse has-many array.\n\nThis hook passes the class being set up, as well as the key and value\nbeing defined. So, for example, when the user does this:\n\n```javascript\nDS.Model.extend({\nparent: DS.belongsTo('user')\n});\n```\n\nThis hook would be called with \"parent\" as the key and the computed\nproperty returned by `DS.belongsTo` as the value.\n\n@method didDefineProperty\n@param proto\n@param key\n@param value", "docstring_tokens": ["This", "Ember", ".", "js", "hook", "allows", "an", "object", "to", "be", "notified", "when", "a", "property", "is", "defined", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L6737-L6753", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Given a callback, iterates over each of the relationships in the model,\ninvoking the callback with the name of each relationship and its relationship\ndescriptor.\n\n@method eachRelationship\n@static\n@param {Function} callback the callback to invoke\n@param {any} binding the value to which the callback's `this` should be bound", "docstring_tokens": ["Given", "a", "callback", "iterates", "over", "each", "of", "the", "relationships", "in", "the", "model", "invoking", "the", "callback", "with", "the", "name", "of", "each", "relationship", "and", "its", "relationship", "descriptor", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L7115-L7119", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method is invoked whenever data is loaded into the store by the\nadapter or updated by the adapter, or when a record has changed.\n\nIt updates all record arrays that a record belongs to.\n\nTo avoid thrashing, it only runs at most once per run loop.\n\n@method updateRecordArrays\n@param {Class} type\n@param {Number|String} clientId", "docstring_tokens": ["This", "method", "is", "invoked", "whenever", "data", "is", "loaded", "into", "the", "store", "by", "the", "adapter", "or", "updated", "by", "the", "adapter", "or", "when", "a", "record", "has", "changed", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L7213-L7223", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Update an individual filter.\n\n@method updateRecordArray\n@param {DS.FilteredRecordArray} array\n@param {Function} filter\n@param {Class} type\n@param {Number|String} clientId", "docstring_tokens": ["Update", "an", "individual", "filter", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L7267-L7285", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method is invoked if the `filterFunction` property is\nchanged on a `DS.FilteredRecordArray`.\n\nIt essentially re-runs the filter from scratch. This same\nmethod is invoked when the filter is created in th first place.\n\n@method updateFilter\n@param array\n@param type\n@param filter", "docstring_tokens": ["This", "method", "is", "invoked", "if", "the", "filterFunction", "property", "is", "changed", "on", "a", "DS", ".", "FilteredRecordArray", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L7299-L7310", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a `DS.ManyArray` for a type and list of record references, and index\nthe `ManyArray` under each reference. This allows us to efficiently remove\nrecords from `ManyArray`s when they are deleted.\n\n@method createManyArray\n@param {Class} type\n@param {Array} references\n@return {DS.ManyArray}", "docstring_tokens": ["Create", "a", "DS", ".", "ManyArray", "for", "a", "type", "and", "list", "of", "record", "references", "and", "index", "the", "ManyArray", "under", "each", "reference", ".", "This", "allows", "us", "to", "efficiently", "remove", "records", "from", "ManyArray", "s", "when", "they", "are", "deleted", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L7322-L7335", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a `DS.RecordArray` for a type and register it for updates.\n\n@method createRecordArray\n@param {Class} type\n@return {DS.RecordArray}", "docstring_tokens": ["Create", "a", "DS", ".", "RecordArray", "for", "a", "type", "and", "register", "it", "for", "updates", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L7344-L7355", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a `DS.FilteredRecordArray` for a type and register it for updates.\n\n@method createFilteredRecordArray\n@param {Class} type\n@param {Function} filter\n@return {DS.FilteredRecordArray}", "docstring_tokens": ["Create", "a", "DS", ".", "FilteredRecordArray", "for", "a", "type", "and", "register", "it", "for", "updates", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L7365-L7377", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a `DS.AdapterPopulatedRecordArray` for a type with given query.\n\n@method createAdapterPopulatedRecordArray\n@param {Class} type\n@param {Object} query\n@return {DS.AdapterPopulatedRecordArray}", "docstring_tokens": ["Create", "a", "DS", ".", "AdapterPopulatedRecordArray", "for", "a", "type", "with", "given", "query", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L7387-L7394", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Register a RecordArray for a given type to be backed by\na filter function. This will cause the array to update\nautomatically when records of that type change attribute\nvalues or states.\n\n@method registerFilteredRecordArray\n@param {DS.RecordArray} array\n@param {Class} type\n@param {Function} filter", "docstring_tokens": ["Register", "a", "RecordArray", "for", "a", "given", "type", "to", "be", "backed", "by", "a", "filter", "function", ".", "This", "will", "cause", "the", "array", "to", "update", "automatically", "when", "records", "of", "that", "type", "change", "attribute", "values", "or", "states", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L7407-L7412", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internally, we maintain a map of all unloaded IDs requested by a ManyArray. As the adapter loads data into the store, the store notifies any interested ManyArrays. When the ManyArray's total number of loading records drops to zero, it becomes `isLoaded` and fires a `didLoad` event.", "docstring_tokens": ["Internally", "we", "maintain", "a", "map", "of", "all", "unloaded", "IDs", "requested", "by", "a", "ManyArray", ".", "As", "the", "adapter", "loads", "data", "into", "the", "store", "the", "store", "notifies", "any", "interested", "ManyArrays", ".", "When", "the", "ManyArray", "s", "total", "number", "of", "loading", "records", "drops", "to", "zero", "it", "becomes", "isLoaded", "and", "fires", "a", "didLoad", "event", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L7419-L7423", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Proxies to the serializer's `serialize` method.\n\nExample\n\n```javascript\nApp.ApplicationAdapter = DS.Adapter.extend({\ncreateRecord: function(store, type, record) {\nvar data = this.serialize(record, { includeId: true });\nvar url = type;\n\n...\n}\n});\n```\n\n@method serialize\n@param {DS.Model} record\n@param {Object} options\n@return {Object} serialized record", "docstring_tokens": ["Proxies", "to", "the", "serializer", "s", "serialize", "method", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L7699-L7701", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find multiple records at once.\n\nBy default, it loops over the provided ids and calls `find` on each.\nMay be overwritten to improve performance and reduce the number of\nserver requests.\n\nExample\n\n```javascript\nApp.ApplicationAdapter = DS.Adapter.extend({\nfindMany: function(store, type, ids) {\nvar url = type;\nreturn new Ember.RSVP.Promise(function(resolve, reject) {\njQuery.getJSON(url, {ids: ids}).then(function(data) {\nEmber.run(null, resolve, data);\n}, function(jqXHR) {\njqXHR.then = null; // tame jQuery's ill mannered promises\nEmber.run(null, reject, jqXHR);\n});\n});\n}\n});\n```\n\n@method findMany\n@param {DS.Store} store\n@param {subclass of DS.Model} type the DS.Model class of the records\n@param {Array} ids\n@return {Promise} promise", "docstring_tokens": ["Find", "multiple", "records", "at", "once", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L7853-L7859", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Implement this method in order to provide data associated with a type\n\n@method fixturesForType\n@param {Subclass of DS.Model} type\n@return {Array}", "docstring_tokens": ["Implement", "this", "method", "in", "order", "to", "provide", "data", "associated", "with", "a", "type"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L7928-L7941", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Implement this method in order to provide json for CRUD methods\n\n@method mockJSON\n@param {Subclass of DS.Model} type\n@param {DS.Model} record", "docstring_tokens": ["Implement", "this", "method", "in", "order", "to", "provide", "json", "for", "CRUD", "methods"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L7980-L7982", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If you want to do normalizations specific to some part of the payload, you\ncan specify those under `normalizeHash`.\n\nFor example, given the following json where the the `IDs` under\n`\"comments\"` are provided as `_id` instead of `id`.\n\n```javascript\n{\n\"post\": {\n\"id\": 1,\n\"title\": \"Rails is omakase\",\n\"comments\": [ 1, 2 ]\n},\n\"comments\": [{\n\"_id\": 1,\n\"body\": \"FIRST\"\n}, {\n\"_id\": 2,\n\"body\": \"Rails is unagi\"\n}]\n}\n```\n\nYou use `normalizeHash` to normalize just the comments:\n\n```javascript\nApp.PostSerializer = DS.RESTSerializer.extend({\nnormalizeHash: {\ncomments: function(hash) {\nhash.id = hash._id;\ndelete hash._id;\nreturn hash;\n}\n}\n});\n```\n\nThe key under `normalizeHash` is usually just the original key\nthat was in the original payload. However, key names will be\nimpacted by any modifications done in the `normalizePayload`\nmethod. The `DS.RESTSerializer`'s default implemention makes no\nchanges to the payload keys.\n\n@property normalizeHash\n@type {Object}\n@default undefined\n \nNormalizes a part of the JSON payload returned by\nthe server. You should override this method, munge the hash\nand call super if you have generic normalization to do.\n\nIt takes the type of the record that is being normalized\n(as a DS.Model class), the property where the hash was\noriginally found, and the hash to normalize.\n\nFor example, if you have a payload that looks like this:\n\n```js\n{\n\"post\": {\n\"id\": 1,\n\"title\": \"Rails is omakase\",\n\"comments\": [ 1, 2 ]\n},\n\"comments\": [{\n\"id\": 1,\n\"body\": \"FIRST\"\n}, {\n\"id\": 2,\n\"body\": \"Rails is unagi\"\n}]\n}\n```\n\nThe `normalize` method will be called three times:\n\nWith `App.Post`, `\"posts\"` and `{ id: 1, title: \"Rails is omakase\", ... }`\nWith `App.Comment`, `\"comments\"` and `{ id: 1, body: \"FIRST\" }`\nWith `App.Comment`, `\"comments\"` and `{ id: 2, body: \"Rails is unagi\" }`\n\nYou can use this method, for example, to normalize underscored keys to camelized\nor other general-purpose normalizations.\n\nIf you want to do normalizations specific to some part of the payload, you\ncan specify those under `normalizeHash`.\n\nFor example, if the `IDs` under `\"comments\"` are provided as `_id` instead of\n`id`, you can specify how to normalize just the comments:\n\n```js\nApp.PostSerializer = DS.RESTSerializer.extend({\nnormalizeHash: {\ncomments: function(hash) {\nhash.id = hash._id;\ndelete hash._id;\nreturn hash;\n}\n}\n});\n```\n\nThe key under `normalizeHash` is just the original key that was in the original\npayload.\n\n@method normalize\n@param {subclass of DS.Model} type\n@param {Object} hash\n@param {String} prop\n@returns {Object}", "docstring_tokens": ["If", "you", "want", "to", "do", "normalizations", "specific", "to", "some", "part", "of", "the", "payload", "you", "can", "specify", "those", "under", "normalizeHash", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L8377-L8389", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called when the server has returned a payload representing\na single record, such as in response to a `find` or `save`.\n\nIt is your opportunity to clean up the server's response into the normalized\nform expected by Ember Data.\n\nIf you want, you can just restructure the top-level of your payload, and\ndo more fine-grained normalization in the `normalize` method.\n\nFor example, if you have a payload like this in response to a request for\npost 1:\n\n```js\n{\n\"id\": 1,\n\"title\": \"Rails is omakase\",\n\n\"_embedded\": {\n\"comment\": [{\n\"_id\": 1,\n\"comment_title\": \"FIRST\"\n}, {\n\"_id\": 2,\n\"comment_title\": \"Rails is unagi\"\n}]\n}\n}\n```\n\nYou could implement a serializer that looks like this to get your payload\ninto shape:\n\n```js\nApp.PostSerializer = DS.RESTSerializer.extend({\nFirst, restructure the top-level so it's organized by type\nextractSingle: function(store, type, payload, id, requestType) {\nvar comments = payload._embedded.comment;\ndelete payload._embedded;\n\npayload = { comments: comments, post: payload };\nreturn this._super(store, type, payload, id, requestType);\n},\n\nnormalizeHash: {\nNext, normalize individual comments, which (after `extract`)\nare now located under `comments`\ncomments: function(hash) {\nhash.id = hash._id;\nhash.title = hash.comment_title;\ndelete hash._id;\ndelete hash.comment_title;\nreturn hash;\n}\n}\n})\n```\n\nWhen you call super from your own implementation of `extractSingle`, the\nbuilt-in implementation will find the primary record in your normalized\npayload and push the remaining records into the store.\n\nThe primary record is the single hash found under `post` or the first\nelement of the `posts` array.\n\nThe primary record has special meaning when the record is being created\nfor the first time or updated (`createRecord` or `updateRecord`). In\nparticular, it will update the properties of the record that was saved.\n\n@method extractSingle\n@param {DS.Store} store\n@param {subclass of DS.Model} type\n@param {Object} payload\n@param {String} id\n@param {'find'|'createRecord'|'updateRecord'|'deleteRecord'} requestType\n@returns {Object} the primary response to the original request", "docstring_tokens": ["Called", "when", "the", "server", "has", "returned", "a", "payload", "representing", "a", "single", "record", "such", "as", "in", "response", "to", "a", "find", "or", "save", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L8563-L8607", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called when the server has returned a payload representing\nmultiple records, such as in response to a `findAll` or `findQuery`.\n\nIt is your opportunity to clean up the server's response into the normalized\nform expected by Ember Data.\n\nIf you want, you can just restructure the top-level of your payload, and\ndo more fine-grained normalization in the `normalize` method.\n\nFor example, if you have a payload like this in response to a request for\nall posts:\n\n```js\n{\n\"_embedded\": {\n\"post\": [{\n\"id\": 1,\n\"title\": \"Rails is omakase\"\n}, {\n\"id\": 2,\n\"title\": \"The Parley Letter\"\n}],\n\"comment\": [{\n\"_id\": 1,\n\"comment_title\": \"Rails is unagi\"\n\"post_id\": 1\n}, {\n\"_id\": 2,\n\"comment_title\": \"Don't tread on me\",\n\"post_id\": 2\n}]\n}\n}\n```\n\nYou could implement a serializer that looks like this to get your payload\ninto shape:\n\n```js\nApp.PostSerializer = DS.RESTSerializer.extend({\nFirst, restructure the top-level so it's organized by type\nand the comments are listed under a post's `comments` key.\nextractArray: function(store, type, payload, id, requestType) {\nvar posts = payload._embedded.post;\nvar comments = [];\nvar postCache = {};\n\nposts.forEach(function(post) {\npost.comments = [];\npostCache[post.id] = post;\n});\n\npayload._embedded.comment.forEach(function(comment) {\ncomments.push(comment);\npostCache[comment.post_id].comments.push(comment);\ndelete comment.post_id;\n}\n\npayload = { comments: comments, posts: payload };\n\nreturn this._super(store, type, payload, id, requestType);\n},\n\nnormalizeHash: {\nNext, normalize individual comments, which (after `extract`)\nare now located under `comments`\ncomments: function(hash) {\nhash.id = hash._id;\nhash.title = hash.comment_title;\ndelete hash._id;\ndelete hash.comment_title;\nreturn hash;\n}\n}\n})\n```\n\nWhen you call super from your own implementation of `extractArray`, the\nbuilt-in implementation will find the primary array in your normalized\npayload and push the remaining records into the store.\n\nThe primary array is the array found under `posts`.\n\nThe primary record has special meaning when responding to `findQuery`\nor `findHasMany`. In particular, the primary array will become the\nlist of records in the record array that kicked off the request.\n\nIf your primary array contains secondary (embedded) records of the same type,\nyou cannot place these into the primary array `posts`. Instead, place the\nsecondary items into an underscore prefixed property `_posts`, which will\npush these items into the store and will not affect the resulting query.\n\n@method extractArray\n@param {DS.Store} store\n@param {subclass of DS.Model} type\n@param {Object} payload\n@param {'findAll'|'findMany'|'findHasMany'|'findQuery'} requestType\n@returns {Array} The primary array that was returned in response\nto the original query.", "docstring_tokens": ["Called", "when", "the", "server", "has", "returned", "a", "payload", "representing", "multiple", "records", "such", "as", "in", "response", "to", "a", "findAll", "or", "findQuery", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L8710-L8743", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method allows you to push a payload containing top-level\ncollections of records organized per type.\n\n```js\n{\n\"posts\": [{\n\"id\": \"1\",\n\"title\": \"Rails is omakase\",\n\"author\", \"1\",\n\"comments\": [ \"1\" ]\n}],\n\"comments\": [{\n\"id\": \"1\",\n\"body\": \"FIRST\"\n}],\n\"users\": [{\n\"id\": \"1\",\n\"name\": \"@d2h\"\n}]\n}\n```\n\nIt will first normalize the payload, so you can use this to push\nin data streaming in from your server structured the same way\nthat fetches and saves are structured.\n\n@method pushPayload\n@param {DS.Store} store\n@param {Object} payload", "docstring_tokens": ["This", "method", "allows", "you", "to", "push", "a", "payload", "containing", "top", "-", "level", "collections", "of", "records", "organized", "per", "type", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L8776-L8790", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "You can use this method to customize the root keys serialized into the JSON.\nBy default the REST Serializer sends camelized root keys.\nFor example, your server may expect underscored root objects.\n\n```js\nApp.ApplicationSerializer = DS.RESTSerializer.extend({\nserializeIntoHash: function(data, type, record, options) {\nvar root = Ember.String.decamelize(type.typeKey);\ndata[root] = this.serialize(record, options);\n}\n});\n```\n\n@method serializeIntoHash\n@param {Object} hash\n@param {subclass of DS.Model} type\n@param {DS.Model} record\n@param {Object} options", "docstring_tokens": ["You", "can", "use", "this", "method", "to", "customize", "the", "root", "keys", "serialized", "into", "the", "JSON", ".", "By", "default", "the", "REST", "Serializer", "sends", "camelized", "root", "keys", ".", "For", "example", "your", "server", "may", "expect", "underscored", "root", "objects", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L8984-L8986", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "You can use this method to customize how polymorphic objects are serialized.\nBy default the JSON Serializer creates the key by appending `Type` to\nthe attribute and value from the model's camelcased model name.\n\n@method serializePolymorphicType\n@param {DS.Model} record\n@param {Object} json\n@param {Object} relationship", "docstring_tokens": ["You", "can", "use", "this", "method", "to", "customize", "how", "polymorphic", "objects", "are", "serialized", ".", "By", "default", "the", "JSON", "Serializer", "creates", "the", "key", "by", "appending", "Type", "to", "the", "attribute", "and", "value", "from", "the", "model", "s", "camelcased", "model", "name", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L8998-L9003", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called by the store in order to fetch a JSON array for all\nof the records for a given type.\n\nThe `findAll` method makes an Ajax (HTTP GET) request to a URL computed by `buildURL`, and returns a\npromise for the resulting payload.\n\n@private\n@method findAll\n@param {DS.Store} store\n@param {subclass of DS.Model} type\n@param {String} sinceToken\n@returns {Promise} promise", "docstring_tokens": ["Called", "by", "the", "store", "in", "order", "to", "fetch", "a", "JSON", "array", "for", "all", "of", "the", "records", "for", "a", "given", "type", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L9201-L9209", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called by the store in order to fetch a JSON array for\nthe unloaded records in a has-many relationship that were originally\nspecified as IDs.\n\nFor example, if the original payload looks like:\n\n```js\n{\n\"id\": 1,\n\"title\": \"Rails is omakase\",\n\"comments\": [ 1, 2, 3 ]\n}\n```\n\nThe IDs will be passed as a URL-encoded Array of IDs, in this form:\n\n```\nids[]=1&ids[]=2&ids[]=3\n```\n\nMany servers, such as Rails and PHP, will automatically convert this URL-encoded array\ninto an Array for you on the server-side. If you want to encode the\nIDs, differently, just override this (one-line) method.\n\nThe `findMany` method makes an Ajax (HTTP GET) request to a URL computed by `buildURL`, and returns a\npromise for the resulting payload.\n\n@method findMany\n@param {DS.Store} store\n@param {subclass of DS.Model} type\n@param {Array} ids\n@returns {Promise} promise", "docstring_tokens": ["Called", "by", "the", "store", "in", "order", "to", "fetch", "a", "JSON", "array", "for", "the", "unloaded", "records", "in", "a", "has", "-", "many", "relationship", "that", "were", "originally", "specified", "as", "IDs", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L9266-L9268", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called by the store when a newly created record is\nsaved via the `save` method on a model record instance.\n\nThe `createRecord` method serializes the record and makes an Ajax (HTTP POST) request\nto a URL computed by `buildURL`.\n\nSee `serialize` for information on how to customize the serialized form\nof a record.\n\n@method createRecord\n@param {DS.Store} store\n@param {subclass of DS.Model} type\n@param {DS.Model} record\n@returns {Promise} promise", "docstring_tokens": ["Called", "by", "the", "store", "when", "a", "newly", "created", "record", "is", "saved", "via", "the", "save", "method", "on", "a", "model", "record", "instance", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L9361-L9368", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called by the store when an existing record is saved\nvia the `save` method on a model record instance.\n\nThe `updateRecord` method serializes the record and makes an Ajax (HTTP PUT) request\nto a URL computed by `buildURL`.\n\nSee `serialize` for information on how to customize the serialized form\nof a record.\n\n@method updateRecord\n@param {DS.Store} store\n@param {subclass of DS.Model} type\n@param {DS.Model} record\n@returns {Promise} promise", "docstring_tokens": ["Called", "by", "the", "store", "when", "an", "existing", "record", "is", "saved", "via", "the", "save", "method", "on", "a", "model", "record", "instance", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L9386-L9395", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called by the store when a record is deleted.\n\nThe `deleteRecord` method makes an Ajax (HTTP DELETE) request to a URL computed by `buildURL`.\n\n@method deleteRecord\n@param {DS.Store} store\n@param {subclass of DS.Model} type\n@param {DS.Model} record\n@returns {Promise} promise", "docstring_tokens": ["Called", "by", "the", "store", "when", "a", "record", "is", "deleted", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L9408-L9412", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Builds a URL for a given type and optional ID.\n\nBy default, it pluralizes the type's name (for example, 'post'\nbecomes 'posts' and 'person' becomes 'people'). To override the\npluralization see [pathForType](#method_pathForType).\n\nIf an ID is specified, it adds the ID to the path generated\nfor the type, separated by a `/`.\n\n@method buildURL\n@param {String} type\n@param {String} id\n@returns {String} url", "docstring_tokens": ["Builds", "a", "URL", "for", "a", "given", "type", "and", "optional", "ID", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L9429-L9443", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Takes a URL, an HTTP method and a hash of data, and makes an\nHTTP request.\n\nWhen the server responds with a payload, Ember Data will call into `extractSingle`\nor `extractArray` (depending on whether the original query was for one record or\nmany records).\n\nBy default, `ajax` method has the following behavior:\n\nIt sets the response `dataType` to `\"json\"`\nIf the HTTP method is not `\"GET\"`, it sets the `Content-Type` to be\n`application/json; charset=utf-8`\nIf the HTTP method is not `\"GET\"`, it stringifies the data passed in. The\ndata is the serialized record in the case of a save.\nRegisters success and failure handlers.\n\n@method ajax\n@private\n@param {String} url\n@param {String} type The request type GET, POST, PUT, DELETE ect.\n@param {Object} hash\n@return {Promise} promise", "docstring_tokens": ["Takes", "a", "URL", "an", "HTTP", "method", "and", "a", "hash", "of", "data", "and", "makes", "an", "HTTP", "request", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L9574-L9590", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "Inflector", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Inflector.Ember provides a mechanism for supplying inflection rules for your\napplication. Ember includes a default set of inflection rules, and provides an\nAPI for providing additional rules.\n\nExamples:\n\nCreating an inflector with no rules.\n\n```js\nvar inflector = new Ember.Inflector();\n```\n\nCreating an inflector with the default ember ruleset.\n\n```js\nvar inflector = new Ember.Inflector(Ember.Inflector.defaultRules);\n\ninflector.pluralize('cow') //=> 'kine'\ninflector.singularize('kine') //=> 'cow'\n```\n\nCreating an inflector and adding rules later.\n\n```javascript\nvar inflector = Ember.Inflector.inflector;\n\ninflector.pluralize('advice') // => 'advices'\ninflector.uncountable('advice');\ninflector.pluralize('advice') // => 'advice'\n\ninflector.pluralize('formula') // => 'formulas'\ninflector.irregular('formula', 'formulae');\ninflector.pluralize('formula') // => 'formulae'\n\nyou would not need to add these as they are the default rules\ninflector.plural(/$/, 's');\ninflector.singular(/s$/i, '');\n```\n\nCreating an inflector with a nondefault ruleset.\n\n```javascript\nvar rules = {\nplurals: [ /$/, 's' ],\nsingular: [ /\\s$/, '' ],\nirregularPairs: [\n[ 'cow', 'kine' ]\n],\nuncountable: [ 'fish' ]\n};\n\nvar inflector = new Ember.Inflector(rules);\n```\n\n@class Inflector\n@namespace Ember", "docstring_tokens": ["Inflector", ".", "Ember", "provides", "a", "mechanism", "for", "supplying", "inflection", "rules", "for", "your", "application", ".", "Ember", "includes", "a", "default", "set", "of", "inflection", "rules", "and", "provides", "an", "API", "for", "providing", "additional", "rules", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L9822-L9837", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Underscores relationship names and appends \"_id\" or \"_ids\" when serializing\nrelationship keys.\n\n@method keyForRelationship\n@param {String} key\n@param {String} kind\n@returns String", "docstring_tokens": ["Underscores", "relationship", "names", "and", "appends", "_id", "or", "_ids", "when", "serializing", "relationship", "keys", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L10102-L10111", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Underscores the JSON root keys when serializing.\n\n@method serializeIntoHash\n@param {Object} hash\n@param {subclass of DS.Model} type\n@param {DS.Model} record\n@param {Object} options", "docstring_tokens": ["Underscores", "the", "JSON", "root", "keys", "when", "serializing", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L10127-L10130", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Serializes a polymorphic type as a fully capitalized model name.\n\n@method serializePolymorphicType\n@param {DS.Model} record\n@param {Object} json\n@param relationship", "docstring_tokens": ["Serializes", "a", "polymorphic", "type", "as", "a", "fully", "capitalized", "model", "name", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L10140-L10145", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "EXTRACT \nExtracts the model typeKey from underscored root objects.\n\n@method typeForRoot\n@param {String} root\n@returns String the model's typeKey", "docstring_tokens": ["EXTRACT", "Extracts", "the", "model", "typeKey", "from", "underscored", "root", "objects", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L10156-L10159", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert `snake_cased` links to `camelCase`\n\n@method normalizeLinks\n@param {Object} hash", "docstring_tokens": ["Convert", "snake_cased", "links", "to", "camelCase"], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L10208-L10221", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Normalize the polymorphic type from the JSON.\n\nNormalize:\n```js\n{\nid: \"1\"\nminion: { type: \"evil_minion\", id: \"12\"}\n}\n```\n\nTo:\n```js\n{\nid: \"1\"\nminion: { type: \"evilMinion\", id: \"12\"}\n}\n```\n\n@method normalizeRelationships\n@private", "docstring_tokens": ["Normalize", "the", "polymorphic", "type", "from", "the", "JSON", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L10245-L10273", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Serialize has-may relationship when it is configured as embedded objects.\n\n@method serializeHasMany", "docstring_tokens": ["Serialize", "has", "-", "may", "relationship", "when", "it", "is", "configured", "as", "embedded", "objects", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L10310-L10325", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extract embedded objects out of the payload for a single object\nand add them as sideloaded objects instead.\n\n@method extractSingle", "docstring_tokens": ["Extract", "embedded", "objects", "out", "of", "the", "payload", "for", "a", "single", "object", "and", "add", "them", "as", "sideloaded", "objects", "instead", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L10333-L10340", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extract embedded objects out of a standard payload\nand add them as sideloaded objects instead.\n\n@method extractArray", "docstring_tokens": ["Extract", "embedded", "objects", "out", "of", "a", "standard", "payload", "and", "add", "them", "as", "sideloaded", "objects", "instead", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L10348-L10357", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The ActiveModelAdapter overrides the `pathForType` method to build\nunderscored URLs by decamelizing and pluralizing the object type name.\n\n```js\nthis.pathForType(\"famousPerson\");\n=> \"famous_people\"\n```\n\n@method pathForType\n@param {String} type\n@returns String", "docstring_tokens": ["The", "ActiveModelAdapter", "overrides", "the", "pathForType", "method", "to", "build", "underscored", "URLs", "by", "decamelizing", "and", "pluralizing", "the", "object", "type", "name", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L10478-L10481", "partition": "test"} +{"repo": "disnet/contracts.js", "path": "js/libs/ember-data.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The ActiveModelAdapter overrides the `ajaxError` method\nto return a DS.InvalidError for all 422 Unprocessable Entity\nresponses.\n\nA 422 HTTP response from the server generally implies that the request\nwas well formed but the API was unable to process it because the\ncontent was not semantically correct or meaningful per the API.\n\nFor more information on 422 HTTP Error code see 11.2 WebDAV RFC 4918\nhttps://tools.ietf.org/html/rfc4918#section-11.2\n\n@method ajaxError\n@param jqXHR\n@returns error", "docstring_tokens": ["The", "ActiveModelAdapter", "overrides", "the", "ajaxError", "method", "to", "return", "a", "DS", ".", "InvalidError", "for", "all", "422", "Unprocessable", "Entity", "responses", "."], "sha": "3ad1335a8c92597f116d97a6da5b3359ce90fca0", "url": "https://github.com/disnet/contracts.js/blob/3ad1335a8c92597f116d97a6da5b3359ce90fca0/js/libs/ember-data.js#L10499-L10514", "partition": "test"} +{"repo": "saymedia/angularjs-server", "path": "examples/weather/angular.js", "func_name": "parseKeyValue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parses an escaped url query string into key-value pairs.\n@returns Object.<(string|boolean)>", "docstring_tokens": ["Parses", "an", "escaped", "url", "query", "string", "into", "key", "-", "value", "pairs", "."], "sha": "db61e9cfd9d6634ebf66c8320b823ebf7eab1a6b", "url": "https://github.com/saymedia/angularjs-server/blob/db61e9cfd9d6634ebf66c8320b823ebf7eab1a6b/examples/weather/angular.js#L972-L991", "partition": "test"} +{"repo": "saymedia/angularjs-server", "path": "examples/weather/angular.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set a normalized attribute on the element in a way such that all directives\ncan share the attribute. This function properly handles boolean attributes.\n@param {string} key Normalized key. (ie ngAttribute)\n@param {string|boolean} value The value to set. If `null` attribute will be deleted.\n@param {boolean=} writeAttr If false, does not write the value to DOM element attribute.\nDefaults to true.\n@param {string=} attrName Optional none normalized name. Defaults to key.", "docstring_tokens": ["Set", "a", "normalized", "attribute", "on", "the", "element", "in", "a", "way", "such", "that", "all", "directives", "can", "share", "the", "attribute", ".", "This", "function", "properly", "handles", "boolean", "attributes", "."], "sha": "db61e9cfd9d6634ebf66c8320b823ebf7eab1a6b", "url": "https://github.com/saymedia/angularjs-server/blob/db61e9cfd9d6634ebf66c8320b823ebf7eab1a6b/examples/weather/angular.js#L4443-L4525", "partition": "test"} +{"repo": "saymedia/angularjs-server", "path": "examples/weather/angular.js", "func_name": "compileNodes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compile function matches each node in nodeList against the directives. Once all directives\nfor a particular node are collected their compile functions are executed. The compile\nfunctions return values - the linking functions - are combined into a composite linking\nfunction, which is the a linking function for the node.\n\n@param {NodeList} nodeList an array of nodes or NodeList to compile\n@param {function(angular.Scope[, cloneAttachFn]} transcludeFn A linking function, where the\nscope argument is auto-generated to the new child of the transcluded parent scope.\n@param {DOMElement=} $rootElement If the nodeList is the root of the compilation tree then the\nrootElement must be set the jqLite collection of the compile root. This is\nneeded so that the jqLite collection items can be replaced with widgets.\n@param {number=} max directive priority\n@returns {?function} A composite linking function of all of the matched directives or null.", "docstring_tokens": ["Compile", "function", "matches", "each", "node", "in", "nodeList", "against", "the", "directives", ".", "Once", "all", "directives", "for", "a", "particular", "node", "are", "collected", "their", "compile", "functions", "are", "executed", ".", "The", "compile", "functions", "return", "values", "-", "the", "linking", "functions", "-", "are", "combined", "into", "a", "composite", "linking", "function", "which", "is", "the", "a", "linking", "function", "for", "the", "node", "."], "sha": "db61e9cfd9d6634ebf66c8320b823ebf7eab1a6b", "url": "https://github.com/saymedia/angularjs-server/blob/db61e9cfd9d6634ebf66c8320b823ebf7eab1a6b/examples/weather/angular.js#L4635-L4704", "partition": "test"} +{"repo": "saymedia/angularjs-server", "path": "examples/weather/angular.js", "func_name": "groupElementsLinkFnWrapper", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wrapper for linking function which converts normal linking function into a grouped\nlinking function.\n@param linkFn\n@param attrStart\n@param attrEnd\n@returns {Function}", "docstring_tokens": ["Wrapper", "for", "linking", "function", "which", "converts", "normal", "linking", "function", "into", "a", "grouped", "linking", "function", "."], "sha": "db61e9cfd9d6634ebf66c8320b823ebf7eab1a6b", "url": "https://github.com/saymedia/angularjs-server/blob/db61e9cfd9d6634ebf66c8320b823ebf7eab1a6b/examples/weather/angular.js#L4837-L4842", "partition": "test"} +{"repo": "saymedia/angularjs-server", "path": "examples/weather/angular.js", "func_name": "replaceWith", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is a special jqLite.replaceWith, which can replace items which\nhave no parents, provided that the containing jqLite collection is provided.\n\n@param {JqLite=} $rootElement The root of the compile tree. Used so that we can replace nodes\nin the root of the tree.\n@param {JqLite} elementsToRemove The jqLite element which we are going to replace. We keep the shell,\nbut replace its DOM node reference.\n@param {Node} newNode The new DOM node.", "docstring_tokens": ["This", "is", "a", "special", "jqLite", ".", "replaceWith", "which", "can", "replace", "items", "which", "have", "no", "parents", "provided", "that", "the", "containing", "jqLite", "collection", "is", "provided", "."], "sha": "db61e9cfd9d6634ebf66c8320b823ebf7eab1a6b", "url": "https://github.com/saymedia/angularjs-server/blob/db61e9cfd9d6634ebf66c8320b823ebf7eab1a6b/examples/weather/angular.js#L5468-L5508", "partition": "test"} +{"repo": "saymedia/angularjs-server", "path": "examples/weather/angular.js", "func_name": "arrayDeclaration", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is used with json array declaration", "docstring_tokens": ["This", "is", "used", "with", "json", "array", "declaration"], "sha": "db61e9cfd9d6634ebf66c8320b823ebf7eab1a6b", "url": "https://github.com/saymedia/angularjs-server/blob/db61e9cfd9d6634ebf66c8320b823ebf7eab1a6b/examples/weather/angular.js#L8709-L8732", "partition": "test"} +{"repo": "saymedia/angularjs-server", "path": "examples/weather/angular.js", "func_name": "isSameOrigin", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse a request URL and determine whether this is a same-origin request as the application document.\n\n@param {string|object} requestUrl The url of the request as a string that will be resolved\nor a parsed URL object.\n@returns {boolean} Whether the request is for the same origin as the application document.", "docstring_tokens": ["Parse", "a", "request", "URL", "and", "determine", "whether", "this", "is", "a", "same", "-", "origin", "request", "as", "the", "application", "document", "."], "sha": "db61e9cfd9d6634ebf66c8320b823ebf7eab1a6b", "url": "https://github.com/saymedia/angularjs-server/blob/db61e9cfd9d6634ebf66c8320b823ebf7eab1a6b/examples/weather/angular.js#L11785-L11789", "partition": "test"} +{"repo": "jsdoctypeparser/jsdoctypeparser", "path": "lib/traversing.js", "func_name": "traverse", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Traverse the specified AST.\n@param {{ type: NodeType }} node AST to traverse.\n@param {function({ type: NodeType })?} opt_onEnter Callback for onEnter.\n@param {function({ type: NodeType })?} opt_onLeave Callback for onLeave.", "docstring_tokens": ["Traverse", "the", "specified", "AST", "."], "sha": "dac41a7fed4c1a3dde3bc218a6b8f1b1f1748a45", "url": "https://github.com/jsdoctypeparser/jsdoctypeparser/blob/dac41a7fed4c1a3dde3bc218a6b8f1b1f1748a45/lib/traversing.js#L10-L19", "partition": "test"} +{"repo": "andyet/json-rpc-ws", "path": "lib/shared_client.js", "func_name": "Client", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "json-rpc-ws client\n\n@param {Object} Parent object, used to find method handlers.\n@param {Socket} WebSocket connection.\n@extends {Base}\n@constructor", "docstring_tokens": ["json", "-", "rpc", "-", "ws", "client"], "sha": "c8364200bae92dfec31d614eee7ac75ec50b21f0", "url": "https://github.com/andyet/json-rpc-ws/blob/c8364200bae92dfec31d614eee7ac75ec50b21f0/lib/shared_client.js#L24-L31", "partition": "test"} +{"repo": "andyet/json-rpc-ws", "path": "lib/connection.js", "func_name": "Connection", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "json-rpc-ws connection\n\n@constructor\n@param {Socket} socket - web socket for this connection\n@param {Object} parent - parent that controls this connection", "docstring_tokens": ["json", "-", "rpc", "-", "ws", "connection"], "sha": "c8364200bae92dfec31d614eee7ac75ec50b21f0", "url": "https://github.com/andyet/json-rpc-ws/blob/c8364200bae92dfec31d614eee7ac75ec50b21f0/lib/connection.js#L62-L79", "partition": "test"} +{"repo": "ProseMirror/prosemirror-test-builder", "path": "src/build.js", "func_name": "mark", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a builder function for marks.", "docstring_tokens": ["Create", "a", "builder", "function", "for", "marks", "."], "sha": "bd55c5dea11aaefc1e398b91138fc323a8383c25", "url": "https://github.com/ProseMirror/prosemirror-test-builder/blob/bd55c5dea11aaefc1e398b91138fc323a8383c25/src/build.js#L74-L80", "partition": "test"} +{"repo": "janpantel/angular-sails", "path": "dist/angular-sails.js", "func_name": "serverRequest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Send the request using the socket", "docstring_tokens": ["Send", "the", "request", "using", "the", "socket"], "sha": "cf1cd8426226dbfc62a08594588625f78039ba11", "url": "https://github.com/janpantel/angular-sails/blob/cf1cd8426226dbfc62a08594588625f78039ba11/dist/angular-sails.js#L114-L161", "partition": "test"} +{"repo": "NathanWalker/nativescript-ng2-magic", "path": "install.js", "func_name": "processBootStrap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parses the bootstrap to figure out the default bootstrap component\n@param file\n@returns {*}", "docstring_tokens": ["Parses", "the", "bootstrap", "to", "figure", "out", "the", "default", "bootstrap", "component"], "sha": "702395cf85add650170ca45ca6f582e6ad609863", "url": "https://github.com/NathanWalker/nativescript-ng2-magic/blob/702395cf85add650170ca45ca6f582e6ad609863/install.js#L172-L220", "partition": "test"} +{"repo": "NathanWalker/nativescript-ng2-magic", "path": "install.js", "func_name": "fixTsConfig", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This fixes the TS Config file in the nativescript folder", "docstring_tokens": ["This", "fixes", "the", "TS", "Config", "file", "in", "the", "nativescript", "folder"], "sha": "702395cf85add650170ca45ca6f582e6ad609863", "url": "https://github.com/NathanWalker/nativescript-ng2-magic/blob/702395cf85add650170ca45ca6f582e6ad609863/install.js#L268-L318", "partition": "test"} +{"repo": "NathanWalker/nativescript-ng2-magic", "path": "install.js", "func_name": "fixRefFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This fixes the references file to work with TS 2.0 in the nativescript folder", "docstring_tokens": ["This", "fixes", "the", "references", "file", "to", "work", "with", "TS", "2", ".", "0", "in", "the", "nativescript", "folder"], "sha": "702395cf85add650170ca45ca6f582e6ad609863", "url": "https://github.com/NathanWalker/nativescript-ng2-magic/blob/702395cf85add650170ca45ca6f582e6ad609863/install.js#L323-L337", "partition": "test"} +{"repo": "NathanWalker/nativescript-ng2-magic", "path": "install.js", "func_name": "fixNativeScriptPackage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fix the NativeScript Package file", "docstring_tokens": ["Fix", "the", "NativeScript", "Package", "file"], "sha": "702395cf85add650170ca45ca6f582e6ad609863", "url": "https://github.com/NathanWalker/nativescript-ng2-magic/blob/702395cf85add650170ca45ca6f582e6ad609863/install.js#L342-L391", "partition": "test"} +{"repo": "NathanWalker/nativescript-ng2-magic", "path": "install.js", "func_name": "fixAngularPackage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fix the Angular Package", "docstring_tokens": ["Fix", "the", "Angular", "Package"], "sha": "702395cf85add650170ca45ca6f582e6ad609863", "url": "https://github.com/NathanWalker/nativescript-ng2-magic/blob/702395cf85add650170ca45ca6f582e6ad609863/install.js#L396-L415", "partition": "test"} +{"repo": "NathanWalker/nativescript-ng2-magic", "path": "install.js", "func_name": "fixMainFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fix the Main NativeScript File\n@param component", "docstring_tokens": ["Fix", "the", "Main", "NativeScript", "File"], "sha": "702395cf85add650170ca45ca6f582e6ad609863", "url": "https://github.com/NathanWalker/nativescript-ng2-magic/blob/702395cf85add650170ca45ca6f582e6ad609863/install.js#L421-L445", "partition": "test"} +{"repo": "NathanWalker/nativescript-ng2-magic", "path": "install.js", "func_name": "fixGitIgnore", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fix .gitignore\n@param path", "docstring_tokens": ["Fix", ".", "gitignore"], "sha": "702395cf85add650170ca45ca6f582e6ad609863", "url": "https://github.com/NathanWalker/nativescript-ng2-magic/blob/702395cf85add650170ca45ca6f582e6ad609863/install.js#L451-L466", "partition": "test"} +{"repo": "NathanWalker/nativescript-ng2-magic", "path": "install.js", "func_name": "displayFinalHelp", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Display final help screen!", "docstring_tokens": ["Display", "final", "help", "screen!"], "sha": "702395cf85add650170ca45ca6f582e6ad609863", "url": "https://github.com/NathanWalker/nativescript-ng2-magic/blob/702395cf85add650170ca45ca6f582e6ad609863/install.js#L471-L486", "partition": "test"} +{"repo": "node-inspector/v8-debug", "path": "InjectedScript/InjectedScriptSource.js", "func_name": "bind", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Please use this bind, not the one from Function.prototype\n@param {function(...)} func\n@param {?Object} thisObject\n@param {...} var_args\n@return {function(...)}", "docstring_tokens": ["Please", "use", "this", "bind", "not", "the", "one", "from", "Function", ".", "prototype"], "sha": "4f0e85fec5f6746ac1123f2d3061f1b53c6a404d", "url": "https://github.com/node-inspector/v8-debug/blob/4f0e85fec5f6746ac1123f2d3061f1b53c6a404d/InjectedScript/InjectedScriptSource.js#L121-L137", "partition": "test"} +{"repo": "node-inspector/v8-debug", "path": "InjectedScript/InjectedScriptSource.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method cannot throw.\n@param {*} object\n@param {string=} objectGroupName\n@param {boolean=} forceValueType\n@param {boolean=} generatePreview\n@param {?Array.=} columnNames\n@param {boolean=} isTable\n@param {boolean=} doNotBind\n@param {*=} customObjectConfig\n@return {!RuntimeAgent.RemoteObject}\n@suppress {checkTypes}", "docstring_tokens": ["This", "method", "cannot", "throw", "."], "sha": "4f0e85fec5f6746ac1123f2d3061f1b53c6a404d", "url": "https://github.com/node-inspector/v8-debug/blob/4f0e85fec5f6746ac1123f2d3061f1b53c6a404d/InjectedScript/InjectedScriptSource.js#L365-L377", "partition": "test"} +{"repo": "node-inspector/v8-debug", "path": "InjectedScript/InjectedScriptSource.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Resolves a value from CallArgument description.\n@param {!RuntimeAgent.CallArgument} callArgumentJson\n@return {*} resolved value\n@throws {string} error message", "docstring_tokens": ["Resolves", "a", "value", "from", "CallArgument", "description", "."], "sha": "4f0e85fec5f6746ac1123f2d3061f1b53c6a404d", "url": "https://github.com/node-inspector/v8-debug/blob/4f0e85fec5f6746ac1123f2d3061f1b53c6a404d/InjectedScript/InjectedScriptSource.js#L773-L794", "partition": "test"} +{"repo": "node-inspector/v8-debug", "path": "InjectedScript/InjectedScriptSource.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Either callFrameId or functionObjectId must be specified.\n@param {!JavaScriptCallFrame} topCallFrame\n@param {string|boolean} callFrameId or false\n@param {string|boolean} functionObjectId or false\n@param {number} scopeNumber\n@param {string} variableName\n@param {string} newValueJsonString RuntimeAgent.CallArgument structure serialized as string\n@return {string|undefined} undefined if success or an error message", "docstring_tokens": ["Either", "callFrameId", "or", "functionObjectId", "must", "be", "specified", "."], "sha": "4f0e85fec5f6746ac1123f2d3061f1b53c6a404d", "url": "https://github.com/node-inspector/v8-debug/blob/4f0e85fec5f6746ac1123f2d3061f1b53c6a404d/InjectedScript/InjectedScriptSource.js#L975-L996", "partition": "test"} +{"repo": "azavea/tilejson-validator", "path": "index.js", "func_name": "validate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validates a TileJSON\n@param {(string|object)} TileJSON as string or object\n@returns {boolean} true if the validation is successful, false otherwise", "docstring_tokens": ["Validates", "a", "TileJSON"], "sha": "069b0f6182c0b57b563a6e67f57bd06c1630f534", "url": "https://github.com/azavea/tilejson-validator/blob/069b0f6182c0b57b563a6e67f57bd06c1630f534/index.js#L9-L25", "partition": "test"} +{"repo": "centro/transis", "path": "dist/model.js", "func_name": "_loop2", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "load and set each association", "docstring_tokens": ["load", "and", "set", "each", "association"], "sha": "e002b55bbe55a75b7638e9046e57bdfbff04cd1c", "url": "https://github.com/centro/transis/blob/e002b55bbe55a75b7638e9046e57bdfbff04cd1c/dist/model.js#L664-L684", "partition": "test"} +{"repo": "kadirahq/lokka-transport-http", "path": "lib/index.js", "func_name": "handleErrors", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "the default error handler", "docstring_tokens": ["the", "default", "error", "handler"], "sha": "54d37f817ef80a17277ecdad0aec07311baef68f", "url": "https://github.com/kadirahq/lokka-transport-http/blob/54d37f817ef80a17277ecdad0aec07311baef68f/lib/index.js#L24-L30", "partition": "test"} +{"repo": "developmentseed/kes", "path": "src/utils.js", "func_name": "zip", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Zips a list of files or directories\n@param {string} zipFile filename and path where the zip file is stored\n@param {array} srcList array of files and directories paths\n@param {type} dstPath for directories whether to put the directories at\nroot of the zip file or relative to your path on the local machine\n@return {Promise}", "docstring_tokens": ["Zips", "a", "list", "of", "files", "or", "directories"], "sha": "c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6", "url": "https://github.com/developmentseed/kes/blob/c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6/src/utils.js#L22-L67", "partition": "test"} +{"repo": "developmentseed/kes", "path": "src/utils.js", "func_name": "exec", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Executes shell commands synchronously and logs the\nstdout to console.\n@param {String} cmd Bash command\n@param {Boolean} [verbose=true] whether to post stdout to console\n@return {Buffer} The command's stdout in for of Buffer", "docstring_tokens": ["Executes", "shell", "commands", "synchronously", "and", "logs", "the", "stdout", "to", "console", "."], "sha": "c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6", "url": "https://github.com/developmentseed/kes/blob/c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6/src/utils.js#L76-L84", "partition": "test"} +{"repo": "developmentseed/kes", "path": "src/utils.js", "func_name": "fileToString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks if the input is a file, if it is a file,\nit reads it and return the content, otherwise just pass\nthe input as an output\n\n@param {String} file A file path or a string\n@returns {String} String content of a given file", "docstring_tokens": ["Checks", "if", "the", "input", "is", "a", "file", "if", "it", "is", "a", "file", "it", "reads", "it", "and", "return", "the", "content", "otherwise", "just", "pass", "the", "input", "as", "an", "output"], "sha": "c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6", "url": "https://github.com/developmentseed/kes/blob/c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6/src/utils.js#L139-L154", "partition": "test"} +{"repo": "developmentseed/kes", "path": "src/utils.js", "func_name": "mergeYamls", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Merges two yaml files. The merge is done using lodash.merge\nand it happens recursively. Meaning that values of file2 will\nreplace values of file 1 if they have the same key.\n\n@param {String} file1 Yaml path to file 1 or file 1 string\n@param {String} file2 Yaml path to file 2 or file 2 string\n@returns {String} Merged Yaml file in string format", "docstring_tokens": ["Merges", "two", "yaml", "files", ".", "The", "merge", "is", "done", "using", "lodash", ".", "merge", "and", "it", "happens", "recursively", ".", "Meaning", "that", "values", "of", "file2", "will", "replace", "values", "of", "file", "1", "if", "they", "have", "the", "same", "key", "."], "sha": "c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6", "url": "https://github.com/developmentseed/kes/blob/c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6/src/utils.js#L165-L170", "partition": "test"} +{"repo": "developmentseed/kes", "path": "src/utils.js", "func_name": "loadKesOverride", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Attempt to load a Kes override class.\n\nThrow the error if it is something other than that the Kes override\nclass does not exist.\n\n@param {string} kesFolder - The folder to look in for a Kes override class\n@param {string} kesClass - The path/filename to look for as a Kes override class\n@returns {Class} - A Kes override class", "docstring_tokens": ["Attempt", "to", "load", "a", "Kes", "override", "class", "."], "sha": "c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6", "url": "https://github.com/developmentseed/kes/blob/c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6/src/utils.js#L182-L202", "partition": "test"} +{"repo": "developmentseed/kes", "path": "src/utils.js", "func_name": "determineKesClass", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Based on the information passed from the CLI by the commander\nmodule this function determines whether to use the default Kes class\nor use the override class provided by the user\n\n@param {object} options The options passed by the commander library\n@param {Class} Kes the default kes class\n@returns {Class} Kes class", "docstring_tokens": ["Based", "on", "the", "information", "passed", "from", "the", "CLI", "by", "the", "commander", "module", "this", "function", "determines", "whether", "to", "use", "the", "default", "Kes", "class", "or", "use", "the", "override", "class", "provided", "by", "the", "user"], "sha": "c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6", "url": "https://github.com/developmentseed/kes/blob/c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6/src/utils.js#L213-L243", "partition": "test"} +{"repo": "developmentseed/kes", "path": "src/utils.js", "func_name": "failure", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "In case of error logs the error and exit with error 1\n@param {Error} e error object", "docstring_tokens": ["In", "case", "of", "error", "logs", "the", "error", "and", "exit", "with", "error", "1"], "sha": "c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6", "url": "https://github.com/developmentseed/kes/blob/c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6/src/utils.js#L249-L257", "partition": "test"} +{"repo": "developmentseed/kes", "path": "src/utils.js", "func_name": "getSystemBucket", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Discover and returns the system bucket used for deployment\n\n@param {Object} config - cumulus config object\n@returns {string} name of the bucket", "docstring_tokens": ["Discover", "and", "returns", "the", "system", "bucket", "used", "for", "deployment"], "sha": "c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6", "url": "https://github.com/developmentseed/kes/blob/c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6/src/utils.js#L272-L283", "partition": "test"} +{"repo": "developmentseed/kes", "path": "index.js", "func_name": "buildNestedCfs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Builds templates nested in the main template\nusing the specified config and cf file paths\n\n@param {object} config Kes config object\n@param {object} KesClass the Kes Class\n@param {object} options The options passed by the commander library\n@return {Promise} returns a promise of an updated Kes config object", "docstring_tokens": ["Builds", "templates", "nested", "in", "the", "main", "template", "using", "the", "specified", "config", "and", "cf", "file", "paths"], "sha": "c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6", "url": "https://github.com/developmentseed/kes/blob/c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6/index.js#L18-L57", "partition": "test"} +{"repo": "developmentseed/kes", "path": "index.js", "func_name": "buildCf", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Builds, uploads and deploy a Cloudformation based on options passed\nfrom the commander library\n\n@param {object} options Options passed by the commander library\n@param {string} cmd the argument selected in the CLI, e.g. deploy, update, etc.\n@return {undefined}", "docstring_tokens": ["Builds", "uploads", "and", "deploy", "a", "Cloudformation", "based", "on", "options", "passed", "from", "the", "commander", "library"], "sha": "c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6", "url": "https://github.com/developmentseed/kes/blob/c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6/index.js#L67-L101", "partition": "test"} +{"repo": "developmentseed/kes", "path": "index.js", "func_name": "buildLambda", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Builds and uploads a lambda function based on the options passed by the commander\n@param {object} options Options passed by the commander library\n@param {string} cmd the argument selected in the CLI, e.g. lambda name\n@return {undefined}", "docstring_tokens": ["Builds", "and", "uploads", "a", "lambda", "function", "based", "on", "the", "options", "passed", "by", "the", "commander"], "sha": "c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6", "url": "https://github.com/developmentseed/kes/blob/c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6/index.js#L109-L119", "partition": "test"} +{"repo": "developmentseed/kes", "path": "examples/code/custom/index.js", "func_name": "sendResponse", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Send response to the pre-signed S3 URL", "docstring_tokens": ["Send", "response", "to", "the", "pre", "-", "signed", "S3", "URL"], "sha": "c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6", "url": "https://github.com/developmentseed/kes/blob/c92aaaf84c6ad5f75e03bdd0f0e4328c784854e6/examples/code/custom/index.js#L20-L66", "partition": "test"} +{"repo": "enhancv/popup-tools", "path": "src/PopupTools.js", "func_name": "optionsToString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return options converted to a string\n\n@param {Object} options\n@return {String}", "docstring_tokens": ["Return", "options", "converted", "to", "a", "string"], "sha": "772b192920929112164f261c632d6d201a79f15a", "url": "https://github.com/enhancv/popup-tools/blob/772b192920929112164f261c632d6d201a79f15a/src/PopupTools.js#L21-L27", "partition": "test"} +{"repo": "enhancv/popup-tools", "path": "src/PopupTools.js", "func_name": "assign", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Polyfill Object.assign\n\n@param {Object} target\n@param {Object} source1 ...\n@return {Object}", "docstring_tokens": ["Polyfill", "Object", ".", "assign"], "sha": "772b192920929112164f261c632d6d201a79f15a", "url": "https://github.com/enhancv/popup-tools/blob/772b192920929112164f261c632d6d201a79f15a/src/PopupTools.js#L65-L77", "partition": "test"} +{"repo": "enhancv/popup-tools", "path": "src/PopupTools.js", "func_name": "openPopupWithPost", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a form element, add hidden inputs for all the post data\nand post it into a newly opened popup\n\n@param {String} url\n@param {Object} postData\n@param {String} name\n@param {Object} options\n@return {Object}", "docstring_tokens": ["Create", "a", "form", "element", "add", "hidden", "inputs", "for", "all", "the", "post", "data", "and", "post", "it", "into", "a", "newly", "opened", "popup"], "sha": "772b192920929112164f261c632d6d201a79f15a", "url": "https://github.com/enhancv/popup-tools/blob/772b192920929112164f261c632d6d201a79f15a/src/PopupTools.js#L89-L114", "partition": "test"} +{"repo": "enhancv/popup-tools", "path": "src/PopupTools.js", "func_name": "popupExecute", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Open a popup using the first argument. Wait for it to close.\nReturns the window object\n\n@param {Function}\n@param {String}\n@param {String}\n@param {Object}\n@param {Function}\n@return {Object}", "docstring_tokens": ["Open", "a", "popup", "using", "the", "first", "argument", ".", "Wait", "for", "it", "to", "close", ".", "Returns", "the", "window", "object"], "sha": "772b192920929112164f261c632d6d201a79f15a", "url": "https://github.com/enhancv/popup-tools/blob/772b192920929112164f261c632d6d201a79f15a/src/PopupTools.js#L127-L168", "partition": "test"} +{"repo": "enhancv/popup-tools", "path": "src/PopupTools.js", "func_name": "popup", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Open a popup using the first argument.\nWait for it to close and call the callback.\nSet the options string using the options object\nReturns the window object\n\n@param {String} url\n@param {String} name\n@param {Object} options\n@param {Function} callback\n@return {Object}", "docstring_tokens": ["Open", "a", "popup", "using", "the", "first", "argument", ".", "Wait", "for", "it", "to", "close", "and", "call", "the", "callback", ".", "Set", "the", "options", "string", "using", "the", "options", "object", "Returns", "the", "window", "object"], "sha": "772b192920929112164f261c632d6d201a79f15a", "url": "https://github.com/enhancv/popup-tools/blob/772b192920929112164f261c632d6d201a79f15a/src/PopupTools.js#L182-L184", "partition": "test"} +{"repo": "enhancv/popup-tools", "path": "src/PopupTools.js", "func_name": "popupWithPost", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Open a popup using the first argument.\nPost the data into the open popup.\nWait for it to close and call the callback.\nSet the options string using the options object\nReturns the window object\n\n@param {String} url\n@param {Object} postData\n@param {String} name\n@param {Object} options\n@param {Function} callback\n@return {Object}", "docstring_tokens": ["Open", "a", "popup", "using", "the", "first", "argument", ".", "Post", "the", "data", "into", "the", "open", "popup", ".", "Wait", "for", "it", "to", "close", "and", "call", "the", "callback", ".", "Set", "the", "options", "string", "using", "the", "options", "object", "Returns", "the", "window", "object"], "sha": "772b192920929112164f261c632d6d201a79f15a", "url": "https://github.com/enhancv/popup-tools/blob/772b192920929112164f261c632d6d201a79f15a/src/PopupTools.js#L200-L206", "partition": "test"} +{"repo": "emmetio/codemirror-plugin", "path": "lib/commands/wrap-with-abbreviation.js", "func_name": "getWrappingContentRange", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns content range that should be wrapped\n@param {CodeMirror} editor", "docstring_tokens": ["Returns", "content", "range", "that", "should", "be", "wrapped"], "sha": "2089c8b15b97858b82b33e6e81ee1b50954581c1", "url": "https://github.com/emmetio/codemirror-plugin/blob/2089c8b15b97858b82b33e6e81ee1b50954581c1/lib/commands/wrap-with-abbreviation.js#L35-L47", "partition": "test"} +{"repo": "emmetio/codemirror-plugin", "path": "lib/commands/formatted-line-break.js", "func_name": "betweenTags", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if given range is a single caret between tags\n@param {CodeMirror} editor\n@param {CodeMirror.range} range", "docstring_tokens": ["Check", "if", "given", "range", "is", "a", "single", "caret", "between", "tags"], "sha": "2089c8b15b97858b82b33e6e81ee1b50954581c1", "url": "https://github.com/emmetio/codemirror-plugin/blob/2089c8b15b97858b82b33e6e81ee1b50954581c1/lib/commands/formatted-line-break.js#L51-L64", "partition": "test"} +{"repo": "emmetio/codemirror-plugin", "path": "lib/extract-abbreviation.js", "func_name": "canExtract", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if abbreviation can be extracted from given position\n@param {CodeMirror.Editor} editor\n@param {CodeMirror.Position} pos\n@param {Object} config\n@return {Boolean}", "docstring_tokens": ["Check", "if", "abbreviation", "can", "be", "extracted", "from", "given", "position"], "sha": "2089c8b15b97858b82b33e6e81ee1b50954581c1", "url": "https://github.com/emmetio/codemirror-plugin/blob/2089c8b15b97858b82b33e6e81ee1b50954581c1/lib/extract-abbreviation.js#L61-L87", "partition": "test"} +{"repo": "emmetio/codemirror-plugin", "path": "lib/autocomplete.js", "func_name": "getStylesheetCompletions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns completions for stylesheet syntaxes\n@param {CodeMirror} editor\n@param {CodeMirror.Position} pos Cursor position in editor\n@param {Object} config Resolved Emmet config\n@return {EmmetCompletion[]}", "docstring_tokens": ["Returns", "completions", "for", "stylesheet", "syntaxes"], "sha": "2089c8b15b97858b82b33e6e81ee1b50954581c1", "url": "https://github.com/emmetio/codemirror-plugin/blob/2089c8b15b97858b82b33e6e81ee1b50954581c1/lib/autocomplete.js#L85-L116", "partition": "test"} +{"repo": "emmetio/codemirror-plugin", "path": "lib/autocomplete.js", "func_name": "getSnippetCompletions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns all possible snippets completions for given editor context.\nCompletions are cached in editor for for re-use\n@param {CodeMirror.Editor} editor\n@param {CodeMirror.Position} pos\n@param {Object} config\n@return {Array}", "docstring_tokens": ["Returns", "all", "possible", "snippets", "completions", "for", "given", "editor", "context", ".", "Completions", "are", "cached", "in", "editor", "for", "for", "re", "-", "use"], "sha": "2089c8b15b97858b82b33e6e81ee1b50954581c1", "url": "https://github.com/emmetio/codemirror-plugin/blob/2089c8b15b97858b82b33e6e81ee1b50954581c1/lib/autocomplete.js#L126-L144", "partition": "test"} +{"repo": "emmetio/codemirror-plugin", "path": "lib/autocomplete.js", "func_name": "getStylesheetSnippets", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns stylesheet snippets list\n@param {SnippetsRegistry} registry\n@return {Array}", "docstring_tokens": ["Returns", "stylesheet", "snippets", "list"], "sha": "2089c8b15b97858b82b33e6e81ee1b50954581c1", "url": "https://github.com/emmetio/codemirror-plugin/blob/2089c8b15b97858b82b33e6e81ee1b50954581c1/lib/autocomplete.js#L151-L177", "partition": "test"} +{"repo": "emmetio/codemirror-plugin", "path": "lib/autocomplete.js", "func_name": "getMarkupSnippets", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns markup snippets list\n@param {SnippetsRegistry} registry\n@param {Object} config\n@return {Array}", "docstring_tokens": ["Returns", "markup", "snippets", "list"], "sha": "2089c8b15b97858b82b33e6e81ee1b50954581c1", "url": "https://github.com/emmetio/codemirror-plugin/blob/2089c8b15b97858b82b33e6e81ee1b50954581c1/lib/autocomplete.js#L185-L192", "partition": "test"} +{"repo": "emmetio/codemirror-plugin", "path": "lib/autocomplete.js", "func_name": "extractPrefix", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extracts prefix from the end of given string that matches `match` regexp\n@param {String} str\n@param {RegExp} match\n@return {String} Extracted prefix", "docstring_tokens": ["Extracts", "prefix", "from", "the", "end", "of", "given", "string", "that", "matches", "match", "regexp"], "sha": "2089c8b15b97858b82b33e6e81ee1b50954581c1", "url": "https://github.com/emmetio/codemirror-plugin/blob/2089c8b15b97858b82b33e6e81ee1b50954581c1/lib/autocomplete.js#L210-L221", "partition": "test"} +{"repo": "emmetio/codemirror-plugin", "path": "lib/abbreviation.js", "func_name": "isValidMarker", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Ensures that given editor Emmet abbreviation marker contains valid Emmet abbreviation\nand updates abbreviation model if required\n@param {CodeMirror} editor\n@param {CodeMirror.TextMarket} marker\n@return {Boolean} `true` if marker contains valid abbreviation", "docstring_tokens": ["Ensures", "that", "given", "editor", "Emmet", "abbreviation", "marker", "contains", "valid", "Emmet", "abbreviation", "and", "updates", "abbreviation", "model", "if", "required"], "sha": "2089c8b15b97858b82b33e6e81ee1b50954581c1", "url": "https://github.com/emmetio/codemirror-plugin/blob/2089c8b15b97858b82b33e6e81ee1b50954581c1/lib/abbreviation.js#L95-L127", "partition": "test"} +{"repo": "AmpersandJS/ampersand-state", "path": "ampersand-state.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Toggle boolean properties or properties that have a `values` array in its definition.", "docstring_tokens": ["Toggle", "boolean", "properties", "or", "properties", "that", "have", "a", "values", "array", "in", "its", "definition", "."], "sha": "a85945b250e6db475b02ca53ae0ef8f7afaba935", "url": "https://github.com/AmpersandJS/ampersand-state/blob/a85945b250e6db475b02ca53ae0ef8f7afaba935/ampersand-state.js#L289-L302", "partition": "test"} +{"repo": "AmpersandJS/ampersand-state", "path": "ampersand-state.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determine if the model has changed since the last `\"change\"` event. If you specify an attribute name, determine if that attribute has changed.", "docstring_tokens": ["Determine", "if", "the", "model", "has", "changed", "since", "the", "last", "change", "event", ".", "If", "you", "specify", "an", "attribute", "name", "determine", "if", "that", "attribute", "has", "changed", "."], "sha": "a85945b250e6db475b02ca53ae0ef8f7afaba935", "url": "https://github.com/AmpersandJS/ampersand-state/blob/a85945b250e6db475b02ca53ae0ef8f7afaba935/ampersand-state.js#L312-L320", "partition": "test"} +{"repo": "AmpersandJS/ampersand-state", "path": "ampersand-state.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a bound handler for doing event bubbling while adding a name to the change string.", "docstring_tokens": ["Returns", "a", "bound", "handler", "for", "doing", "event", "bubbling", "while", "adding", "a", "name", "to", "the", "change", "string", "."], "sha": "a85945b250e6db475b02ca53ae0ef8f7afaba935", "url": "https://github.com/AmpersandJS/ampersand-state/blob/a85945b250e6db475b02ca53ae0ef8f7afaba935/ampersand-state.js#L505-L516", "partition": "test"} +{"repo": "AmpersandJS/ampersand-state", "path": "ampersand-state.js", "func_name": "createDerivedProperty", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "helper for creating derived property definitions", "docstring_tokens": ["helper", "for", "creating", "derived", "property", "definitions"], "sha": "a85945b250e6db475b02ca53ae0ef8f7afaba935", "url": "https://github.com/AmpersandJS/ampersand-state/blob/a85945b250e6db475b02ca53ae0ef8f7afaba935/ampersand-state.js#L641-L662", "partition": "test"} +{"repo": "leon-vv/node-image-scraper", "path": "index.js", "func_name": "Image", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The \"Image\" class.", "docstring_tokens": ["The", "Image", "class", "."], "sha": "88b8af254800b91de5756ddf1988d3c064f73db3", "url": "https://github.com/leon-vv/node-image-scraper/blob/88b8af254800b91de5756ddf1988d3c064f73db3/index.js#L12-L21", "partition": "test"} +{"repo": "shipitjs/grunt-shipit", "path": "tasks/shipit.js", "func_name": "shipitTask", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Shipit task.", "docstring_tokens": ["Shipit", "task", "."], "sha": "6049cb54cbc20f91a5a45f5ae07167a666129a19", "url": "https://github.com/shipitjs/grunt-shipit/blob/6049cb54cbc20f91a5a45f5ae07167a666129a19/tasks/shipit.js#L10-L29", "partition": "test"} +{"repo": "thgh/rollup-plugin-vue2", "path": "src/index.js", "func_name": "injectTemplate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Only support for es5 modules\n\n@param script\n@param template\n@returns {string}", "docstring_tokens": ["Only", "support", "for", "es5", "modules"], "sha": "eb767be8e4b20acb19ad299332898c35f8512da7", "url": "https://github.com/thgh/rollup-plugin-vue2/blob/eb767be8e4b20acb19ad299332898c35f8512da7/src/index.js#L132-L141", "partition": "test"} +{"repo": "automategreen/home-controller", "path": "lib/Insteon/index.js", "func_name": "_defaultCheckSize", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A closure factory to build the checkSize function for most of our handlers", "docstring_tokens": ["A", "closure", "factory", "to", "build", "the", "checkSize", "function", "for", "most", "of", "our", "handlers"], "sha": "8879b1e430c2946d2249e5d90c1a70fbe7018646", "url": "https://github.com/automategreen/home-controller/blob/8879b1e430c2946d2249e5d90c1a70fbe7018646/lib/Insteon/index.js#L644-L652", "partition": "test"} +{"repo": "azproduction/lmd", "path": "examples/plugins/stats/js/sha512.js", "func_name": "int64add5", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Same, except with 5 addends", "docstring_tokens": ["Same", "except", "with", "5", "addends"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/examples/plugins/stats/js/sha512.js#L488-L496", "partition": "test"} +{"repo": "azproduction/lmd", "path": "bin/lmd_builder.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "LmdBuilder LMD Package Builder\n\nLmdBuilder is readable stream\n\n@constructor\n\n@inherits Stream\n\n@param {String} configFile\n@param {Object} [options]\n\n@example\n\nnew LmdBuilder(\"config.json\", {\nwarn: true\n})\n.pipe(process.stdout);", "docstring_tokens": ["LmdBuilder", "LMD", "Package", "Builder"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/bin/lmd_builder.js#L47-L90", "partition": "test"} +{"repo": "azproduction/lmd", "path": "bin/lmd_builder.js", "func_name": "getSandboxMap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Uses variable sandbox for create replacement map\n\n@param {Object} ast toplevel AST\n\n@return {Object} {name: replaceName} map", "docstring_tokens": ["Uses", "variable", "sandbox", "for", "create", "replacement", "map"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/bin/lmd_builder.js#L429-L452", "partition": "test"} +{"repo": "azproduction/lmd", "path": "bin/lmd_builder.js", "func_name": "breakSandbox", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Brakes sendbox in one module\n\n@param {Object} ast\n@param {Object} replaceMap\n\n@return {Object} call AST", "docstring_tokens": ["Brakes", "sendbox", "in", "one", "module"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/bin/lmd_builder.js#L462-L483", "partition": "test"} +{"repo": "azproduction/lmd", "path": "bin/lmd_builder.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "wipe sandobx variable", "docstring_tokens": ["wipe", "sandobx", "variable"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/bin/lmd_builder.js#L519-L533", "partition": "test"} +{"repo": "azproduction/lmd", "path": "bin/lmd_builder.js", "func_name": "getEvents", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Collects all plugins events with usage and event index\n\n{\neventIndex: 3, // relative event index\non: 1, // number of listeners\ntrigger: 2 // number of triggers\n}\n\n@param {Object} ast toplevel AST\n\n@return {Object} toplevel AST", "docstring_tokens": ["Collects", "all", "plugins", "events", "with", "usage", "and", "event", "index"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/bin/lmd_builder.js#L552-L587", "partition": "test"} +{"repo": "azproduction/lmd", "path": "bin/lmd_builder.js", "func_name": "wipeLmdEvents", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wipes lmd_on, lmd_trigger, lmd_events variables from source\n\n@param {Object} ast\n\n@return {Object} modified ast", "docstring_tokens": ["Wipes", "lmd_on", "lmd_trigger", "lmd_events", "variables", "from", "source"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/bin/lmd_builder.js#L596-L621", "partition": "test"} +{"repo": "azproduction/lmd", "path": "bin/lmd_builder.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "wipe lmdEvents variables", "docstring_tokens": ["wipe", "lmdEvents", "variables"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/bin/lmd_builder.js#L601-L617", "partition": "test"} +{"repo": "azproduction/lmd", "path": "bin/lmd_builder.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Applies or removes block from lmd_js\n\n@param {String} optionName block name eg $P.CACHE\n@param isApply apply or remove block\n@param isInline block is inline (based on block comment)\n\n@returns {Boolean} true if block was found, false - not found", "docstring_tokens": ["Applies", "or", "removes", "block", "from", "lmd_js"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/bin/lmd_builder.js#L947-L1034", "partition": "test"} +{"repo": "azproduction/lmd", "path": "examples/plugins/css/index.lmd.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create stylesheet link", "docstring_tokens": ["Create", "stylesheet", "link"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/examples/plugins/css/index.lmd.js#L315-L326", "partition": "test"} +{"repo": "azproduction/lmd", "path": "stats_server/views/statics/vendors/3d/d3.layout.js", "func_name": "d3_layout_hierarchyRebind", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A method assignment helper for hierarchy subclasses.", "docstring_tokens": ["A", "method", "assignment", "helper", "for", "hierarchy", "subclasses", "."], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/stats_server/views/statics/vendors/3d/d3.layout.js#L1123-L1136", "partition": "test"} +{"repo": "azproduction/lmd", "path": "stats_server/views/statics/vendors/3d/d3.layout.js", "func_name": "position", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Positions the specified row of nodes. Modifies `rect`.", "docstring_tokens": ["Positions", "the", "specified", "row", "of", "nodes", ".", "Modifies", "rect", "."], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/stats_server/views/statics/vendors/3d/d3.layout.js#L1783-L1817", "partition": "test"} +{"repo": "azproduction/lmd", "path": "stats_server/views/statics/main.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Lazily construct the package hierarchy from class names.", "docstring_tokens": ["Lazily", "construct", "the", "package", "hierarchy", "from", "class", "names", "."], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/stats_server/views/statics/main.js#L22-L44", "partition": "test"} +{"repo": "azproduction/lmd", "path": "examples/demos/backbone_lmd/compiled/dev.lmd.js", "func_name": "stringify", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Simple JSON stringify", "docstring_tokens": ["Simple", "JSON", "stringify"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/examples/demos/backbone_lmd/compiled/dev.lmd.js#L152-L160", "partition": "test"} +{"repo": "azproduction/lmd", "path": "lib/coverage_apply.js", "func_name": "countIf", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Walker for 'if' nodes. It overrides countLine because we want to instrument conditions.\n\n'this' is an if node, so\n'this[0]' is the node descriptor\n'this[1]' is the decision block\n'this[2]' is the 'then' code block\n'this[3]' is the 'else' code block\n\nNote that if/else if/else in AST are represented as nested if/else", "docstring_tokens": ["Walker", "for", "if", "nodes", ".", "It", "overrides", "countLine", "because", "we", "want", "to", "instrument", "conditions", "."], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/lib/coverage_apply.js#L136-L161", "partition": "test"} +{"repo": "azproduction/lmd", "path": "lib/coverage_apply.js", "func_name": "wrapCondition", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is the key function for condition coverage as it wraps every condition in\na function call.\nThe condition id is generated fron the lineId (@see countLine) plus the character\nposition of the condition.", "docstring_tokens": ["This", "is", "the", "key", "function", "for", "condition", "coverage", "as", "it", "wraps", "every", "condition", "in", "a", "function", "call", ".", "The", "condition", "id", "is", "generated", "fron", "the", "lineId", "("], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/lib/coverage_apply.js#L169-L195", "partition": "test"} +{"repo": "azproduction/lmd", "path": "lib/coverage_apply.js", "func_name": "isSingleCondition", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wheter or not the if decision has only one boolean condition", "docstring_tokens": ["Wheter", "or", "not", "the", "if", "decision", "has", "only", "one", "boolean", "condition"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/lib/coverage_apply.js#L200-L208", "partition": "test"} +{"repo": "azproduction/lmd", "path": "lib/coverage_apply.js", "func_name": "countLabel", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Label nodes need special treatment as well.\n\nmyLabel : for (;;) {\n//whateveer code here\ncontinue myLabel\n}\n\nLabel can be wrapped by countLine, hovewer the subsequent for shouldn't be wrapped.\n\ninstrumentation(\"label\");\nmylabel : instrumentation(\"for\")\nfor (;;) {}\n\nThe above code would be wrong.\n\nThis function makes sure that the 'for' after a label is not instrumented and that\nthe 'for' content is wrapped in a block.\n\nI'm don't think it's reasonable to use labels with something that is not a 'for' block.\nIn that case the instrumented code might easily break.", "docstring_tokens": ["Label", "nodes", "need", "special", "treatment", "as", "well", "."], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/lib/coverage_apply.js#L289-L304", "partition": "test"} +{"repo": "azproduction/lmd", "path": "lib/coverage_apply.js", "func_name": "giveNameToAnonymousFunction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This function tries to extract the name of anonymous functions depending on where they are\ndefined.\n\nFor instance\nvar something = function () {}\nthe function itself is anonymous but we can use 'something' as its name\n\n'node' is anything that gets counted, function are extracted from\n\nvar\nnode[0] : node description\nnode[1] : array of assignments\nnode[x][0] : variable name\nnode[x][1] : value, node\n\nobject (when functions are properties of an object)\nnode[0] : node description\nnode[1] : array of attributes\nnode[x][0] : attribute name\nnode[x][1] : value, node\n\nassign (things like object.name = function () {})\nnode[0] : node description\nnode[1] : type of assignment, 'true' if '=' or operand (like += |= and others)\nnode[2] : left value, object property or variable\nnode[3] : right value, node\n\nin case of assign, node[2] can be\n'name' if we assign to a variable\nname[0] : node description\nname[1] : variable's name\n'dot' when we assign to an object's property\ndot[0] : node description\ndot[1] : container object\ndot[2] : property", "docstring_tokens": ["This", "function", "tries", "to", "extract", "the", "name", "of", "anonymous", "functions", "depending", "on", "where", "they", "are", "defined", "."], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/lib/coverage_apply.js#L431-L461", "partition": "test"} +{"repo": "azproduction/lmd", "path": "lib/coverage_apply.js", "func_name": "wrapConditionals", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This function wraps ternary conditionals in order to have condition coverage\n\n'this' is a node containing\n'this[0]' node descriptor\n'this[1]' decision block\n'this[2]' first statement\n'this[3]' second statement", "docstring_tokens": ["This", "function", "wraps", "ternary", "conditionals", "in", "order", "to", "have", "condition", "coverage"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/lib/coverage_apply.js#L480-L502", "partition": "test"} +{"repo": "azproduction/lmd", "path": "src/plugin/amd.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "RequireJS & AMD-style define\n\n(function (require) {\nvar define = require.define;\n\ndefine([\"a\"], function (a) {\nreturn a + 2;\n});\n})\n\n@param name\n@param deps\n@param module", "docstring_tokens": ["RequireJS", "&", "AMD", "-", "style", "define"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/src/plugin/amd.js#L25-L67", "partition": "test"} +{"repo": "azproduction/lmd", "path": "examples/demos/mock_chat/js/lmd/index.lmd.js", "func_name": "stats_calculate_coverage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculate coverage total\n\n@param moduleName", "docstring_tokens": ["Calculate", "coverage", "total"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/examples/demos/mock_chat/js/lmd/index.lmd.js#L831-L914", "partition": "test"} +{"repo": "azproduction/lmd", "path": "lib/lmd_common.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Merges mixins with config\n\n@param {Object} config\n@param {String[]} mixins", "docstring_tokens": ["Merges", "mixins", "with", "config"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/lib/lmd_common.js#L345-L354", "partition": "test"} +{"repo": "azproduction/lmd", "path": "lib/lmd_common.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Config files deep merge\n\n@param {Object} left\n@param {Object} right", "docstring_tokens": ["Config", "files", "deep", "merge"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/lib/lmd_common.js#L362-L373", "partition": "test"} +{"repo": "azproduction/lmd", "path": "lib/lmd_common.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Merges all config files in module's lineage\n\n@param {Object} config\n@param {String} configDir", "docstring_tokens": ["Merges", "all", "config", "files", "in", "module", "s", "lineage"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/lib/lmd_common.js#L382-L391", "partition": "test"} +{"repo": "azproduction/lmd", "path": "lib/lmd_common.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns depends config file of this module\n\n@param {String|Array} modulePath\n@param {String} dependsFileMask\n\n@return {Array}", "docstring_tokens": ["Returns", "depends", "config", "file", "of", "this", "module"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/lib/lmd_common.js#L402-L410", "partition": "test"} +{"repo": "azproduction/lmd", "path": "lib/lmd_common.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Merges configs flags\n\n@param {Object} configA\n@param {Object} configB\n@param {String[]} flagsNames\n@param {Boolean} isMasterConfig", "docstring_tokens": ["Merges", "configs", "flags"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/lib/lmd_common.js#L420-L445", "partition": "test"} +{"repo": "azproduction/lmd", "path": "lib/lmd_common.js", "func_name": "addPluginsFromBundles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "For now add plugins from build to bundle\n\n@param resultConfig", "docstring_tokens": ["For", "now", "add", "plugins", "from", "build", "to", "bundle"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/lib/lmd_common.js#L713-L728", "partition": "test"} +{"repo": "azproduction/lmd", "path": "lib/lmd_common.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wrapper for non-lmd modules files\n\n@param {String} code\n@param {Object} options\n@param {Object|String} options.extra_exports\n@param {Object|String|String} options.extra_require\n@param {Object|String|String} options.extra_bind\n\n@returns {String} wrapped code", "docstring_tokens": ["Wrapper", "for", "non", "-", "lmd", "modules", "files"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/lib/lmd_common.js#L1352-L1412", "partition": "test"} +{"repo": "azproduction/lmd", "path": "lib/lmd_common.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Aggregates all module wrappers\n\n@param code\n@param moduleOptions\n@param moduleType\n\n@return {String}", "docstring_tokens": ["Aggregates", "all", "module", "wrappers"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/lib/lmd_common.js#L1434-L1458", "partition": "test"} +{"repo": "azproduction/lmd", "path": "lib/lmd_common.js", "func_name": "getModuleType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks module type\n\n@param {Object|String} code module AST or module Content\n\n@return {String} df|fe|plain|amd", "docstring_tokens": ["Checks", "module", "type"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/lib/lmd_common.js#L2215-L2268", "partition": "test"} +{"repo": "azproduction/lmd", "path": "stats_server/views/statics/vendors/3d/d3.js", "func_name": "d3_transform", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compute x-scale and normalize the first row. Compute shear and make second row orthogonal to first. Compute y-scale and normalize the second row. Finally, compute the rotation.", "docstring_tokens": ["Compute", "x", "-", "scale", "and", "normalize", "the", "first", "row", ".", "Compute", "shear", "and", "make", "second", "row", "orthogonal", "to", "first", ".", "Compute", "y", "-", "scale", "and", "normalize", "the", "second", "row", ".", "Finally", "compute", "the", "rotation", "."], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/stats_server/views/statics/vendors/3d/d3.js#L2260-L2270", "partition": "test"} +{"repo": "azproduction/lmd", "path": "stats_server/views/statics/vendors/3d/d3.js", "func_name": "mousewheel", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "store starting mouse location", "docstring_tokens": ["store", "starting", "mouse", "location"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/stats_server/views/statics/vendors/3d/d3.js#L4439-L4443", "partition": "test"} +{"repo": "azproduction/lmd", "path": "stats_server/views/statics/vendors/3d/d3.js", "func_name": "d3_behavior_zoomDelta", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "detect the pixels that would be scrolled by this wheel event", "docstring_tokens": ["detect", "the", "pixels", "that", "would", "be", "scrolled", "by", "this", "wheel", "event"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/stats_server/views/statics/vendors/3d/d3.js#L4499-L4526", "partition": "test"} +{"repo": "azproduction/lmd", "path": "bin/lmd_actions/old.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Formats lmd config\n\n@param {String|Object} data\n\n@return {Object}", "docstring_tokens": ["Formats", "lmd", "config"], "sha": "03410c36839728de683c697670e1b205dc8193ee", "url": "https://github.com/azproduction/lmd/blob/03410c36839728de683c697670e1b205dc8193ee/bin/lmd_actions/old.js#L46-L106", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/common/sitemap.js", "func_name": "parse", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse a sitemap document\nFor each qualifying url element in urlset, call base.input\nStops processing if an error occurs.\n\n@param {Object} options - Sitemap options.\n@param {String} options.source - The sitemap url or file.\n@param {Boolean} options.sitemapPolicy - True if sitemapPolicy should be enforced.\n@param {String} document - An xml document string.\n@param {Function} callback - The completion callback.", "docstring_tokens": ["Parse", "a", "sitemap", "document", "For", "each", "qualifying", "url", "element", "in", "urlset", "call", "base", ".", "input", "Stops", "processing", "if", "an", "error", "occurs", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/common/sitemap.js#L88-L134", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/common/sitemap.js", "func_name": "convert", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert Buffer input, call next or callback with error\n\n@param {Object} options - Sitemap options.\n@param {String} options.source - Sitemap URL.\n@param {Buffer} buffer - A node buffer.\n@param {Function} next - A function to run after optional conversion applied.\n@param {Function} callback - A completion callback.", "docstring_tokens": ["Convert", "Buffer", "input", "call", "next", "or", "callback", "with", "error"], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/common/sitemap.js#L145-L160", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/common/sitemap.js", "func_name": "getUrl", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieve the sitemap from a url and call to parse it.\n\n@param {Object} options - Sitemap options.\n@param {String} options.source - Sitemap URL.\n@param {Function} options.timeout - User supplied run timeout.\n@param {Function} parseFn - A data parser function.\n@param {Function} callback - A completion callback function.", "docstring_tokens": ["Retrieve", "the", "sitemap", "from", "a", "url", "and", "call", "to", "parse", "it", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/common/sitemap.js#L171-L185", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/common/sitemap.js", "func_name": "getFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieve the sitemap from a file and call to parse it.\n\n@param {Object} options - Sitemap options.\n@param {String} options.source - Sitemap file path.\n@param {Function} parseFn - A data parser function.\n@param {Function} callback - A completion callback.", "docstring_tokens": ["Retrieve", "the", "sitemap", "from", "a", "file", "and", "call", "to", "parse", "it", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/common/sitemap.js#L195-L203", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/common/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Prepend a message to an Error message.\n\n@param {Object} [error] - An instance of Error. If not, converted to Error.\nIf undefined, then pass through undefined.\n@param {String} [message] - The message to prepend.\n@param {Boolean} [quoteInput] - True if the message should be quoted.\n@returns {Error} The updated Error instance, undefined if no error.", "docstring_tokens": ["Prepend", "a", "message", "to", "an", "Error", "message", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/common/index.js#L49-L68", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/common/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Simple response checker for remote files.\nExpected use in robots.txt or sitemap.xml only.\n\n@param {IncomingMessage} res - The IncomingMessage response to check.\n@param {Array} mediaTypes - array of acceptable content-type media type strings.\n@returns {String} Error message, empty string (falsy) if OK.", "docstring_tokens": ["Simple", "response", "checker", "for", "remote", "files", ".", "Expected", "use", "in", "robots", ".", "txt", "or", "sitemap", ".", "xml", "only", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/common/index.js#L78-L98", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/common/node.js", "func_name": "nodeCall", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Utility to promisify a Node function\n\n@param {Function} nodeFunc - The node-style function to Promisify.", "docstring_tokens": ["Utility", "to", "promisify", "a", "Node", "function"], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/common/node.js#L15-L33", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/input-generators/sitemap-index.js", "func_name": "prepareWrite", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Make sure path exists so a sitemap write can succeed.\n\n@param {String} outputPath - File path and name.\n@param {Funcion} callback - Completion callback.", "docstring_tokens": ["Make", "sure", "path", "exists", "so", "a", "sitemap", "write", "can", "succeed", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/input-generators/sitemap-index.js#L39-L43", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/input-generators/sitemap-index.js", "func_name": "parse", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse a sitemap index document\nFor each qualifying sitemap element, download, parse the sitemap.\nStops processing if an error occurs.\n\n@param {Object} options - Sitemap options.\n@param {Boolean} options.sitemapPolicy - True if sitemap policy should be used.\n@param {String} document - xml document string.\n@param {Function} callback - A completion callback.", "docstring_tokens": ["Parse", "a", "sitemap", "index", "document", "For", "each", "qualifying", "sitemap", "element", "download", "parse", "the", "sitemap", ".", "Stops", "processing", "if", "an", "error", "occurs", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/input-generators/sitemap-index.js#L86-L141", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/input-generators/sitemap-index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate the input arguments for snapshots from a robots.txt file.\nEach input argument generated calls the listener passing the input object.\n\n@param {Object} options - Sitemap index options.\n@param {Function} listener - Callback to receive each input.\n@returns {Promise} Resolves to undefined on completion.", "docstring_tokens": ["Generate", "the", "input", "arguments", "for", "snapshots", "from", "a", "robots", ".", "txt", "file", ".", "Each", "input", "argument", "generated", "calls", "the", "listener", "passing", "the", "input", "object", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/input-generators/sitemap-index.js#L176-L180", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/input-generators/textfile.js", "func_name": "generateInput", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate the snapshot arguments from a line oriented text file.\nEach line contains a single url we need a snapshot for.\n\n@param {Object} options - input generator options object.\n@param {String} options.source - path to the local input file.\n@returns {Promise} resolves when complete.", "docstring_tokens": ["Generate", "the", "snapshot", "arguments", "from", "a", "line", "oriented", "text", "file", ".", "Each", "line", "contains", "a", "single", "url", "we", "need", "a", "snapshot", "for", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/input-generators/textfile.js#L33-L63", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/input-generators/array.js", "func_name": "generateInput", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate the snapshot arguments from an array of pages.\nStops processing if one fails.\n\n@param {Object} options - input generator options object.\n@param {String} options.source - Array of urls.\n@param {Function} options._abort - Called to abort the output watcher.\n@returns {Promise} Resolves to undefined on success.", "docstring_tokens": ["Generate", "the", "snapshot", "arguments", "from", "an", "array", "of", "pages", ".", "Stops", "processing", "if", "one", "fails", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/input-generators/array.js#L28-L67", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/input-generators/_base.js", "func_name": "normalize", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Normalize the given object to a function.\n\nIf the input is a function, return it as is.\nIf the input is undefined, then a passthru function is generated.\nIf the input is NOT an Object, then a function returns that value.\nIf the input is an Object, then a function receives a key and\nreturns the property value if it exists, otherwise return the __default value.\nIf a passthru is requested, the key is returned when no __default is found.\n\n@param {Any} obj - Some input to be represented by a function.\n@returns {Function} A function to represent the given input.", "docstring_tokens": ["Normalize", "the", "given", "object", "to", "a", "function", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/input-generators/_base.js#L46-L66", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/input-generators/_base.js", "func_name": "supplyMissingDefault", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If a normalized option was overriden, but a default still undefined, supply one.\nThe result could still be undefined, but only if the default is undefined.\n\nIf calling the normalized option with no args is undefined, supply missing default.\n\n@param {Object} options - Input generator options.\n@param {String} name - The name of the property to supply missing default for.", "docstring_tokens": ["If", "a", "normalized", "option", "was", "overriden", "but", "a", "default", "still", "undefined", "supply", "one", ".", "The", "result", "could", "still", "be", "undefined", "but", "only", "if", "the", "default", "is", "undefined", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/input-generators/_base.js#L77-L84", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/input-generators/_base.js", "func_name": "prepOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Prepare options for use by an input generator.\n\n@param {Object} options - Input generator options with or without defaults.\n@param {Function} listener - The input generator listener.", "docstring_tokens": ["Prepare", "options", "for", "use", "by", "an", "input", "generator", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/input-generators/_base.js#L92-L109", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/input-generators/_base.js", "func_name": "getOutputPath", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get an output path for a page.\n\nParse a given page as a url and return its corresponding outputPath.\nIf parse is an object, parse.url will be a reference to the url parse.\nReturns false if no output path found.\n\n@param {Object} options - output path options.\n@param {Function} options.outputPath - Derives the outputPath from page.\n@param {String} page - The url to the page resource.\n@param {Object} [parse] - Supply to get page (url) parse output in prop `url`.\n@returns {String} The 'path' part of the file output path.", "docstring_tokens": ["Get", "an", "output", "path", "for", "a", "page", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/input-generators/_base.js#L124-L145", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/input-generators/_base.js", "func_name": "mapOutputFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Using the options, map the given page to an output path.\n\n@param {Object} options - The input generator options.\n@param {String} options.outputDir - The output directory root path.\n@param {String} [options.outputPath] - optional function or object to map pages to outputPaths.\n@param {String} [options.sitemapOutputDir] - optional root path for sitemaps within outputDir.\n@returns {String|Boolean} The full path to the output file or false on failure.", "docstring_tokens": ["Using", "the", "options", "map", "the", "given", "page", "to", "an", "output", "path", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/input-generators/_base.js#L156-L171", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/input-generators/_base.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Run the input generator.\n\n@param {Object} options - Input generator options.\n@param {Function} generator - The input generator to run.\n@param {Function} listener - The callback that receives each input generated.\n@returns {Promise} The promise returned by the input generator.", "docstring_tokens": ["Run", "the", "input", "generator", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/input-generators/_base.js#L207-L211", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/input-generators/_base.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate the input\nEmit the event that contains the input hash\n\n@param {Object} options - input generator options.\n@param {String} options.protocol - https?\n@param {String} options.auth - user:pass for old style urls.\n@param {String} options.hostname - The hostname part of the url.\n@param {Number} options.port - The port part of the url.\n@param {Function} options.selector - Produces a selector given a page url.\n@param {Function} options.timeout - Produces a timeout given a page url.\n@param {Number} options.checkInterval - The millisecond resolute poll interval.\n@param {Function} options.userJQuery - Produces a jquery bool given a page url.\n@param {Function} options.verbose - Produces a verbose bool given a page url.\n@param {Function} options.phantomjsOptions - Produces phantomjs options given a page url.\n@param {Function} options._inputEmitter - The EventEmitter to generate input.\n@param {String} page - The url to the page resource.\n@returns {String} The full output file path.", "docstring_tokens": ["Generate", "the", "input", "Emit", "the", "event", "that", "contains", "the", "input", "hash"], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/input-generators/_base.js#L232-L268", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/async/exists.js", "func_name": "pathExists", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if a path exists.\n\n@param {String} path - The full path to the file to check.\n@param {Object} [options] - fileExists options.\n@param {Boolean} [options.returnFile] - If true, resolve to input filename on\nsuccess. Otherwise, resolve to boolean. Defaults to false (boolean).\n@returns {Promise} Resolves to true (or file) if exists, false otherwise.", "docstring_tokens": ["Check", "if", "a", "path", "exists", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/async/exists.js#L24-L40", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/html-snapshots.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determine the default phantomJS module path. This is overridden by the\nphatomjs option.\n\nThis function, (technique and concerns) originated from karma-phantomjs-launcher:\n\nThe MIT License\nCopyright (C) 2011-2013 Google, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.", "docstring_tokens": ["Determine", "the", "default", "phantomJS", "module", "path", ".", "This", "is", "overridden", "by", "the", "phatomjs", "option", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/html-snapshots.js#L47-L59", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/html-snapshots.js", "func_name": "worker", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The worker task that launches phantomjs.\n\n@param {Object} input - An input object from an input generator.\n@param {Array} input.phantomjsOptions - Actual Phantomjs options.\n@param {String} input.outputFile - The output file that the html is written to.\n@param {String} input.url - The url to get the html from.\n@param {String} input.selector - The selector to wait for.\n@param {String} input.timeout - The phantomjs timeout.\n@param {String} input.checkInterval - The interval to poll for results.\n@param {Boolean} input.useJQuery - True if selector is jquery selector.\n@param {Boolean} input.verbose - True if verbose output is desired.\n@param {Object} options - Input options.\n@param {Object} options.snapshotScript - Snapshot script options.\n@param {String} options.snapshotScript.script - Snapshot script name.\n@param {String} options.snapshotScript.module - Snapshot script module.\n@param {String} options.phantomjs - Full path to the Phantomjs exe.\n@param {Object} notifier - The async Notifier instance for this run.\n@param {Function} notifier.remove - Remove an outputFile from notifier.\n@param {Function} notifier.setError - Set an error on the notifier.\n@param {Function} notifier.add - Add a file, timeout to the notifier.\n@param {Function} notifier.known - Check if a file is or has been processed.\n@param {Function} qcb - async.queue callback function.", "docstring_tokens": ["The", "worker", "task", "that", "launches", "phantomjs", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/html-snapshots.js#L97-L145", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/html-snapshots.js", "func_name": "prepOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Prepare html snapshots options.\n\n@param {Object} options - html snapshots options.\n@param {Array|String} options.source - html snapshots data source.", "docstring_tokens": ["Prepare", "html", "snapshots", "options", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/html-snapshots.js#L153-L161", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/html-snapshots.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Run all the snapshots using the requested inputGenerator\n\n@param {Object} options - ALL user supplied html snapshots options.\n@param {String} options.outputDir - Directory to write the html files to.\n@param {String} [options.input] - Input source type \"robots\", \"sitemap\", \"array\";\nDefaults to \"robots\".\n@param {Boolean} [options.outputDirClean] - True if output dir should be rm -rf;\nDefaults to false.\n@param {Number} [options.pollInterval] -\n@param {Function} [listener] - User supplied optional callback.\n@returns {Promise} Resolves on completion.", "docstring_tokens": ["Run", "all", "the", "snapshots", "using", "the", "requested", "inputGenerator"], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/html-snapshots.js#L177-L247", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/async/index.js", "func_name": "createLockFactory", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create the lock factory.", "docstring_tokens": ["Create", "the", "lock", "factory", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/async/index.js#L25-L49", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/async/index.js", "func_name": "Notifier", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Notifier Constructor\nPolls the outputDir and when all the files exist,\ncalls the listener indicating the snapshots are done.", "docstring_tokens": ["Notifier", "Constructor", "Polls", "the", "outputDir", "and", "when", "all", "the", "files", "exist", "calls", "the", "listener", "indicating", "the", "snapshots", "are", "done", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/async/index.js#L56-L91", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/async/index.js", "func_name": "start", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Start a watch interval, when a file exists, remove it from our files array.\nIf the files array is empty, call the listener and stop the watch interval.\n\n@param {Number} pollInterval - The millisecond poll interval to check for\nfile completion.\n@param {Object} input - The inputGenerator.\n@param {Function} listener - The callback to notify when complete.\n@param {Function} input.EOI - The inputGenerator function that signals end\nof input.\n@returns {Boolean} true if started successfully, false otherwise.", "docstring_tokens": ["Start", "a", "watch", "interval", "when", "a", "file", "exists", "remove", "it", "from", "our", "files", "array", ".", "If", "the", "files", "array", "is", "empty", "call", "the", "listener", "and", "stop", "the", "watch", "interval", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/async/index.js#L113-L173", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/async/index.js", "func_name": "add", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a file to the files array if it's not there.\n\n@param {String} outputFile - The full path to the output file to add.\n@param {Number} timeout - timeout milliseconds to wait (max).", "docstring_tokens": ["Add", "a", "file", "to", "the", "files", "array", "if", "it", "s", "not", "there", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/async/index.js#L190-L246", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/async/index.js", "func_name": "known", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if a file is being processed or has already been processed.\n\n@param {String} outputFile - The outputFile to check.\n@returns {Boolean} true if the fi", "docstring_tokens": ["Check", "if", "a", "file", "is", "being", "processed", "or", "has", "already", "been", "processed", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/async/index.js#L264-L272", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/async/index.js", "func_name": "_remove", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove a file from the files array if it's there.\nUnprotected version.\n\n@param {String} outputFile - The outputFile to remove.\n@param {Boolean} done - If true, add to filesDone collection.", "docstring_tokens": ["Remove", "a", "file", "from", "the", "files", "array", "if", "it", "s", "there", ".", "Unprotected", "version", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/async/index.js#L281-L291", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/async/index.js", "func_name": "remove", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove a file from the files array if it's there.\nProtected version.\n\n@param {String} outputFile - The outputFile to remove.\n@param {Boolean} done - If true, add to filesDone collection.", "docstring_tokens": ["Remove", "a", "file", "from", "the", "files", "array", "if", "it", "s", "there", ".", "Protected", "version", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/async/index.js#L300-L305", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/phantom/modules/selectorDetect.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The onReady callback", "docstring_tokens": ["The", "onReady", "callback"], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/phantom/modules/selectorDetect.js#L90-L93", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/input-generators/robots.js", "func_name": "oneline", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate input for one line of a simple robots.txt file\nDoes not support wildcards.", "docstring_tokens": ["Generate", "input", "for", "one", "line", "of", "a", "simple", "robots", ".", "txt", "file", "Does", "not", "support", "wildcards", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/input-generators/robots.js#L32-L42", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/input-generators/robots.js", "func_name": "getRobotsUrl", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieves robots.txt from url and parses it.\n\n@param {Object} options - Robots.txt options\n@param {String} options.source - The URL to a robots.txt\n@param {Function} options.timeout - Returns the robots.txt request timeout.\n@param {Function} callback - A completion callback.", "docstring_tokens": ["Retrieves", "robots", ".", "txt", "from", "url", "and", "parses", "it", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/input-generators/robots.js#L52-L76", "partition": "test"} +{"repo": "localnerve/html-snapshots", "path": "lib/input-generators/robots.js", "func_name": "getRobotsFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Reads the robots.txt file and parses it.", "docstring_tokens": ["Reads", "the", "robots", ".", "txt", "file", "and", "parses", "it", "."], "sha": "63e829b234a8fa1399da1f7347a7fb3463e862a8", "url": "https://github.com/localnerve/html-snapshots/blob/63e829b234a8fa1399da1f7347a7fb3463e862a8/lib/input-generators/robots.js#L81-L98", "partition": "test"} +{"repo": "d3plus/d3plus-hierarchy", "path": "src/nest.js", "func_name": "bubble", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Bubbles up values that do not nest to the furthest key.\n@param {Array} *values* The \"values\" of a nest object.\n@private", "docstring_tokens": ["Bubbles", "up", "values", "that", "do", "not", "nest", "to", "the", "furthest", "key", "."], "sha": "b53a557b6d45d8bbb00ce97272061452c455ce6c", "url": "https://github.com/d3plus/d3plus-hierarchy/blob/b53a557b6d45d8bbb00ce97272061452c455ce6c/src/nest.js#L26-L39", "partition": "test"} +{"repo": "silverwind/cidr-tools", "path": "index.js", "func_name": "exclude", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "exclude b from a and return remainder cidrs", "docstring_tokens": ["exclude", "b", "from", "a", "and", "return", "remainder", "cidrs"], "sha": "6b6f18c0090ff2d8f5fc7cf3a1a622a546b6a328", "url": "https://github.com/silverwind/cidr-tools/blob/6b6f18c0090ff2d8f5fc7cf3a1a622a546b6a328/index.js#L64-L136", "partition": "test"} +{"repo": "Countly/countly-sdk-nodejs", "path": "lib/countly-bulk.js", "func_name": "getMsTimestamp", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get unique timestamp in miliseconds", "docstring_tokens": ["get", "unique", "timestamp", "in", "miliseconds"], "sha": "4cdce095fa0e479aad985cbfa2d58bc1163ae635", "url": "https://github.com/Countly/countly-sdk-nodejs/blob/4cdce095fa0e479aad985cbfa2d58bc1163ae635/lib/countly-bulk.js#L412-L421", "partition": "test"} +{"repo": "Countly/countly-sdk-nodejs", "path": "lib/countly-bulk.js", "func_name": "parseUrl", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "parsing host and port information from url", "docstring_tokens": ["parsing", "host", "and", "port", "information", "from", "url"], "sha": "4cdce095fa0e479aad985cbfa2d58bc1163ae635", "url": "https://github.com/Countly/countly-sdk-nodejs/blob/4cdce095fa0e479aad985cbfa2d58bc1163ae635/lib/countly-bulk.js#L424-L440", "partition": "test"} +{"repo": "Countly/countly-sdk-nodejs", "path": "lib/countly-bulk.js", "func_name": "prepareParams", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "convert JSON object to query params", "docstring_tokens": ["convert", "JSON", "object", "to", "query", "params"], "sha": "4cdce095fa0e479aad985cbfa2d58bc1163ae635", "url": "https://github.com/Countly/countly-sdk-nodejs/blob/4cdce095fa0e479aad985cbfa2d58bc1163ae635/lib/countly-bulk.js#L443-L449", "partition": "test"} +{"repo": "Countly/countly-sdk-nodejs", "path": "lib/countly-bulk.js", "func_name": "stripTrailingSlash", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "removing trailing slashes", "docstring_tokens": ["removing", "trailing", "slashes"], "sha": "4cdce095fa0e479aad985cbfa2d58bc1163ae635", "url": "https://github.com/Countly/countly-sdk-nodejs/blob/4cdce095fa0e479aad985cbfa2d58bc1163ae635/lib/countly-bulk.js#L452-L457", "partition": "test"} +{"repo": "Countly/countly-sdk-nodejs", "path": "lib/countly-bulk.js", "func_name": "getProperties", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "retrieve only specific properties from object", "docstring_tokens": ["retrieve", "only", "specific", "properties", "from", "object"], "sha": "4cdce095fa0e479aad985cbfa2d58bc1163ae635", "url": "https://github.com/Countly/countly-sdk-nodejs/blob/4cdce095fa0e479aad985cbfa2d58bc1163ae635/lib/countly-bulk.js#L539-L549", "partition": "test"} +{"repo": "Countly/countly-sdk-nodejs", "path": "lib/countly.js", "func_name": "add_cly_events", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "internal method for events, in case there is no consent for custom events, but internal events has consents", "docstring_tokens": ["internal", "method", "for", "events", "in", "case", "there", "is", "no", "consent", "for", "custom", "events", "but", "internal", "events", "has", "consents"], "sha": "4cdce095fa0e479aad985cbfa2d58bc1163ae635", "url": "https://github.com/Countly/countly-sdk-nodejs/blob/4cdce095fa0e479aad985cbfa2d58bc1163ae635/lib/countly.js#L478-L501", "partition": "test"} +{"repo": "Countly/countly-sdk-nodejs", "path": "lib/countly.js", "func_name": "prepareRequest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "prepare request by adding basic info to it", "docstring_tokens": ["prepare", "request", "by", "adding", "basic", "info", "to", "it"], "sha": "4cdce095fa0e479aad985cbfa2d58bc1163ae635", "url": "https://github.com/Countly/countly-sdk-nodejs/blob/4cdce095fa0e479aad985cbfa2d58bc1163ae635/lib/countly.js#L943-L967", "partition": "test"} +{"repo": "Countly/countly-sdk-nodejs", "path": "lib/countly.js", "func_name": "toRequestQueue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "insert request to queue", "docstring_tokens": ["insert", "request", "to", "queue"], "sha": "4cdce095fa0e479aad985cbfa2d58bc1163ae635", "url": "https://github.com/Countly/countly-sdk-nodejs/blob/4cdce095fa0e479aad985cbfa2d58bc1163ae635/lib/countly.js#L970-L988", "partition": "test"} +{"repo": "Countly/countly-sdk-nodejs", "path": "lib/countly.js", "func_name": "getMetrics", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get metrics of the browser", "docstring_tokens": ["get", "metrics", "of", "the", "browser"], "sha": "4cdce095fa0e479aad985cbfa2d58bc1163ae635", "url": "https://github.com/Countly/countly-sdk-nodejs/blob/4cdce095fa0e479aad985cbfa2d58bc1163ae635/lib/countly.js#L1060-L1072", "partition": "test"} +{"repo": "Countly/countly-sdk-nodejs", "path": "lib/countly.js", "func_name": "makeRequest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "sending HTTP request", "docstring_tokens": ["sending", "HTTP", "request"], "sha": "4cdce095fa0e479aad985cbfa2d58bc1163ae635", "url": "https://github.com/Countly/countly-sdk-nodejs/blob/4cdce095fa0e479aad985cbfa2d58bc1163ae635/lib/countly.js#L1151-L1216", "partition": "test"} +{"repo": "mohlsen/check-engine", "path": "lib/promiseHelpers.js", "func_name": "allSettled", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a promise that is resolved when all input promises have been\nsettled. The returned Promise is resolved with an array of\nPromise.Inspection objects.\n\nThis is the commonly accepted way of implementing allSettled() in Bluebird.\nSee: http://bluebirdjs.com/docs/api/reflect.html\n\n@param promises - The array of input promises.\n@returns {Promise} A promise that will be resolved once\nall input Promises have settled. The returned Promise will be resolved with a\ncorresponding array of Promise.Inspection objects.", "docstring_tokens": ["Creates", "a", "promise", "that", "is", "resolved", "when", "all", "input", "promises", "have", "been", "settled", ".", "The", "returned", "Promise", "is", "resolved", "with", "an", "array", "of", "Promise", ".", "Inspection", "objects", "."], "sha": "5cf212d37ca69735bc909710ddeca8dc5c876d77", "url": "https://github.com/mohlsen/check-engine/blob/5cf212d37ca69735bc909710ddeca8dc5c876d77/lib/promiseHelpers.js#L17-L21", "partition": "test"} +{"repo": "retextjs/retext-indefinite-article", "path": "lib/index.js", "func_name": "after", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the next word.", "docstring_tokens": ["Get", "the", "next", "word", "."], "sha": "abe3642840f416c2f921b6947d9ceb277c271a43", "url": "https://github.com/retextjs/retext-indefinite-article/blob/abe3642840f416c2f921b6947d9ceb277c271a43/lib/index.js#L96-L114", "partition": "test"} +{"repo": "retextjs/retext-indefinite-article", "path": "lib/index.js", "func_name": "classify", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Classify a word.", "docstring_tokens": ["Classify", "a", "word", "."], "sha": "abe3642840f416c2f921b6947d9ceb277c271a43", "url": "https://github.com/retextjs/retext-indefinite-article/blob/abe3642840f416c2f921b6947d9ceb277c271a43/lib/index.js#L117-L137", "partition": "test"} +{"repo": "retextjs/retext-indefinite-article", "path": "lib/index.js", "func_name": "factory", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a test based on a list of phrases.", "docstring_tokens": ["Create", "a", "test", "based", "on", "a", "list", "of", "phrases", "."], "sha": "abe3642840f416c2f921b6947d9ceb277c271a43", "url": "https://github.com/retextjs/retext-indefinite-article/blob/abe3642840f416c2f921b6947d9ceb277c271a43/lib/index.js#L140-L191", "partition": "test"} +{"repo": "Softmotions/ejdb-node", "path": "bin/cli.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "creating callback with collection rebuilding", "docstring_tokens": ["creating", "callback", "with", "collection", "rebuilding"], "sha": "9d3c37ac2d16bb2839c2cf5cdb0d068e70b2c9cc", "url": "https://github.com/Softmotions/ejdb-node/blob/9d3c37ac2d16bb2839c2cf5cdb0d068e70b2c9cc/bin/cli.js#L357-L366", "partition": "test"} +{"repo": "Softmotions/ejdb-node", "path": "ejdb.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The nodejs database wrapper.\n@class\n@memberOf ejdb", "docstring_tokens": ["The", "nodejs", "database", "wrapper", "."], "sha": "9d3c37ac2d16bb2839c2cf5cdb0d068e70b2c9cc", "url": "https://github.com/Softmotions/ejdb-node/blob/9d3c37ac2d16bb2839c2cf5cdb0d068e70b2c9cc/ejdb.js#L38-L46", "partition": "test"} +{"repo": "padsbanger/angular-backtop", "path": "demo/ng-dummy.js", "func_name": "dummyText", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "used to start at 0 each time.", "docstring_tokens": ["used", "to", "start", "at", "0", "each", "time", "."], "sha": "db50b514cc0bc74c7869eb8ed70dd1337bffc7be", "url": "https://github.com/padsbanger/angular-backtop/blob/db50b514cc0bc74c7869eb8ed70dd1337bffc7be/demo/ng-dummy.js#L203-L239", "partition": "test"} +{"repo": "jcrugzz/back", "path": "index.js", "func_name": "Back", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Takes a set of reconnect options defined in README", "docstring_tokens": ["Takes", "a", "set", "of", "reconnect", "options", "defined", "in", "README"], "sha": "fea6dcf5f4015ac98f4bb493e1937a55f9e6ec81", "url": "https://github.com/jcrugzz/back/blob/fea6dcf5f4015ac98f4bb493e1937a55f9e6ec81/index.js#L10-L17", "partition": "test"} +{"repo": "CSNW/d3.compose", "path": "gulpfile.js", "func_name": "css", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create css build function\n\n@method css\n@param {String|Array} files glob\n@param {String} output folder\n@param {Object} [options]\n@param {Boolean} [options.banner = false] Include banner with build\n@return {Function}", "docstring_tokens": ["Create", "css", "build", "function"], "sha": "28df23d5dfb4d3ec1bee7d58bc797f175a983c75", "url": "https://github.com/CSNW/d3.compose/blob/28df23d5dfb4d3ec1bee7d58bc797f175a983c75/gulpfile.js#L113-L130", "partition": "test"} +{"repo": "CSNW/d3.compose", "path": "gulpfile.js", "func_name": "series", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Approximate gulp 4.0 series\n\n@param {...String} ...tasks\n@param {Function} [fn] Function to call at end of series\n@return {Function}", "docstring_tokens": ["Approximate", "gulp", "4", ".", "0", "series"], "sha": "28df23d5dfb4d3ec1bee7d58bc797f175a983c75", "url": "https://github.com/CSNW/d3.compose/blob/28df23d5dfb4d3ec1bee7d58bc797f175a983c75/gulpfile.js#L139-L154", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "templates/sync-function/template.js", "func_name": "simpleTypeFilter", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A type filter that matches on the document's type property", "docstring_tokens": ["A", "type", "filter", "that", "matches", "on", "the", "document", "s", "type", "property"], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/templates/sync-function/template.js#L23-L33", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "templates/sync-function/template.js", "func_name": "padRight", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add the specified padding to the right of the given string value until its length matches the desired length", "docstring_tokens": ["Add", "the", "specified", "padding", "to", "the", "right", "of", "the", "given", "string", "value", "until", "its", "length", "matches", "the", "desired", "length"], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/templates/sync-function/template.js#L42-L48", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "templates/sync-function/access-assignment-module.js", "func_name": "resolveCollectionDefinition", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Transforms the given collection definition, which may have been defined as a single item, a list of items or a function that returns a list of items into a simple list, where each item has the specified prefix, if any", "docstring_tokens": ["Transforms", "the", "given", "collection", "definition", "which", "may", "have", "been", "defined", "as", "a", "single", "item", "a", "list", "of", "items", "or", "a", "function", "that", "returns", "a", "list", "of", "items", "into", "a", "simple", "list", "where", "each", "item", "has", "the", "specified", "prefix", "if", "any"], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/templates/sync-function/access-assignment-module.js#L32-L44", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "templates/sync-function/access-assignment-module.js", "func_name": "assignRolesToUsers", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Assigns role access to users", "docstring_tokens": ["Assigns", "role", "access", "to", "users"], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/templates/sync-function/access-assignment-module.js#L77-L88", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "templates/sync-function/authorization-module.js", "func_name": "getAllDocChannels", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieves a list of channels the document belongs to based on its specified type", "docstring_tokens": ["Retrieves", "a", "list", "of", "channels", "the", "document", "belongs", "to", "based", "on", "its", "specified", "type"], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/templates/sync-function/authorization-module.js#L20-L33", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "lib/commander/index.js", "func_name": "outputHelpIfNecessary", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Output help information if necessary\n\n@param {Command} command to output help for\n@param {Array} array of options to search for -h or --help\n@api private", "docstring_tokens": ["Output", "help", "information", "if", "necessary"], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/lib/commander/index.js#L1192-L1200", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "lib/commander/index.js", "func_name": "humanReadableArgName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Takes an argument an returns its human readable equivalent for help usage.\n\n@param {Object} arg\n@return {String}\n@api private", "docstring_tokens": ["Takes", "an", "argument", "an", "returns", "its", "human", "readable", "equivalent", "for", "help", "usage", "."], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/lib/commander/index.js#L1210-L1216", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "templates/sync-function/document-properties-validation-module.js", "func_name": "validateObjectProperties", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The following functions are nested within this function so they can share access to the doc, oldDoc and validationErrors params and the attachmentReferenceValidators and itemStack variables", "docstring_tokens": ["The", "following", "functions", "are", "nested", "within", "this", "function", "so", "they", "can", "share", "access", "to", "the", "doc", "oldDoc", "and", "validationErrors", "params", "and", "the", "attachmentReferenceValidators", "and", "itemStack", "variables"], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/templates/sync-function/document-properties-validation-module.js#L40-L89", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "templates/sync-function/document-properties-validation-module.js", "func_name": "buildItemPath", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Constructs the fully qualified path of the item at the top of the given stack", "docstring_tokens": ["Constructs", "the", "fully", "qualified", "path", "of", "the", "item", "at", "the", "top", "of", "the", "given", "stack"], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/templates/sync-function/document-properties-validation-module.js#L503-L519", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "samples/sample-sync-doc-definitions.js", "func_name": "getBusinessId", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieves the ID of the business to which the document belongs", "docstring_tokens": ["Retrieves", "the", "ID", "of", "the", "business", "to", "which", "the", "document", "belongs"], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/samples/sample-sync-doc-definitions.js#L34-L46", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "samples/sample-sync-doc-definitions.js", "func_name": "toDefaultSyncChannels", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Builds a function that returns the view, add, replace, remove channels extrapolated from the specified base privilege, name which is formatted according to the de facto Books convention of \"VIEW_FOOBAR\", \"ADD_FOOBAR\", \"CHANGE_FOOBAR\" and \"REMOVE_FOOBAR\" assuming the base privilege name is \"FOOBAR\"", "docstring_tokens": ["Builds", "a", "function", "that", "returns", "the", "view", "add", "replace", "remove", "channels", "extrapolated", "from", "the", "specified", "base", "privilege", "name", "which", "is", "formatted", "according", "to", "the", "de", "facto", "Books", "convention", "of", "VIEW_FOOBAR", "ADD_FOOBAR", "CHANGE_FOOBAR", "and", "REMOVE_FOOBAR", "assuming", "the", "base", "privilege", "name", "is", "FOOBAR"], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/samples/sample-sync-doc-definitions.js#L56-L67", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "templates/sync-function/time-module.js", "func_name": "isIso8601DateTimeString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check that a given value is a valid ISO 8601 format date string with optional time and time zone components", "docstring_tokens": ["Check", "that", "a", "given", "value", "is", "a", "valid", "ISO", "8601", "format", "date", "string", "with", "optional", "time", "and", "time", "zone", "components"], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/templates/sync-function/time-module.js#L21-L35", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "templates/sync-function/time-module.js", "func_name": "normalizeIso8601Time", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Converts the given time to the number of milliseconds since hour 0", "docstring_tokens": ["Converts", "the", "given", "time", "to", "the", "number", "of", "milliseconds", "since", "hour", "0"], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/templates/sync-function/time-module.js#L155-L165", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "templates/sync-function/time-module.js", "func_name": "compareTimes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compares the given time strings. Returns a negative number if a is less than b, a positive number if a is greater than b, or zero if a and b are equal.", "docstring_tokens": ["Compares", "the", "given", "time", "strings", ".", "Returns", "a", "negative", "number", "if", "a", "is", "less", "than", "b", "a", "positive", "number", "if", "a", "is", "greater", "than", "b", "or", "zero", "if", "a", "and", "b", "are", "equal", "."], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/templates/sync-function/time-module.js#L169-L175", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "templates/sync-function/time-module.js", "func_name": "compareDates", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compares the given date representations. Returns a negative number if a is less than b, a positive number if a is greater than b, or zero if a and b are equal.", "docstring_tokens": ["Compares", "the", "given", "date", "representations", ".", "Returns", "a", "negative", "number", "if", "a", "is", "less", "than", "b", "a", "positive", "number", "if", "a", "is", "greater", "than", "b", "or", "zero", "if", "a", "and", "b", "are", "equal", "."], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/templates/sync-function/time-module.js#L315-L333", "partition": "test"} +{"repo": "Kashoo/synctos", "path": "templates/sync-function/time-module.js", "func_name": "normalizeIso8601TimeZone", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Converts an ISO 8601 time zone into the number of minutes offset from UTC", "docstring_tokens": ["Converts", "an", "ISO", "8601", "time", "zone", "into", "the", "number", "of", "minutes", "offset", "from", "UTC"], "sha": "a6d59b4d4af2b837842d2107c57064c3fa12cc73", "url": "https://github.com/Kashoo/synctos/blob/a6d59b4d4af2b837842d2107c57064c3fa12cc73/templates/sync-function/time-module.js#L357-L359", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Nexus.js", "func_name": "start", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Call Start on the required Module Apexes", "docstring_tokens": ["Call", "Start", "on", "the", "required", "Module", "Apexes"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Nexus.js#L195-L213", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Nexus.js", "func_name": "exit", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Helper Functions as well as Entity definition \n@description stop the system by calling all stop methods and\nreleasing all entities from memory\nexit code 0 will gracefully exit,\n@param {number} [code=0] the code to exit with", "docstring_tokens": ["Helper", "Functions", "as", "well", "as", "Entity", "definition"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Nexus.js#L238-L260", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Nexus.js", "func_name": "sendMessage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Send a message from an entity to an Apex entity.\nIf a callback is provided, return when finished\n@param {object} com \t\t\tthe message object\n@param {string} com.Cmd \t\tthe command of the message\n@param {object} com.Passport\tthe information about the message\n@param {string} com.Passport.To the Pid of the recipient module\n@param {string} com.Passport.Pid the ID of the message\n@param {string=} com.Passport.From the Pid of the sending module\n@callback fun \t\t\t\tthe callback function to return to when finished", "docstring_tokens": ["Send", "a", "message", "from", "an", "entity", "to", "an", "Apex", "entity", ".", "If", "a", "callback", "is", "provided", "return", "when", "finished"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Nexus.js#L282-L344", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Nexus.js", "func_name": "deleteEntity", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Delete an entity from the module's memory. If the entity is an Apex of a Module,\nthen delete all the entities found in that module as well.\n@param {string} pid \t\tthe pid of the entity\n@callback fun \t\t\tthe callback to return the pid of the generated entity to", "docstring_tokens": ["Delete", "an", "entity", "from", "the", "module", "s", "memory", ".", "If", "the", "entity", "is", "an", "Apex", "of", "a", "Module", "then", "delete", "all", "the", "entities", "found", "in", "that", "module", "as", "well", "."], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Nexus.js#L390-L404", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Nexus.js", "func_name": "saveEntity", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Save an entity file. Make sure that all nested files exist in the\ncache prior to saving said file\n@param {object} par \t\tthe par of the entity\n@callback fun \t\t\tthe callback to return the pid of the generated entity to", "docstring_tokens": ["Save", "an", "entity", "file", ".", "Make", "sure", "that", "all", "nested", "files", "exist", "in", "the", "cache", "prior", "to", "saving", "said", "file"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Nexus.js#L412-L454", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Nexus.js", "func_name": "getFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Access a file that exists in the module.json\n@param {string} module \t\tthe module to look for the file in\n@param {string} filename \tthe name of the file we're looking for\n@callback fun\t\t\t\tthe callback to return the pid of the generated entity to", "docstring_tokens": ["Access", "a", "file", "that", "exists", "in", "the", "module", ".", "json"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Nexus.js#L485-L496", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Nexus.js", "func_name": "getEntityContext", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Spin up an entity from cache into memory and retrievd its context\notherwise just return it's context from memory\n@param {string} apx \t\tthe pid of the entities apex\n@param {string} pid \t\tthe pid of the entity\n@callback fun \t\t\tthe callback to return the pid of the generated entity to", "docstring_tokens": ["Spin", "up", "an", "entity", "from", "cache", "into", "memory", "and", "retrievd", "its", "context", "otherwise", "just", "return", "it", "s", "context", "from", "memory"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Nexus.js#L515-L565", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Nexus.js", "func_name": "GetModule", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "For retrieving modules\nModules come from the cache directory on the harddrive or the\nModCache if its already been read to RAM.\n@param {Object} modRequest\n@param {String} modRequest.Module\n@param {String=} modRequest.Source\n@param {Function} fun\n@returns mod", "docstring_tokens": ["For", "retrieving", "modules", "Modules", "come", "from", "the", "cache", "directory", "on", "the", "harddrive", "or", "the", "ModCache", "if", "its", "already", "been", "read", "to", "RAM", "."], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Nexus.js#L856-L864", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Genesis.js", "func_name": "processSources", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Reads in the given config and fills in the Sources Macros", "docstring_tokens": ["Reads", "in", "the", "given", "config", "and", "fills", "in", "the", "Sources", "Macros"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Genesis.js#L176-L218", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Genesis.js", "func_name": "generateModuleCatalog", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a list of all required modules and their brokers", "docstring_tokens": ["Create", "a", "list", "of", "all", "required", "modules", "and", "their", "brokers"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Genesis.js#L223-L289", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Genesis.js", "func_name": "logModule", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add the module to the Modules object if unique\n@param {object} mod \t\tThe module object\n@param {string} mod.Module\tThe name of the module\n@param {object, string} mod.Source The Module broker or path reference", "docstring_tokens": ["Add", "the", "module", "to", "the", "Modules", "object", "if", "unique"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Genesis.js#L262-L288", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Genesis.js", "func_name": "buildApexInstances", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Write the modules and all instances to the cache", "docstring_tokens": ["Write", "the", "modules", "and", "all", "instances", "to", "the", "cache"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Genesis.js#L294-L311", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Genesis.js", "func_name": "buildDir", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Build an object to represent a directory\n@param {String} path", "docstring_tokens": ["Build", "an", "object", "to", "represent", "a", "directory"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Genesis.js#L575-L601", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Genesis.js", "func_name": "genPid", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "generate a 32 character hexidecimal pid", "docstring_tokens": ["generate", "a", "32", "character", "hexidecimal", "pid"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Genesis.js#L606-L614", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Genesis.js", "func_name": "genesis", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Writes the system to the cache", "docstring_tokens": ["Writes", "the", "system", "to", "the", "cache"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Genesis.js#L633-L722", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Genesis.js", "func_name": "cacheModules", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Write the modules to the cache\n@param {Object} ModCache \t//the set of module zips required for this system", "docstring_tokens": ["Write", "the", "modules", "to", "the", "cache"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Genesis.js#L678-L692", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Genesis.js", "func_name": "cacheApexes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Write the module Apexes to the cache\n@param {Object} Apexes \t\t\t\t\t\t//The id:Pid of each apex\n@param {Object} ModuleDefinitions \t//the id:ModuleDefinition from Config", "docstring_tokens": ["Write", "the", "module", "Apexes", "to", "the", "cache"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Genesis.js#L699-L707", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/Genesis.js", "func_name": "Stop", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Resolves the main promise created during genesis call", "docstring_tokens": ["Resolves", "the", "main", "promise", "created", "during", "genesis", "call"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/Genesis.js#L712-L721", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/xgrl.js", "func_name": "getProtocolModule", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "load protocol to access modules", "docstring_tokens": ["load", "protocol", "to", "access", "modules"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/xgrl.js#L96-L141", "partition": "test"} +{"repo": "IntrospectiveSystems/xGraph", "path": "lib/IDBCache.js", "func_name": "remDir", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recursive directory deletion\n@param {string} path the directory to be recursively removed", "docstring_tokens": ["Recursive", "directory", "deletion"], "sha": "86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0", "url": "https://github.com/IntrospectiveSystems/xGraph/blob/86bc86f6cd7aab4c5259532ce28fb7f8ac5424e0/lib/IDBCache.js#L318-L349", "partition": "test"} +{"repo": "ax5ui/ax5ui-palette", "path": "dist/ax5palette.js", "func_name": "getMousePosition", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get mouse position\n@param e\n@returns {{clientX, clientY}}", "docstring_tokens": ["get", "mouse", "position"], "sha": "8bd807434bed2406007237ce764087f1b4dead2b", "url": "https://github.com/ax5ui/ax5ui-palette/blob/8bd807434bed2406007237ce764087f1b4dead2b/dist/ax5palette.js#L85-L94", "partition": "test"} +{"repo": "steve-jansen/json-proxy", "path": "lib/proxy.js", "func_name": "proxyRequest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "injects any LAN proxy servers into the request", "docstring_tokens": ["injects", "any", "LAN", "proxy", "servers", "into", "the", "request"], "sha": "b996609b627690774367d8d887f2e8baf102f6bf", "url": "https://github.com/steve-jansen/json-proxy/blob/b996609b627690774367d8d887f2e8baf102f6bf/lib/proxy.js#L37-L79", "partition": "test"} +{"repo": "steve-jansen/json-proxy", "path": "lib/proxy.js", "func_name": "injectProxyHeaders", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "inject any custom header values into a proxy request along with the x-forwarded-for, x-forwarded-port, and via headers", "docstring_tokens": ["inject", "any", "custom", "header", "values", "into", "a", "proxy", "request", "along", "with", "the", "x", "-", "forwarded", "-", "for", "x", "-", "forwarded", "-", "port", "and", "via", "headers"], "sha": "b996609b627690774367d8d887f2e8baf102f6bf", "url": "https://github.com/steve-jansen/json-proxy/blob/b996609b627690774367d8d887f2e8baf102f6bf/lib/proxy.js#L129-L154", "partition": "test"} +{"repo": "steve-jansen/json-proxy", "path": "lib/config.js", "func_name": "parseFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "reads a config file from either the config file specified on the command line, or fallback to a file name json-proxy.config in the working directory return true if the file can be read, otherwise return false", "docstring_tokens": ["reads", "a", "config", "file", "from", "either", "the", "config", "file", "specified", "on", "the", "command", "line", "or", "fallback", "to", "a", "file", "name", "json", "-", "proxy", ".", "config", "in", "the", "working", "directory", "return", "true", "if", "the", "file", "can", "be", "read", "otherwise", "return", "false"], "sha": "b996609b627690774367d8d887f2e8baf102f6bf", "url": "https://github.com/steve-jansen/json-proxy/blob/b996609b627690774367d8d887f2e8baf102f6bf/lib/config.js#L75-L98", "partition": "test"} +{"repo": "steve-jansen/json-proxy", "path": "lib/config.js", "func_name": "parseConfig", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "parse a config structure, overriding any values in config", "docstring_tokens": ["parse", "a", "config", "structure", "overriding", "any", "values", "in", "config"], "sha": "b996609b627690774367d8d887f2e8baf102f6bf", "url": "https://github.com/steve-jansen/json-proxy/blob/b996609b627690774367d8d887f2e8baf102f6bf/lib/config.js#L101-L121", "partition": "test"} +{"repo": "steve-jansen/json-proxy", "path": "lib/config.js", "func_name": "parseConfigMap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "transform a config hash object into an array", "docstring_tokens": ["transform", "a", "config", "hash", "object", "into", "an", "array"], "sha": "b996609b627690774367d8d887f2e8baf102f6bf", "url": "https://github.com/steve-jansen/json-proxy/blob/b996609b627690774367d8d887f2e8baf102f6bf/lib/config.js#L124-L138", "partition": "test"} +{"repo": "steve-jansen/json-proxy", "path": "lib/config.js", "func_name": "parseCommandLine", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "reads command line parameters", "docstring_tokens": ["reads", "command", "line", "parameters"], "sha": "b996609b627690774367d8d887f2e8baf102f6bf", "url": "https://github.com/steve-jansen/json-proxy/blob/b996609b627690774367d8d887f2e8baf102f6bf/lib/config.js#L141-L194", "partition": "test"} +{"repo": "steve-jansen/json-proxy", "path": "lib/config.js", "func_name": "parseCommandLineArgument", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "argv.X will be an array if multiple -X options are provided otherwise argv.X will just be a scalar value", "docstring_tokens": ["argv", ".", "X", "will", "be", "an", "array", "if", "multiple", "-", "X", "options", "are", "provided", "otherwise", "argv", ".", "X", "will", "just", "be", "a", "scalar", "value"], "sha": "b996609b627690774367d8d887f2e8baf102f6bf", "url": "https://github.com/steve-jansen/json-proxy/blob/b996609b627690774367d8d887f2e8baf102f6bf/lib/config.js#L198-L211", "partition": "test"} +{"repo": "steve-jansen/json-proxy", "path": "lib/config.js", "func_name": "parseForwardRule", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "parses rule syntax to create forwarding rules", "docstring_tokens": ["parses", "rule", "syntax", "to", "create", "forwarding", "rules"], "sha": "b996609b627690774367d8d887f2e8baf102f6bf", "url": "https://github.com/steve-jansen/json-proxy/blob/b996609b627690774367d8d887f2e8baf102f6bf/lib/config.js#L233-L253", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/error.js", "func_name": "withCode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return an error with a specific code", "docstring_tokens": ["Return", "an", "error", "with", "a", "specific", "code"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/error.js#L6-L10", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/repo.js", "func_name": "updateWorkingState", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Change workinState for a specific branch\n@param {RepositoryState} repoState\n@param {Branch} branch\n@param {WorkingState | Null} newWorkingState Pass null to delete\n@return {RepositoryState}", "docstring_tokens": ["Change", "workinState", "for", "a", "specific", "branch"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/repo.js#L12-L25", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/repo.js", "func_name": "fetchBranches", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fetch the list of branches in the repository and update them all. Will clear the\nWorkingStates of all branches that have updated.\n@param {RepositoryState} repoState\n@param {Driver} driver\n@return {Promise} with list of branches fetched", "docstring_tokens": ["Fetch", "the", "list", "of", "branches", "in", "the", "repository", "and", "update", "them", "all", ".", "Will", "clear", "the", "WorkingStates", "of", "all", "branches", "that", "have", "updated", "."], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/repo.js#L79-L99", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/repo.js", "func_name": "initialize", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize a new RepositoryState from the repo of a Driver. Fetch\nthe branches, and checkout master or the first available branch.\n@param {Driver} driver\n@return {Promise}", "docstring_tokens": ["Initialize", "a", "new", "RepositoryState", "from", "the", "repo", "of", "a", "Driver", ".", "Fetch", "the", "branches", "and", "checkout", "master", "or", "the", "first", "available", "branch", "."], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/repo.js#L107-L122", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/arraybuffer.js", "func_name": "enforceArrayBuffer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Force conversion to an arraybuffer", "docstring_tokens": ["Force", "conversion", "to", "an", "arraybuffer"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/arraybuffer.js#L70-L74", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/arraybuffer.js", "func_name": "enforceString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Force conversion to string with specific encoding", "docstring_tokens": ["Force", "conversion", "to", "string", "with", "specific", "encoding"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/arraybuffer.js#L79-L84", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/arraybuffer.js", "func_name": "equals", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Tests equality of two ArrayBuffer\n@param {ArrayBuffer} buf1\n@param {ArrayBuffer} buf2\n@return {Boolean}", "docstring_tokens": ["Tests", "equality", "of", "two", "ArrayBuffer"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/arraybuffer.js#L92-L100", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/working.js", "func_name": "getMergedFileSet", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a Seq of tree mixing changes and the fetched tree\n@param {WorkingState}\n@return {Set}", "docstring_tokens": ["Returns", "a", "Seq", "of", "tree", "mixing", "changes", "and", "the", "fetched", "tree"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/working.js#L12-L18", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/working.js", "func_name": "getMergedTreeEntries", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a Map of TreeEntry, with sha null when the content is not available as sha.\n@param {WorkingState}\n@return {Map}", "docstring_tokens": ["Returns", "a", "Map", "of", "TreeEntry", "with", "sha", "null", "when", "the", "content", "is", "not", "available", "as", "sha", "."], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/working.js#L25-L51", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/working.js", "func_name": "findSha", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Attempts to find a SHA if available for the given file\n@param {Path}\n@return {Sha | Null} null if Sha cannot be retrieved (because of pending change)\n@throws NOT_FOUND if the file does not exist or was removed", "docstring_tokens": ["Attempts", "to", "find", "a", "SHA", "if", "available", "for", "the", "given", "file"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/working.js#L81-L98", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/commit.js", "func_name": "prepare", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a commit builder from the changes on current branch\n@param {RepositoryState}\n@param {Author} opts.author\n@param {String} [opts.message]\n@return {CommitBuilder}", "docstring_tokens": ["Create", "a", "commit", "builder", "from", "the", "changes", "on", "current", "branch"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/commit.js#L17-L40", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/commit.js", "func_name": "flush", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Flush a commit from the current branch using a driver\nThen update the reference, and pull new workingState\n@param {RepositoryState} repoState\n@param {Driver} driver\n@param {CommitBuilder} commitBuilder\n@param {Branch} [options.branch] Optional branch to use instead of\ncurrent branch\n@param {Boolean} [options.ignoreEmpty=true] Empty commits are\nignored, unless they merge several branches.\n@return {Promise} If the\nbranch cannot be fast forwarded to the created commit, fails with\nNOT_FAST_FORWARD. The error will contains the created Commit.", "docstring_tokens": ["Flush", "a", "commit", "from", "the", "current", "branch", "using", "a", "driver", "Then", "update", "the", "reference", "and", "pull", "new", "workingState"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/commit.js#L56-L90", "partition": "test"} +{"repo": "steve-jansen/json-proxy", "path": "lib/logger.js", "func_name": "format", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "colorize strings and send to console.log", "docstring_tokens": ["colorize", "strings", "and", "send", "to", "console", ".", "log"], "sha": "b996609b627690774367d8d887f2e8baf102f6bf", "url": "https://github.com/steve-jansen/json-proxy/blob/b996609b627690774367d8d887f2e8baf102f6bf/lib/logger.js#L23-L31", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/remote.js", "func_name": "push", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Push a local branch to a remote repository\n@param {RepositoryState} repoState\n@param {Driver} driver\n@param {Branch} [opts.branch] Branch to push. Default to current\n@param {String} [opts.remote.name=origin] Name of the remote\n@param {String} [opts.remote.url] URL if the remote needs to be created\n@param {Boolean} [opts.force=false] Ignore non fast forward\n@param {String} [opts.auth.username] Authentication username\n@param {String} [opts.auth.password] Authentication password\n@return {Promise}\n@throws {Promise}\n@throws {Promise}\n@throws {Promise}", "docstring_tokens": ["Push", "a", "local", "branch", "to", "a", "remote", "repository"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/remote.js#L20-L32", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/remote.js", "func_name": "pull", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Pulls changes for local branch, from remote repository. Loses any\npending changes on it.\n@param {RepositoryState} repoState\n@param {Driver} driver\n@param {Branch} [opts.branch] Branch to pull. Default to current\n@param {String} [opts.remote.name=origin] Name of the remote\n@param {String} [opts.remote.url] URL if the remote needs to be created\n@param {Boolean} [opts.force=false] Ignore non fast forward\n@param {String} [opts.auth.username] Authentication username\n@param {String} [opts.auth.password] Authentication password\n@return {Promise}\n@throws {Promise}\n@throws {Promise}\n@throws {Promise}", "docstring_tokens": ["Pulls", "changes", "for", "local", "branch", "from", "remote", "repository", ".", "Loses", "any", "pending", "changes", "on", "it", "."], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/remote.js#L50-L72", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/conflict.js", "func_name": "compareRefs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Computes a TreeConflict between to tree references. Fetches the\ntrees from the repo. The list of conflicts is the minimal set of\nconflicts.\n@param {Driver} driver\n@param {Branch | String} base A branch, branch name, or SHA\n@param {Branch | String} head A branch, branch name, or SHA\n@return {Promise}", "docstring_tokens": ["Computes", "a", "TreeConflict", "between", "to", "tree", "references", ".", "Fetches", "the", "trees", "from", "the", "repo", ".", "The", "list", "of", "conflicts", "is", "the", "minimal", "set", "of", "conflicts", "."], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/conflict.js#L20-L47", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/conflict.js", "func_name": "solveTree", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Merge solved Conflicts back into a TreeConflict. Unsolved conflicts\ndefault to keep base.\n@param {TreeConflict} treeConflict\n@param {Map} solved\n@return {TreeConflict}", "docstring_tokens": ["Merge", "solved", "Conflicts", "back", "into", "a", "TreeConflict", ".", "Unsolved", "conflicts", "default", "to", "keep", "base", "."], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/conflict.js#L56-L68", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/conflict.js", "func_name": "mergeCommit", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a merge commit builder\n@param {TreeConflict} treeConflict The solved TreeConflict\n@param {Array} parents Parent commits\n@param {Author} options.author\n@param {String} [options.message='Merge commit']\n@return {CommitBuilder}", "docstring_tokens": ["Create", "a", "merge", "commit", "builder"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/conflict.js#L78-L105", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/conflict.js", "func_name": "_getSolvedEntries", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the final TreeEntries for a solved TreeConflict.\n@param {TreeConflict} treeConflict\n@return {Map} Some TreeEntries have a null SHA\nbecause of new solved content.", "docstring_tokens": ["Returns", "the", "final", "TreeEntries", "for", "a", "solved", "TreeConflict", "."], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/conflict.js#L176-L200", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/cache.js", "func_name": "addBlob", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a new blob to a cache instance\n@param {Cache} cache\n@param {String} sha Used as key\n@param {Blob} blob\n@return {Cache}", "docstring_tokens": ["Add", "a", "new", "blob", "to", "a", "cache", "instance"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/cache.js#L8-L14", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/filestree.js", "func_name": "get", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate a files tree from the current branch, taking pending changes into account.\n@param {RepositoryState} repoState\n@param {Path} [dir='.'] The directory to get the subtree from, default to root\n@return {TreeNode} The directory TreeNode with all its children", "docstring_tokens": ["Generate", "a", "files", "tree", "from", "the", "current", "branch", "taking", "pending", "changes", "into", "account", "."], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/filestree.js#L46-L84", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/drivers/github.js", "func_name": "normCreatedCommit", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Normalize a commit coming from the GitHub commit creation API\n@param {JSON} ghCommit\n@return {Commit}", "docstring_tokens": ["Normalize", "a", "commit", "coming", "from", "the", "GitHub", "commit", "creation", "API"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/drivers/github.js#L469-L479", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/drivers/github.js", "func_name": "normListedCommit", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Normalize a commit coming from the GitHub commit listing API\n@param {JSON} ghCommit\n@return {Commit}", "docstring_tokens": ["Normalize", "a", "commit", "coming", "from", "the", "GitHub", "commit", "listing", "API"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/drivers/github.js#L486-L497", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/file.js", "func_name": "stat", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Stat details about a file.\n@param {RepositoryState} repoState\n@param {Path} filepath\n@return {File}", "docstring_tokens": ["Stat", "details", "about", "a", "file", "."], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/file.js#L52-L95", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/file.js", "func_name": "readAsString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read content of a file, returns a String\n@return {String}", "docstring_tokens": ["Read", "content", "of", "a", "file", "returns", "a", "String"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/file.js#L111-L114", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/file.js", "func_name": "exists", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return true if file exists in working tree, false otherwise", "docstring_tokens": ["Return", "true", "if", "file", "exists", "in", "working", "tree", "false", "otherwise"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/file.js#L119-L124", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/file.js", "func_name": "remove", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove a file\n@return {RepositoryState}", "docstring_tokens": ["Remove", "a", "file"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/file.js#L159-L166", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/file.js", "func_name": "move", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Rename a file\n@return {RepositoryState}", "docstring_tokens": ["Rename", "a", "file"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/file.js#L172-L195", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/file.js", "func_name": "hasChanged", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if the given file has the same content in both\nRepositoryState's current working state, or is absent from both.\n@param {RepositoryState} previousState\n@param {RepositoryState} newState\n@param {Path} filepath\n@return {Boolean}", "docstring_tokens": ["Returns", "true", "if", "the", "given", "file", "has", "the", "same", "content", "in", "both", "RepositoryState", "s", "current", "working", "state", "or", "is", "absent", "from", "both", "."], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/file.js#L205-L230", "partition": "test"} +{"repo": "steve-jansen/json-proxy", "path": "spec/shared/setup.js", "func_name": "setup", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initializes the testing infrastructure needed for\nverifying the behavior of the core proxy library -\nnock, express, and httpServer.\n\n@param {String} connection one of 'direct', 'proxy', or 'non-rfc-proxy'\n@param {Function} done the async callback", "docstring_tokens": ["Initializes", "the", "testing", "infrastructure", "needed", "for", "verifying", "the", "behavior", "of", "the", "core", "proxy", "library", "-", "nock", "express", "and", "httpServer", "."], "sha": "b996609b627690774367d8d887f2e8baf102f6bf", "url": "https://github.com/steve-jansen/json-proxy/blob/b996609b627690774367d8d887f2e8baf102f6bf/spec/shared/setup.js#L29-L67", "partition": "test"} +{"repo": "steve-jansen/json-proxy", "path": "spec/shared/setup.js", "func_name": "configureNock", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "configures nock globally for a test run\n\n@param {Object.} options the options for configuring this\ntest suite\n@param {Object.} config the config of the json-proxy for\nthis test suite\n@returns {Array} an array of configured nock instances", "docstring_tokens": ["configures", "nock", "globally", "for", "a", "test", "run"], "sha": "b996609b627690774367d8d887f2e8baf102f6bf", "url": "https://github.com/steve-jansen/json-proxy/blob/b996609b627690774367d8d887f2e8baf102f6bf/spec/shared/setup.js#L112-L174", "partition": "test"} +{"repo": "steve-jansen/json-proxy", "path": "spec/shared/setup.js", "func_name": "configureExpress", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Configures an express instance on a dynamically assigned port\nfor serving static files and proxying requests based on the config.\n\n@param {Object.} config the config of the json-proxy for\nthis test suite\n@param {Function} done callback", "docstring_tokens": ["Configures", "an", "express", "instance", "on", "a", "dynamically", "assigned", "port", "for", "serving", "static", "files", "and", "proxying", "requests", "based", "on", "the", "config", "."], "sha": "b996609b627690774367d8d887f2e8baf102f6bf", "url": "https://github.com/steve-jansen/json-proxy/blob/b996609b627690774367d8d887f2e8baf102f6bf/spec/shared/setup.js#L184-L206", "partition": "test"} +{"repo": "steve-jansen/json-proxy", "path": "spec/shared/setup.js", "func_name": "configureLanProxy", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a simple LAN proxy using a vanilla HTTP server\nthat verifies the state of the proxy credentials and the x-forwarded-url\nare correct.\n\n@param {Object.} options the options for configuring this\ntest suite\n@param {Object.} config the config of the json-proxy for\nthis test suite\n@param {Function} done", "docstring_tokens": ["Creates", "a", "simple", "LAN", "proxy", "using", "a", "vanilla", "HTTP", "server", "that", "verifies", "the", "state", "of", "the", "proxy", "credentials", "and", "the", "x", "-", "forwarded", "-", "url", "are", "correct", "."], "sha": "b996609b627690774367d8d887f2e8baf102f6bf", "url": "https://github.com/steve-jansen/json-proxy/blob/b996609b627690774367d8d887f2e8baf102f6bf/spec/shared/setup.js#L219-L300", "partition": "test"} +{"repo": "steve-jansen/json-proxy", "path": "spec/shared/setup.js", "func_name": "cleanup", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Teardown logic for the reusable test suites\n@param {Function} done the async callback", "docstring_tokens": ["Teardown", "logic", "for", "the", "reusable", "test", "suites"], "sha": "b996609b627690774367d8d887f2e8baf102f6bf", "url": "https://github.com/steve-jansen/json-proxy/blob/b996609b627690774367d8d887f2e8baf102f6bf/spec/shared/setup.js#L306-L324", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/change.js", "func_name": "setChange", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set a new change to the current WorkingState.\nAttempt to resolve some cases like removing a file that was added\nin the first place.\n@param {RepositoryState}\n@param {String}\n@param {Change}", "docstring_tokens": ["Set", "a", "new", "change", "to", "the", "current", "WorkingState", ".", "Attempt", "to", "resolve", "some", "cases", "like", "removing", "a", "file", "that", "was", "added", "in", "the", "first", "place", "."], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/change.js#L26-L50", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/change.js", "func_name": "revertAll", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Revert all changes\n@param {RepositoryState}\n@return {RepositoryState}", "docstring_tokens": ["Revert", "all", "changes"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/change.js#L57-L66", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/change.js", "func_name": "revertForFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Revert change for a specific file\n@param {RepositoryState}\n@param {Path}\n@return {RepositoryState}", "docstring_tokens": ["Revert", "change", "for", "a", "specific", "file"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/change.js#L74-L83", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/change.js", "func_name": "revertForDir", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Revert changes for a specific directory\n@param {RepositoryState}\n@param {Path}\n@return {RepositoryState}", "docstring_tokens": ["Revert", "changes", "for", "a", "specific", "directory"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/change.js#L91-L103", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/change.js", "func_name": "revertAllRemoved", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Revert all removed files\n@param {RepositoryState}\n@return {RepositoryState}", "docstring_tokens": ["Revert", "all", "removed", "files"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/change.js#L110-L122", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/path.js", "func_name": "normPath", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Normalize a path", "docstring_tokens": ["Normalize", "a", "path"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/path.js#L6-L12", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/path.js", "func_name": "pathContains", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if the path is under dir", "docstring_tokens": ["Returns", "true", "if", "the", "path", "is", "under", "dir"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/path.js#L17-L22", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/directory.js", "func_name": "readFilenamesRecursive", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "List files recursively in a directory\n@param {RepositoryState} repoState\n@param {Path} dirName\n@return {Array}", "docstring_tokens": ["List", "files", "recursively", "in", "a", "directory"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/directory.js#L98-L107", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/directory.js", "func_name": "move", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Rename a directory", "docstring_tokens": ["Rename", "a", "directory"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/directory.js#L112-L125", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/branches.js", "func_name": "create", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a new branch with the given name.\n@param {RepositoryState} repoState\n@param {Driver} driver\n@param {String} name\n@param {Branch} [opts.base] Base branch, default to current branch\n@param {Boolean} [opts.checkout=false] Directly fetch and checkout the branch\n@return {Promise}", "docstring_tokens": ["Create", "a", "new", "branch", "with", "the", "given", "name", "."], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/branches.js#L13-L63", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/branches.js", "func_name": "update", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fetch the list of branches, and update the given branch only. Will update\nthe WorkingState of the branch (and discard previous\n@param {RepositoryState} repoState\n@param {Driver} driver\n@param {Branch | String} branchName The branch to update\n@return {Promise} with the branch updated", "docstring_tokens": ["Fetch", "the", "list", "of", "branches", "and", "update", "the", "given", "branch", "only", ".", "Will", "update", "the", "WorkingState", "of", "the", "branch", "(", "and", "discard", "previous"], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/branches.js#L73-L88", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/branches.js", "func_name": "remove", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove the given branch from the repository.\n@param {RepositoryState} repoState\n@param {Driver} driver\n@param {Branch} branch to remove\n@return {Promise}", "docstring_tokens": ["Remove", "the", "given", "branch", "from", "the", "repository", "."], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/branches.js#L97-L102", "partition": "test"} +{"repo": "GitbookIO/repofs", "path": "src/utils/blob.js", "func_name": "fetch", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fetch a blob from SHA.\n@param {RepositoryState} repoState\n@param {Driver} driver\n@param {SHA} sha\n@return {Promise}", "docstring_tokens": ["Fetch", "a", "blob", "from", "SHA", "."], "sha": "24f9880f3abb5aae4e4be56d0e88ba9d214447be", "url": "https://github.com/GitbookIO/repofs/blob/24f9880f3abb5aae4e4be56d0e88ba9d214447be/src/utils/blob.js#L21-L35", "partition": "test"} +{"repo": "pokitdok/pokitdok-nodejs", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "a private function to automatically refresh the access token when receiving a 401. Adds rejected requests to a queue to be processed", "docstring_tokens": ["a", "private", "function", "to", "automatically", "refresh", "the", "access", "token", "when", "receiving", "a", "401", ".", "Adds", "rejected", "requests", "to", "a", "queue", "to", "be", "processed"], "sha": "a1988e80456602b4fce47984026d044600ff9612", "url": "https://github.com/pokitdok/pokitdok-nodejs/blob/a1988e80456602b4fce47984026d044600ff9612/index.js#L19-L55", "partition": "test"} +{"repo": "pokitdok/pokitdok-nodejs", "path": "index.js", "func_name": "PokitDok", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a connection to the pokitdok API. The version defaults to v4. You must enter your client ID and client secret\nor all requests made with your connection will return errors.\n@name PokitDok\n@param {string} clientId - The client id of your PokitDok App\n@param {string} clientSecret - The client secret of your PokitDok App\n@param {string} version - the version of the API the connection should use\n@constructor\n@example\n```js\n// get a connection to the PokitDok Platform for the most recent version\nvar PokitDok = require('pokitdok-nodejs');\nvar pokitdok = new PokitDok(process.env.POKITDOK_CLIENT_ID, process.env.POKITDOK_CLIENT_SECRET);\n```\n@example\n```js\n// get a connection to the PokitDok Platform for version 3\nvar PokitDok = require('pokitdok-nodejs');\nvar pokitdokV3 = new PokitDok(process.env.POKITDOK_CLIENT_ID, process.env.POKITDOK_CLIENT_SECRET, 'v3');\n```", "docstring_tokens": ["Create", "a", "connection", "to", "the", "pokitdok", "API", ".", "The", "version", "defaults", "to", "v4", ".", "You", "must", "enter", "your", "client", "ID", "and", "client", "secret", "or", "all", "requests", "made", "with", "your", "connection", "will", "return", "errors", "."], "sha": "a1988e80456602b4fce47984026d044600ff9612", "url": "https://github.com/pokitdok/pokitdok-nodejs/blob/a1988e80456602b4fce47984026d044600ff9612/index.js#L78-L85", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "formats/svmlight.js", "func_name": "featureArrayToFeatureString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "convert an array of features to a single line in SVM-light format. The line starts with a space.", "docstring_tokens": ["convert", "an", "array", "of", "features", "to", "a", "single", "line", "in", "SVM", "-", "light", "format", ".", "The", "line", "starts", "with", "a", "space", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/formats/svmlight.js#L33-L43", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "features/FeatureLookupTable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "add a single feature, if it does not exist", "docstring_tokens": ["add", "a", "single", "feature", "if", "it", "does", "not", "exist"], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/features/FeatureLookupTable.js#L13-L19", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "features/FeatureLookupTable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "add all features in the given hash or array", "docstring_tokens": ["add", "all", "features", "in", "the", "given", "hash", "or", "array"], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/features/FeatureLookupTable.js#L22-L31", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "features/FeatureLookupTable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert the given hash of features to a numeric array, using 0 for padding.\nIf some features in the hash do not exist - they will be added.\n@param hash any hash, for example, {a: 111, b: 222, c: 333}\n@return a matching array, based on the current feature table. For example: [0, 111, 222, 0, 333]\n@note some code borrowed from Heather Arthur: https://github.com/harthur/brain/blob/master/lib/lookup.js", "docstring_tokens": ["Convert", "the", "given", "hash", "of", "features", "to", "a", "numeric", "array", "using", "0", "for", "padding", ".", "If", "some", "features", "in", "the", "hash", "do", "not", "exist", "-", "they", "will", "be", "added", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/features/FeatureLookupTable.js#L58-L72", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "features/FeatureLookupTable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert all the given hashes of features to numeric arrays, using 0 for padding.\nIf some features in some of the hashes do not exist - they will be added.\n@param hashes an array of hashes, for example, [{a: 111, b: 222}, {a: 11, c: 33}, ...]\n@return an array of matching arrays, based on the current feature table. For example: [[111, 222], [11, 0, 33]]", "docstring_tokens": ["Convert", "all", "the", "given", "hashes", "of", "features", "to", "numeric", "arrays", "using", "0", "for", "padding", ".", "If", "some", "features", "in", "some", "of", "the", "hashes", "do", "not", "exist", "-", "they", "will", "be", "added", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/features/FeatureLookupTable.js#L80-L90", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "features/FeatureLookupTable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert the given numeric array to a hash of features, ignoring zero values.\n@note some code borrowed from Heather Arthur: https://github.com/harthur/brain/blob/master/lib/lookup.js", "docstring_tokens": ["Convert", "the", "given", "numeric", "array", "to", "a", "hash", "of", "features", "ignoring", "zero", "values", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/features/FeatureLookupTable.js#L96-L103", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "features/FeatureLookupTable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert the given numeric arrays to array of hashes of features, ignoring zero values.", "docstring_tokens": ["Convert", "the", "given", "numeric", "arrays", "to", "array", "of", "hashes", "of", "features", "ignoring", "zero", "values", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/features/FeatureLookupTable.js#L108-L113", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "dist/multilabel/Homer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recursive internal subroutine of trainOnline.\n@param splitLabels an array of arrays: each internal array represents the parts of a single label.", "docstring_tokens": ["Recursive", "internal", "subroutine", "of", "trainOnline", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/dist/multilabel/Homer.js#L69-L93", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "dist/multilabel/Homer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recursive internal subroutine of trainBatch.", "docstring_tokens": ["Recursive", "internal", "subroutine", "of", "trainBatch", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/dist/multilabel/Homer.js#L121-L181", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "dist/multilabel/Homer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recursive internal subroutine of classify.\n@return an array of arrays, where each internal array represents a split label.", "docstring_tokens": ["Recursive", "internal", "subroutine", "of", "classify", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/dist/multilabel/Homer.js#L207-L244", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "dist/multilabel/BinarySegmentation.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "BinarySegmentation - Multi-label text classifier, based on a segmentation scheme using base binary classifiers.\n\nInspired by:\n\nMorbini Fabrizio, Sagae Kenji. Joint Identification and Segmentation of Domain-Specific Dialogue Acts for Conversational Dialogue Systems. ACL-HLT 2011\nhttp://www.citeulike.org/user/erelsegal-halevi/article/10259046\n\n@author Erel Segal-haLevi\n\n@param opts\nbinaryClassifierType (mandatory) - the type of the base binary classifier.\nfeatureExtractor (optional) - a single feature-extractor (see the \"features\" folder), or an array of extractors, for extracting features from the text segments during classification.", "docstring_tokens": ["BinarySegmentation", "-", "Multi", "-", "label", "text", "classifier", "based", "on", "a", "segmentation", "scheme", "using", "base", "binary", "classifiers", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/dist/multilabel/BinarySegmentation.js#L20-L41", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "dist/multilabel/PassiveAggressiveHash.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Multilabel online classifier based on Perceptron and Passive-Aggressive.\n\nfeatures and categories are strings; samples are hashes.\n\nBased on Python code Copyright (c) 2013 Joseph Keshet.\n\nConversion to Node.js started by Erel Segal-haLevi, but not finished yet.\n\n@since 2013-08\n\n@param opts\nConstant (optional) - tradeoff constant (default=5.0)\nretrain_count (optional) - number of epoches to run in trainBatch mode (default=10)", "docstring_tokens": ["Multilabel", "online", "classifier", "based", "on", "Perceptron", "and", "Passive", "-", "Aggressive", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/dist/multilabel/PassiveAggressiveHash.js#L24-L35", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "dist/multilabel/PassiveAggressiveHash.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Tell the classifier that the given classes will be used for the following\nsamples, so that it will know to add negative samples to classes that do\nnot appear.\n\n@param classes an object whose KEYS are classes, or an array whose VALUES are classes.", "docstring_tokens": ["Tell", "the", "classifier", "that", "the", "given", "classes", "will", "be", "used", "for", "the", "following", "samples", "so", "that", "it", "will", "know", "to", "add", "negative", "samples", "to", "classes", "that", "do", "not", "appear", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/dist/multilabel/PassiveAggressiveHash.js#L194-L202", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "dist/multilabel/PartialClassification.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "PartialClassification is a test classifier that learns and classifies the components\nof the labels separately according to the splitLabel routine. One of the examples could be\nclassifying intent, attribute, value separately by three different classifiers.\nWhen performing test by trainAndTest module, there is a check for toFormat routine, if it exists\nthen pretest format converting occurs.\n\n@author Vasily Konovalov\n@since March 2014", "docstring_tokens": ["PartialClassification", "is", "a", "test", "classifier", "that", "learns", "and", "classifies", "the", "components", "of", "the", "labels", "separately", "according", "to", "the", "splitLabel", "routine", ".", "One", "of", "the", "examples", "could", "be", "classifying", "intent", "attribute", "value", "separately", "by", "three", "different", "classifiers", ".", "When", "performing", "test", "by", "trainAndTest", "module", "there", "is", "a", "check", "for", "toFormat", "routine", "if", "it", "exists", "then", "pretest", "format", "converting", "occurs", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/dist/multilabel/PartialClassification.js#L16-L31", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "utils/PrecisionRecall.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Record the result of a new binary experiment.\n\n@param expected - the expected result (true/false).\n@param actual - the actual result (true/false).", "docstring_tokens": ["Record", "the", "result", "of", "a", "new", "binary", "experiment", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/utils/PrecisionRecall.js#L40-L47", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "utils/PrecisionRecall.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Record the result of a new classes experiment per labels.\n\n@param expectedClasses - the expected set of classes (as an array or a hash).\n@param actualClasses - the actual set of classes (as an array or a hash).\n@return an array of explanations \"FALSE POSITIVE\", \"FALSE NEGATIVE\", and maybe also \"TRUE POSITIVE\"", "docstring_tokens": ["Record", "the", "result", "of", "a", "new", "classes", "experiment", "per", "labels", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/utils/PrecisionRecall.js#L57-L105", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "utils/PrecisionRecall.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Record the result of a new classes experiment.\n\n@param expectedClasses - the expected set of classes (as an array or a hash).\n@param actualClasses - the actual set of classes (as an array or a hash).\n@param logTruePositives- if true, log the true positives.\n@return an array of explanations \"FALSE POSITIVE\", \"FALSE NEGATIVE\", and maybe also \"TRUE POSITIVE\"", "docstring_tokens": ["Record", "the", "result", "of", "a", "new", "classes", "experiment", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/utils/PrecisionRecall.js#L122-L151", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "utils/PrecisionRecall.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Record the result of a new classes experiment in a hash manner.\nDoesn't allowed to do a inner output, all stats are put in hash\n@param expectedClasses - the expected set of classes (as an array or a hash).\n@param actualClasses - the actual set of classes (as an array or a hash).\n@param logTruePositives- if true, log the true positives.\n@return an array of explanations \"FALSE POSITIVE\", \"FALSE NEGATIVE\", and maybe also \"TRUE POSITIVE\"\n@author Vasily Konovalov\n micro - average", "docstring_tokens": ["Record", "the", "result", "of", "a", "new", "classes", "experiment", "in", "a", "hash", "manner", ".", "Doesn", "t", "allowed", "to", "do", "a", "inner", "output", "all", "stats", "are", "put", "in", "hash"], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/utils/PrecisionRecall.js#L164-L207", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "dist/svm/SvmPerf.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Send the given dataset to svm_perf_learn.\n\n@param dataset an array of samples of the form {input: [value1, value2, ...] , output: 0/1}", "docstring_tokens": ["Send", "the", "given", "dataset", "to", "svm_perf_learn", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/dist/svm/SvmPerf.js#L61-L80", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "dist/svm/SvmPerf.js", "func_name": "modelStringToModelMap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "weights smaller than this are ignored, to save space \nA utility that converts a model in the SVMPerf format to a map of feature weights.\n@param modelString a string.\n@returns a map.", "docstring_tokens": ["weights", "smaller", "than", "this", "are", "ignored", "to", "save", "space", "A", "utility", "that", "converts", "a", "model", "in", "the", "SVMPerf", "format", "to", "a", "map", "of", "feature", "weights", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/dist/svm/SvmPerf.js#L152-L178", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "formats/arff.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "convert a single dataset to Weka ARFF string.\n@param dataset an array of samples in the format {input: {feature1: xxx, feature2: yyy, ...}, output: [1,2,3]}\n@param relationName string for the @relation on the top of the file.\n@param featureLookupTable maps features to indices\n@return an ARFF string.", "docstring_tokens": ["convert", "a", "single", "dataset", "to", "Weka", "ARFF", "string", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/formats/arff.js#L98-L122", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "dist/svm/SvmLinear.js", "func_name": "SvmLinear", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "in lib linear, feature numbers start with 1", "docstring_tokens": ["in", "lib", "linear", "feature", "numbers", "start", "with", "1"], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/dist/svm/SvmLinear.js#L29-L44", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "dist/svm/SvmLinear.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Send the given dataset to liblinear_train.\n\n@param dataset an array of samples of the form {input: [value1, value2, ...] , output: 0/1}", "docstring_tokens": ["Send", "the", "given", "dataset", "to", "liblinear_train", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/dist/svm/SvmLinear.js#L65-L113", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "dist/svm/SvmLinear.js", "func_name": "modelStringToModelMap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "weights smaller than this are ignored, to save space \nA utility that converts a model in the SvmLinear format to a matrix of feature weights per label.\n@param modelString a string.\n@returns mapLabelToMapFeatureToWeight.", "docstring_tokens": ["weights", "smaller", "than", "this", "are", "ignored", "to", "save", "space", "A", "utility", "that", "converts", "a", "model", "in", "the", "SvmLinear", "format", "to", "a", "matrix", "of", "feature", "weights", "per", "label", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/dist/svm/SvmLinear.js#L259-L296", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "dist/multilabel/BinaryRelevance.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Tell the classifier that the given sample belongs to the given labels.\n\n@param sample\na document.\n@param labels\nan object whose KEYS are labels, or an array whose VALUES are labels.", "docstring_tokens": ["Tell", "the", "classifier", "that", "the", "given", "sample", "belongs", "to", "the", "given", "labels", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/dist/multilabel/BinaryRelevance.js#L34-L45", "partition": "test"} +{"repo": "intelligo-systems/intelligo.js", "path": "dist/multilabel/MulticlassSegmentation.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "MulticlassSegmentation - Multi-label text classifier, based on a segmentation scheme using a base multi-class classifier.\n\nInspired by:\n\nMorbini Fabrizio, Sagae Kenji. Joint Identification and Segmentation of Domain-Specific Dialogue Acts for Conversational Dialogue Systems. ACL-HLT 2011\nhttp://www.citeulike.org/user/erelsegal-halevi/article/10259046\n\n@author Erel Segal-haLevi\n\n@param opts\nbinaryClassifierType (mandatory) - the type of the base binary classifier.\nfeatureExtractor (optional) - a single feature-extractor (see the \"features\" folder), or an array of extractors, for extracting features from the text segments during classification.", "docstring_tokens": ["MulticlassSegmentation", "-", "Multi", "-", "label", "text", "classifier", "based", "on", "a", "segmentation", "scheme", "using", "a", "base", "multi", "-", "class", "classifier", "."], "sha": "9e75d48214fb41d346462f5d886bd92cc9956df6", "url": "https://github.com/intelligo-systems/intelligo.js/blob/9e75d48214fb41d346462f5d886bd92cc9956df6/dist/multilabel/MulticlassSegmentation.js#L20-L29", "partition": "test"} +{"repo": "panitw/easy-rpm", "path": "tasks/easy_rpm.js", "func_name": "concatOptionDataArrays", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets the `prop` property on options to the concatenation of that property from both options and data, if both exist. Otherwise, if either exist exclusively, that array will be set to the options. When neither exist, nothing is done to the options object.", "docstring_tokens": ["Sets", "the", "prop", "property", "on", "options", "to", "the", "concatenation", "of", "that", "property", "from", "both", "options", "and", "data", "if", "both", "exist", ".", "Otherwise", "if", "either", "exist", "exclusively", "that", "array", "will", "be", "set", "to", "the", "options", ".", "When", "neither", "exist", "nothing", "is", "done", "to", "the", "options", "object", "."], "sha": "7a7669af5bd19969219afb98ecb419c9e69e345b", "url": "https://github.com/panitw/easy-rpm/blob/7a7669af5bd19969219afb98ecb419c9e69e345b/tasks/easy_rpm.js#L41-L54", "partition": "test"} +{"repo": "syntax-tree/unist-util-remove", "path": "index.js", "func_name": "preorder", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check and remove nodes recursively in preorder. For each composite node, modify its children array in-place.", "docstring_tokens": ["Check", "and", "remove", "nodes", "recursively", "in", "preorder", ".", "For", "each", "composite", "node", "modify", "its", "children", "array", "in", "-", "place", "."], "sha": "ab976a9c884c175defc91c25795924fcbc6c0e8d", "url": "https://github.com/syntax-tree/unist-util-remove/blob/ab976a9c884c175defc91c25795924fcbc6c0e8d/index.js#L22-L61", "partition": "test"} +{"repo": "seripap/vainglory", "path": "dist/api/parser.js", "func_name": "filterRelations", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Filters models so they are formatted correctly.", "docstring_tokens": ["Filters", "models", "so", "they", "are", "formatted", "correctly", "."], "sha": "885369e465c143eaac27b90c28a22e4af2266fa6", "url": "https://github.com/seripap/vainglory/blob/885369e465c143eaac27b90c28a22e4af2266fa6/dist/api/parser.js#L103-L111", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Utility method for listing all files in a bundle.\n@method getBundleFiles\n@param {string} bundleName The name of the bundle.\n@param {object} filter Filter for deciding which files to return.\n@param {string|[string]} [filter.extensions] The filesystem extensions (NOT including dot) for which files to return.\n@return {[string]} An array of filesystem paths.", "docstring_tokens": ["Utility", "method", "for", "listing", "all", "files", "in", "a", "bundle", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L147-L163", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Utility method for listing all resources in a bundle.\n@method getBundleResources\n@param {string} bundleName The name of the bundle.\n@param {object} filter Filter for deciding which resources to return.\n@param {string|[string]} [filter.extensions] The filesystem extensions (NOT including dot) for which resources to return.\n@param {string|[string]} [filter.types] The resources types for which resources to return.\n@return {[string]} An array of filesystem paths.", "docstring_tokens": ["Utility", "method", "for", "listing", "all", "resources", "in", "a", "bundle", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L175-L181", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a list of resources in all the bundles.\n@method getAllResources\n@param {object} filter Filter for deciding which resources to list.\n@param {string|[string]} [filter.extensions] The filesystem extensions (NOT including dot) to return.\n@param {string|[string]} [filter.types] The resources types to return.\n@return {[LocatorResource]} An array of resources.", "docstring_tokens": ["Returns", "a", "list", "of", "resources", "in", "all", "the", "bundles", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L192-L202", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a list of all located bundle names.\nThe names are not ordered.\n@method getBundleNames\n@param {Function} [filter] function to execute on each bundle.\nIf no `filter` is supplied, all bundle names will be returned. The\nfunction will receive the following argument:\n@param {Object} filter.bundle the current bundle being iterated on\n@param {boolean} filter.return Return true to indicate that the\nbundle name should be returned in the list. Otherise the bundle\nname will be skipped.\n@return {Array} list of bundles", "docstring_tokens": ["Returns", "a", "list", "of", "all", "located", "bundle", "names", ".", "The", "names", "are", "not", "ordered", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L222-L237", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the name of the bundle to which the path belongs.\n@private\n@method _getBundleNameByPath\n@param {string} findPath The path to consider.\n@return {string} The name the bundle to which the findPath most closely matches.", "docstring_tokens": ["Returns", "the", "name", "of", "the", "bundle", "to", "which", "the", "path", "belongs", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L251-L267", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates the seed of a potential bundle.\n\nThe seed includes:\n
    \n
    baseDirectory {string}
    \n
    The directory of the bundle.
    \n
    name {string}
    \n
    The name of the bundle.
    \n
    version {string}
    \n
    The version of the bundle.
    \n
    npmDepth {integer}
    \n
    The depth in the NPM package dependency tree.
    \n
    options {object}
    \n
    Options for the bundle, taken in part from the `\"locator\"` section of `package.json`
    \n
    \n@private\n@method _makeBundleSeed\n@param {string} baseDirectory Full path to the bundle.\n@param {string} name The name of the bundle.\nMight be overrriden by the name in package.json (if it exists).\n@param {string} version The version to use if not specified in the package.json.\nMight be overriden by the version in package.json (if it exists).\n@param {object} [pkg] Contents of the bundles package.json.\n@param {object} [options] Additional options to apply. Lower priority\nthan those found in package.json.\n@return {object} The bundle seed, as described above.", "docstring_tokens": ["Creates", "the", "seed", "of", "a", "potential", "bundle", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L298-L320", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Makes a bundle out of a directory.\n@private\n@method _makeBundle\n@param {object} seed The seed bundle, @see _makeBundleSeed()\n@param {Bundle} parent Parent bundle. Only the root bundle doesn't have a parent.\n@return {Bundle} The new bundle", "docstring_tokens": ["Makes", "a", "bundle", "out", "of", "a", "directory", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L330-L363", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Turns the path into a resource in the associated bundle, if applicable.\n@private\n@method _processFile\n@param {string} fullPath the path to the file to be processed", "docstring_tokens": ["Turns", "the", "path", "into", "a", "resource", "in", "the", "associated", "bundle", "if", "applicable", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L372-L438", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Processes the \"_skip\" rule to decide if the path should be skipped.\n@private\n@method _ruleSkip\n@param {string} fullPath The full path to the file.\n@param {string} relativePath The path relative to the bundle.\n@param {object} rule The skip rule to process.\n@return {boolean} True if the path should be skipped, false otherwise.", "docstring_tokens": ["Processes", "the", "_skip", "rule", "to", "decide", "if", "the", "path", "should", "be", "skipped", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L450-L462", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles the file.\n@private\n@method _onFile\n@param {object} res Metadata about the file.\n@param {object} ruleset Rules to attempt on the file.", "docstring_tokens": ["Handles", "the", "file", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L509-L542", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles the resource.\n@private\n@method _onResource\n@param {object} res The resource.", "docstring_tokens": ["Handles", "the", "resource", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L551-L573", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determines whether a resource is filtered or not.\n@private\n@method _filterResource\n@param {LocatorResource} res The resource to filter.\n@param {object} filter The filter.\n@return {boolean} Whether resource passes the filter.", "docstring_tokens": ["Determines", "whether", "a", "resource", "is", "filtered", "or", "not", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L584-L611", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Figures out which seed to use from the list of available packages.\nSelect by depth, then by semver.\n@private\n@method _dedupeSeeds\n@param {object} pkgDepths List of seed by deep.\n@return {object} The metas of the selected package.", "docstring_tokens": ["Figures", "out", "which", "seed", "to", "use", "from", "the", "list", "of", "available", "packages", ".", "Select", "by", "depth", "then", "by", "semver", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L737-L760", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Figures out which bundles to use from the list.\nThe returned list is sorted first by NPM package depth then by name.\n@private\n@method _filterBundleSeeds\n@param {array} all List of all bundle seeds from NPM packages.\n@return {array} The metas of the packages to actually use.", "docstring_tokens": ["Figures", "out", "which", "bundles", "to", "use", "from", "the", "list", ".", "The", "returned", "list", "is", "sorted", "first", "by", "NPM", "package", "depth", "then", "by", "name", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L770-L784", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a bundle from an NPM package, and queues up files in the package.\n@private\n@method _walkBundle\n@param {object} bundleSeed Metadata about the package. See the docs for _makeBundleSeed()\nfor format of this metadata.\n@return {Bundle} The bundle made from the NPM package.", "docstring_tokens": ["Creates", "a", "bundle", "from", "an", "NPM", "package", "and", "queues", "up", "files", "in", "the", "package", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L795-L845", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundleLocator.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new object with the certain keys excluded.\nThis is used instead of \"delete\" since that has performance implications in V8.\n@private\n@method _objectExclude\n@param {object} srcObject The original object.\n@param {array} excludeKeys The keys to exclude from the results.\n@return {object} A version of the original object with the keys excluded.", "docstring_tokens": ["Creates", "a", "new", "object", "with", "the", "certain", "keys", "excluded", ".", "This", "is", "used", "instead", "of", "delete", "since", "that", "has", "performance", "implications", "in", "V8", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundleLocator.js#L942-L953", "partition": "test"} +{"repo": "yahoo/locator", "path": "lib/bundle.js", "func_name": "Bundle", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The Locator walks the filesystem and gives semantic meaning to\nfiles in the application.\n@module ModownLocator\n \n@class Bundle\n@constructor\n@param {string} baseDirectory Directory in which a bundle is rooted.\n@param {object} options Options for how the configuration files are handled.", "docstring_tokens": ["The", "Locator", "walks", "the", "filesystem", "and", "gives", "semantic", "meaning", "to", "files", "in", "the", "application", "."], "sha": "563e6d453556dd776572761bd8e002e6e1ac64b6", "url": "https://github.com/yahoo/locator/blob/563e6d453556dd776572761bd8e002e6e1ac64b6/lib/bundle.js#L29-L36", "partition": "test"} +{"repo": "kensho-technologies/orama", "path": "src/chartCore/getScale.js", "func_name": "getBaseScales", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get a scale with logic for the x and y axis, if the domain starts and finishes on the same number returns the mid range value", "docstring_tokens": ["get", "a", "scale", "with", "logic", "for", "the", "x", "and", "y", "axis", "if", "the", "domain", "starts", "and", "finishes", "on", "the", "same", "number", "returns", "the", "mid", "range", "value"], "sha": "ea30e2f58e5d855fc8c856b621ec323f30e8d0af", "url": "https://github.com/kensho-technologies/orama/blob/ea30e2f58e5d855fc8c856b621ec323f30e8d0af/src/chartCore/getScale.js#L19-L24", "partition": "test"} +{"repo": "tryfer/node-tryfer", "path": "lib/node_tracers.js", "func_name": "BufferingTracer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Buffer traces and defer recording until maxTraces have been received or\nsendInterval has elapsed since the last trace was recorded.\n\n@param {Tracer} tracer Tracer provider to record buffered tracers to.\n@param {Options} options Options object with the following keys:\n- maxTraces - Number of traces to buffer before recording occurs (default:\n50).\n- sendInterval - An average number of seconds which can pass after the last\ntrace has been sent to the backend before sending all the buffered traces\nto the backend again (default: 10).", "docstring_tokens": ["Buffer", "traces", "and", "defer", "recording", "until", "maxTraces", "have", "been", "received", "or", "sendInterval", "has", "elapsed", "since", "the", "last", "trace", "was", "recorded", "."], "sha": "061ed05a172b70fe04154214d1519be9246ecf5a", "url": "https://github.com/tryfer/node-tryfer/blob/061ed05a172b70fe04154214d1519be9246ecf5a/lib/node_tracers.js#L45-L59", "partition": "test"} +{"repo": "Mikhus/gulp-help-doc", "path": "index.js", "func_name": "build", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Analyzes given gulp instance and build internal cache\nfor further printing\n\n@param {Gulp} gulp\n@access private", "docstring_tokens": ["Analyzes", "given", "gulp", "instance", "and", "build", "internal", "cache", "for", "further", "printing"], "sha": "e00fb0dbd347a72b35b5395827900f9e8c460240", "url": "https://github.com/Mikhus/gulp-help-doc/blob/e00fb0dbd347a72b35b5395827900f9e8c460240/index.js#L114-L217", "partition": "test"} +{"repo": "Mikhus/gulp-help-doc", "path": "index.js", "func_name": "chunk", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Chunks given string into pieces making each chunk less or equal to\nOPTIONS.lineWidth, taking into account safe word-break\n\n@param {string} str\n@param {number} maxLen\n@returns {Array}\n@access private", "docstring_tokens": ["Chunks", "given", "string", "into", "pieces", "making", "each", "chunk", "less", "or", "equal", "to", "OPTIONS", ".", "lineWidth", "taking", "into", "account", "safe", "word", "-", "break"], "sha": "e00fb0dbd347a72b35b5395827900f9e8c460240", "url": "https://github.com/Mikhus/gulp-help-doc/blob/e00fb0dbd347a72b35b5395827900f9e8c460240/index.js#L228-L245", "partition": "test"} +{"repo": "Mikhus/gulp-help-doc", "path": "index.js", "func_name": "usage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Prints usage help information for the given gulp\ninstance.\nUsually it is used as a task within gulpfile.js in your project\nPlease make sure all your comments are properly annotated\n\n@examples\nTypical usage:\nvar gulp = require('gulp');\n\ngulp.task('help', => require('gulp-help-doc')(gulp));\n\n@param {Gulp} gulp - gulp instance to analyze\n@param {ConfigOptions} [options]\n@returns {Promise}\n@access public", "docstring_tokens": ["Prints", "usage", "help", "information", "for", "the", "given", "gulp", "instance", ".", "Usually", "it", "is", "used", "as", "a", "task", "within", "gulpfile", ".", "js", "in", "your", "project", "Please", "make", "sure", "all", "your", "comments", "are", "properly", "annotated"], "sha": "e00fb0dbd347a72b35b5395827900f9e8c460240", "url": "https://github.com/Mikhus/gulp-help-doc/blob/e00fb0dbd347a72b35b5395827900f9e8c460240/index.js#L385-L396", "partition": "test"} +{"repo": "sithmel/occamsrazor.js", "path": "lib/utils.js", "func_name": "filterArray", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "a filter implementation that mutates the original array", "docstring_tokens": ["a", "filter", "implementation", "that", "mutates", "the", "original", "array"], "sha": "c40f739322e8bac2ff6630260af3e08abd94868e", "url": "https://github.com/sithmel/occamsrazor.js/blob/c40f739322e8bac2ff6630260af3e08abd94868e/lib/utils.js#L11-L20", "partition": "test"} +{"repo": "stackcss/css-extract", "path": "index.js", "func_name": "cssExtract", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extract CSS from a browserify bundle obj -> null", "docstring_tokens": ["Extract", "CSS", "from", "a", "browserify", "bundle", "obj", "-", ">", "null"], "sha": "5cfbe9e34473d82599997e4bcec3a86ac7d52b61", "url": "https://github.com/stackcss/css-extract/blob/5cfbe9e34473d82599997e4bcec3a86ac7d52b61/index.js#L13-L73", "partition": "test"} +{"repo": "Cropster/ember-l10n", "path": "lib/commands/utils/validate/validate-placeholders.js", "func_name": "validatePlaceholders", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validate the regular placeholders of an item.\nThis possibly modifies the given validationErrors.\n\n@method _validatePlaceholder\n@param {String} id\n@param {String} idPlural\n@param {String[]} translations\n@private", "docstring_tokens": ["Validate", "the", "regular", "placeholders", "of", "an", "item", ".", "This", "possibly", "modifies", "the", "given", "validationErrors", "."], "sha": "f5e31fd6333007f4d33fc24b688e5f6ff660a59b", "url": "https://github.com/Cropster/ember-l10n/blob/f5e31fd6333007f4d33fc24b688e5f6ff660a59b/lib/commands/utils/validate/validate-placeholders.js#L11-L52", "partition": "test"} +{"repo": "Cropster/ember-l10n", "path": "lib/commands/utils/build-pot-file.js", "func_name": "groupGettextItems", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Group equal entries together The generated groups look like the given gettextItems, only that they have `locs` instead of `loc` Where `locs` is an array of `loc` entries, having a `fileName`, `line` and `column`.", "docstring_tokens": ["Group", "equal", "entries", "together", "The", "generated", "groups", "look", "like", "the", "given", "gettextItems", "only", "that", "they", "have", "locs", "instead", "of", "loc", "Where", "locs", "is", "an", "array", "of", "loc", "entries", "having", "a", "fileName", "line", "and", "column", "."], "sha": "f5e31fd6333007f4d33fc24b688e5f6ff660a59b", "url": "https://github.com/Cropster/ember-l10n/blob/f5e31fd6333007f4d33fc24b688e5f6ff660a59b/lib/commands/utils/build-pot-file.js#L28-L64", "partition": "test"} +{"repo": "Cropster/ember-l10n", "path": "lib/commands/utils/traverse-json.js", "func_name": "traverseJson", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This will traverse an l10n-JSON file, and call the callback function for each translation item.\n\nFor example:\n\n```js\ntraverseJson(json, (item) => delete item.comment);\n```\n\n@method traverseJson\n@param {Object} json\n@param {Function} callback\n@public", "docstring_tokens": ["This", "will", "traverse", "an", "l10n", "-", "JSON", "file", "and", "call", "the", "callback", "function", "for", "each", "translation", "item", "."], "sha": "f5e31fd6333007f4d33fc24b688e5f6ff660a59b", "url": "https://github.com/Cropster/ember-l10n/blob/f5e31fd6333007f4d33fc24b688e5f6ff660a59b/lib/commands/utils/traverse-json.js#L15-L23", "partition": "test"} +{"repo": "NoRedInk/find-elm-dependencies", "path": "index.js", "func_name": "findAllDependencies", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a Promise that returns a flat list of all the Elm files the given Elm file depends on, based on the modules it loads via `import`.", "docstring_tokens": ["Returns", "a", "Promise", "that", "returns", "a", "flat", "list", "of", "all", "the", "Elm", "files", "the", "given", "Elm", "file", "depends", "on", "based", "on", "the", "modules", "it", "loads", "via", "import", "."], "sha": "ccfa7b538d254b73728f8c1d4f5667fdbd175120", "url": "https://github.com/NoRedInk/find-elm-dependencies/blob/ccfa7b538d254b73728f8c1d4f5667fdbd175120/index.js#L47-L71", "partition": "test"} +{"repo": "hyurl/sfn", "path": "src/assets/js/javascript.js", "func_name": "parse", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parses URL query string.\n@param {string} query\n@returns {object}", "docstring_tokens": ["Parses", "URL", "query", "string", "."], "sha": "c4a7a39a14983fe8e62f46280c75f386e09ff618", "url": "https://github.com/hyurl/sfn/blob/c4a7a39a14983fe8e62f46280c75f386e09ff618/src/assets/js/javascript.js#L12-L26", "partition": "test"} +{"repo": "hyurl/sfn", "path": "src/assets/js/javascript.js", "func_name": "stringify", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Stringifies an object to a URL query string.\n@param {object} obj\n@returns {string}", "docstring_tokens": ["Stringifies", "an", "object", "to", "a", "URL", "query", "string", "."], "sha": "c4a7a39a14983fe8e62f46280c75f386e09ff618", "url": "https://github.com/hyurl/sfn/blob/c4a7a39a14983fe8e62f46280c75f386e09ff618/src/assets/js/javascript.js#L33-L39", "partition": "test"} +{"repo": "evanmoran/oj", "path": "versions/0.2.2/oj.js", "func_name": "_compileAny", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "_compileAny Recursive helper for compiling ojml or any type", "docstring_tokens": ["_compileAny", "Recursive", "helper", "for", "compiling", "ojml", "or", "any", "type"], "sha": "7f05880e4a4572fd67ffb0f55223f66d8ea4e68d", "url": "https://github.com/evanmoran/oj/blob/7f05880e4a4572fd67ffb0f55223f66d8ea4e68d/versions/0.2.2/oj.js#L910-L967", "partition": "test"} +{"repo": "evanmoran/oj", "path": "versions/0.2.2/oj.js", "func_name": "_attributesBindEventsToDOM", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Bind events to dom", "docstring_tokens": ["Bind", "events", "to", "dom"], "sha": "7f05880e4a4572fd67ffb0f55223f66d8ea4e68d", "url": "https://github.com/evanmoran/oj/blob/7f05880e4a4572fd67ffb0f55223f66d8ea4e68d/versions/0.2.2/oj.js#L1156-L1170", "partition": "test"} +{"repo": "evanmoran/oj", "path": "versions/0.2.2/oj.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Views are special objects map properties together. This is a union of arguments With the remaining arguments becoming a list", "docstring_tokens": ["Views", "are", "special", "objects", "map", "properties", "together", ".", "This", "is", "a", "union", "of", "arguments", "With", "the", "remaining", "arguments", "becoming", "a", "list"], "sha": "7f05880e4a4572fd67ffb0f55223f66d8ea4e68d", "url": "https://github.com/evanmoran/oj/blob/7f05880e4a4572fd67ffb0f55223f66d8ea4e68d/versions/0.2.2/oj.js#L1379-L1414", "partition": "test"} +{"repo": "evanmoran/oj", "path": "versions/0.2.2/oj.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set compiles and inserts in innerHTML", "docstring_tokens": ["Set", "compiles", "and", "inserts", "in", "innerHTML"], "sha": "7f05880e4a4572fd67ffb0f55223f66d8ea4e68d", "url": "https://github.com/evanmoran/oj/blob/7f05880e4a4572fd67ffb0f55223f66d8ea4e68d/versions/0.2.2/oj.js#L2895-L2919", "partition": "test"} +{"repo": "evanmoran/oj", "path": "oj.js", "func_name": "_jqGetValue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Helper method that abstracts getting oj values", "docstring_tokens": ["Helper", "method", "that", "abstracts", "getting", "oj", "values"], "sha": "7f05880e4a4572fd67ffb0f55223f66d8ea4e68d", "url": "https://github.com/evanmoran/oj/blob/7f05880e4a4572fd67ffb0f55223f66d8ea4e68d/oj.js#L3027-L3042", "partition": "test"} +{"repo": "particle-iot/binary-version-reader", "path": "lib/HalDependencyResolver.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "tell us if anything with dependencies is missing something\n\n(this covers scenarios where user app needs something else, or user app has no deps, and part 1 is old, but\npart2 is current, etc.) Built this because I hit this during testing.\n\nin what order should we apply updates?\nis it possible for us to get conflicting / out of order update recommendations?!\n\n@param describe", "docstring_tokens": ["tell", "us", "if", "anything", "with", "dependencies", "is", "missing", "something"], "sha": "0157a0d77121f19929a2d5cdb1760ba53d1a6870", "url": "https://github.com/particle-iot/binary-version-reader/blob/0157a0d77121f19929a2d5cdb1760ba53d1a6870/lib/HalDependencyResolver.js#L354-L385", "partition": "test"} +{"repo": "cedx/coveralls.js", "path": "bin/coveralls.js", "func_name": "main", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Application entry point.\n@return {Promise} Completes when the program is terminated.", "docstring_tokens": ["Application", "entry", "point", "."], "sha": "42ee63e3e6f6ffc695809f0c722cef7792edf0c5", "url": "https://github.com/cedx/coveralls.js/blob/42ee63e3e6f6ffc695809f0c722cef7792edf0c5/bin/coveralls.js#L16-L38", "partition": "test"} +{"repo": "kevinoid/travis-status", "path": "lib/shortline.js", "func_name": "Shortline", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new instance of Shortline which can be used to prompt users\nfor input.\n\nThis class is intended to be similar to {@link http://highline.rubyforge.org\nHighline}, although it is currently missing nearly all of its functionality.\n\n@constructor\n@param {{\ninput: stream.Readable|undefined,\noutput: stream.Writable|undefined\n}=} options Options to control the input source and output destination.", "docstring_tokens": ["Creates", "a", "new", "instance", "of", "Shortline", "which", "can", "be", "used", "to", "prompt", "users", "for", "input", "."], "sha": "4432996e44c111046cbf0ca7b0054fe1a0a7032d", "url": "https://github.com/kevinoid/travis-status/blob/4432996e44c111046cbf0ca7b0054fe1a0a7032d/lib/shortline.js#L25-L41", "partition": "test"} +{"repo": "cedx/coveralls.js", "path": "lib/parsers/clover.js", "func_name": "findElements", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Defines the shape of a node in an XML document.\n@typedef {object} XmlNode\n \nReturns direct child elements of the specified node.\n@param {XmlNode} node The node to process.\n@param {string} name The tag name of the child elements to find.\n@return {XmlNode[]} The direct child elements with the given tag name.", "docstring_tokens": ["Defines", "the", "shape", "of", "a", "node", "in", "an", "XML", "document", "."], "sha": "42ee63e3e6f6ffc695809f0c722cef7792edf0c5", "url": "https://github.com/cedx/coveralls.js/blob/42ee63e3e6f6ffc695809f0c722cef7792edf0c5/lib/parsers/clover.js#L21-L23", "partition": "test"} +{"repo": "cedx/coveralls.js", "path": "example/main.js", "func_name": "main", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Uploads a coverage report.", "docstring_tokens": ["Uploads", "a", "coverage", "report", "."], "sha": "42ee63e3e6f6ffc695809f0c722cef7792edf0c5", "url": "https://github.com/cedx/coveralls.js/blob/42ee63e3e6f6ffc695809f0c722cef7792edf0c5/example/main.js#L5-L16", "partition": "test"} +{"repo": "kevinoid/travis-status", "path": "lib/travis-status-http.js", "func_name": "TravisStatusHttp", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates an instance of the travis-ci HTTP agent with a given endpoint\nand request options.\n\nThis class has the following features above TravisHttp:\n- Uses a newer version of request (for gzip and proxy support)\n- Supports caller-specified API endpoints (e.g. for enterprise or local use)\n- Supports caller-specified request options (e.g. pooling, strictSSL, proxy,\ntunnel, timeouts, etc.)\n- Improved error values which are real Error instances and include the\nHTTP response information, regardless of content.\n\n@param {string=} endpoint Travis CI API endpoint (base URL).\n(default: {@link TravisStatusChecker.ORG_URI})\n@param {Object=} options Options to pass to the request\nconstructor.", "docstring_tokens": ["Creates", "an", "instance", "of", "the", "travis", "-", "ci", "HTTP", "agent", "with", "a", "given", "endpoint", "and", "request", "options", "."], "sha": "4432996e44c111046cbf0ca7b0054fe1a0a7032d", "url": "https://github.com/kevinoid/travis-status/blob/4432996e44c111046cbf0ca7b0054fe1a0a7032d/lib/travis-status-http.js#L42-L80", "partition": "test"} +{"repo": "kevinoid/travis-status", "path": "lib/git.js", "func_name": "git", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Runs git with given arguments.\n@param {...string} args Arguments to git command.\n@return {Promise} Promise with the process output or Error for non-0 exit.\n@private", "docstring_tokens": ["Runs", "git", "with", "given", "arguments", "."], "sha": "4432996e44c111046cbf0ca7b0054fe1a0a7032d", "url": "https://github.com/kevinoid/travis-status/blob/4432996e44c111046cbf0ca7b0054fe1a0a7032d/lib/git.js#L15-L28", "partition": "test"} +{"repo": "kevinoid/travis-status", "path": "lib/slug-detection-error.js", "func_name": "SlugDetectionError", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Constructs a SlugDetectionError.\n\n@class Represents an error during repository slug detection.\n@constructor\n@param {string=} message Human-readable description of the error.\n Note: Only needed before https://github.com/eslint/eslint/pull/5398 eslint-disable-next-line consistent-return", "docstring_tokens": ["Constructs", "a", "SlugDetectionError", "."], "sha": "4432996e44c111046cbf0ca7b0054fe1a0a7032d", "url": "https://github.com/kevinoid/travis-status/blob/4432996e44c111046cbf0ca7b0054fe1a0a7032d/lib/slug-detection-error.js#L18-L32", "partition": "test"} +{"repo": "sinnerschrader/schlump", "path": "src/css.js", "func_name": "createScopedCss", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Strips scoped style from html and return html and metadata.\n\n@param {string} html HTML input source\n@param {Object|string} scope Namespace for generated classNames\n@param {string?} filepath Input file path (mainly for debugging)\n@param {boolean} cssVariables True if css-variables support should be enabled\n@returns [classNames: any, vars: any, css: string, transformMap: Object]", "docstring_tokens": ["Strips", "scoped", "style", "from", "html", "and", "return", "html", "and", "metadata", "."], "sha": "1049761c781c42cc1ce32e9fb53f32c4d055e32c", "url": "https://github.com/sinnerschrader/schlump/blob/1049761c781c42cc1ce32e9fb53f32c4d055e32c/src/css.js#L37-L54", "partition": "test"} +{"repo": "sinnerschrader/schlump", "path": "src/css.js", "func_name": "combineCss", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a combined CSS from all component CSS and scopedCss.\n\n@param {object} templates A map of schlump templates\n@param {string[]} scopedCss A list of page CSS\n@returns {string} CSS result", "docstring_tokens": ["Returns", "a", "combined", "CSS", "from", "all", "component", "CSS", "and", "scopedCss", "."], "sha": "1049761c781c42cc1ce32e9fb53f32c4d055e32c", "url": "https://github.com/sinnerschrader/schlump/blob/1049761c781c42cc1ce32e9fb53f32c4d055e32c/src/css.js#L78-L87", "partition": "test"} +{"repo": "kevinoid/travis-status", "path": "lib/invalid-slug-error.js", "func_name": "InvalidSlugError", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Constructs an InvalidSlugError.\n\n@class Represents an error caused by a repository slug which does not\nfit the required format.\n@constructor\n@param {string=} message Human-readable description of the error.\n Note: Only needed before https://github.com/eslint/eslint/pull/5398 eslint-disable-next-line consistent-return", "docstring_tokens": ["Constructs", "an", "InvalidSlugError", "."], "sha": "4432996e44c111046cbf0ca7b0054fe1a0a7032d", "url": "https://github.com/kevinoid/travis-status/blob/4432996e44c111046cbf0ca7b0054fe1a0a7032d/lib/invalid-slug-error.js#L19-L33", "partition": "test"} +{"repo": "kevinoid/travis-status", "path": "index.js", "func_name": "checkBuildCommit", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks that a build has an expected commit hash.\n@param {!{commit:!{sha: string}}} build Build (or branch) object returned\nby the Travis CI API.\n@param {!{sha: string, name: ?string}} localCommit Expected commit\ninformation.\n@return {!Object} build\n@throws AssertionError If build.commit.sha is not equal to\nexpected.", "docstring_tokens": ["Checks", "that", "a", "build", "has", "an", "expected", "commit", "hash", "."], "sha": "4432996e44c111046cbf0ca7b0054fe1a0a7032d", "url": "https://github.com/kevinoid/travis-status/blob/4432996e44c111046cbf0ca7b0054fe1a0a7032d/index.js#L26-L40", "partition": "test"} +{"repo": "kevinoid/travis-status", "path": "lib/trim-slash.js", "func_name": "trimSlash", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Trims a single slash from the end of a string, if present.\n@ template ArgType\n@param {ArgType} string String to trim.\n@return {ArgType} If string is a string which ends with\n'/', string with the last character removed.\nOtherwise, string unmodified.\n@ nosideeffects", "docstring_tokens": ["Trims", "a", "single", "slash", "from", "the", "end", "of", "a", "string", "if", "present", "."], "sha": "4432996e44c111046cbf0ca7b0054fe1a0a7032d", "url": "https://github.com/kevinoid/travis-status/blob/4432996e44c111046cbf0ca7b0054fe1a0a7032d/lib/trim-slash.js#L16-L24", "partition": "test"} +{"repo": "reshape/loader", "path": "lib/index.js", "func_name": "parseOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Allows any option to be passed as a function which gets webpack's context as its first argument, in case some info from the loader context is necessary", "docstring_tokens": ["Allows", "any", "option", "to", "be", "passed", "as", "a", "function", "which", "gets", "webpack", "s", "context", "as", "its", "first", "argument", "in", "case", "some", "info", "from", "the", "loader", "context", "is", "necessary"], "sha": "766c00cc3fec8994e64ea292f446b31cac961c4a", "url": "https://github.com/reshape/loader/blob/766c00cc3fec8994e64ea292f446b31cac961c4a/lib/index.js#L90-L101", "partition": "test"} +{"repo": "reshape/loader", "path": "lib/index.js", "func_name": "serializeVerbatim", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The runtime contains functions which must be converted into strings without any escaping at all. Yes, this method of doing so is insane. But it works!", "docstring_tokens": ["The", "runtime", "contains", "functions", "which", "must", "be", "converted", "into", "strings", "without", "any", "escaping", "at", "all", ".", "Yes", "this", "method", "of", "doing", "so", "is", "insane", ".", "But", "it", "works!"], "sha": "766c00cc3fec8994e64ea292f446b31cac961c4a", "url": "https://github.com/reshape/loader/blob/766c00cc3fec8994e64ea292f446b31cac961c4a/lib/index.js#L120-L135", "partition": "test"} +{"repo": "sinnerschrader/schlump", "path": "src/pages.js", "func_name": "renderPages", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Renders all given pages as static HTML into the destination folder.\n\n@param {string[]} filepaths Input files to generate\n@param {string} dest Path to write files to\n@param {any} {components, vars, statics, disableValidation, scopedCss}\ncomponents\nvars key-value pairs of globals\nstatics list of all available static files\ndisableValidation true to disable sanity checks\n@returns", "docstring_tokens": ["Renders", "all", "given", "pages", "as", "static", "HTML", "into", "the", "destination", "folder", "."], "sha": "1049761c781c42cc1ce32e9fb53f32c4d055e32c", "url": "https://github.com/sinnerschrader/schlump/blob/1049761c781c42cc1ce32e9fb53f32c4d055e32c/src/pages.js#L42-L57", "partition": "test"} +{"repo": "kevinoid/travis-status", "path": "lib/git-status-checker.js", "func_name": "gitUrlPath", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the path portion of a git URL.\n@param {string} gitUrl Git URL to parse.\n@return {string} Path portion of the URL.\n@private", "docstring_tokens": ["Gets", "the", "path", "portion", "of", "a", "git", "URL", "."], "sha": "4432996e44c111046cbf0ca7b0054fe1a0a7032d", "url": "https://github.com/kevinoid/travis-status/blob/4432996e44c111046cbf0ca7b0054fe1a0a7032d/lib/git-status-checker.js#L218-L242", "partition": "test"} +{"repo": "martinic/ember-cli-deploy-build-plus", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Pick env specific robots.txt", "docstring_tokens": ["Pick", "env", "specific", "robots", ".", "txt"], "sha": "38bdf32a8b72c9bca40c948e94a4a647c0ddf388", "url": "https://github.com/martinic/ember-cli-deploy-build-plus/blob/38bdf32a8b72c9bca40c948e94a4a647c0ddf388/index.js#L31-L59", "partition": "test"} +{"repo": "ericyd/sass-colorscheme", "path": "example/make-example.js", "func_name": "compileIndex", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "compile hogan template and open index.html", "docstring_tokens": ["compile", "hogan", "template", "and", "open", "index", ".", "html"], "sha": "ed72d0bbccd465b3eafeb443b6e2003398bbb76d", "url": "https://github.com/ericyd/sass-colorscheme/blob/ed72d0bbccd465b3eafeb443b6e2003398bbb76d/example/make-example.js#L43-L59", "partition": "test"} +{"repo": "u-wave/parse-chat-markup", "path": "src/index.js", "func_name": "sortMentions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sort users by username length. Longest usernames first.\n\n@param {Array.} users\n@return {Array.}", "docstring_tokens": ["Sort", "users", "by", "username", "length", ".", "Longest", "usernames", "first", "."], "sha": "bd343310500bd38aa9ee57d8c8c7839ea9991211", "url": "https://github.com/u-wave/parse-chat-markup/blob/bd343310500bd38aa9ee57d8c8c7839ea9991211/src/index.js#L20-L22", "partition": "test"} +{"repo": "u-wave/parse-chat-markup", "path": "src/index.js", "func_name": "findEmoji", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Case-insensitively get the correct emoji name from the possible emoji for an\ninput string.\n\n@param {Array.} names All possible emoji names.\n@param {string} match The input string.\n@return {string|null} The correct emoji name (including casing), or `null` if\nthe requested emoji does not exist.", "docstring_tokens": ["Case", "-", "insensitively", "get", "the", "correct", "emoji", "name", "from", "the", "possible", "emoji", "for", "an", "input", "string", "."], "sha": "bd343310500bd38aa9ee57d8c8c7839ea9991211", "url": "https://github.com/u-wave/parse-chat-markup/blob/bd343310500bd38aa9ee57d8c8c7839ea9991211/src/index.js#L43-L53", "partition": "test"} +{"repo": "tzeskimo/mocha-fibers", "path": "lib/mocha-fibers.js", "func_name": "fiberize", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wrap a function in a fiber. Correctly handles expected presence of done callback", "docstring_tokens": ["Wrap", "a", "function", "in", "a", "fiber", ".", "Correctly", "handles", "expected", "presence", "of", "done", "callback"], "sha": "af4fc85f3db977784d80a5f52ff7b6cb5cae3634", "url": "https://github.com/tzeskimo/mocha-fibers/blob/af4fc85f3db977784d80a5f52ff7b6cb5cae3634/lib/mocha-fibers.js#L14-L36", "partition": "test"} +{"repo": "atom/clear-cut", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find matches for a regular expression in a string and push their details to parts Type is \"a\" for IDs, \"b\" for classes, attributes and pseudo-classes and \"c\" for elements and pseudo-elements", "docstring_tokens": ["Find", "matches", "for", "a", "regular", "expression", "in", "a", "string", "and", "push", "their", "details", "to", "parts", "Type", "is", "a", "for", "IDs", "b", "for", "classes", "attributes", "and", "pseudo", "-", "classes", "and", "c", "for", "elements", "and", "pseudo", "-", "elements"], "sha": "d0fdd26e7665b318930589f2b5dd678d320be00f", "url": "https://github.com/atom/clear-cut/blob/d0fdd26e7665b318930589f2b5dd678d320be00f/index.js#L24-L35", "partition": "test"} +{"repo": "atom/clear-cut", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculate the specificity for a selector by dividing it into simple selectors and counting them", "docstring_tokens": ["Calculate", "the", "specificity", "for", "a", "selector", "by", "dividing", "it", "into", "simple", "selectors", "and", "counting", "them"], "sha": "d0fdd26e7665b318930589f2b5dd678d320be00f", "url": "https://github.com/atom/clear-cut/blob/d0fdd26e7665b318930589f2b5dd678d320be00f/index.js#L38-L82", "partition": "test"} +{"repo": "db-migrate/mongodb", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds an index to a collection\n\n@param collectionName - The collection to add the index to\n@param indexName - The name of the index to add\n@param columns - The columns to add an index on\n@param\tunique - A boolean whether this creates a unique index", "docstring_tokens": ["Adds", "an", "index", "to", "a", "collection"], "sha": "2a1c449c15b65d64707e79c6a41f740a121d56fe", "url": "https://github.com/db-migrate/mongodb/blob/2a1c449c15b65d64707e79c6a41f740a121d56fe/index.js#L158-L168", "partition": "test"} +{"repo": "db-migrate/mongodb", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Inserts a migration record into the migration collection\n\n@param name - The name of the migration being run\n@param callback", "docstring_tokens": ["Inserts", "a", "migration", "record", "into", "the", "migration", "collection"], "sha": "2a1c449c15b65d64707e79c6a41f740a121d56fe", "url": "https://github.com/db-migrate/mongodb/blob/2a1c449c15b65d64707e79c6a41f740a121d56fe/index.js#L200-L203", "partition": "test"} +{"repo": "db-migrate/mongodb", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Inserts a seeder record into the seeder collection\n\n@param name - The name of the seed being run\n@param callback", "docstring_tokens": ["Inserts", "a", "seeder", "record", "into", "the", "seeder", "collection"], "sha": "2a1c449c15b65d64707e79c6a41f740a121d56fe", "url": "https://github.com/db-migrate/mongodb/blob/2a1c449c15b65d64707e79c6a41f740a121d56fe/index.js#L211-L214", "partition": "test"} +{"repo": "db-migrate/mongodb", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Callback function to return mongo records", "docstring_tokens": ["Callback", "function", "to", "return", "mongo", "records"], "sha": "2a1c449c15b65d64707e79c6a41f740a121d56fe", "url": "https://github.com/db-migrate/mongodb/blob/2a1c449c15b65d64707e79c6a41f740a121d56fe/index.js#L300-L308", "partition": "test"} +{"repo": "louisbl/cordova-plugin-locationservices", "path": "www/LocationServices.js", "func_name": "parseParameters", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns default params, overrides if provided with values", "docstring_tokens": ["Returns", "default", "params", "overrides", "if", "provided", "with", "values"], "sha": "9a605c439f6685a6ecb77ceeaffa257c97132e3a", "url": "https://github.com/louisbl/cordova-plugin-locationservices/blob/9a605c439f6685a6ecb77ceeaffa257c97132e3a/www/LocationServices.js#L36-L83", "partition": "test"} +{"repo": "troxler/headful", "path": "src/headful.js", "func_name": "noProp", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Tests whether the given `props` object contains a property with the name of `propNameOrFunction`.", "docstring_tokens": ["Tests", "whether", "the", "given", "props", "object", "contains", "a", "property", "with", "the", "name", "of", "propNameOrFunction", "."], "sha": "79833780634b5da414f322a70acc16cd971f54e9", "url": "https://github.com/troxler/headful/blob/79833780634b5da414f322a70acc16cd971f54e9/src/headful.js#L63-L69", "partition": "test"} +{"repo": "IonicaBizau/gif-cli", "path": "lib/index.js", "func_name": "GifCli", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "GifCli\nConverts the gif file into ASCII frames.\n\n@name GifCli\n@function\n@param {String} path The input gif file path.\n@param {Function} callback The callback function.", "docstring_tokens": ["GifCli", "Converts", "the", "gif", "file", "into", "ASCII", "frames", "."], "sha": "c37d57b419fad9648481a9b2a48a47cb07a428b0", "url": "https://github.com/IonicaBizau/gif-cli/blob/c37d57b419fad9648481a9b2a48a47cb07a428b0/lib/index.js#L19-L71", "partition": "test"} +{"repo": "npr/metalogger", "path": "lib/metalogger.js", "func_name": "shouldLog", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Should I log?\n\nUse this instead of older pattern of granular check then global check.", "docstring_tokens": ["Should", "I", "log?"], "sha": "9f964ed632befddb959e124469330806f3ea2ffa", "url": "https://github.com/npr/metalogger/blob/9f964ed632befddb959e124469330806f3ea2ffa/lib/metalogger.js#L121-L128", "partition": "test"} +{"repo": "frapontillo/angular-bootstrap-switch", "path": "dist/angular-bootstrap-switch.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the true value for this specific checkbox.\n@returns {Object} representing the true view value; if undefined, returns true.", "docstring_tokens": ["Return", "the", "true", "value", "for", "this", "specific", "checkbox", "."], "sha": "e9616e34524ae48dbab730d553438b6657948692", "url": "https://github.com/frapontillo/angular-bootstrap-switch/blob/e9616e34524ae48dbab730d553438b6657948692/dist/angular-bootstrap-switch.js#L28-L37", "partition": "test"} +{"repo": "frapontillo/angular-bootstrap-switch", "path": "dist/angular-bootstrap-switch.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the value of the angular-bound attribute, given its name.\nThe returned value may or may not equal the attribute value, as it may be transformed by a function.\n\n@param attrName The angular-bound attribute name to get the value for\n@returns {*} The attribute value", "docstring_tokens": ["Get", "the", "value", "of", "the", "angular", "-", "bound", "attribute", "given", "its", "name", ".", "The", "returned", "value", "may", "or", "may", "not", "equal", "the", "attribute", "value", "as", "it", "may", "be", "transformed", "by", "a", "function", "."], "sha": "e9616e34524ae48dbab730d553438b6657948692", "url": "https://github.com/frapontillo/angular-bootstrap-switch/blob/e9616e34524ae48dbab730d553438b6657948692/dist/angular-bootstrap-switch.js#L89-L113", "partition": "test"} +{"repo": "frapontillo/angular-bootstrap-switch", "path": "dist/angular-bootstrap-switch.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If the directive has not been initialized yet, do so.", "docstring_tokens": ["If", "the", "directive", "has", "not", "been", "initialized", "yet", "do", "so", "."], "sha": "e9616e34524ae48dbab730d553438b6657948692", "url": "https://github.com/frapontillo/angular-bootstrap-switch/blob/e9616e34524ae48dbab730d553438b6657948692/dist/angular-bootstrap-switch.js#L139-L168", "partition": "test"} +{"repo": "frapontillo/angular-bootstrap-switch", "path": "dist/angular-bootstrap-switch.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Listen to model changes.", "docstring_tokens": ["Listen", "to", "model", "changes", "."], "sha": "e9616e34524ae48dbab730d553438b6657948692", "url": "https://github.com/frapontillo/angular-bootstrap-switch/blob/e9616e34524ae48dbab730d553438b6657948692/dist/angular-bootstrap-switch.js#L175-L232", "partition": "test"} +{"repo": "frapontillo/angular-bootstrap-switch", "path": "dist/angular-bootstrap-switch.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Listen to view changes.", "docstring_tokens": ["Listen", "to", "view", "changes", "."], "sha": "e9616e34524ae48dbab730d553438b6657948692", "url": "https://github.com/frapontillo/angular-bootstrap-switch/blob/e9616e34524ae48dbab730d553438b6657948692/dist/angular-bootstrap-switch.js#L237-L264", "partition": "test"} +{"repo": "JAAulde/cookies", "path": "lib/jaaulde-cookies.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get - get one, several, or all cookies\n\n@access public\n@static\n@param {mixed} n {string} name of single cookie\n{array} list of multiple cookie names\n{void} if you want all cookies\n@return {mixed} type/value of cookie as set\n{null} if only one cookie is requested and is not found\n{object} hash of multiple or all cookies (if multiple or all requested)", "docstring_tokens": ["get", "-", "get", "one", "several", "or", "all", "cookies"], "sha": "63e74a48a7245cd88202f825c01bfe69fc5e4559", "url": "https://github.com/JAAulde/cookies/blob/63e74a48a7245cd88202f825c01bfe69fc5e4559/lib/jaaulde-cookies.js#L263-L287", "partition": "test"} +{"repo": "JAAulde/cookies", "path": "lib/jaaulde-cookies.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "filter - get array of cookies whose names match the provided RegExp\n\n@access public\n@static\n@param {RegExp} p The regular expression to match against cookie names\n@return {object} hash of cookies whose names match the RegExp", "docstring_tokens": ["filter", "-", "get", "array", "of", "cookies", "whose", "names", "match", "the", "provided", "RegExp"], "sha": "63e74a48a7245cd88202f825c01bfe69fc5e4559", "url": "https://github.com/JAAulde/cookies/blob/63e74a48a7245cd88202f825c01bfe69fc5e4559/lib/jaaulde-cookies.js#L296-L312", "partition": "test"} +{"repo": "JAAulde/cookies", "path": "lib/jaaulde-cookies.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "set - set or delete a cookie with desired options\n\n@access public\n@static\n@param {string} n name of cookie to set\n@param {mixed} v Any JS value. If not a string, will be JSON encoded (http://code.google.com/p/cookies/wiki/JSON)\n{null} to delete\n@param {object} o optional list of cookie options to specify\n@return {void}", "docstring_tokens": ["set", "-", "set", "or", "delete", "a", "cookie", "with", "desired", "options"], "sha": "63e74a48a7245cd88202f825c01bfe69fc5e4559", "url": "https://github.com/JAAulde/cookies/blob/63e74a48a7245cd88202f825c01bfe69fc5e4559/lib/jaaulde-cookies.js#L324-L350", "partition": "test"} +{"repo": "JAAulde/cookies", "path": "lib/jaaulde-cookies.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "test - test whether the browser is accepting cookies\n\n@access public\n@static\n@return {boolean}", "docstring_tokens": ["test", "-", "test", "whether", "the", "browser", "is", "accepting", "cookies"], "sha": "63e74a48a7245cd88202f825c01bfe69fc5e4559", "url": "https://github.com/JAAulde/cookies/blob/63e74a48a7245cd88202f825c01bfe69fc5e4559/lib/jaaulde-cookies.js#L388-L401", "partition": "test"} +{"repo": "gruntjs/grunt-contrib-qunit", "path": "tasks/qunit.js", "func_name": "formatMessage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Shared functions Allow an error message to retain its color when split across multiple lines.", "docstring_tokens": ["Shared", "functions", "Allow", "an", "error", "message", "to", "retain", "its", "color", "when", "split", "across", "multiple", "lines", "."], "sha": "ee65845fb0edf45d05889a3d9a2fa50975b729f5", "url": "https://github.com/gruntjs/grunt-contrib-qunit/blob/ee65845fb0edf45d05889a3d9a2fa50975b729f5/tasks/qunit.js#L25-L31", "partition": "test"} +{"repo": "GraFiddle/angular-chart", "path": "src/js/state.js", "func_name": "createZoomRangePath", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create nested options objects.", "docstring_tokens": ["Create", "nested", "options", "objects", "."], "sha": "76620974f0547b5a9c86d2860b6b401af8aee5fc", "url": "https://github.com/GraFiddle/angular-chart/blob/76620974f0547b5a9c86d2860b6b401af8aee5fc/src/js/state.js#L35-L42", "partition": "test"} +{"repo": "GraFiddle/angular-chart", "path": "src/js/state.js", "func_name": "synchronizeZoom", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Setup zoom event listeners which update the state", "docstring_tokens": ["Setup", "zoom", "event", "listeners", "which", "update", "the", "state"], "sha": "76620974f0547b5a9c86d2860b6b401af8aee5fc", "url": "https://github.com/GraFiddle/angular-chart/blob/76620974f0547b5a9c86d2860b6b401af8aee5fc/src/js/state.js#L47-L86", "partition": "test"} +{"repo": "GraFiddle/angular-chart", "path": "src/js/state.js", "func_name": "addSelections", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add passed selection to the chart.", "docstring_tokens": ["Add", "passed", "selection", "to", "the", "chart", "."], "sha": "76620974f0547b5a9c86d2860b6b401af8aee5fc", "url": "https://github.com/GraFiddle/angular-chart/blob/76620974f0547b5a9c86d2860b6b401af8aee5fc/src/js/state.js#L91-L97", "partition": "test"} +{"repo": "GraFiddle/angular-chart", "path": "src/js/state.js", "func_name": "applySelection", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Apply earlier selections.", "docstring_tokens": ["Apply", "earlier", "selections", "."], "sha": "76620974f0547b5a9c86d2860b6b401af8aee5fc", "url": "https://github.com/GraFiddle/angular-chart/blob/76620974f0547b5a9c86d2860b6b401af8aee5fc/src/js/state.js#L122-L158", "partition": "test"} +{"repo": "GraFiddle/angular-chart", "path": "src/js/state.js", "func_name": "createSelectionsPath", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create nested options object.", "docstring_tokens": ["Create", "nested", "options", "object", "."], "sha": "76620974f0547b5a9c86d2860b6b401af8aee5fc", "url": "https://github.com/GraFiddle/angular-chart/blob/76620974f0547b5a9c86d2860b6b401af8aee5fc/src/js/state.js#L163-L170", "partition": "test"} +{"repo": "GraFiddle/angular-chart", "path": "src/js/state.js", "func_name": "synchronizeSelection", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Listen to chart events to save selections into to state object.", "docstring_tokens": ["Listen", "to", "chart", "events", "to", "save", "selections", "into", "to", "state", "object", "."], "sha": "76620974f0547b5a9c86d2860b6b401af8aee5fc", "url": "https://github.com/GraFiddle/angular-chart/blob/76620974f0547b5a9c86d2860b6b401af8aee5fc/src/js/state.js#L175-L227", "partition": "test"} +{"repo": "GraFiddle/angular-chart", "path": "angular-chart.js", "func_name": "setupDataSmallWatcher", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "start watcher changes in small datasets, compares whole object", "docstring_tokens": ["start", "watcher", "changes", "in", "small", "datasets", "compares", "whole", "object"], "sha": "76620974f0547b5a9c86d2860b6b401af8aee5fc", "url": "https://github.com/GraFiddle/angular-chart/blob/76620974f0547b5a9c86d2860b6b401af8aee5fc/angular-chart.js#L179-L186", "partition": "test"} +{"repo": "GraFiddle/angular-chart", "path": "angular-chart.js", "func_name": "setupDataBigWatcher", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "start watcher changes in big datasets, compares length of records", "docstring_tokens": ["start", "watcher", "changes", "in", "big", "datasets", "compares", "length", "of", "records"], "sha": "76620974f0547b5a9c86d2860b6b401af8aee5fc", "url": "https://github.com/GraFiddle/angular-chart/blob/76620974f0547b5a9c86d2860b6b401af8aee5fc/angular-chart.js#L191-L204", "partition": "test"} +{"repo": "GraFiddle/angular-chart", "path": "angular-chart.js", "func_name": "addIdentifier", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add unique identifier for each chart", "docstring_tokens": ["Add", "unique", "identifier", "for", "each", "chart"], "sha": "76620974f0547b5a9c86d2860b6b401af8aee5fc", "url": "https://github.com/GraFiddle/angular-chart/blob/76620974f0547b5a9c86d2860b6b401af8aee5fc/angular-chart.js#L893-L897", "partition": "test"} +{"repo": "mikechabot/redux-entity", "path": "lib/thunk.js", "func_name": "loadEntity", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Redux thunk action creator for performing asynchronous actions.\n\n@param {string} name Entity name\n@param {Promise} promise Promise (e.g. OrderService.getOrders())\n@param {object} options Configuration options object\n@return {function} Perform an asynchronous action, dispatch Redux actions accordingly", "docstring_tokens": ["Redux", "thunk", "action", "creator", "for", "performing", "asynchronous", "actions", "."], "sha": "3fc4ce87b48de7420984fa308f9923cbc8d4c27c", "url": "https://github.com/mikechabot/redux-entity/blob/3fc4ce87b48de7420984fa308f9923cbc8d4c27c/lib/thunk.js#L22-L45", "partition": "test"} +{"repo": "mikechabot/redux-entity", "path": "lib/common/action-creators.js", "func_name": "generateAction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generation a Redux action object\n@param action\n@param keys\n@param args\n@returns {*}\n@private", "docstring_tokens": ["Generation", "a", "Redux", "action", "object"], "sha": "3fc4ce87b48de7420984fa308f9923cbc8d4c27c", "url": "https://github.com/mikechabot/redux-entity/blob/3fc4ce87b48de7420984fa308f9923cbc8d4c27c/lib/common/action-creators.js#L17-L23", "partition": "test"} +{"repo": "mikechabot/redux-entity", "path": "lib/common/action-creators.js", "func_name": "makeActionCreator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate action creators based on input arguments. The first argument is always\ntreated as the Redux action type; all other passed arguments are treated\nas property on the action object itself.\n\nExample: const myActionType = 'DO_IT';\nconst doItAction = makeActionCreator(myActionType, 'data');\ndoItAction(123); --> { type: \"DO_IT\", data: 123 }\n\n@param type\n@returns {Function}", "docstring_tokens": ["Generate", "action", "creators", "based", "on", "input", "arguments", ".", "The", "first", "argument", "is", "always", "treated", "as", "the", "Redux", "action", "type", ";", "all", "other", "passed", "arguments", "are", "treated", "as", "property", "on", "the", "action", "object", "itself", "."], "sha": "3fc4ce87b48de7420984fa308f9923cbc8d4c27c", "url": "https://github.com/mikechabot/redux-entity/blob/3fc4ce87b48de7420984fa308f9923cbc8d4c27c/lib/common/action-creators.js#L38-L53", "partition": "test"} +{"repo": "mikechabot/redux-entity", "path": "example.js", "func_name": "_getRandomDelayBetween", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate a random number in a given range, and round to a given value\n@param min\n@param max\n@param roundTo\n@returns {string}\n@private", "docstring_tokens": ["Generate", "a", "random", "number", "in", "a", "given", "range", "and", "round", "to", "a", "given", "value"], "sha": "3fc4ce87b48de7420984fa308f9923cbc8d4c27c", "url": "https://github.com/mikechabot/redux-entity/blob/3fc4ce87b48de7420984fa308f9923cbc8d4c27c/example.js#L55-L57", "partition": "test"} +{"repo": "mikechabot/redux-entity", "path": "example.js", "func_name": "_logDetails", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Log Redux actions\n@param action\n@private", "docstring_tokens": ["Log", "Redux", "actions"], "sha": "3fc4ce87b48de7420984fa308f9923cbc8d4c27c", "url": "https://github.com/mikechabot/redux-entity/blob/3fc4ce87b48de7420984fa308f9923cbc8d4c27c/example.js#L64-L75", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Bus.js", "func_name": "_removeSubscribers", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "_removeSubscribers remove the subscribers to one channel and return the number of\nsubscribers that have been unsubscribed.\n@param {Array} aSubscribers\n@param {Object} oSubscriber\n@return {Number}\n@private", "docstring_tokens": ["_removeSubscribers", "remove", "the", "subscribers", "to", "one", "channel", "and", "return", "the", "number", "of", "subscribers", "that", "have", "been", "unsubscribed", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Bus.js#L26-L38", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Bus.js", "func_name": "_removeSubscribersPerEvent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Loops per all the events to remove subscribers.\n@param {Object} oEventsCallbacks\n@param {String} sChannelId\n@param {Object} oSubscriber\n@return {Number}\n@private", "docstring_tokens": ["Loops", "per", "all", "the", "events", "to", "remove", "subscribers", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Bus.js#L47-L60", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Bus.js", "func_name": "_addSubscribers", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "_addSubscribers add all the events of one channel from the subscriber\n@param {Object} oEventsCallbacks\n@param {String} sChannelId\n@param {Object} oSubscriber\n@private", "docstring_tokens": ["_addSubscribers", "add", "all", "the", "events", "of", "one", "channel", "from", "the", "subscriber"], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Bus.js#L68-L72", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Bus.js", "func_name": "_getChannelEvents", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "_getChannelEvents return the events array in channel.\n@param {String} sChannelId\n@param {String} sEvent\n@return {Object}\n@private", "docstring_tokens": ["_getChannelEvents", "return", "the", "events", "array", "in", "channel", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Bus.js#L80-L88", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Bus.js", "func_name": "subscribersByEvent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "subscribersByEvent return all the subscribers of the event in the channel.\n@param {Object} oChannel\n@param {String} sEventName\n@return {Array}\n@private", "docstring_tokens": ["subscribersByEvent", "return", "all", "the", "subscribers", "of", "the", "event", "in", "the", "channel", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Bus.js#L97-L107", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Bus.js", "func_name": "subscribeTo", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Method to add a single callback in one channel an in one event.\n@param {String} sChannelId\n@param {String} sEventType\n@param {Function} fpHandler\n@param {Object} oSubscriber", "docstring_tokens": ["Method", "to", "add", "a", "single", "callback", "in", "one", "channel", "an", "in", "one", "event", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Bus.js#L124-L130", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Bus.js", "func_name": "unsubscribeFrom", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Method to unsubscribe a subscriber from a channel and event type.\nIt iterates in reverse order to avoid messing with array length when removing items.\n@param {String} sChannelId\n@param {String} sEventType\n@param {Object} oSubscriber", "docstring_tokens": ["Method", "to", "unsubscribe", "a", "subscriber", "from", "a", "channel", "and", "event", "type", ".", "It", "iterates", "in", "reverse", "order", "to", "avoid", "messing", "with", "array", "length", "when", "removing", "items", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Bus.js#L147-L155", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Bus.js", "func_name": "subscribe", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "subscribe method gets the oEventsCallbacks object with all the handlers and add these handlers to the channel.\n@param {Object} oSubscriber\n@return {Boolean}", "docstring_tokens": ["subscribe", "method", "gets", "the", "oEventsCallbacks", "object", "with", "all", "the", "handlers", "and", "add", "these", "handlers", "to", "the", "channel", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Bus.js#L161-L174", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Bus.js", "func_name": "unsubscribe", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "unsubscribe gets the oEventsCallbacks methods and removes the handlers of the channel.\n@param {Object} oSubscriber\n@return {Boolean}", "docstring_tokens": ["unsubscribe", "gets", "the", "oEventsCallbacks", "methods", "and", "removes", "the", "handlers", "of", "the", "channel", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Bus.js#L180-L194", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Bus.js", "func_name": "_executeHandler", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Method to execute handlers\n@param {Object} oHandlerObject\n@param {Object} oData\n@param {String} sChannelId\n@param {String} sEvent", "docstring_tokens": ["Method", "to", "execute", "handlers"], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Bus.js#L202-L208", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Bus.js", "func_name": "publish", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Publish the event in one channel.\n@param {String} sChannelId\n@param {String} sEvent\n@param {String} oData\n@return {Boolean}", "docstring_tokens": ["Publish", "the", "event", "in", "one", "channel", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Bus.js#L232-L244", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/DependencyInjector.js", "func_name": "resolveNamespace", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create or get a namespace by a namespace defined as string\n@param {String}sNamespace\n@return {Object}\n@private", "docstring_tokens": ["Create", "or", "get", "a", "namespace", "by", "a", "namespace", "defined", "as", "string"], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/DependencyInjector.js#L60-L68", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/DependencyInjector.js", "func_name": "getResolveDICallback", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Resolve dependency injection by default.\n@param {Object} oMapping\n@return {Function}\n@private", "docstring_tokens": ["Resolve", "dependency", "injection", "by", "default", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/DependencyInjector.js#L75-L84", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Promise.js", "func_name": "getPromiseCallbacks", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the promise callback by type\n@param {Object}oContext\n@param {String} sType\n@return {Function}\n@private", "docstring_tokens": ["Returns", "the", "promise", "callback", "by", "type"], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Promise.js#L9-L34", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Promise.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds new callbacks to execute when the promise has been completed\n@member Promise.prototype\n@param {Function} fpSuccess\n@param {Function} fpFailure\n@return {Promise} Promise instance", "docstring_tokens": ["Adds", "new", "callbacks", "to", "execute", "when", "the", "promise", "has", "been", "completed"], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Promise.js#L71-L83", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/FakeModule.js", "func_name": "FakeModule", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Module to be stored, adds two methods to start and extend modules.\n@param {String} sModuleId\n@param {Function} fpCreator\n@constructor\n@class FakeModule\n@name FakeModule\n@private", "docstring_tokens": ["Module", "to", "be", "stored", "adds", "two", "methods", "to", "start", "and", "extend", "modules", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/FakeModule.js#L13-L20", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Utils.js", "func_name": "isJqueryObject", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Use jQuery detection\n@param {Object} oObj\n@return {Boolean}\n@private", "docstring_tokens": ["Use", "jQuery", "detection"], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Utils.js#L16-L23", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Utils.js", "func_name": "isEvent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Use Event detection and if it fails it degrades to use duck typing detection to\ntest if the supplied object is an Event\n@param {Object} oObj\n@return {Boolean}\n@private", "docstring_tokens": ["Use", "Event", "detection", "and", "if", "it", "fails", "it", "degrades", "to", "use", "duck", "typing", "detection", "to", "test", "if", "the", "supplied", "object", "is", "an", "Event"], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Utils.js#L31-L41", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "addPropertiesAndMethodsToModule", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add common properties and methods to avoid repeating code in modules\n@param {String} sModuleId\n@param {Array} aDependencies\n@param {Function} fpCallback\n@private", "docstring_tokens": ["Add", "common", "properties", "and", "methods", "to", "avoid", "repeating", "code", "in", "modules"], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L52-L96", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "wrapMethod", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "wrapMethod is a method to wrap the original method to avoid failing code.\nThis will be only called if bDebug flag is set to false.\n@param {Object} oInstance\n@param {String} sName\n@param {String} sModuleId\n@param {Function} fpMethod\n@private", "docstring_tokens": ["wrapMethod", "is", "a", "method", "to", "wrap", "the", "original", "method", "to", "avoid", "failing", "code", ".", "This", "will", "be", "only", "called", "if", "bDebug", "flag", "is", "set", "to", "false", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L147-L161", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "register", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "register is the method that will add the new module to the oModules object.\nsModuleId will be the key where it will be stored.\n@param {String} sModuleId\n@param {Array} aDependencies\n@param {Function | *} fpCreator\n@return {Object}", "docstring_tokens": ["register", "is", "the", "method", "that", "will", "add", "the", "new", "module", "to", "the", "oModules", "object", ".", "sModuleId", "will", "be", "the", "key", "where", "it", "will", "be", "stored", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L171-L181", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "setInstance", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Method to set an instance of a module\n@param {String} sModuleId\n@param {String} sIdInstance\n@param {Module} oInstance\n@return {Module}", "docstring_tokens": ["Method", "to", "set", "an", "instance", "of", "a", "module"], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L189-L197", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "_multiModuleStart", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "start more than one module at the same time.\n@param {Object} oInstance\n@param {Array} aModulesIds\n@param {String} sIdInstance\n@param {Object} oData\n@param {Boolean} bSingle\n@private", "docstring_tokens": ["start", "more", "than", "one", "module", "at", "the", "same", "time", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L207-L225", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "beforeInit", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Method to modify the init method to use it for extend.\n@param {Object} oInstance\n@param {Object} oData\n@param {Boolean} bSingle\n@private", "docstring_tokens": ["Method", "to", "modify", "the", "init", "method", "to", "use", "it", "for", "extend", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L233-L239", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "startSingleModule", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "startSingleModule is the method that will initialize the module.\nWhen start is called the module instance will be created and the init method is called.\nIf bSingle is true and the module is started the module will be stopped before instance it again.\nThis avoid execute the same listeners more than one time.\n@param {Object} oWrapper\n@param {String} sModuleId\n@param {String} sIdInstance\n@param {Object} oData\n@param {Boolean} bSingle\n@private", "docstring_tokens": ["startSingleModule", "is", "the", "method", "that", "will", "initialize", "the", "module", ".", "When", "start", "is", "called", "the", "module", "instance", "will", "be", "created", "and", "the", "init", "method", "is", "called", ".", "If", "bSingle", "is", "true", "and", "the", "module", "is", "started", "the", "module", "will", "be", "stopped", "before", "instance", "it", "again", ".", "This", "avoid", "execute", "the", "same", "listeners", "more", "than", "one", "time", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L252-L276", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "_singleModuleStart", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Start only one module.\n@param {Object} oInstance\n@param {String} sModuleId\n@param {String} sIdInstance\n@param {Object} oData\n@param {Boolean|*} bSingle\n@private", "docstring_tokens": ["Start", "only", "one", "module", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L287-L295", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "createInstance", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "createInstance is the method that will create the module instance and wrap the method if needed.\n@param {String} sModuleId\n@param {Array|undefined} [aDependencies]\n@param {Function} fpCallback\n@private", "docstring_tokens": ["createInstance", "is", "the", "method", "that", "will", "create", "the", "module", "instance", "and", "wrap", "the", "method", "if", "needed", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L321-L336", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "getCallbackToSetObjectFromTemplate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets properties and methods from a template object.\n@param {Object} oMethodsObject\n@param {Object} oPropertiesObject\n@returns {Function}", "docstring_tokens": ["Sets", "properties", "and", "methods", "from", "a", "template", "object", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L343-L358", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "startAll", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "startAll is the method that will initialize all the registered modules.\n@member Module.prototype", "docstring_tokens": ["startAll", "is", "the", "method", "that", "will", "initialize", "all", "the", "registered", "modules", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L468-L475", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "stop", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "stop is the method that will finish the module if it was registered and started.\nWhen stop is called the module will call the destroy method and will nullify the instance.\n@param {String} sModuleId\n@param {String} [sInstanceId]\n@return {Boolean}", "docstring_tokens": ["stop", "is", "the", "method", "that", "will", "finish", "the", "module", "if", "it", "was", "registered", "and", "started", ".", "When", "stop", "is", "called", "the", "module", "will", "call", "the", "destroy", "method", "and", "will", "nullify", "the", "instance", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L483-L496", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "_multiModuleStop", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "stop more than one module at the same time.\n@param {Object} oModule\n@private", "docstring_tokens": ["stop", "more", "than", "one", "module", "at", "the", "same", "time", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L502-L509", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "_singleModuleStop", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Stop only one module.\n@param {Object} oModule\n@param {String} sInstanceId\n@private", "docstring_tokens": ["Stop", "only", "one", "module", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L516-L522", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "stopAll", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "stopAll is the method that will finish all the registered and started modules.", "docstring_tokens": ["stopAll", "is", "the", "method", "that", "will", "finish", "all", "the", "registered", "and", "started", "modules", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L526-L533", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "_stopOneByOne", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Loops over instances of modules to stop them.\n@param {Object} oModule\n@param {String} sModuleId\n@private", "docstring_tokens": ["Loops", "over", "instances", "of", "modules", "to", "stop", "them", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L540-L544", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "remove", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "remove is the method that will remove the full module from the oModules object\n@param {String} sModuleId\n@return {*}", "docstring_tokens": ["remove", "is", "the", "method", "that", "will", "remove", "the", "full", "module", "from", "the", "oModules", "object"], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L550-L566", "partition": "test"} +{"repo": "HydraJS/HydraJS", "path": "src/libs/Module.js", "func_name": "_delete", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "_delete is a wrapper method that will call the native delete javascript function\nIt's important to test the full code.\n@param {String} sModuleId\n@return {Boolean}", "docstring_tokens": ["_delete", "is", "a", "wrapper", "method", "that", "will", "call", "the", "native", "delete", "javascript", "function", "It", "s", "important", "to", "test", "the", "full", "code", "."], "sha": "ef3ede4aebd29081fe960eb86a37a1a4bf571b2d", "url": "https://github.com/HydraJS/HydraJS/blob/ef3ede4aebd29081fe960eb86a37a1a4bf571b2d/src/libs/Module.js#L573-L580", "partition": "test"} +{"repo": "ashleydavis/alpha-vantage-cli", "path": "build/cli.js", "func_name": "main", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Entry point.", "docstring_tokens": ["Entry", "point", "."], "sha": "e8cf7d9f0420b6ac8d318e657b01f1da826d70b2", "url": "https://github.com/ashleydavis/alpha-vantage-cli/blob/e8cf7d9f0420b6ac8d318e657b01f1da826d70b2/build/cli.js#L99-L142", "partition": "test"} +{"repo": "farbelous/bootstrap-popover-picker", "path": "src/js/picker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the formatted item value\n@returns string", "docstring_tokens": ["Returns", "the", "formatted", "item", "value"], "sha": "f0087902fbea37428d677f0eee11fdc2cd3fd0d5", "url": "https://github.com/farbelous/bootstrap-popover-picker/blob/f0087902fbea37428d677f0eee11fdc2cd3fd0d5/src/js/picker.js#L601-L605", "partition": "test"} +{"repo": "farbelous/bootstrap-popover-picker", "path": "src/js/picker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calls setValue and if it's a valid item value, sets the input or element value", "docstring_tokens": ["Calls", "setValue", "and", "if", "it", "s", "a", "valid", "item", "value", "sets", "the", "input", "or", "element", "value"], "sha": "f0087902fbea37428d677f0eee11fdc2cd3fd0d5", "url": "https://github.com/farbelous/bootstrap-popover-picker/blob/f0087902fbea37428d677f0eee11fdc2cd3fd0d5/src/js/picker.js#L612-L625", "partition": "test"} +{"repo": "farbelous/bootstrap-popover-picker", "path": "src/js/picker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the input or element item value, without formatting, or defaultValue\nif it's empty string, undefined, false or null\n@param {type} defaultValue\n@returns string|mixed", "docstring_tokens": ["Returns", "the", "input", "or", "element", "item", "value", "without", "formatting", "or", "defaultValue", "if", "it", "s", "empty", "string", "undefined", "false", "or", "null"], "sha": "f0087902fbea37428d677f0eee11fdc2cd3fd0d5", "url": "https://github.com/farbelous/bootstrap-popover-picker/blob/f0087902fbea37428d677f0eee11fdc2cd3fd0d5/src/js/picker.js#L632-L648", "partition": "test"} +{"repo": "localvoid/karma-snapshot", "path": "lib/format/markdown.js", "func_name": "createMarkdownSerializer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "createMarkdownSerializer create a snapshot serializer.\n\n@param {boolean} indentCodeBlocks Use indentation for code blocks.\n@returns Snapshot serializer.", "docstring_tokens": ["createMarkdownSerializer", "create", "a", "snapshot", "serializer", "."], "sha": "ec3f41bab775b5be6d3aa236f55ee12881b25662", "url": "https://github.com/localvoid/karma-snapshot/blob/ec3f41bab775b5be6d3aa236f55ee12881b25662/lib/format/markdown.js#L12-L17", "partition": "test"} +{"repo": "localvoid/karma-snapshot", "path": "lib/format/markdown.js", "func_name": "markdownToSnapshot", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "markdownToSnapshot converts snapshot from markdown format into native.\n\n@param {string} content Snapshot in a markdown format.\n@returns Snapshot in a native format.", "docstring_tokens": ["markdownToSnapshot", "converts", "snapshot", "from", "markdown", "format", "into", "native", "."], "sha": "ec3f41bab775b5be6d3aa236f55ee12881b25662", "url": "https://github.com/localvoid/karma-snapshot/blob/ec3f41bab775b5be6d3aa236f55ee12881b25662/lib/format/markdown.js#L25-L58", "partition": "test"} +{"repo": "localvoid/karma-snapshot", "path": "lib/format/markdown.js", "func_name": "tryExit", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "tryExit tries to pop state until it has correct depth.\n\n@param {SerializerState} state Current state.\n@param {number} depth Current depth.", "docstring_tokens": ["tryExit", "tries", "to", "pop", "state", "until", "it", "has", "correct", "depth", "."], "sha": "ec3f41bab775b5be6d3aa236f55ee12881b25662", "url": "https://github.com/localvoid/karma-snapshot/blob/ec3f41bab775b5be6d3aa236f55ee12881b25662/lib/format/markdown.js#L66-L73", "partition": "test"} +{"repo": "localvoid/karma-snapshot", "path": "lib/format/markdown.js", "func_name": "enterRootSuite", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "enterRootSuite pushes root suite into the current state.\n\n@param {SerializerState} state Current state.\n@param {*} node Markdown node.", "docstring_tokens": ["enterRootSuite", "pushes", "root", "suite", "into", "the", "current", "state", "."], "sha": "ec3f41bab775b5be6d3aa236f55ee12881b25662", "url": "https://github.com/localvoid/karma-snapshot/blob/ec3f41bab775b5be6d3aa236f55ee12881b25662/lib/format/markdown.js#L103-L116", "partition": "test"} +{"repo": "localvoid/karma-snapshot", "path": "lib/format/markdown.js", "func_name": "enterSnapshot", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "enterSnapshot pushes snapshot into the current state.\n\n@param {SerializerState} state Current state.\n@param {*} node Markdown node.", "docstring_tokens": ["enterSnapshot", "pushes", "snapshot", "into", "the", "current", "state", "."], "sha": "ec3f41bab775b5be6d3aa236f55ee12881b25662", "url": "https://github.com/localvoid/karma-snapshot/blob/ec3f41bab775b5be6d3aa236f55ee12881b25662/lib/format/markdown.js#L144-L150", "partition": "test"} +{"repo": "localvoid/karma-snapshot", "path": "lib/format/markdown.js", "func_name": "pushSnapshotCode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "pushSnapshotCode adds snapshot to the current snapshot.\n\n@param {SerializerState} state Current state.\n@param {*} node Markdown node.", "docstring_tokens": ["pushSnapshotCode", "adds", "snapshot", "to", "the", "current", "snapshot", "."], "sha": "ec3f41bab775b5be6d3aa236f55ee12881b25662", "url": "https://github.com/localvoid/karma-snapshot/blob/ec3f41bab775b5be6d3aa236f55ee12881b25662/lib/format/markdown.js#L158-L163", "partition": "test"} +{"repo": "localvoid/karma-snapshot", "path": "lib/format/markdown.js", "func_name": "transformSuite", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "transformSuite converts suite from native into markdown format.\n\n@param {string} name Suite name.\n@param {*} suite Suite.\n@param {number} depth Suite depth.\n@param {boolean} indentCodeBlocks Use indentation for code blocks.\n@returns Suite in a markdown format.", "docstring_tokens": ["transformSuite", "converts", "suite", "from", "native", "into", "markdown", "format", "."], "sha": "ec3f41bab775b5be6d3aa236f55ee12881b25662", "url": "https://github.com/localvoid/karma-snapshot/blob/ec3f41bab775b5be6d3aa236f55ee12881b25662/lib/format/markdown.js#L196-L217", "partition": "test"} +{"repo": "localvoid/karma-snapshot", "path": "lib/format/markdown.js", "func_name": "transformSnapshotList", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "transformSnapshotList converts snapshot list from native into markdown format.\n\n@param {number} name Snapshot name.\n@param {*} snapshotList Snapshot list.\n@param {number} depth Snapshot depth.\n@param {boolean} indentCodeBlocks Use indentation for code blocks.\n@returns Snapshot in a markdown format.", "docstring_tokens": ["transformSnapshotList", "converts", "snapshot", "list", "from", "native", "into", "markdown", "format", "."], "sha": "ec3f41bab775b5be6d3aa236f55ee12881b25662", "url": "https://github.com/localvoid/karma-snapshot/blob/ec3f41bab775b5be6d3aa236f55ee12881b25662/lib/format/markdown.js#L228-L257", "partition": "test"} +{"repo": "localvoid/karma-snapshot", "path": "lib/format/markdown.js", "func_name": "suiteHeader", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "suiteHeader serializes suite header.\n\n@param {string} name Suite name.\n@param {number} depth Suite depth.\n@returns Serialized suite header.", "docstring_tokens": ["suiteHeader", "serializes", "suite", "header", "."], "sha": "ec3f41bab775b5be6d3aa236f55ee12881b25662", "url": "https://github.com/localvoid/karma-snapshot/blob/ec3f41bab775b5be6d3aa236f55ee12881b25662/lib/format/markdown.js#L266-L271", "partition": "test"} +{"repo": "localvoid/karma-snapshot", "path": "lib/format/markdown.js", "func_name": "safeDelimiter", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "safeDelimiter tries to find a safe delimiter by appending backticks until it finally finds it.\n\n@param {string} s String that should be delimited.\n@param {string} delimiter Initial delimiter.\n@returns Safe delimiter.", "docstring_tokens": ["safeDelimiter", "tries", "to", "find", "a", "safe", "delimiter", "by", "appending", "backticks", "until", "it", "finally", "finds", "it", "."], "sha": "ec3f41bab775b5be6d3aa236f55ee12881b25662", "url": "https://github.com/localvoid/karma-snapshot/blob/ec3f41bab775b5be6d3aa236f55ee12881b25662/lib/format/markdown.js#L316-L324", "partition": "test"} +{"repo": "localvoid/karma-snapshot", "path": "lib/index.js", "func_name": "defaultPathResolver", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "defaultPathResolver is a default path resolver for snapshot files.\n\n@param {string} basePath Base path.\n@param {string} suiteName Name of the suite.\n@returns Full path to snapshot file.", "docstring_tokens": ["defaultPathResolver", "is", "a", "default", "path", "resolver", "for", "snapshot", "files", "."], "sha": "ec3f41bab775b5be6d3aa236f55ee12881b25662", "url": "https://github.com/localvoid/karma-snapshot/blob/ec3f41bab775b5be6d3aa236f55ee12881b25662/lib/index.js#L29-L35", "partition": "test"} +{"repo": "localvoid/karma-snapshot", "path": "lib/index.js", "func_name": "formatSnapshotList", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Renders a list of snapshots up to specified limit of lines\n@param list {array} list of snapshots\n@param limit {number} maximum number of lines rendered under summary\n@returns {string}", "docstring_tokens": ["Renders", "a", "list", "of", "snapshots", "up", "to", "specified", "limit", "of", "lines"], "sha": "ec3f41bab775b5be6d3aa236f55ee12881b25662", "url": "https://github.com/localvoid/karma-snapshot/blob/ec3f41bab775b5be6d3aa236f55ee12881b25662/lib/index.js#L43-L55", "partition": "test"} +{"repo": "localvoid/karma-snapshot", "path": "lib/index.js", "func_name": "formatUnusedSnapshotsWarning", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Renders the message for unused snapshots warning\n@param list {array} list of snapshots\n@param limit {number} maximum number of lines rendered under summary\n@returns {string}", "docstring_tokens": ["Renders", "the", "message", "for", "unused", "snapshots", "warning"], "sha": "ec3f41bab775b5be6d3aa236f55ee12881b25662", "url": "https://github.com/localvoid/karma-snapshot/blob/ec3f41bab775b5be6d3aa236f55ee12881b25662/lib/index.js#L63-L70", "partition": "test"} +{"repo": "localvoid/karma-snapshot", "path": "lib/index.js", "func_name": "snapshotPreprocessor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Snapshot preprocessor.\n\n@param {string} basePath Base path.\n@param {*} loggerFactory Karma logger factory.\n@returns Karma preprocessor.", "docstring_tokens": ["Snapshot", "preprocessor", "."], "sha": "ec3f41bab775b5be6d3aa236f55ee12881b25662", "url": "https://github.com/localvoid/karma-snapshot/blob/ec3f41bab775b5be6d3aa236f55ee12881b25662/lib/index.js#L192-L199", "partition": "test"} +{"repo": "icelab/draft-js-single-line-plugin", "path": "src/index.js", "func_name": "singleLinePlugin", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Single Line Plugin\n@param {Object} options Per-instance options to override the defaults\n@return {Object} Compatible draft-js-editor-plugin object", "docstring_tokens": ["Single", "Line", "Plugin"], "sha": "cc52e52642c4a4451d2f47e7342e8952277dd2ab", "url": "https://github.com/icelab/draft-js-single-line-plugin/blob/cc52e52642c4a4451d2f47e7342e8952277dd2ab/src/index.js#L30-L111", "partition": "test"} +{"repo": "icelab/draft-js-single-line-plugin", "path": "lib/utils.js", "func_name": "replaceNewlines", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Replace newline characters with the passed string\n@param {String} str String to replace\n@param {String} replacement Replacement characters\n@return {String} Modified string", "docstring_tokens": ["Replace", "newline", "characters", "with", "the", "passed", "string"], "sha": "cc52e52642c4a4451d2f47e7342e8952277dd2ab", "url": "https://github.com/icelab/draft-js-single-line-plugin/blob/cc52e52642c4a4451d2f47e7342e8952277dd2ab/lib/utils.js#L28-L32", "partition": "test"} +{"repo": "icelab/draft-js-single-line-plugin", "path": "lib/utils.js", "func_name": "condenseBlocks", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Condense an array of content blocks into a single block\n@param {EditorState} editorState draft-js EditorState instance\n@param {Array} blocks Array of ContentBlocks\n@param {Object} options\n@return {EditorState} A modified EditorState instance", "docstring_tokens": ["Condense", "an", "array", "of", "content", "blocks", "into", "a", "single", "block"], "sha": "cc52e52642c4a4451d2f47e7342e8952277dd2ab", "url": "https://github.com/icelab/draft-js-single-line-plugin/blob/cc52e52642c4a4451d2f47e7342e8952277dd2ab/lib/utils.js#L41-L75", "partition": "test"} +{"repo": "icelab/draft-js-single-line-plugin", "path": "lib/utils.js", "func_name": "characterListhasEntities", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if a CharacterList contains entities\n@param {CharacterList} characterList The list of characters to check\n@return {Boolean} Contains entities?", "docstring_tokens": ["Check", "if", "a", "CharacterList", "contains", "entities"], "sha": "cc52e52642c4a4451d2f47e7342e8952277dd2ab", "url": "https://github.com/icelab/draft-js-single-line-plugin/blob/cc52e52642c4a4451d2f47e7342e8952277dd2ab/lib/utils.js#L91-L99", "partition": "test"} +{"repo": "seaneking/postcss-hexrgba", "path": "index.js", "func_name": "hexRgb", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Hex to RGB converter\n@param {string} hex hexidecimal string without #\n@return {array} RGB values", "docstring_tokens": ["Hex", "to", "RGB", "converter"], "sha": "da82e8fab5ca6200ea6f1174b96826f7a3e8cdad", "url": "https://github.com/seaneking/postcss-hexrgba/blob/da82e8fab5ca6200ea6f1174b96826f7a3e8cdad/index.js#L12-L29", "partition": "test"} +{"repo": "seaneking/postcss-hexrgba", "path": "index.js", "func_name": "ruleHandler", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "CSS rule handler\n@param {string} decl CSS delcaration", "docstring_tokens": ["CSS", "rule", "handler"], "sha": "da82e8fab5ca6200ea6f1174b96826f7a3e8cdad", "url": "https://github.com/seaneking/postcss-hexrgba/blob/da82e8fab5ca6200ea6f1174b96826f7a3e8cdad/index.js#L35-L59", "partition": "test"} +{"repo": "aleross/angular-segment-analytics", "path": "segment.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates analytics.js method stubs", "docstring_tokens": ["Creates", "analytics", ".", "js", "method", "stubs"], "sha": "e3e37547ccfc94a3b6f6dc88d1391f28169b10b5", "url": "https://github.com/aleross/angular-segment-analytics/blob/e3e37547ccfc94a3b6f6dc88d1391f28169b10b5/segment.js#L174-L185", "partition": "test"} +{"repo": "alexisvincent/systemjs-hot-reloader", "path": "dist/index.js", "func_name": "debug", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a debugger with the given `namespace`.\n\n@param {String} namespace\n@return {Function}\n@api public", "docstring_tokens": ["Create", "a", "debugger", "with", "the", "given", "namespace", "."], "sha": "e3cca45a50e69cba4c1988a251ef07f460c27619", "url": "https://github.com/alexisvincent/systemjs-hot-reloader/blob/e3cca45a50e69cba4c1988a251ef07f460c27619/dist/index.js#L266-L333", "partition": "test"} +{"repo": "alexisvincent/systemjs-hot-reloader", "path": "dist/index.js", "func_name": "isBuf$1", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if obj is a buffer or an arraybuffer.\n\n@api private", "docstring_tokens": ["Returns", "true", "if", "obj", "is", "a", "buffer", "or", "an", "arraybuffer", "."], "sha": "e3cca45a50e69cba4c1988a251ef07f460c27619", "url": "https://github.com/alexisvincent/systemjs-hot-reloader/blob/e3cca45a50e69cba4c1988a251ef07f460c27619/dist/index.js#L2237-L2240", "partition": "test"} +{"repo": "alexisvincent/systemjs-hot-reloader", "path": "dist/index.js", "func_name": "encode$1", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return a string representing the specified number.\n\n@param {Number} num The number to convert.\n@returns {String} The string representation of the number.\n@api public", "docstring_tokens": ["Return", "a", "string", "representing", "the", "specified", "number", "."], "sha": "e3cca45a50e69cba4c1988a251ef07f460c27619", "url": "https://github.com/alexisvincent/systemjs-hot-reloader/blob/e3cca45a50e69cba4c1988a251ef07f460c27619/dist/index.js#L4397-L4406", "partition": "test"} +{"repo": "alexisvincent/systemjs-hot-reloader", "path": "dist/index.js", "func_name": "decode$1", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the integer value specified by the given string.\n\n@param {String} str The string to convert.\n@returns {Number} The integer value represented by the string.\n@api public", "docstring_tokens": ["Return", "the", "integer", "value", "specified", "by", "the", "given", "string", "."], "sha": "e3cca45a50e69cba4c1988a251ef07f460c27619", "url": "https://github.com/alexisvincent/systemjs-hot-reloader/blob/e3cca45a50e69cba4c1988a251ef07f460c27619/dist/index.js#L4415-L4423", "partition": "test"} +{"repo": "alexisvincent/systemjs-hot-reloader", "path": "dist/index.js", "func_name": "Polling$1", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Polling interface.\n\n@param {Object} opts\n@api private", "docstring_tokens": ["Polling", "interface", "."], "sha": "e3cca45a50e69cba4c1988a251ef07f460c27619", "url": "https://github.com/alexisvincent/systemjs-hot-reloader/blob/e3cca45a50e69cba4c1988a251ef07f460c27619/dist/index.js#L5015-L5021", "partition": "test"} +{"repo": "alexisvincent/systemjs-hot-reloader", "path": "dist/index.js", "func_name": "onupgrade", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "When the socket is upgraded while we're probing", "docstring_tokens": ["When", "the", "socket", "is", "upgraded", "while", "we", "re", "probing"], "sha": "e3cca45a50e69cba4c1988a251ef07f460c27619", "url": "https://github.com/alexisvincent/systemjs-hot-reloader/blob/e3cca45a50e69cba4c1988a251ef07f460c27619/dist/index.js#L6650-L6655", "partition": "test"} +{"repo": "alexisvincent/systemjs-hot-reloader", "path": "dist/index.js", "func_name": "cleanup", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove all listeners on the transport and on self", "docstring_tokens": ["Remove", "all", "listeners", "on", "the", "transport", "and", "on", "self"], "sha": "e3cca45a50e69cba4c1988a251ef07f460c27619", "url": "https://github.com/alexisvincent/systemjs-hot-reloader/blob/e3cca45a50e69cba4c1988a251ef07f460c27619/dist/index.js#L6658-L6664", "partition": "test"} +{"repo": "alexisvincent/systemjs-hot-reloader", "path": "dist/index.js", "func_name": "Backoff$1", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize backoff timer with `opts`.\n\n- `min` initial timeout in milliseconds [100]\n- `max` max timeout [10000]\n- `jitter` [0]\n- `factor` [2]\n\n@param {Object} opts\n@api public", "docstring_tokens": ["Initialize", "backoff", "timer", "with", "opts", "."], "sha": "e3cca45a50e69cba4c1988a251ef07f460c27619", "url": "https://github.com/alexisvincent/systemjs-hot-reloader/blob/e3cca45a50e69cba4c1988a251ef07f460c27619/dist/index.js#L7536-L7543", "partition": "test"} +{"repo": "jonschlinkert/babel-extract-comments", "path": "index.js", "func_name": "extract", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extract code comments from the given `string`.\n\n```js\nvar extract = require('babel-extract-comments');\nconsole.log(extract('// this is a code comment'));\n// [{ type: 'CommentBlock',\n// value: '!\\n * babel-extract-comments \\n *\\n *\n// Copyright (c) 2014-2018, Jon Schlinkert.\\n * Released under the MIT License.\\n ',\n// start: 0,\n// end: 173,\n// loc: SourceLocation { start: [Position], end: [Position] } }]\n```\n@param {String} `string` String of javascript\n@return {Array} Array of code comment objects.\n@api public", "docstring_tokens": ["Extract", "code", "comments", "from", "the", "given", "string", "."], "sha": "2f7a994397dcc108f52ecc6df85e82473c82f696", "url": "https://github.com/jonschlinkert/babel-extract-comments/blob/2f7a994397dcc108f52ecc6df85e82473c82f696/index.js#L32-L35", "partition": "test"} +{"repo": "isaaceindhoven/angularjs-nouislider", "path": "src/directive.js", "func_name": "bindNgModelControls", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add ngModel controls to the directive. This allows the use of ngModel to set and get the\nvalue in the slider. It uses the noUiSlider API's get and set functions, so no custom\nformatters need to be defined for ngModel. The ngModelOptions can be used.\n\n@param {Object} api The API instance returned by the `noUiSlider.create()` method", "docstring_tokens": ["Add", "ngModel", "controls", "to", "the", "directive", ".", "This", "allows", "the", "use", "of", "ngModel", "to", "set", "and", "get", "the", "value", "in", "the", "slider", ".", "It", "uses", "the", "noUiSlider", "API", "s", "get", "and", "set", "functions", "so", "no", "custom", "formatters", "need", "to", "be", "defined", "for", "ngModel", ".", "The", "ngModelOptions", "can", "be", "used", "."], "sha": "41bc5d034a9ae01dceb7311d6c31c92403b8ef75", "url": "https://github.com/isaaceindhoven/angularjs-nouislider/blob/41bc5d034a9ae01dceb7311d6c31c92403b8ef75/src/directive.js#L85-L94", "partition": "test"} +{"repo": "isaaceindhoven/angularjs-nouislider", "path": "src/directive.js", "func_name": "createInstance", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a noUiSlider instance.", "docstring_tokens": ["Creates", "a", "noUiSlider", "instance", "."], "sha": "41bc5d034a9ae01dceb7311d6c31c92403b8ef75", "url": "https://github.com/isaaceindhoven/angularjs-nouislider/blob/41bc5d034a9ae01dceb7311d6c31c92403b8ef75/src/directive.js#L124-L133", "partition": "test"} +{"repo": "nlp-compromise/nlp-syllables", "path": "src/syllables.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "method is nested because it's called recursively", "docstring_tokens": ["method", "is", "nested", "because", "it", "s", "called", "recursively"], "sha": "8cc0b5546efa8c780ca047247d63f96c0b5acc34", "url": "https://github.com/nlp-compromise/nlp-syllables/blob/8cc0b5546efa8c780ca047247d63f96c0b5acc34/src/syllables.js#L114-L156", "partition": "test"} +{"repo": "johnspackman/chrome-remote-multiplex", "path": "src/multiplex.js", "func_name": "addApi", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Used by ProxyDomain-derived classes to create an API method called apiName; the API\ncan have methods `send` and `reply` which are bound to `self`; a promise is created\nin `api.replied` which is satisfied after the `reply` method has been called\n\n@param self\n@param apiName\n@param api\n@returns", "docstring_tokens": ["Used", "by", "ProxyDomain", "-", "derived", "classes", "to", "create", "an", "API", "method", "called", "apiName", ";", "the", "API", "can", "have", "methods", "send", "and", "reply", "which", "are", "bound", "to", "self", ";", "a", "promise", "is", "created", "in", "api", ".", "replied", "which", "is", "satisfied", "after", "the", "reply", "method", "has", "been", "called"], "sha": "b4588e7411a6438a31c75ac7e01c55abdde3b95d", "url": "https://github.com/johnspackman/chrome-remote-multiplex/blob/b4588e7411a6438a31c75ac7e01c55abdde3b95d/src/multiplex.js#L65-L80", "partition": "test"} +{"repo": "johnspackman/chrome-remote-multiplex", "path": "src/multiplex.js", "func_name": "getJson", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets JSON from the remote server", "docstring_tokens": ["Gets", "JSON", "from", "the", "remote", "server"], "sha": "b4588e7411a6438a31c75ac7e01c55abdde3b95d", "url": "https://github.com/johnspackman/chrome-remote-multiplex/blob/b4588e7411a6438a31c75ac7e01c55abdde3b95d/src/multiplex.js#L573-L591", "partition": "test"} +{"repo": "johnspackman/chrome-remote-multiplex", "path": "src/multiplex.js", "func_name": "splitName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Splits a string into domain and method", "docstring_tokens": ["Splits", "a", "string", "into", "domain", "and", "method"], "sha": "b4588e7411a6438a31c75ac7e01c55abdde3b95d", "url": "https://github.com/johnspackman/chrome-remote-multiplex/blob/b4588e7411a6438a31c75ac7e01c55abdde3b95d/src/multiplex.js#L900-L907", "partition": "test"} +{"repo": "johnspackman/chrome-remote-multiplex", "path": "dist/multiplex.js", "func_name": "copyToClient", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets data from the remote server and copies it to the client", "docstring_tokens": ["Gets", "data", "from", "the", "remote", "server", "and", "copies", "it", "to", "the", "client"], "sha": "b4588e7411a6438a31c75ac7e01c55abdde3b95d", "url": "https://github.com/johnspackman/chrome-remote-multiplex/blob/b4588e7411a6438a31c75ac7e01c55abdde3b95d/dist/multiplex.js#L706-L717", "partition": "test"} +{"repo": "mylisabox/lisa-box", "path": "lisa.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get native stack\n@returns array of javascript calls", "docstring_tokens": ["Get", "native", "stack"], "sha": "6f85a1c87e27024a6637995b7cc4fb765cf99651", "url": "https://github.com/mylisabox/lisa-box/blob/6f85a1c87e27024a6637995b7cc4fb765cf99651/lisa.js#L14-L29", "partition": "test"} +{"repo": "whitfin/capture-console", "path": "lib/capcon.js", "func_name": "captureStdio", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Captures stdout and stderr into an object for\nthe provided execution scope.\n\n@param opts to set flags on the capture.\n@param exec the function execute inside the capture.\n@returns {{stdout: String, stderr: String}}", "docstring_tokens": ["Captures", "stdout", "and", "stderr", "into", "an", "object", "for", "the", "provided", "execution", "scope", "."], "sha": "e870587698d8f101e32bdd2699be4b979315010a", "url": "https://github.com/whitfin/capture-console/blob/e870587698d8f101e32bdd2699be4b979315010a/lib/capcon.js#L54-L66", "partition": "test"} +{"repo": "whitfin/capture-console", "path": "lib/capcon.js", "func_name": "hook", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Listens to a provided stream, and executes the provided\nfunction for every write call. Accepts options to silence\nthe output going to the console.\n\nReturns a function to call when you wish to stop listening\nto the call.\n\n@param stream a stream to listen on.\n@param opts to set flags on the capture.\n@param exec the function to call with the output.\n@returns {Function}", "docstring_tokens": ["Listens", "to", "a", "provided", "stream", "and", "executes", "the", "provided", "function", "for", "every", "write", "call", ".", "Accepts", "options", "to", "silence", "the", "output", "going", "to", "the", "console", "."], "sha": "e870587698d8f101e32bdd2699be4b979315010a", "url": "https://github.com/whitfin/capture-console/blob/e870587698d8f101e32bdd2699be4b979315010a/lib/capcon.js#L103-L125", "partition": "test"} +{"repo": "whitfin/capture-console", "path": "lib/capcon.js", "func_name": "startCapture", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Starts a capture on the provided stream using the\nprovided options and stream execution.\n\n@param stream a stream to listen on.\n@param opts to set flags on the capture.\n@param exec the function to call with the output.\n@returns {boolean}", "docstring_tokens": ["Starts", "a", "capture", "on", "the", "provided", "stream", "using", "the", "provided", "options", "and", "stream", "execution", "."], "sha": "e870587698d8f101e32bdd2699be4b979315010a", "url": "https://github.com/whitfin/capture-console/blob/e870587698d8f101e32bdd2699be4b979315010a/lib/capcon.js#L181-L189", "partition": "test"} +{"repo": "whitfin/capture-console", "path": "lib/capcon.js", "func_name": "_wrapIntercept", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wraps capturing functions with quiet flags to\nallow for interception.\n\n@param func the function to delegate to.\n@param stream a stream to listen on.\n@param opts to set flags on the capture.\n@param exec the function to call with the output.\n@returns {*}\n@private", "docstring_tokens": ["Wraps", "capturing", "functions", "with", "quiet", "flags", "to", "allow", "for", "interception", "."], "sha": "e870587698d8f101e32bdd2699be4b979315010a", "url": "https://github.com/whitfin/capture-console/blob/e870587698d8f101e32bdd2699be4b979315010a/lib/capcon.js#L282-L294", "partition": "test"} +{"repo": "etabits/node-penguin", "path": "statics/js/31-combodate.js", "func_name": "getNearest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "function to find nearest value in select options", "docstring_tokens": ["function", "to", "find", "nearest", "value", "in", "select", "options"], "sha": "1e22637c388506f0bc40bcf7457f193aab28cd23", "url": "https://github.com/etabits/node-penguin/blob/1e22637c388506f0bc40bcf7457f193aab28cd23/statics/js/31-combodate.js#L349-L362", "partition": "test"} +{"repo": "jsdom/webidl-conversions", "path": "lib/index.js", "func_name": "evenRound", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Round x to the nearest integer, choosing the even integer if it lies halfway between two.", "docstring_tokens": ["Round", "x", "to", "the", "nearest", "integer", "choosing", "the", "even", "integer", "if", "it", "lies", "halfway", "between", "two", "."], "sha": "074b6ec5371edb7f0275625702eda6aecf1c24af", "url": "https://github.com/jsdom/webidl-conversions/blob/074b6ec5371edb7f0275625702eda6aecf1c24af/lib/index.js#L35-L52", "partition": "test"} +{"repo": "webframes/smil2css", "path": "lib/process/convert/elements/animation/dataAttributes/extendedKeys/keyframing.js", "func_name": "addFrameAt", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "`delay` only used for debugging", "docstring_tokens": ["delay", "only", "used", "for", "debugging"], "sha": "4ab55b29d2fca072a02f013cfab60d162e0c5033", "url": "https://github.com/webframes/smil2css/blob/4ab55b29d2fca072a02f013cfab60d162e0c5033/lib/process/convert/elements/animation/dataAttributes/extendedKeys/keyframing.js#L15-L18", "partition": "test"} +{"repo": "retextjs/retext-sentiment", "path": "index.js", "func_name": "sentiment", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Patch `polarity` and `valence` properties on nodes with a value and word-nodes. Then, patch the same properties on their parents.", "docstring_tokens": ["Patch", "polarity", "and", "valence", "properties", "on", "nodes", "with", "a", "value", "and", "word", "-", "nodes", ".", "Then", "patch", "the", "same", "properties", "on", "their", "parents", "."], "sha": "c16297b152426091c21a34210d7026e2934fe22a", "url": "https://github.com/retextjs/retext-sentiment/blob/c16297b152426091c21a34210d7026e2934fe22a/index.js#L17-L28", "partition": "test"} +{"repo": "retextjs/retext-sentiment", "path": "index.js", "func_name": "concatenateFactory", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Factory to gather parents and patch them based on their childrens directionality.", "docstring_tokens": ["Factory", "to", "gather", "parents", "and", "patch", "them", "based", "on", "their", "childrens", "directionality", "."], "sha": "c16297b152426091c21a34210d7026e2934fe22a", "url": "https://github.com/retextjs/retext-sentiment/blob/c16297b152426091c21a34210d7026e2934fe22a/index.js#L32-L87", "partition": "test"} +{"repo": "retextjs/retext-sentiment", "path": "index.js", "func_name": "one", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Patch all words in `parent`.", "docstring_tokens": ["Patch", "all", "words", "in", "parent", "."], "sha": "c16297b152426091c21a34210d7026e2934fe22a", "url": "https://github.com/retextjs/retext-sentiment/blob/c16297b152426091c21a34210d7026e2934fe22a/index.js#L47-L74", "partition": "test"} +{"repo": "retextjs/retext-sentiment", "path": "index.js", "func_name": "done", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Patch all parents.", "docstring_tokens": ["Patch", "all", "parents", "."], "sha": "c16297b152426091c21a34210d7026e2934fe22a", "url": "https://github.com/retextjs/retext-sentiment/blob/c16297b152426091c21a34210d7026e2934fe22a/index.js#L77-L86", "partition": "test"} +{"repo": "retextjs/retext-sentiment", "path": "index.js", "func_name": "any", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Factory to patch based on the bound `config`.", "docstring_tokens": ["Factory", "to", "patch", "based", "on", "the", "bound", "config", "."], "sha": "c16297b152426091c21a34210d7026e2934fe22a", "url": "https://github.com/retextjs/retext-sentiment/blob/c16297b152426091c21a34210d7026e2934fe22a/index.js#L90-L112", "partition": "test"} +{"repo": "retextjs/retext-sentiment", "path": "index.js", "func_name": "patch", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Patch a `polarity` and valence property on `node`s.", "docstring_tokens": ["Patch", "a", "polarity", "and", "valence", "property", "on", "node", "s", "."], "sha": "c16297b152426091c21a34210d7026e2934fe22a", "url": "https://github.com/retextjs/retext-sentiment/blob/c16297b152426091c21a34210d7026e2934fe22a/index.js#L115-L122", "partition": "test"} +{"repo": "ftlabs/fruitmachine", "path": "examples/lib/delegate.js", "func_name": "fire", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fire a listener on a target\n\n@private\n@param {Event} event\n@param {Node} target\n@param {Object} listener", "docstring_tokens": ["Fire", "a", "listener", "on", "a", "target"], "sha": "7ef6445c3a422e462074b4de5007c4662ae09347", "url": "https://github.com/ftlabs/fruitmachine/blob/7ef6445c3a422e462074b4de5007c4662ae09347/examples/lib/delegate.js#L267-L280", "partition": "test"} +{"repo": "ftlabs/fruitmachine", "path": "examples/lib/delegate.js", "func_name": "Delegate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "DOM event delegator\n\nThe delegator will listen for events that bubble up to the root node.\n\n@constructor\n@param {Node|DOMWindow|string} root The root node, a window object or a selector string", "docstring_tokens": ["DOM", "event", "delegator"], "sha": "7ef6445c3a422e462074b4de5007c4662ae09347", "url": "https://github.com/ftlabs/fruitmachine/blob/7ef6445c3a422e462074b4de5007c4662ae09347/examples/lib/delegate.js#L479-L553", "partition": "test"} +{"repo": "ftlabs/fruitmachine", "path": "lib/fruitmachine.js", "func_name": "fm", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Shortcut method for\ncreating lazy views.\n\n@param {Object} options\n@return {Module}", "docstring_tokens": ["Shortcut", "method", "for", "creating", "lazy", "views", "."], "sha": "7ef6445c3a422e462074b4de5007c4662ae09347", "url": "https://github.com/ftlabs/fruitmachine/blob/7ef6445c3a422e462074b4de5007c4662ae09347/lib/fruitmachine.js#L44-L50", "partition": "test"} +{"repo": "electerious/fsify", "path": "src/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Converts an object into a persistent or temporary directory structure.\n@param {?Array} structure - Array of objects containing information about a directory or file.\n@returns {Promise} Parsed structure.", "docstring_tokens": ["Converts", "an", "object", "into", "a", "persistent", "or", "temporary", "directory", "structure", "."], "sha": "0990bbfaaa07abf82697f140432161304bd21336", "url": "https://github.com/electerious/fsify/blob/0990bbfaaa07abf82697f140432161304bd21336/src/index.js#L25-L40", "partition": "test"} +{"repo": "kibertoad/knex-utils", "path": "lib/query.utils.js", "func_name": "addAndWhereDate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Appends WHERE conditions to query builder based on given date parameters\n@param {Object} queryBuilder - knex querybuilder instance. Mutated during this operation\n@param {string} column\n@param {Date} from\n@param {Date} to", "docstring_tokens": ["Appends", "WHERE", "conditions", "to", "query", "builder", "based", "on", "given", "date", "parameters"], "sha": "35af5799b582c0e7aaf241746baffa95b6dd8554", "url": "https://github.com/kibertoad/knex-utils/blob/35af5799b582c0e7aaf241746baffa95b6dd8554/lib/query.utils.js#L8-L16", "partition": "test"} +{"repo": "kibertoad/knex-utils", "path": "lib/query.utils.js", "func_name": "_handleMultiValuedParameters", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Use this to add an equation clause for the value which is either an object or an array\n@param {Object} knexBuilder\n@param {Object} attrName\n@param {Object} parameter\n@returns {Object} knexBuilder with added parameter", "docstring_tokens": ["Use", "this", "to", "add", "an", "equation", "clause", "for", "the", "value", "which", "is", "either", "an", "object", "or", "an", "array"], "sha": "35af5799b582c0e7aaf241746baffa95b6dd8554", "url": "https://github.com/kibertoad/knex-utils/blob/35af5799b582c0e7aaf241746baffa95b6dd8554/lib/query.utils.js#L66-L76", "partition": "test"} +{"repo": "kibertoad/knex-utils", "path": "lib/connection.utils.js", "func_name": "getKnexInstance", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get Knex instance without validating the connection\n@param {Object} config - Knex config\n@param [registry]\n@param [logger]\n@returns {Object} knex instance. Note that connection is not validated to be correct - make sure to run heartbeat check on it", "docstring_tokens": ["Get", "Knex", "instance", "without", "validating", "the", "connection"], "sha": "35af5799b582c0e7aaf241746baffa95b6dd8554", "url": "https://github.com/kibertoad/knex-utils/blob/35af5799b582c0e7aaf241746baffa95b6dd8554/lib/connection.utils.js#L13-L27", "partition": "test"} +{"repo": "kibertoad/knex-utils", "path": "lib/connection.utils.js", "func_name": "closeAllInstances", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Attempts to close all registered knex instances\n@param {Object[]} [registry]\n@returns {Promise} List of errors that occured during closing operations", "docstring_tokens": ["Attempts", "to", "close", "all", "registered", "knex", "instances"], "sha": "35af5799b582c0e7aaf241746baffa95b6dd8554", "url": "https://github.com/kibertoad/knex-utils/blob/35af5799b582c0e7aaf241746baffa95b6dd8554/lib/connection.utils.js#L38-L54", "partition": "test"} +{"repo": "sapegin/fledermaus", "path": "src/renderers/markdown.js", "func_name": "remarkHljs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remark plugin for Highlight.js.\n\n@param {Object} options\n@return {Function}", "docstring_tokens": ["Remark", "plugin", "for", "Highlight", ".", "js", "."], "sha": "0c58b1ccd8a0bd82f066e63bd9ee391b0dd38ebc", "url": "https://github.com/sapegin/fledermaus/blob/0c58b1ccd8a0bd82f066e63bd9ee391b0dd38ebc/src/renderers/markdown.js#L109-L125", "partition": "test"} +{"repo": "sapegin/fledermaus", "path": "src/renderers/markdown.js", "func_name": "render", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Render Markdow using given processor.\n\n@param {Object} processor Remark processor.\n@param {string} source Source Markdown.\n@return {string}", "docstring_tokens": ["Render", "Markdow", "using", "given", "processor", "."], "sha": "0c58b1ccd8a0bd82f066e63bd9ee391b0dd38ebc", "url": "https://github.com/sapegin/fledermaus/blob/0c58b1ccd8a0bd82f066e63bd9ee391b0dd38ebc/src/renderers/markdown.js#L134-L142", "partition": "test"} +{"repo": "AndrewJakubowicz/networkVizJS", "path": "src/util/createColorArrow.js", "func_name": "createColorArrow", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Appends an arrow head marker to the defs element to be used later.\n@param defElement 'defs' element to append marker elements\n@param color string representation of a valid color.", "docstring_tokens": ["Appends", "an", "arrow", "head", "marker", "to", "the", "defs", "element", "to", "be", "used", "later", "."], "sha": "c1fed63b0ad799023b6a687f5748da5a20580fcf", "url": "https://github.com/AndrewJakubowicz/networkVizJS/blob/c1fed63b0ad799023b6a687f5748da5a20580fcf/src/util/createColorArrow.js#L7-L19", "partition": "test"} +{"repo": "ben-eb/css-values", "path": "src/generators/property.js", "func_name": "valueParserNodesLength", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Test that the nodes from postcss-value-parser are a certain length. This\nuses strict equality by default, but you can supply an alternate operator.\n\n@private\n@param {number} length The length to check\n@param {type} operator = '===' The operator to use.\n@return {Babel} The binary expression.\n@example\nconst equality = valueParserNodesLength(5);\n//=> valueParserAST.nodes.length === 5;\n\nconst lessThan = valueParserNodesLength(5, '<');\n//=> valueParserAST.nodes.length < 5;", "docstring_tokens": ["Test", "that", "the", "nodes", "from", "postcss", "-", "value", "-", "parser", "are", "a", "certain", "length", ".", "This", "uses", "strict", "equality", "by", "default", "but", "you", "can", "supply", "an", "alternate", "operator", "."], "sha": "056a394bc9e1156e7c04fdb7575ce713b2ec6d7c", "url": "https://github.com/ben-eb/css-values/blob/056a394bc9e1156e7c04fdb7575ce713b2ec6d7c/src/generators/property.js#L64-L70", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "sliceThen", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "var fd = null; var fdFileName = null;", "docstring_tokens": ["var", "fd", "=", "null", ";", "var", "fdFileName", "=", "null", ";"], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L148-L182", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "harvest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Harvest any resolved promises, if all failed then return reasons.", "docstring_tokens": ["Harvest", "any", "resolved", "promises", "if", "all", "failed", "then", "return", "reasons", "."], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L197-L213", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Given offset of a keyword after decompression, return a record block info containing it, else undefined if not found.", "docstring_tokens": ["Given", "offset", "of", "a", "keyword", "after", "decompression", "return", "a", "record", "block", "info", "containing", "it", "else", "undefined", "if", "not", "found", "."], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L242-L268", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read data to an Uint8Array and decode it to text with specified encoding. @param len length in basic unit, need to multiply byte per unit to get length in bytes NOTE: After decoding the text, it is need to forward extra \"tail\" bytes according to specified encoding.", "docstring_tokens": ["Read", "data", "to", "an", "Uint8Array", "and", "decode", "it", "to", "text", "with", "specified", "encoding", "."], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L404-L408", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read raw data as Uint8Array from current offset with specified length in bytes", "docstring_tokens": ["Read", "raw", "data", "as", "Uint8Array", "from", "current", "offset", "with", "specified", "length", "in", "bytes"], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L446-L448", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "read_header_sect", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read header section, parse dictionary attributes and config scanner according to engine version attribute.\n@see https://github.com/zhansliu/writemdict/blob/master/fileformat.md#header-section\n@param input sliced file (start = 4, length = len + 48), header string + header section (max length 48)\n@param len lenghth of header_str\n@return [remained length of header section (header_str and checksum, = len + 4), original input]", "docstring_tokens": ["Read", "header", "section", "parse", "dictionary", "attributes", "and", "config", "scanner", "according", "to", "engine", "version", "attribute", "."], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L471-L496", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "read_keyword_summary", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read keyword summary at the begining of keyword section.\n@see https://github.com/zhansliu/writemdict/blob/master/fileformat.md#keyword-section\n@param input sliced file, same as input passed to read_header_sect()\n@param offset start position of keyword section in sliced file, equals to length of header string plus checksum.\\\n@return keyword_sect object", "docstring_tokens": ["Read", "keyword", "summary", "at", "the", "begining", "of", "keyword", "section", "."], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L505-L518", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "read_keyword_index", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read keyword index part of keyword section.\n@see https://github.com/zhansliu/writemdict/blob/master/fileformat.md#keyword-header-encryption\n@see https://github.com/zhansliu/writemdict/blob/master/fileformat.md#keyword-index\n@param input sliced file, remained part of keyword section after keyword summary which can also be used to read following key blocks.\n@param keyword_summary\n@return [keyword_summary, array of keyword index]", "docstring_tokens": ["Read", "keyword", "index", "part", "of", "keyword", "section", "."], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L528-L550", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "read_key_block", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read keyword entries inside a keyword block and fill KEY_TABLE.\n@param scanner scanner object to read key entries, which starts at begining of target key block\n@param kdx corresponding keyword index object\nNOTE: no need to read keyword block anymore, for debug only.", "docstring_tokens": ["Read", "keyword", "entries", "inside", "a", "keyword", "block", "and", "fill", "KEY_TABLE", "."], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L558-L564", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "willScanKeyTable", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Delay to scan key table, for debug onyl.\n@param slicedKeyBlock a promise object which will resolve to an ArrayBuffer containing keyword blocks\nsliced from mdx/mdd file.\n@param num_entries number of keyword entries\n@param keyword_index array of keyword index\n@param delay time to delay for scanning key table", "docstring_tokens": ["Delay", "to", "scan", "key", "table", "for", "debug", "onyl", "."], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L574-L582", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "read_record_summary", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read record summary at the begining of record section.\n@see https://github.com/zhansliu/writemdict/blob/master/fileformat.md#record-section\n@param input sliced file, start = begining of record section, length = 32 (max length of record summary)\n@param pos begining of record section\n@returj record summary object", "docstring_tokens": ["Read", "record", "summary", "at", "the", "begining", "of", "record", "section", "."], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L591-L606", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "read_record_block", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read record block index part in record section, and fill RECORD_BLOCK_TABLE\n@see https://github.com/zhansliu/writemdict/blob/master/fileformat.md#record-section\n@param input sliced file, start = begining of record block index, length = record_summary.index_len\n@param record_summary record summary object", "docstring_tokens": ["Read", "record", "block", "index", "part", "in", "record", "section", "and", "fill", "RECORD_BLOCK_TABLE"], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L614-L632", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "read_definition", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read definition in text for given keyinfo object.\n@param input record block sliced from the file\n@param block record block index\n@param keyinfo a object with property of record's offset and optional size for the given keyword\n@return definition in text", "docstring_tokens": ["Read", "definition", "in", "text", "for", "given", "keyinfo", "object", "."], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L641-L645", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "read_object", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read content in ArrayBuffer for give keyinfo object\n@param input record block sliced from the file\n@param block record block index\n@param keyinfo a object with property of record's offset and optional size for the given keyword\n@return an ArrayBuffer containing resource of image/audio/css/font etc.", "docstring_tokens": ["Read", "content", "in", "ArrayBuffer", "for", "give", "keyinfo", "object"], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L666-L674", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "findWord", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find word definition for given keyinfo object.\n@param keyinfo a object with property of record's offset and optional size for the given keyword\n@return a promise object which will resolve to definition in text. Link to other keyword is followed to get actual definition.", "docstring_tokens": ["Find", "word", "definition", "for", "given", "keyinfo", "object", "."], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L681-L686", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "reduce", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "a oneway increased ticket used to cancel unfinished pattern match \nReduce the key index array to an element which contains or is the nearest one matching a given phrase.", "docstring_tokens": ["a", "oneway", "increased", "ticket", "used", "to", "cancel", "unfinished", "pattern", "match", "Reduce", "the", "key", "index", "array", "to", "an", "element", "which", "contains", "or", "is", "the", "nearest", "one", "matching", "a", "given", "phrase", "."], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L713-L723", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "shrink", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Reduce the array to index of an element which contains or is the nearest one matching a given phrase.", "docstring_tokens": ["Reduce", "the", "array", "to", "index", "of", "an", "element", "which", "contains", "or", "is", "the", "nearest", "one", "matching", "a", "given", "phrase", "."], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L728-L744", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "seekVanguard", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Search for the first keyword match given phrase.", "docstring_tokens": ["Search", "for", "the", "first", "keyword", "match", "given", "phrase", "."], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L776-L803", "partition": "test"} +{"repo": "jeka-kiselyov/mdict", "path": "mdict-parser.js", "func_name": "matchOffset", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Match the first element in list with given offset.", "docstring_tokens": ["Match", "the", "first", "element", "in", "list", "with", "given", "offset", "."], "sha": "540898e63991cb0c8985ed8fb29eb11a59f35089", "url": "https://github.com/jeka-kiselyov/mdict/blob/540898e63991cb0c8985ed8fb29eb11a59f35089/mdict-parser.js#L921-L923", "partition": "test"} +{"repo": "wjbryant/taboverride", "path": "build/output/taboverride.js", "func_name": "isValidModifierKeyCombo", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determines whether the specified modifier keys match the modifier keys\nthat were pressed.\n\n@param {string[]} modifierKeys the modifier keys to check - ex: ['shiftKey']\n@param {Event} e the event object for the keydown event\n@return {boolean} whether modifierKeys are valid for the event\n\n@method tabOverride.utils.isValidModifierKeyCombo", "docstring_tokens": ["Determines", "whether", "the", "specified", "modifier", "keys", "match", "the", "modifier", "keys", "that", "were", "pressed", "."], "sha": "02238ec1ab098cb998dcb3c1c38d39316e2ac03d", "url": "https://github.com/wjbryant/taboverride/blob/02238ec1ab098cb998dcb3c1c38d39316e2ac03d/build/output/taboverride.js#L64-L113", "partition": "test"} +{"repo": "wjbryant/taboverride", "path": "build/output/taboverride.js", "func_name": "createKeyComboFunction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a function to get and set the specified key combination.\n\n@param {Function} keyFunc getter/setter function for the key\n@param {string[]} modifierKeys the array of modifier keys to manipulate\n@return {Function} a getter/setter function for the specified\nkey combination\n\n@private", "docstring_tokens": ["Creates", "a", "function", "to", "get", "and", "set", "the", "specified", "key", "combination", "."], "sha": "02238ec1ab098cb998dcb3c1c38d39316e2ac03d", "url": "https://github.com/wjbryant/taboverride/blob/02238ec1ab098cb998dcb3c1c38d39316e2ac03d/build/output/taboverride.js#L151-L178", "partition": "test"} +{"repo": "wjbryant/taboverride", "path": "build/output/taboverride.js", "func_name": "overrideKeyDown", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Event handler to insert or remove tabs and newlines on the keydown event\nfor the tab or enter key.\n\n@param {Event} e the event object\n\n@method tabOverride.handlers.keydown", "docstring_tokens": ["Event", "handler", "to", "insert", "or", "remove", "tabs", "and", "newlines", "on", "the", "keydown", "event", "for", "the", "tab", "or", "enter", "key", "."], "sha": "02238ec1ab098cb998dcb3c1c38d39316e2ac03d", "url": "https://github.com/wjbryant/taboverride/blob/02238ec1ab098cb998dcb3c1c38d39316e2ac03d/build/output/taboverride.js#L188-L457", "partition": "test"} +{"repo": "wjbryant/taboverride", "path": "build/output/taboverride.js", "func_name": "overrideKeyPress", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Event handler to prevent the default action for the keypress event when\ntab or enter is pressed. Opera and Firefox also fire a keypress event\nwhen the tab or enter key is pressed. Opera requires that the default\naction be prevented on this event or the textarea will lose focus.\n\n@param {Event} e the event object\n\n@method tabOverride.handlers.keypress", "docstring_tokens": ["Event", "handler", "to", "prevent", "the", "default", "action", "for", "the", "keypress", "event", "when", "tab", "or", "enter", "is", "pressed", ".", "Opera", "and", "Firefox", "also", "fire", "a", "keypress", "event", "when", "the", "tab", "or", "enter", "key", "is", "pressed", ".", "Opera", "requires", "that", "the", "default", "action", "be", "prevented", "on", "this", "event", "or", "the", "textarea", "will", "lose", "focus", "."], "sha": "02238ec1ab098cb998dcb3c1c38d39316e2ac03d", "url": "https://github.com/wjbryant/taboverride/blob/02238ec1ab098cb998dcb3c1c38d39316e2ac03d/build/output/taboverride.js#L469-L484", "partition": "test"} +{"repo": "wjbryant/taboverride", "path": "build/output/taboverride.js", "func_name": "executeExtensions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Executes all registered extension functions for the specified hook.\n\n@param {string} hook the name of the hook for which the extensions are registered\n@param {Array} [args] the arguments to pass to the extension\n\n@method tabOverride.utils.executeExtensions", "docstring_tokens": ["Executes", "all", "registered", "extension", "functions", "for", "the", "specified", "hook", "."], "sha": "02238ec1ab098cb998dcb3c1c38d39316e2ac03d", "url": "https://github.com/wjbryant/taboverride/blob/02238ec1ab098cb998dcb3c1c38d39316e2ac03d/build/output/taboverride.js#L494-L502", "partition": "test"} +{"repo": "janjakubnanista/simple-imap-inbox", "path": "lib/inbox.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Helper function that asynchronously converts ImapMessage instance\nto instance of Message class.\n\n@param {ImapMessage} imapMessage Instance of ImapMessage class obtained from Imap server call\n@return {Promise} Promise resolved with instance of Message class", "docstring_tokens": ["Helper", "function", "that", "asynchronously", "converts", "ImapMessage", "instance", "to", "instance", "of", "Message", "class", "."], "sha": "c333a46ed21a95f3ccf19bc91148b0fa1c35aeda", "url": "https://github.com/janjakubnanista/simple-imap-inbox/blob/c333a46ed21a95f3ccf19bc91148b0fa1c35aeda/lib/inbox.js#L16-L45", "partition": "test"} +{"repo": "jhermsmeier/node-gpt", "path": "lib/gpt.js", "func_name": "GPT", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "GUID Partition Table\n@constructor\n@param {Object} [options]\n@param {Number} [options.blockSize=512]\n@returns {GPT}", "docstring_tokens": ["GUID", "Partition", "Table"], "sha": "0e8c5d6b92183e23ece5fed29dece2a96d12b42e", "url": "https://github.com/jhermsmeier/node-gpt/blob/0e8c5d6b92183e23ece5fed29dece2a96d12b42e/lib/gpt.js#L11-L52", "partition": "test"} +{"repo": "jhermsmeier/node-gpt", "path": "example/verify.js", "func_name": "readBackupGPT", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "return gpt }", "docstring_tokens": ["return", "gpt", "}"], "sha": "0e8c5d6b92183e23ece5fed29dece2a96d12b42e", "url": "https://github.com/jhermsmeier/node-gpt/blob/0e8c5d6b92183e23ece5fed29dece2a96d12b42e/example/verify.js#L84-L95", "partition": "test"} +{"repo": "lpinca/stopcock", "path": "index.js", "func_name": "stopcock", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Limit the execution rate of a function using a leaky bucket algorithm.\n\n@param {Function} fn The function to rate limit calls to\n@param {Object} options Options object\n@param {Number} options.limit The number of allowed calls per `interval`\n@param {Number} options.interval The timespan where `limit` is calculated\n@param {Number} options.queueSize The maximum size of the queue\n@param {Number} options.bucketSize The capacity of the bucket\n@return {Function}\n@public", "docstring_tokens": ["Limit", "the", "execution", "rate", "of", "a", "function", "using", "a", "leaky", "bucket", "algorithm", "."], "sha": "6937f4bd9318cc2298590a1aa5cff33517297d13", "url": "https://github.com/lpinca/stopcock/blob/6937f4bd9318cc2298590a1aa5cff33517297d13/index.js#L72-L118", "partition": "test"} +{"repo": "ethjs/ethjs-format", "path": "src/index.js", "func_name": "formatQuantity", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Format quantity values, either encode to hex or decode to BigNumber\nshould intake null, stringNumber, number, BN\n\n@method formatQuantity\n@param {String|BigNumber|Number} value quantity or tag to convert\n@param {Boolean} encode to hex or decode to BigNumber\n@returns {Optional} output to BigNumber or string\n@throws error if value is a float", "docstring_tokens": ["Format", "quantity", "values", "either", "encode", "to", "hex", "or", "decode", "to", "BigNumber", "should", "intake", "null", "stringNumber", "number", "BN"], "sha": "626fe31ed6c7026ab9cc6012b6ea8659bc5faaf0", "url": "https://github.com/ethjs/ethjs-format/blob/626fe31ed6c7026ab9cc6012b6ea8659bc5faaf0/src/index.js#L21-L32", "partition": "test"} +{"repo": "ethjs/ethjs-format", "path": "src/index.js", "func_name": "formatQuantityOrTag", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Format quantity or tag, if tag bypass return, else format quantity\nshould intake null, stringNumber, number, BN, string tag\n\n@method formatQuantityOrTag\n@param {String|BigNumber|Number} value quantity or tag to convert\n@param {Boolean} encode encode the number to hex or decode to BigNumber\n@returns {Object|String} output to BigNumber or string\n@throws error if value is a float", "docstring_tokens": ["Format", "quantity", "or", "tag", "if", "tag", "bypass", "return", "else", "format", "quantity", "should", "intake", "null", "stringNumber", "number", "BN", "string", "tag"], "sha": "626fe31ed6c7026ab9cc6012b6ea8659bc5faaf0", "url": "https://github.com/ethjs/ethjs-format/blob/626fe31ed6c7026ab9cc6012b6ea8659bc5faaf0/src/index.js#L44-L53", "partition": "test"} +{"repo": "ethjs/ethjs-format", "path": "src/index.js", "func_name": "formatData", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "FormatData under strict conditions hex prefix\n\n@method formatData\n@param {String} value the bytes data to be formatted\n@param {Number} byteLength the required byte length (usually 20 or 32)\n@returns {String} output output formatted data\n@throws error if minimum length isnt met", "docstring_tokens": ["FormatData", "under", "strict", "conditions", "hex", "prefix"], "sha": "626fe31ed6c7026ab9cc6012b6ea8659bc5faaf0", "url": "https://github.com/ethjs/ethjs-format/blob/626fe31ed6c7026ab9cc6012b6ea8659bc5faaf0/src/index.js#L64-L84", "partition": "test"} +{"repo": "ethjs/ethjs-format", "path": "src/index.js", "func_name": "formatObject", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Format object, even with random RPC caviets\n\n@method formatObject\n@param {String|Array} formatter the unit to convert to, default ether\n@param {Object} value the object value\n@param {Boolean} encode encode to hex or decode to BigNumber\n@returns {Object} output object\n@throws error if value is a float", "docstring_tokens": ["Format", "object", "even", "with", "random", "RPC", "caviets"], "sha": "626fe31ed6c7026ab9cc6012b6ea8659bc5faaf0", "url": "https://github.com/ethjs/ethjs-format/blob/626fe31ed6c7026ab9cc6012b6ea8659bc5faaf0/src/index.js#L96-L124", "partition": "test"} +{"repo": "ethjs/ethjs-format", "path": "src/index.js", "func_name": "format", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Format various kinds of data to RPC spec or into digestable JS objects\n\n@method format\n@param {String|Array} formatter the data formatter\n@param {String|Array|Object|Null|Number} value the data value input\n@param {Boolean} encode encode to hex or decode to BigNumbers, Strings, Booleans, Null\n@param {Number} lengthRequirement the minimum data length requirement\n@throws error if minimum length isnt met", "docstring_tokens": ["Format", "various", "kinds", "of", "data", "to", "RPC", "spec", "or", "into", "digestable", "JS", "objects"], "sha": "626fe31ed6c7026ab9cc6012b6ea8659bc5faaf0", "url": "https://github.com/ethjs/ethjs-format/blob/626fe31ed6c7026ab9cc6012b6ea8659bc5faaf0/src/index.js#L188-L216", "partition": "test"} +{"repo": "ethjs/ethjs-format", "path": "src/index.js", "func_name": "formatInputs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Format RPC inputs generally to the node or TestRPC\n\n@method formatInputs\n@param {Object} method the data formatter\n@param {Array} inputs the data inputs\n@returns {Array} output the formatted inputs array\n@throws error if minimum length isnt met", "docstring_tokens": ["Format", "RPC", "inputs", "generally", "to", "the", "node", "or", "TestRPC"], "sha": "626fe31ed6c7026ab9cc6012b6ea8659bc5faaf0", "url": "https://github.com/ethjs/ethjs-format/blob/626fe31ed6c7026ab9cc6012b6ea8659bc5faaf0/src/index.js#L227-L229", "partition": "test"} +{"repo": "incuna/node-yaml-merge", "path": "lib/yaml-merge.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a merged set of yaml files\n@param {array} files - array of file paths to merge together into one object.\n@return {object} Merged javascript object containing converted data from the merged yaml files", "docstring_tokens": ["Returns", "a", "merged", "set", "of", "yaml", "files"], "sha": "08fd6e540e30e40a4fd9325e3b7b9968a47044c8", "url": "https://github.com/incuna/node-yaml-merge/blob/08fd6e540e30e40a4fd9325e3b7b9968a47044c8/lib/yaml-merge.js#L12-L28", "partition": "test"} +{"repo": "pb82/MissMatch", "path": "lib/MissMatch.js", "func_name": "parseProperties", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse the property list of an object pattern.", "docstring_tokens": ["Parse", "the", "property", "list", "of", "an", "object", "pattern", "."], "sha": "13153714c2e4b7fd613c3309131806cfb32ea39f", "url": "https://github.com/pb82/MissMatch/blob/13153714c2e4b7fd613c3309131806cfb32ea39f/lib/MissMatch.js#L197-L221", "partition": "test"} +{"repo": "pb82/MissMatch", "path": "lib/MissMatch.js", "func_name": "extractStringLiteral", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "String literals might start with ' or \"", "docstring_tokens": ["String", "literals", "might", "start", "with", "or"], "sha": "13153714c2e4b7fd613c3309131806cfb32ea39f", "url": "https://github.com/pb82/MissMatch/blob/13153714c2e4b7fd613c3309131806cfb32ea39f/lib/MissMatch.js#L279-L293", "partition": "test"} +{"repo": "pb82/MissMatch", "path": "lib/MissMatch.js", "func_name": "parseStringLiteral", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A string literal list may contain strings or regular expressions.", "docstring_tokens": ["A", "string", "literal", "list", "may", "contain", "strings", "or", "regular", "expressions", "."], "sha": "13153714c2e4b7fd613c3309131806cfb32ea39f", "url": "https://github.com/pb82/MissMatch/blob/13153714c2e4b7fd613c3309131806cfb32ea39f/lib/MissMatch.js#L308-L314", "partition": "test"} +{"repo": "pb82/MissMatch", "path": "lib/MissMatch.js", "func_name": "parseNumericLiteral", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse numeric literals like 1, 1.05, .05, 8e5...", "docstring_tokens": ["Parse", "numeric", "literals", "like", "1", "1", ".", "05", ".", "05", "8e5", "..."], "sha": "13153714c2e4b7fd613c3309131806cfb32ea39f", "url": "https://github.com/pb82/MissMatch/blob/13153714c2e4b7fd613c3309131806cfb32ea39f/lib/MissMatch.js#L317-L335", "partition": "test"} +{"repo": "pb82/MissMatch", "path": "lib/MissMatch.js", "func_name": "stage1", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parser entry point", "docstring_tokens": ["Parser", "entry", "point"], "sha": "13153714c2e4b7fd613c3309131806cfb32ea39f", "url": "https://github.com/pb82/MissMatch/blob/13153714c2e4b7fd613c3309131806cfb32ea39f/lib/MissMatch.js#L391-L409", "partition": "test"} +{"repo": "pb82/MissMatch", "path": "lib/MissMatch.js", "func_name": "curry", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "curry takes a function, and a partial list of arguments and returns\na function that can be executed with the rest of the arguments.\n\n--> var max = curry(Math.max, [2,5]);\n--> max(4);\n--> 5", "docstring_tokens": ["curry", "takes", "a", "function", "and", "a", "partial", "list", "of", "arguments", "and", "returns", "a", "function", "that", "can", "be", "executed", "with", "the", "rest", "of", "the", "arguments", "."], "sha": "13153714c2e4b7fd613c3309131806cfb32ea39f", "url": "https://github.com/pb82/MissMatch/blob/13153714c2e4b7fd613c3309131806cfb32ea39f/lib/MissMatch.js#L448-L452", "partition": "test"} +{"repo": "pb82/MissMatch", "path": "lib/MissMatch.js", "func_name": "matchArray", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "m is an array of predicates, a is the array to match", "docstring_tokens": ["m", "is", "an", "array", "of", "predicates", "a", "is", "the", "array", "to", "match"], "sha": "13153714c2e4b7fd613c3309131806cfb32ea39f", "url": "https://github.com/pb82/MissMatch/blob/13153714c2e4b7fd613c3309131806cfb32ea39f/lib/MissMatch.js#L618-L681", "partition": "test"} +{"repo": "pb82/MissMatch", "path": "lib/MissMatch.js", "func_name": "compileNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compile a single level of the AST", "docstring_tokens": ["Compile", "a", "single", "level", "of", "the", "AST"], "sha": "13153714c2e4b7fd613c3309131806cfb32ea39f", "url": "https://github.com/pb82/MissMatch/blob/13153714c2e4b7fd613c3309131806cfb32ea39f/lib/MissMatch.js#L710-L783", "partition": "test"} +{"repo": "emmetio/html-matcher", "path": "index.js", "func_name": "getName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns name of given matched token\n@param {Token} tag\n@return {String}", "docstring_tokens": ["Returns", "name", "of", "given", "matched", "token"], "sha": "55b01d2a157a482db5a538e39f7c6129a6fce011", "url": "https://github.com/emmetio/html-matcher/blob/55b01d2a157a482db5a538e39f7c6129a6fce011/index.js#L121-L123", "partition": "test"} +{"repo": "emmetio/html-matcher", "path": "lib/attributes.js", "func_name": "eatAttributeValue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Consumes attribute value from given location\n@param {StreamReader} stream\n@return {Token}", "docstring_tokens": ["Consumes", "attribute", "value", "from", "given", "location"], "sha": "55b01d2a157a482db5a538e39f7c6129a6fce011", "url": "https://github.com/emmetio/html-matcher/blob/55b01d2a157a482db5a538e39f7c6129a6fce011/lib/attributes.js#L63-L86", "partition": "test"} +{"repo": "emmetio/html-matcher", "path": "lib/attributes.js", "func_name": "isUnquoted", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if given character code is valid unquoted value\n@param {Number} code\n@return {Boolean}", "docstring_tokens": ["Check", "if", "given", "character", "code", "is", "valid", "unquoted", "value"], "sha": "55b01d2a157a482db5a538e39f7c6129a6fce011", "url": "https://github.com/emmetio/html-matcher/blob/55b01d2a157a482db5a538e39f7c6129a6fce011/lib/attributes.js#L121-L123", "partition": "test"} +{"repo": "ticup/emotional", "path": "index.js", "func_name": "setDefault", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If given key is set in the object it returns the associated value, otherwise it sets the value to val and returns it.", "docstring_tokens": ["If", "given", "key", "is", "set", "in", "the", "object", "it", "returns", "the", "associated", "value", "otherwise", "it", "sets", "the", "value", "to", "val", "and", "returns", "it", "."], "sha": "ab43abab8715d3ecefc359a7649dfdbeba8095ce", "url": "https://github.com/ticup/emotional/blob/ab43abab8715d3ecefc359a7649dfdbeba8095ce/index.js#L381-L387", "partition": "test"} +{"repo": "ticup/emotional", "path": "index.js", "func_name": "getXml", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read and Parse XML file from given path, pass result to finish Any error that occurs is simpy thrown.", "docstring_tokens": ["Read", "and", "Parse", "XML", "file", "from", "given", "path", "pass", "result", "to", "finish", "Any", "error", "that", "occurs", "is", "simpy", "thrown", "."], "sha": "ab43abab8715d3ecefc359a7649dfdbeba8095ce", "url": "https://github.com/ticup/emotional/blob/ab43abab8715d3ecefc359a7649dfdbeba8095ce/index.js#L392-L400", "partition": "test"} +{"repo": "tjworks/angoose", "path": "extensions/angoose-ui/index.js", "func_name": "appendUISource", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "append angoose-ui sources @todo: call grunt task api to concat/minify the source & templates", "docstring_tokens": ["append", "angoose", "-", "ui", "sources"], "sha": "2172f7a9f44d1337156792bf4dc382805b47e121", "url": "https://github.com/tjworks/angoose/blob/2172f7a9f44d1337156792bf4dc382805b47e121/extensions/angoose-ui/index.js#L16-L24", "partition": "test"} +{"repo": "ParksProjets/C-Preprocessor", "path": "bin/global.js", "func_name": "error", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Show an error", "docstring_tokens": ["Show", "an", "error"], "sha": "9c9ea8901b801cc42c69192bacd39814c415cd3b", "url": "https://github.com/ParksProjets/C-Preprocessor/blob/9c9ea8901b801cc42c69192bacd39814c415cd3b/bin/global.js#L39-L48", "partition": "test"} +{"repo": "tjworks/angoose", "path": "lib/client/angoose-client.js", "func_name": "compile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "compile the model based on the server side schema", "docstring_tokens": ["compile", "the", "model", "based", "on", "the", "server", "side", "schema"], "sha": "2172f7a9f44d1337156792bf4dc382805b47e121", "url": "https://github.com/tjworks/angoose/blob/2172f7a9f44d1337156792bf4dc382805b47e121/lib/client/angoose-client.js#L249-L292", "partition": "test"} +{"repo": "thebuilder/react-docs-markdown", "path": "src/index.js", "func_name": "addProps", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Loop through all the top level props\n@param props\n@param options\n@returns {string}", "docstring_tokens": ["Loop", "through", "all", "the", "top", "level", "props"], "sha": "af15b3690900725270c49b973b6058b22dd1aa69", "url": "https://github.com/thebuilder/react-docs-markdown/blob/af15b3690900725270c49b973b6058b22dd1aa69/src/index.js#L20-L66", "partition": "test"} +{"repo": "tjworks/angoose", "path": "extensions/angoose-ui/services/ui-service.js", "func_name": "debounce", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Debounces a function. Returns a function that calls the original fn function only if no invocations have been made\nwithin the last quietMillis milliseconds.\n\n@param quietMillis number of milliseconds to wait before invoking fn\n@param fn function to be debounced\n@param ctx object to be used as this reference within fn\n@return debounced version of fn", "docstring_tokens": ["Debounces", "a", "function", ".", "Returns", "a", "function", "that", "calls", "the", "original", "fn", "function", "only", "if", "no", "invocations", "have", "been", "made", "within", "the", "last", "quietMillis", "milliseconds", "."], "sha": "2172f7a9f44d1337156792bf4dc382805b47e121", "url": "https://github.com/tjworks/angoose/blob/2172f7a9f44d1337156792bf4dc382805b47e121/extensions/angoose-ui/services/ui-service.js#L297-L307", "partition": "test"} +{"repo": "tjworks/angoose", "path": "lib/util/toolbox.js", "func_name": "matroshka", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Workaround for Q module with CLS", "docstring_tokens": ["Workaround", "for", "Q", "module", "with", "CLS"], "sha": "2172f7a9f44d1337156792bf4dc382805b47e121", "url": "https://github.com/tjworks/angoose/blob/2172f7a9f44d1337156792bf4dc382805b47e121/lib/util/toolbox.js#L80-L87", "partition": "test"} +{"repo": "tjworks/angoose", "path": "extensions/angoose-ui/directives/ang-list.js", "func_name": "findTagged", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "end directiveFunc get a list of fields with a specific tag", "docstring_tokens": ["end", "directiveFunc", "get", "a", "list", "of", "fields", "with", "a", "specific", "tag"], "sha": "2172f7a9f44d1337156792bf4dc382805b47e121", "url": "https://github.com/tjworks/angoose/blob/2172f7a9f44d1337156792bf4dc382805b47e121/extensions/angoose-ui/directives/ang-list.js#L184-L193", "partition": "test"} +{"repo": "ParksProjets/C-Preprocessor", "path": "bin/argv-parser.js", "func_name": "error", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Emit an error", "docstring_tokens": ["Emit", "an", "error"], "sha": "9c9ea8901b801cc42c69192bacd39814c415cd3b", "url": "https://github.com/ParksProjets/C-Preprocessor/blob/9c9ea8901b801cc42c69192bacd39814c415cd3b/bin/argv-parser.js#L28-L33", "partition": "test"} +{"repo": "ParksProjets/C-Preprocessor", "path": "bin/argv-parser.js", "func_name": "call", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Call a command", "docstring_tokens": ["Call", "a", "command"], "sha": "9c9ea8901b801cc42c69192bacd39814c415cd3b", "url": "https://github.com/ParksProjets/C-Preprocessor/blob/9c9ea8901b801cc42c69192bacd39814c415cd3b/bin/argv-parser.js#L66-L79", "partition": "test"} +{"repo": "tjworks/angoose", "path": "extensions/angoose-ui/directives/ang-field.js", "func_name": "findInputElement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find the \"input\" element in the template. It will be one of input, select or textarea. We need to ensure it is wrapped in jqLite\\jQuery", "docstring_tokens": ["Find", "the", "input", "element", "in", "the", "template", ".", "It", "will", "be", "one", "of", "input", "select", "or", "textarea", ".", "We", "need", "to", "ensure", "it", "is", "wrapped", "in", "jqLite", "\\", "jQuery"], "sha": "2172f7a9f44d1337156792bf4dc382805b47e121", "url": "https://github.com/tjworks/angoose/blob/2172f7a9f44d1337156792bf4dc382805b47e121/extensions/angoose-ui/directives/ang-field.js#L9-L11", "partition": "test"} +{"repo": "tjworks/angoose", "path": "extensions/angoose-ui/directives/ang-field.js", "func_name": "getValidationMessageMap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Search through the originalDirective's element for elements that contain information about how to map validation keys to messages", "docstring_tokens": ["Search", "through", "the", "originalDirective", "s", "element", "for", "elements", "that", "contain", "information", "about", "how", "to", "map", "validation", "keys", "to", "messages"], "sha": "2172f7a9f44d1337156792bf4dc382805b47e121", "url": "https://github.com/tjworks/angoose/blob/2172f7a9f44d1337156792bf4dc382805b47e121/extensions/angoose-ui/directives/ang-field.js#L19-L33", "partition": "test"} +{"repo": "tjworks/angoose", "path": "lib/angoose.js", "func_name": "registerClass", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "register module with angoose so it knows to publish it", "docstring_tokens": ["register", "module", "with", "angoose", "so", "it", "knows", "to", "publish", "it"], "sha": "2172f7a9f44d1337156792bf4dc382805b47e121", "url": "https://github.com/tjworks/angoose/blob/2172f7a9f44d1337156792bf4dc382805b47e121/lib/angoose.js#L109-L141", "partition": "test"} +{"repo": "tjworks/angoose", "path": "lib/angoose.js", "func_name": "config", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set or get configurations.\n\nUsage:\n\nconfig() get the whole configuration object\nconfig(object) set the configuration by merging the configuration options\nconfig(path) get the configuration value at path.\nconfig(path, val) set the value at path.", "docstring_tokens": ["Set", "or", "get", "configurations", "."], "sha": "2172f7a9f44d1337156792bf4dc382805b47e121", "url": "https://github.com/tjworks/angoose/blob/2172f7a9f44d1337156792bf4dc382805b47e121/lib/angoose.js#L514-L530", "partition": "test"} +{"repo": "aheckmann/gomon", "path": "lib/index.js", "func_name": "connect", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a connection to the given `url`.", "docstring_tokens": ["Creates", "a", "connection", "to", "the", "given", "url", "."], "sha": "9b3c8e12f3369b9898f5d3c51bb6554ea03b5a03", "url": "https://github.com/aheckmann/gomon/blob/9b3c8e12f3369b9898f5d3c51bb6554ea03b5a03/lib/index.js#L45-L48", "partition": "test"} +{"repo": "aheckmann/gomon", "path": "lib/index.js", "func_name": "startShell", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Starts up a shell with the given context.", "docstring_tokens": ["Starts", "up", "a", "shell", "with", "the", "given", "context", "."], "sha": "9b3c8e12f3369b9898f5d3c51bb6554ea03b5a03", "url": "https://github.com/aheckmann/gomon/blob/9b3c8e12f3369b9898f5d3c51bb6554ea03b5a03/lib/index.js#L54-L76", "partition": "test"} +{"repo": "aheckmann/gomon", "path": "lib/index.js", "func_name": "executeFiles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Execute the given `files` in the context shared\nwith the shell when started.", "docstring_tokens": ["Execute", "the", "given", "files", "in", "the", "context", "shared", "with", "the", "shell", "when", "started", "."], "sha": "9b3c8e12f3369b9898f5d3c51bb6554ea03b5a03", "url": "https://github.com/aheckmann/gomon/blob/9b3c8e12f3369b9898f5d3c51bb6554ea03b5a03/lib/index.js#L94-L99", "partition": "test"} +{"repo": "aheckmann/gomon", "path": "lib/db.js", "func_name": "wrap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wrap async functions with animation etc", "docstring_tokens": ["Wrap", "async", "functions", "with", "animation", "etc"], "sha": "9b3c8e12f3369b9898f5d3c51bb6554ea03b5a03", "url": "https://github.com/aheckmann/gomon/blob/9b3c8e12f3369b9898f5d3c51bb6554ea03b5a03/lib/db.js#L329-L359", "partition": "test"} +{"repo": "aheckmann/gomon", "path": "lib/db.js", "func_name": "handleError", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Error reporting helper", "docstring_tokens": ["Error", "reporting", "helper"], "sha": "9b3c8e12f3369b9898f5d3c51bb6554ea03b5a03", "url": "https://github.com/aheckmann/gomon/blob/9b3c8e12f3369b9898f5d3c51bb6554ea03b5a03/lib/db.js#L365-L374", "partition": "test"} +{"repo": "artdecocode/tablature", "path": "build/index.js", "func_name": "tablature", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Display values in a table.\n@param {Config} conf Options for the program.\n@param {Array} conf.keys Keys to print as columns.\n@param {Array>} conf.data The array of data items to prints as rows.\n@param {Object} [conf.headings] The display names for each column.\n@param {Object.} [conf.replacements] The map of replacement functions which will run against data items.\n@param {Array} [conf.centerValues] Centre values of these column (use original keys, not headings).\n@param {Array} [conf.centerHeadings] Center headings of these column (use original keys, not headings).\n@returns {string} A string which represents a table.", "docstring_tokens": ["Display", "values", "in", "a", "table", "."], "sha": "05e7463a0eb210b429bc7090b4d87c0959649605", "url": "https://github.com/artdecocode/tablature/blob/05e7463a0eb210b429bc7090b4d87c0959649605/build/index.js#L31-L90", "partition": "test"} +{"repo": "gabrielcsapo-graveyard/node-flat-db", "path": "src/index.js", "func_name": "_save", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return a promise or nothing in sync mode or if the database hasn't changed", "docstring_tokens": ["Return", "a", "promise", "or", "nothing", "in", "sync", "mode", "or", "if", "the", "database", "hasn", "t", "changed"], "sha": "ca4eac61830ba22fe805d1997dfca8bc6ea254f6", "url": "https://github.com/gabrielcsapo-graveyard/node-flat-db/blob/ca4eac61830ba22fe805d1997dfca8bc6ea254f6/src/index.js#L102-L111", "partition": "test"} +{"repo": "localnerve/picklr", "path": "lib/picklr.js", "func_name": "Picklr", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The Picklr object.\n\n@constructor", "docstring_tokens": ["The", "Picklr", "object", "."], "sha": "ed4698eb096f87a74786b1a87273b3bfe9f1c930", "url": "https://github.com/localnerve/picklr/blob/ed4698eb096f87a74786b1a87273b3bfe9f1c930/lib/picklr.js#L21-L42", "partition": "test"} +{"repo": "localnerve/picklr", "path": "lib/picklr.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recursively process files.", "docstring_tokens": ["Recursively", "process", "files", "."], "sha": "ed4698eb096f87a74786b1a87273b3bfe9f1c930", "url": "https://github.com/localnerve/picklr/blob/ed4698eb096f87a74786b1a87273b3bfe9f1c930/lib/picklr.js#L47-L65", "partition": "test"} +{"repo": "localnerve/picklr", "path": "lib/picklr.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "File type determination.\n\n@private\n@returns true if given path is a file.", "docstring_tokens": ["File", "type", "determination", "."], "sha": "ed4698eb096f87a74786b1a87273b3bfe9f1c930", "url": "https://github.com/localnerve/picklr/blob/ed4698eb096f87a74786b1a87273b3bfe9f1c930/lib/picklr.js#L72-L81", "partition": "test"} +{"repo": "localnerve/picklr", "path": "lib/picklr.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Directory type determination.\n\n@private\n@returns true if given path is a directory.", "docstring_tokens": ["Directory", "type", "determination", "."], "sha": "ed4698eb096f87a74786b1a87273b3bfe9f1c930", "url": "https://github.com/localnerve/picklr/blob/ed4698eb096f87a74786b1a87273b3bfe9f1c930/lib/picklr.js#L88-L96", "partition": "test"} +{"repo": "localnerve/picklr", "path": "lib/picklr.js", "func_name": "processAllFiles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Process all files under startDir using options.", "docstring_tokens": ["Process", "all", "files", "under", "startDir", "using", "options", "."], "sha": "ed4698eb096f87a74786b1a87273b3bfe9f1c930", "url": "https://github.com/localnerve/picklr/blob/ed4698eb096f87a74786b1a87273b3bfe9f1c930/lib/picklr.js#L102-L105", "partition": "test"} +{"repo": "localnerve/picklr", "path": "lib/actions.js", "func_name": "processFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Does the actual audit or update of a single file.\n\n@private", "docstring_tokens": ["Does", "the", "actual", "audit", "or", "update", "of", "a", "single", "file", "."], "sha": "ed4698eb096f87a74786b1a87273b3bfe9f1c930", "url": "https://github.com/localnerve/picklr/blob/ed4698eb096f87a74786b1a87273b3bfe9f1c930/lib/actions.js#L17-L52", "partition": "test"} +{"repo": "nfroidure/swagger-http-router", "path": "src/server.js", "func_name": "initHTTPServer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize an HTTP server\n@param {Object} services\nThe services the server depends on\n@param {Object} services.ENV\nThe process environment variables\n@param {Object} services.HOST\nThe server host\n@param {Object} services.PORT\nThe server port\n@param {Object} services.MAX_HEADERS_COUNT\nThe https://nodejs.org/api/http.html#http_server_maxheaderscount\n@param {Object} services.KEEP_ALIVE_TIMEOUT\nSee https://nodejs.org/api/http.html#http_server_keepalivetimeout\n@param {Object} services.MAX_CONNECTIONS\nSee https://nodejs.org/api/net.html#net_server_maxconnections\n@param {Object} services.TIMEOUT\nSee https://nodejs.org/api/http.html#http_server_timeout\n@param {Function} services.httpRouter\nThe function to run with the req/res tuple\n@param {Function} [services.log=noop]\nA logging function\n@return {Promise}\nA promise of an object with a NodeJS HTTP server\nin its `service` property.", "docstring_tokens": ["Initialize", "an", "HTTP", "server"], "sha": "298e38c99170dc50c229cf922ebc801d19b03144", "url": "https://github.com/nfroidure/swagger-http-router/blob/298e38c99170dc50c229cf922ebc801d19b03144/src/server.js#L56-L121", "partition": "test"} +{"repo": "shystruk/famulus", "path": "sortAndAddFirstElement.js", "func_name": "sortAndAddFirstElement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sort an array by the name of existing property and add a first element into array\n\n@customNeeds Sort array by name and add first element.\nFor e.g. user names - [ {name: 'All'}, {name: 'Aron'}, {name: 'Bob'} ]\n\n@since 1.1.0\n@category Array\n\n@param {Array} array - The array to sort and add\n@param {String} sortBy - Name of the property from an array by which array will be sorted\n@param {*} element - Element which is added into an array\n\n@returns {Array} Returns the new array\n\n@example\n\nfamulus.sortAndAddFirstElement([{name:'Bob'}, {name:'Aron'}], 'name', {name:'All'})\n// => [ {name:'All'}, {name:'Aron'}, {name:'Bob'} ]", "docstring_tokens": ["Sort", "an", "array", "by", "the", "name", "of", "existing", "property", "and", "add", "a", "first", "element", "into", "array"], "sha": "6b97c007f85b71c36b4981fa94c34ebbdb44837a", "url": "https://github.com/shystruk/famulus/blob/6b97c007f85b71c36b4981fa94c34ebbdb44837a/sortAndAddFirstElement.js#L23-L28", "partition": "test"} +{"repo": "shystruk/famulus", "path": "objectInterface.js", "func_name": "objectInterface", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Interface for building an object by configuration\n\n@customNeeds - have an interface for building an object based on configuration\n\n@since 2.1.0\n@category Object\n\n@param {Array} config - Keys with configuration\n[\n'key/value' - \"OR\" if no value, set value after \"/\",\n'key|this.firstName + \" \" + this.lastName' - set value from the expression after \"|\" which is bind to the passed object,\n'key:new Date()' - set value from the expression after \":\"\n]\n\n@returns {Function}\n\n@example\n\nvar email = objectInterface(['body', 'count/1', 'sender|this.firstName + \" \" + this.lastName', 'isRead: false', 'created: new Date()'])\n// => function\n\nemail({body: 'Hello world!', count: '', firstName: 'Vasyl', lastName: 'Stokolosa', another: ''})\n// => {body: \"Hello world!\", count: 1, created: Mon Jul 09 2018 10:31:08, isRead: false, sender: \"Vasyl Stokolosa\"}", "docstring_tokens": ["Interface", "for", "building", "an", "object", "by", "configuration"], "sha": "6b97c007f85b71c36b4981fa94c34ebbdb44837a", "url": "https://github.com/shystruk/famulus/blob/6b97c007f85b71c36b4981fa94c34ebbdb44837a/objectInterface.js#L26-L49", "partition": "test"} +{"repo": "nfroidure/swagger-http-router", "path": "src/transaction.js", "func_name": "httpTransaction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a new HTTP transaction\n@param {HTTPRequest} req\nA raw NodeJS HTTP incoming message\n@param {HTTPResponse} res\nA raw NodeJS HTTP response\n@return {Array}\nThe normalized request and the HTTP\ntransaction created in an array.", "docstring_tokens": ["Create", "a", "new", "HTTP", "transaction"], "sha": "298e38c99170dc50c229cf922ebc801d19b03144", "url": "https://github.com/nfroidure/swagger-http-router/blob/298e38c99170dc50c229cf922ebc801d19b03144/src/transaction.js#L120-L185", "partition": "test"} +{"repo": "shystruk/famulus", "path": "dateDifference.js", "func_name": "dateDifference", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Difference between dates which are passed, in formats 'milliseconds', 'days', 'hours', 'minutes'\n\n@customNeeds -\n\n@since 2.0.0\n@category Date\n\n@param {Date} date1 - The Date for compare\n@param {Date} date2 - The Date for compare\n@param {String} differenceType - [ 'days', 'hours', 'minutes', 'milliseconds', 'all' ]\n\n@returns {Number|Object} Returns the numeric value or object depends on passed differenceType param\n\n@example\n\nfamulus.dateDifference(new Date('06-20-2018'), new Date('06-26-2018'), 'days')\n// => 6\n\nfamulus.dateDifference(new Date('06-20-2018'), new Date('06-26-2018'), 'hours')\n// => 144\n\nfamulus.dateDifference(new Date('06-20-2018'), new Date('06-26-2018'), 'minutes')\n// => 8640\n\nfamulus.dateDifference(new Date('06-26-2018'), new Date('06-20-2018'), 'milliseconds')\n// => 518400000\n\nfamulus.dateDifference(new Date('06-26-2018 10:10'), new Date('06-20-2018 08:00'), 'all')\n// => {days: 6, hours: 2, minutes: 10, milliseconds: 526200000}", "docstring_tokens": ["Difference", "between", "dates", "which", "are", "passed", "in", "formats", "milliseconds", "days", "hours", "minutes"], "sha": "6b97c007f85b71c36b4981fa94c34ebbdb44837a", "url": "https://github.com/shystruk/famulus/blob/6b97c007f85b71c36b4981fa94c34ebbdb44837a/dateDifference.js#L34-L55", "partition": "test"} +{"repo": "nfroidure/swagger-http-router", "path": "src/errorHandler.js", "func_name": "initErrorHandler", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize an error handler for the\nHTTP router\n@param {Object} services\nThe services the server depends on\n@param {Object} [services.ENV]\nThe services the server depends on\n@param {Array} [services.DEBUG_NODE_ENVS]\nThe environnement that activate debugging\n(prints stack trace in HTTP errors responses)\n@param {Object} [services.STRINGIFYERS]\nThe synchronous body stringifyers\n@return {Promise}\nA promise of a function to handle errors", "docstring_tokens": ["Initialize", "an", "error", "handler", "for", "the", "HTTP", "router"], "sha": "298e38c99170dc50c229cf922ebc801d19b03144", "url": "https://github.com/nfroidure/swagger-http-router/blob/298e38c99170dc50c229cf922ebc801d19b03144/src/errorHandler.js#L28-L83", "partition": "test"} +{"repo": "shystruk/famulus", "path": "dateDifferenceFromNow.js", "func_name": "dateDifferenceFromNow", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Difference between now and date which is passed, in formats 'milliseconds', 'days', 'hours', 'minutes'\n\n@customNeeds -\n\n@since 2.0.0\n@category Date\n\n@param {Date} date - The Date to inspect\n@param {String} differenceType - [ 'days', 'hours', 'minutes', 'milliseconds', 'all' ]\n\n@returns {Number|Object} Returns the numeric value or object depends on passed differenceType param\n\n@example\nexample result for now is new Date('12-26-2017')\n\nfamulus.dateDifferenceFromNow(new Date('12-20-2017'), 'milliseconds')\n// => 555261242\n\nfamulus.dateDifferenceFromNow(new Date('12-20-2017'), 'days')\n// => 6\n\nfamulus.dateDifferenceFromNow(new Date('12-20-2017'), 'hours')\n// => 156", "docstring_tokens": ["Difference", "between", "now", "and", "date", "which", "is", "passed", "in", "formats", "milliseconds", "days", "hours", "minutes"], "sha": "6b97c007f85b71c36b4981fa94c34ebbdb44837a", "url": "https://github.com/shystruk/famulus/blob/6b97c007f85b71c36b4981fa94c34ebbdb44837a/dateDifferenceFromNow.js#L28-L50", "partition": "test"} +{"repo": "emmetio/extract-abbreviation", "path": "index.js", "func_name": "consumePair", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Consumes full character pair, if possible\n@param {StreamReader} stream\n@param {Number} close\n@param {Number} open\n@return {Boolean}", "docstring_tokens": ["Consumes", "full", "character", "pair", "if", "possible"], "sha": "41b7368c976ed1ccaca072a314415b67734ea37f", "url": "https://github.com/emmetio/extract-abbreviation/blob/41b7368c976ed1ccaca072a314415b67734ea37f/index.js#L172-L186", "partition": "test"} +{"repo": "emmetio/extract-abbreviation", "path": "index.js", "func_name": "consumeArray", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Consumes all character codes from given array, right-to-left, if possible\n@param {StreamReader} stream\n@param {Number[]} arr", "docstring_tokens": ["Consumes", "all", "character", "codes", "from", "given", "array", "right", "-", "to", "-", "left", "if", "possible"], "sha": "41b7368c976ed1ccaca072a314415b67734ea37f", "url": "https://github.com/emmetio/extract-abbreviation/blob/41b7368c976ed1ccaca072a314415b67734ea37f/index.js#L193-L210", "partition": "test"} +{"repo": "emmetio/extract-abbreviation", "path": "lib/is-html.js", "func_name": "isIdent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if given character code belongs to HTML identifier\n@param {Number} c\n@return {Boolean}", "docstring_tokens": ["Check", "if", "given", "character", "code", "belongs", "to", "HTML", "identifier"], "sha": "41b7368c976ed1ccaca072a314415b67734ea37f", "url": "https://github.com/emmetio/extract-abbreviation/blob/41b7368c976ed1ccaca072a314415b67734ea37f/lib/is-html.js#L124-L126", "partition": "test"} +{"repo": "encharm/xcase", "path": "benchmark.js", "func_name": "onCycle", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "pool for testing in place camelizeKeys", "docstring_tokens": ["pool", "for", "testing", "in", "place", "camelizeKeys"], "sha": "8af0a2edd440639cb2385d2bfabb3f3ab2db9148", "url": "https://github.com/encharm/xcase/blob/8af0a2edd440639cb2385d2bfabb3f3ab2db9148/benchmark.js#L29-L35", "partition": "test"} +{"repo": "kflorence/gulp-data-json", "path": "index.js", "func_name": "json", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Load JSON data from a companion file and store in file data.\n\n@param {Object} file Vinyl File object\n@return JSON data", "docstring_tokens": ["Load", "JSON", "data", "from", "a", "companion", "file", "and", "store", "in", "file", "data", "."], "sha": "13d77ebb11a056f68156dc0153411901bcf2922b", "url": "https://github.com/kflorence/gulp-data-json/blob/13d77ebb11a056f68156dc0153411901bcf2922b/index.js#L11-L14", "partition": "test"} +{"repo": "HQarroum/Fsm", "path": "examples/elevator/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "As the elevator's doors are currently opened\nwe push any user request to go to\na level on the level stack.", "docstring_tokens": ["As", "the", "elevator", "s", "doors", "are", "currently", "opened", "we", "push", "any", "user", "request", "to", "go", "to", "a", "level", "on", "the", "level", "stack", "."], "sha": "4d46fa0ef2fe8e54976808194312b66f9c7689b1", "url": "https://github.com/HQarroum/Fsm/blob/4d46fa0ef2fe8e54976808194312b66f9c7689b1/examples/elevator/index.js#L40-L45", "partition": "test"} +{"repo": "HQarroum/Fsm", "path": "examples/elevator/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "When the elevator's doors are closed,\nwe wait for a request to move to another\nlevel.", "docstring_tokens": ["When", "the", "elevator", "s", "doors", "are", "closed", "we", "wait", "for", "a", "request", "to", "move", "to", "another", "level", "."], "sha": "4d46fa0ef2fe8e54976808194312b66f9c7689b1", "url": "https://github.com/HQarroum/Fsm/blob/4d46fa0ef2fe8e54976808194312b66f9c7689b1/examples/elevator/index.js#L69-L78", "partition": "test"} +{"repo": "perry-mitchell/iocane", "path": "source/encryption.js", "func_name": "decryptGCM", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Decrypt text using AES-GCM\n@param {EncryptedComponents} encryptedComponents Encrypted components\n@param {DerivedKeyInfo} keyDerivationInfo Key derivation information\n@returns {Promise.} A promise that resolves with the decrypted string", "docstring_tokens": ["Decrypt", "text", "using", "AES", "-", "GCM"], "sha": "3fe5c250a405fbe8a4da3d6977d7331655572694", "url": "https://github.com/perry-mitchell/iocane/blob/3fe5c250a405fbe8a4da3d6977d7331655572694/source/encryption.js#L56-L70", "partition": "test"} +{"repo": "perry-mitchell/iocane", "path": "source/encryption.js", "func_name": "encryptCBC", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Encrypt text using AES-CBC\n@param {String} text The text to encrypt\n@param {DerivedKeyInfo} keyDerivationInfo Key derivation information\n@param {Buffer} iv A buffer containing the IV\n@returns {Promise.} A promise that resolves with encrypted components", "docstring_tokens": ["Encrypt", "text", "using", "AES", "-", "CBC"], "sha": "3fe5c250a405fbe8a4da3d6977d7331655572694", "url": "https://github.com/perry-mitchell/iocane/blob/3fe5c250a405fbe8a4da3d6977d7331655572694/source/encryption.js#L79-L103", "partition": "test"} +{"repo": "perry-mitchell/iocane", "path": "source/encryption.js", "func_name": "encryptGCM", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Encrypt text using AES-GCM\n@param {String} text The text to encrypt\n@param {DerivedKeyInfo} keyDerivationInfo Key derivation information\n@param {Buffer} iv A buffer containing the IV\n@returns {Promise.} A promise that resolves with encrypted components", "docstring_tokens": ["Encrypt", "text", "using", "AES", "-", "GCM"], "sha": "3fe5c250a405fbe8a4da3d6977d7331655572694", "url": "https://github.com/perry-mitchell/iocane/blob/3fe5c250a405fbe8a4da3d6977d7331655572694/source/encryption.js#L112-L134", "partition": "test"} +{"repo": "perry-mitchell/iocane", "path": "source/packing.js", "func_name": "unpackEncryptedContent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Unpack encrypted content components from an encrypted string\n@param {String} encryptedContent The encrypted string\n@returns {EncryptedComponents} The extracted components\n@throws {Error} Throws if the number of components is incorrect", "docstring_tokens": ["Unpack", "encrypted", "content", "components", "from", "an", "encrypted", "string"], "sha": "3fe5c250a405fbe8a4da3d6977d7331655572694", "url": "https://github.com/perry-mitchell/iocane/blob/3fe5c250a405fbe8a4da3d6977d7331655572694/source/packing.js#L36-L52", "partition": "test"} +{"repo": "perry-mitchell/iocane", "path": "source/derivation.js", "func_name": "deriveFromPassword", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Derived key info\n@typedef DerivedKeyInfo\n@property {String} salt - The salt used\n@property {Buffer} key - The derived key\n@property {Buffer} hmac - The HMAC\n@property {Number} rounds - The number of rounds used\n \nDerive a key from a password\n@param {Function} pbkdf2Gen The generator method\n@param {String} password The password to derive from\n@param {String} salt The salt (Optional)\n@param {Number} rounds The number of iterations\n@param {Boolean=} generateHMAC Enable HMAC key generation\n@throws {Error} Rejects if no password is provided\n@throws {Error} Rejects if no salt is provided\n@throws {Error} Rejects if no rounds are provided\n@returns {Promise.} A promise that resolves with an object (DerivedKeyInfo)", "docstring_tokens": ["Derived", "key", "info"], "sha": "3fe5c250a405fbe8a4da3d6977d7331655572694", "url": "https://github.com/perry-mitchell/iocane/blob/3fe5c250a405fbe8a4da3d6977d7331655572694/source/derivation.js#L28-L56", "partition": "test"} +{"repo": "perry-mitchell/iocane", "path": "source/derivation.js", "func_name": "pbkdf2", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The default PBKDF2 function\n@param {String} password The password to use\n@param {String} salt The salt to use\n@param {Number} rounds The number of iterations\n@param {Number} bits The size of the key to generate, in bits\n@returns {Promise.} A Promise that resolves with the hash", "docstring_tokens": ["The", "default", "PBKDF2", "function"], "sha": "3fe5c250a405fbe8a4da3d6977d7331655572694", "url": "https://github.com/perry-mitchell/iocane/blob/3fe5c250a405fbe8a4da3d6977d7331655572694/source/derivation.js#L66-L75", "partition": "test"} +{"repo": "reklatsmasters/binary-data", "path": "src/index.js", "func_name": "createEncodeStream", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create transform stream to encode objects into Buffer.\n@param {Object} [schema]\n@returns {EncodeStream}", "docstring_tokens": ["Create", "transform", "stream", "to", "encode", "objects", "into", "Buffer", "."], "sha": "9d2d3df364e068ccf526f90cada5749a56b6a9c7", "url": "https://github.com/reklatsmasters/binary-data/blob/9d2d3df364e068ccf526f90cada5749a56b6a9c7/src/index.js#L39-L48", "partition": "test"} +{"repo": "reklatsmasters/binary-data", "path": "src/index.js", "func_name": "createDecodeStream", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create transform stream to decode binary data into object.\n@param {Buffer|Object} [bufOrSchema]\n@returns {DecodeStream}", "docstring_tokens": ["Create", "transform", "stream", "to", "decode", "binary", "data", "into", "object", "."], "sha": "9d2d3df364e068ccf526f90cada5749a56b6a9c7", "url": "https://github.com/reklatsmasters/binary-data/blob/9d2d3df364e068ccf526f90cada5749a56b6a9c7/src/index.js#L55-L76", "partition": "test"} +{"repo": "graphology/graphology-generators", "path": "random/erdos-renyi.js", "func_name": "erdosRenyi", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generates a binomial graph graph with n nodes.\n\n@param {Class} GraphClass - The Graph Class to instantiate.\n@param {object} options - Options:\n@param {number} order - Number of nodes in the graph.\n@param {number} probability - Probability for edge creation.\n@param {function} rng - Custom RNG function.\n@return {Graph}", "docstring_tokens": ["Generates", "a", "binomial", "graph", "graph", "with", "n", "nodes", "."], "sha": "bd9c36df57550fbec68a0b56040ea0dab8f81bd8", "url": "https://github.com/graphology/graphology-generators/blob/bd9c36df57550fbec68a0b56040ea0dab8f81bd8/random/erdos-renyi.js#L22-L78", "partition": "test"} +{"repo": "graphology/graphology-generators", "path": "random/erdos-renyi.js", "func_name": "erdosRenyiSparse", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generates a binomial graph graph with n nodes using a faster algorithm\nfor sparse graphs.\n\n@param {Class} GraphClass - The Graph Class to instantiate.\n@param {object} options - Options:\n@param {number} order - Number of nodes in the graph.\n@param {number} probability - Probability for edge creation.\n@param {function} rng - Custom RNG function.\n@return {Graph}", "docstring_tokens": ["Generates", "a", "binomial", "graph", "graph", "with", "n", "nodes", "using", "a", "faster", "algorithm", "for", "sparse", "graphs", "."], "sha": "bd9c36df57550fbec68a0b56040ea0dab8f81bd8", "url": "https://github.com/graphology/graphology-generators/blob/bd9c36df57550fbec68a0b56040ea0dab8f81bd8/random/erdos-renyi.js#L91-L174", "partition": "test"} +{"repo": "neptunejs/react-parcoords", "path": "d3.parcoords.js", "func_name": "single_curve", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "draw single cubic bezier curve", "docstring_tokens": ["draw", "single", "cubic", "bezier", "curve"], "sha": "e784bb05ab5aaf56ee8e54e7255b874a1f16d1d1", "url": "https://github.com/neptunejs/react-parcoords/blob/e784bb05ab5aaf56ee8e54e7255b874a1f16d1d1/d3.parcoords.js#L642-L656", "partition": "test"} +{"repo": "neptunejs/react-parcoords", "path": "d3.parcoords.js", "func_name": "color_path", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "draw single polyline", "docstring_tokens": ["draw", "single", "polyline"], "sha": "e784bb05ab5aaf56ee8e54e7255b874a1f16d1d1", "url": "https://github.com/neptunejs/react-parcoords/blob/e784bb05ab5aaf56ee8e54e7255b874a1f16d1d1/d3.parcoords.js#L659-L667", "partition": "test"} +{"repo": "neptunejs/react-parcoords", "path": "d3.parcoords.js", "func_name": "paths", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "draw many polylines of the same color", "docstring_tokens": ["draw", "many", "polylines", "of", "the", "same", "color"], "sha": "e784bb05ab5aaf56ee8e54e7255b874a1f16d1d1", "url": "https://github.com/neptunejs/react-parcoords/blob/e784bb05ab5aaf56ee8e54e7255b874a1f16d1d1/d3.parcoords.js#L670-L681", "partition": "test"} +{"repo": "neptunejs/react-parcoords", "path": "d3.parcoords.js", "func_name": "brushUpdated", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This function can be used for 'live' updates of brushes. That is, during the specification of a brush, this method can be called to update the view. @param newSelection - The new set of data items that is currently contained by the brushes", "docstring_tokens": ["This", "function", "can", "be", "used", "for", "live", "updates", "of", "brushes", ".", "That", "is", "during", "the", "specification", "of", "a", "brush", "this", "method", "can", "be", "called", "to", "update", "the", "view", "."], "sha": "e784bb05ab5aaf56ee8e54e7255b874a1f16d1d1", "url": "https://github.com/neptunejs/react-parcoords/blob/e784bb05ab5aaf56ee8e54e7255b874a1f16d1d1/d3.parcoords.js#L1090-L1094", "partition": "test"} +{"repo": "neptunejs/react-parcoords", "path": "d3.parcoords.js", "func_name": "selected", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "data within extents", "docstring_tokens": ["data", "within", "extents"], "sha": "e784bb05ab5aaf56ee8e54e7255b874a1f16d1d1", "url": "https://github.com/neptunejs/react-parcoords/blob/e784bb05ab5aaf56ee8e54e7255b874a1f16d1d1/d3.parcoords.js#L1157-L1205", "partition": "test"} +{"repo": "neptunejs/react-parcoords", "path": "d3.parcoords.js", "func_name": "consecutive", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks if the first dimension is directly left of the second dimension.", "docstring_tokens": ["Checks", "if", "the", "first", "dimension", "is", "directly", "left", "of", "the", "second", "dimension", "."], "sha": "e784bb05ab5aaf56ee8e54e7255b874a1f16d1d1", "url": "https://github.com/neptunejs/react-parcoords/blob/e784bb05ab5aaf56ee8e54e7255b874a1f16d1d1/d3.parcoords.js#L1616-L1623", "partition": "test"} +{"repo": "TxHawks/bidi-css-js", "path": "src/index.js", "func_name": "convertProperty", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Logically converts a property and its value based on the flow direction context\n@param {String} originalKey the original property key\n@param {Number|String|Object} originalValue the original css property value\n@param {Boolean} isRtl Should conversion happen in RTL context?\n@return {Object} the new {key, value} pair", "docstring_tokens": ["Logically", "converts", "a", "property", "and", "its", "value", "based", "on", "the", "flow", "direction", "context"], "sha": "de6c9612ef9b1eb20de12ac751baf65241e4f477", "url": "https://github.com/TxHawks/bidi-css-js/blob/de6c9612ef9b1eb20de12ac751baf65241e4f477/src/index.js#L185-L189", "partition": "test"} +{"repo": "TxHawks/bidi-css-js", "path": "src/index.js", "func_name": "getPropertyDoppelganger", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Logically gets the direction of the given property based on the flow direction context\n@param {String} property the name of the property\n@param {Boolean} isRtl Should conversion happen in RTL context?\n@return {String} the name of the RTL property", "docstring_tokens": ["Logically", "gets", "the", "direction", "of", "the", "given", "property", "based", "on", "the", "flow", "direction", "context"], "sha": "de6c9612ef9b1eb20de12ac751baf65241e4f477", "url": "https://github.com/TxHawks/bidi-css-js/blob/de6c9612ef9b1eb20de12ac751baf65241e4f477/src/index.js#L197-L203", "partition": "test"} +{"repo": "facebookarchive/commoner", "path": "lib/cache.js", "func_name": "ReadFileCache", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "ReadFileCache is an EventEmitter subclass that caches file contents in\nmemory so that subsequent calls to readFileP return the same contents,\nregardless of any changes in the underlying file.", "docstring_tokens": ["ReadFileCache", "is", "an", "EventEmitter", "subclass", "that", "caches", "file", "contents", "in", "memory", "so", "that", "subsequent", "calls", "to", "readFileP", "return", "the", "same", "contents", "regardless", "of", "any", "changes", "in", "the", "underlying", "file", "."], "sha": "868a4301d5329b774ab8912f0f95f7996a2b5245", "url": "https://github.com/facebookarchive/commoner/blob/868a4301d5329b774ab8912f0f95f7996a2b5245/lib/cache.js#L14-L26", "partition": "test"} +{"repo": "hbouvier/node-tts", "path": "lib/cache.js", "func_name": "done", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fetch the resource and call 'done' when it is fetched", "docstring_tokens": ["Fetch", "the", "resource", "and", "call", "done", "when", "it", "is", "fetched"], "sha": "6b49053bb7f667681d526dc21d5d6b71f3bf644d", "url": "https://github.com/hbouvier/node-tts/blob/6b49053bb7f667681d526dc21d5d6b71f3bf644d/lib/cache.js#L104-L144", "partition": "test"} +{"repo": "hbouvier/node-tts", "path": "swagger-ui/lib/shred.bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Shred takes some options, including a logger and request defaults.", "docstring_tokens": ["Shred", "takes", "some", "options", "including", "a", "logger", "and", "request", "defaults", "."], "sha": "6b49053bb7f667681d526dc21d5d6b71f3bf644d", "url": "https://github.com/hbouvier/node-tts/blob/6b49053bb7f667681d526dc21d5d6b71f3bf644d/swagger-ui/lib/shred.bundle.js#L359-L366", "partition": "test"} +{"repo": "hbouvier/node-tts", "path": "swagger-ui/lib/shred.bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "this is a quick-and-dirty logger. there are other nicer loggers out there but the ones i found were also somewhat involved. this one has a Ruby logger type interface we can easily replace this, provide the info, debug, etc. methods are the same. or, we can change Haiku to use a more standard node.js interface", "docstring_tokens": ["this", "is", "a", "quick", "-", "and", "-", "dirty", "logger", ".", "there", "are", "other", "nicer", "loggers", "out", "there", "but", "the", "ones", "i", "found", "were", "also", "somewhat", "involved", ".", "this", "one", "has", "a", "Ruby", "logger", "type", "interface", "we", "can", "easily", "replace", "this", "provide", "the", "info", "debug", "etc", ".", "methods", "are", "the", "same", ".", "or", "we", "can", "change", "Haiku", "to", "use", "a", "more", "standard", "node", ".", "js", "interface"], "sha": "6b49053bb7f667681d526dc21d5d6b71f3bf644d", "url": "https://github.com/hbouvier/node-tts/blob/6b49053bb7f667681d526dc21d5d6b71f3bf644d/swagger-ui/lib/shred.bundle.js#L424-L436", "partition": "test"} +{"repo": "hbouvier/node-tts", "path": "swagger-ui/lib/shred.bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The Shred object itself constructs the `Request` object. You should rarely need to do this directly.", "docstring_tokens": ["The", "Shred", "object", "itself", "constructs", "the", "Request", "object", ".", "You", "should", "rarely", "need", "to", "do", "this", "directly", "."], "sha": "6b49053bb7f667681d526dc21d5d6b71f3bf644d", "url": "https://github.com/hbouvier/node-tts/blob/6b49053bb7f667681d526dc21d5d6b71f3bf644d/swagger-ui/lib/shred.bundle.js#L841-L848", "partition": "test"} +{"repo": "hbouvier/node-tts", "path": "swagger-ui/lib/shred.bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "`processOptions` is called from the constructor to handle all the work associated with making sure we do our best to ensure we have a valid request.", "docstring_tokens": ["processOptions", "is", "called", "from", "the", "constructor", "to", "handle", "all", "the", "work", "associated", "with", "making", "sure", "we", "do", "our", "best", "to", "ensure", "we", "have", "a", "valid", "request", "."], "sha": "6b49053bb7f667681d526dc21d5d6b71f3bf644d", "url": "https://github.com/hbouvier/node-tts/blob/6b49053bb7f667681d526dc21d5d6b71f3bf644d/swagger-ui/lib/shred.bundle.js#L1067-L1130", "partition": "test"} +{"repo": "hbouvier/node-tts", "path": "swagger-ui/lib/shred.bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set up some event magic. The precedence is given first to status-specific handlers, then to responses for a given event, and then finally to the more general `response` handler. In the last case, we need to first make sure we're not dealing with a a redirect.", "docstring_tokens": ["Set", "up", "some", "event", "magic", ".", "The", "precedence", "is", "given", "first", "to", "status", "-", "specific", "handlers", "then", "to", "responses", "for", "a", "given", "event", "and", "then", "finally", "to", "the", "more", "general", "response", "handler", ".", "In", "the", "last", "case", "we", "need", "to", "first", "make", "sure", "we", "re", "not", "dealing", "with", "a", "a", "redirect", "."], "sha": "6b49053bb7f667681d526dc21d5d6b71f3bf644d", "url": "https://github.com/hbouvier/node-tts/blob/6b49053bb7f667681d526dc21d5d6b71f3bf644d/swagger-ui/lib/shred.bundle.js#L1181-L1195", "partition": "test"} +{"repo": "hbouvier/node-tts", "path": "swagger-ui/lib/shred.bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Logs the curl command for the request.", "docstring_tokens": ["Logs", "the", "curl", "command", "for", "the", "request", "."], "sha": "6b49053bb7f667681d526dc21d5d6b71f3bf644d", "url": "https://github.com/hbouvier/node-tts/blob/6b49053bb7f667681d526dc21d5d6b71f3bf644d/swagger-ui/lib/shred.bundle.js#L1264-L1286", "partition": "test"} +{"repo": "hbouvier/node-tts", "path": "swagger-ui/lib/shred.bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Construct a `Response` object. You should never have to do this directly. The `Request` object handles this, getting the raw response object and passing it in here, along with the request. The callback allows us to stream the response and then use the callback to let the request know when it's ready.", "docstring_tokens": ["Construct", "a", "Response", "object", ".", "You", "should", "never", "have", "to", "do", "this", "directly", ".", "The", "Request", "object", "handles", "this", "getting", "the", "raw", "response", "object", "and", "passing", "it", "in", "here", "along", "with", "the", "request", ".", "The", "callback", "allows", "us", "to", "stream", "the", "response", "and", "then", "use", "the", "callback", "to", "let", "the", "request", "know", "when", "it", "s", "ready", "."], "sha": "6b49053bb7f667681d526dc21d5d6b71f3bf644d", "url": "https://github.com/hbouvier/node-tts/blob/6b49053bb7f667681d526dc21d5d6b71f3bf644d/swagger-ui/lib/shred.bundle.js#L1741-L1835", "partition": "test"} +{"repo": "hbouvier/node-tts", "path": "swagger-ui/lib/shred.bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add getters.", "docstring_tokens": ["Add", "getters", "."], "sha": "6b49053bb7f667681d526dc21d5d6b71f3bf644d", "url": "https://github.com/hbouvier/node-tts/blob/6b49053bb7f667681d526dc21d5d6b71f3bf644d/swagger-ui/lib/shred.bundle.js#L2190-L2193", "partition": "test"} +{"repo": "hbouvier/node-tts", "path": "swagger-ui/lib/shred.bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add setters but as \"private\" methods.", "docstring_tokens": ["Add", "setters", "but", "as", "private", "methods", "."], "sha": "6b49053bb7f667681d526dc21d5d6b71f3bf644d", "url": "https://github.com/hbouvier/node-tts/blob/6b49053bb7f667681d526dc21d5d6b71f3bf644d/swagger-ui/lib/shred.bundle.js#L2195-L2198", "partition": "test"} +{"repo": "hbouvier/node-tts", "path": "swagger-ui/lib/shred.bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add setters.", "docstring_tokens": ["Add", "setters", "."], "sha": "6b49053bb7f667681d526dc21d5d6b71f3bf644d", "url": "https://github.com/hbouvier/node-tts/blob/6b49053bb7f667681d526dc21d5d6b71f3bf644d/swagger-ui/lib/shred.bundle.js#L2200-L2203", "partition": "test"} +{"repo": "hbouvier/node-tts", "path": "swagger-ui/lib/shred.bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add both getters and setters.", "docstring_tokens": ["Add", "both", "getters", "and", "setters", "."], "sha": "6b49053bb7f667681d526dc21d5d6b71f3bf644d", "url": "https://github.com/hbouvier/node-tts/blob/6b49053bb7f667681d526dc21d5d6b71f3bf644d/swagger-ui/lib/shred.bundle.js#L2205-L2210", "partition": "test"} +{"repo": "hbouvier/node-tts", "path": "swagger-ui/lib/shred.bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get correct codec for given encoding.", "docstring_tokens": ["Get", "correct", "codec", "for", "given", "encoding", "."], "sha": "6b49053bb7f667681d526dc21d5d6b71f3bf644d", "url": "https://github.com/hbouvier/node-tts/blob/6b49053bb7f667681d526dc21d5d6b71f3bf644d/swagger-ui/lib/shred.bundle.js#L2233-L2257", "partition": "test"} +{"repo": "hbouvier/node-tts", "path": "swagger-ui/lib/shred.bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Codepage single-byte encodings.", "docstring_tokens": ["Codepage", "single", "-", "byte", "encodings", "."], "sha": "6b49053bb7f667681d526dc21d5d6b71f3bf644d", "url": "https://github.com/hbouvier/node-tts/blob/6b49053bb7f667681d526dc21d5d6b71f3bf644d/swagger-ui/lib/shred.bundle.js#L2278-L2325", "partition": "test"} +{"repo": "hbouvier/node-tts", "path": "swagger-ui/lib/shred.bundle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Codepage double-byte encodings.", "docstring_tokens": ["Codepage", "double", "-", "byte", "encodings", "."], "sha": "6b49053bb7f667681d526dc21d5d6b71f3bf644d", "url": "https://github.com/hbouvier/node-tts/blob/6b49053bb7f667681d526dc21d5d6b71f3bf644d/swagger-ui/lib/shred.bundle.js#L2328-L2389", "partition": "test"} +{"repo": "unfoldingWord-dev/node-gogs-client", "path": "lib/request.js", "func_name": "encodeUserAuth", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generates the authentication parameter for the user\nPreference will be given to the token if it exists\n@param user the use used for authentication. Requires token or username and password\n@return {string|null} the properly formatted authentication string", "docstring_tokens": ["Generates", "the", "authentication", "parameter", "for", "the", "user", "Preference", "will", "be", "given", "to", "the", "token", "if", "it", "exists"], "sha": "6b16291e1a1e05882cc2d0628128a6ab6d3047a5", "url": "https://github.com/unfoldingWord-dev/node-gogs-client/blob/6b16291e1a1e05882cc2d0628128a6ab6d3047a5/lib/request.js#L12-L24", "partition": "test"} +{"repo": "kbirk/alfador", "path": "src/Vec4.js", "func_name": "Vec4", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Instantiates a Vec4 object.\n@class Vec4\n@classdesc A four component vector.", "docstring_tokens": ["Instantiates", "a", "Vec4", "object", "."], "sha": "77500f7ed85c84b4a9afdc7d044b47c376e0fdf8", "url": "https://github.com/kbirk/alfador/blob/77500f7ed85c84b4a9afdc7d044b47c376e0fdf8/src/Vec4.js#L12-L36", "partition": "test"} +{"repo": "wooorm/fault", "path": "index.js", "func_name": "create", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a new `EConstructor`, with the formatted `format` as a first argument.", "docstring_tokens": ["Create", "a", "new", "EConstructor", "with", "the", "formatted", "format", "as", "a", "first", "argument", "."], "sha": "e2b74b756eecf4f19d61eb26ab1f96cc4c081a9b", "url": "https://github.com/wooorm/fault/blob/e2b74b756eecf4f19d61eb26ab1f96cc4c081a9b/index.js#L19-L31", "partition": "test"} +{"repo": "kbirk/alfador", "path": "src/Mat44.js", "func_name": "Mat44", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Instantiates a Mat44 object.\n@class Mat44\n@classdesc A 4x4 column-major matrix.", "docstring_tokens": ["Instantiates", "a", "Mat44", "object", "."], "sha": "77500f7ed85c84b4a9afdc7d044b47c376e0fdf8", "url": "https://github.com/kbirk/alfador/blob/77500f7ed85c84b4a9afdc7d044b47c376e0fdf8/src/Mat44.js#L15-L43", "partition": "test"} +{"repo": "kbirk/alfador", "path": "src/Vec2.js", "func_name": "Vec2", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Instantiates a Vec2 object.\n@class Vec2\n@classdesc A two component vector.", "docstring_tokens": ["Instantiates", "a", "Vec2", "object", "."], "sha": "77500f7ed85c84b4a9afdc7d044b47c376e0fdf8", "url": "https://github.com/kbirk/alfador/blob/77500f7ed85c84b4a9afdc7d044b47c376e0fdf8/src/Vec2.js#L12-L30", "partition": "test"} +{"repo": "kbirk/alfador", "path": "src/Quaternion.js", "func_name": "Quaternion", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Instantiates a Quaternion object.\n@class Quaternion\n@classdesc A quaternion representing an orientation.", "docstring_tokens": ["Instantiates", "a", "Quaternion", "object", "."], "sha": "77500f7ed85c84b4a9afdc7d044b47c376e0fdf8", "url": "https://github.com/kbirk/alfador/blob/77500f7ed85c84b4a9afdc7d044b47c376e0fdf8/src/Quaternion.js#L14-L44", "partition": "test"} +{"repo": "kbirk/alfador", "path": "src/Vec3.js", "func_name": "Vec3", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Instantiates a Vec3 object.\n@class Vec3\n@classdesc A three component vector.", "docstring_tokens": ["Instantiates", "a", "Vec3", "object", "."], "sha": "77500f7ed85c84b4a9afdc7d044b47c376e0fdf8", "url": "https://github.com/kbirk/alfador/blob/77500f7ed85c84b4a9afdc7d044b47c376e0fdf8/src/Vec3.js#L12-L33", "partition": "test"} +{"repo": "joostlawerman/SnackbarLightjs", "path": "dist/snackbarlight.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create container for the snackbar\n\n@return {void}", "docstring_tokens": ["Create", "container", "for", "the", "snackbar"], "sha": "b5a980b8aff9d076cffa33a9e1d88e8ee57a319f", "url": "https://github.com/joostlawerman/SnackbarLightjs/blob/b5a980b8aff9d076cffa33a9e1d88e8ee57a319f/dist/snackbarlight.js#L43-L51", "partition": "test"} +{"repo": "joostlawerman/SnackbarLightjs", "path": "dist/snackbarlight.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Activate the listeners\n\n@param {Object} element\n@return {void}", "docstring_tokens": ["Activate", "the", "listeners"], "sha": "b5a980b8aff9d076cffa33a9e1d88e8ee57a319f", "url": "https://github.com/joostlawerman/SnackbarLightjs/blob/b5a980b8aff9d076cffa33a9e1d88e8ee57a319f/dist/snackbarlight.js#L141-L159", "partition": "test"} +{"repo": "joostlawerman/SnackbarLightjs", "path": "dist/snackbarlight.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compare the options to the default ones.\n\n@param {Object} newOptions\n@return {Object}", "docstring_tokens": ["Compare", "the", "options", "to", "the", "default", "ones", "."], "sha": "b5a980b8aff9d076cffa33a9e1d88e8ee57a319f", "url": "https://github.com/joostlawerman/SnackbarLightjs/blob/b5a980b8aff9d076cffa33a9e1d88e8ee57a319f/dist/snackbarlight.js#L181-L191", "partition": "test"} +{"repo": "joostlawerman/SnackbarLightjs", "path": "dist/snackbarlight.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Install function for Vue\n\n@param {Object} Vue\n@return {void}", "docstring_tokens": ["Install", "function", "for", "Vue"], "sha": "b5a980b8aff9d076cffa33a9e1d88e8ee57a319f", "url": "https://github.com/joostlawerman/SnackbarLightjs/blob/b5a980b8aff9d076cffa33a9e1d88e8ee57a319f/dist/snackbarlight.js#L204-L210", "partition": "test"} +{"repo": "kbirk/alfador", "path": "src/Transform.js", "func_name": "Transform", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Instantiates a Transform object.\n@class Transform\n@classdesc A transform representing an orientation, position, and scale.", "docstring_tokens": ["Instantiates", "a", "Transform", "object", "."], "sha": "77500f7ed85c84b4a9afdc7d044b47c376e0fdf8", "url": "https://github.com/kbirk/alfador/blob/77500f7ed85c84b4a9afdc7d044b47c376e0fdf8/src/Transform.js#L14-L32", "partition": "test"} +{"repo": "kbirk/alfador", "path": "src/Triangle.js", "func_name": "Triangle", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Instantiates a Triangle object.\n@class Triangle\n@classdesc A CCW-winded triangle object.", "docstring_tokens": ["Instantiates", "a", "Triangle", "object", "."], "sha": "77500f7ed85c84b4a9afdc7d044b47c376e0fdf8", "url": "https://github.com/kbirk/alfador/blob/77500f7ed85c84b4a9afdc7d044b47c376e0fdf8/src/Triangle.js#L27-L48", "partition": "test"} +{"repo": "micromatch/bash-match", "path": "index.js", "func_name": "bash", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if `str` matches the given `pattern`.\n\n```js\nvar bash = require('bash-match');\nconsole.log(bash('foo', 'f*'));\n//=> true\n\nconsole.log(bash('foo', 'b*'));\n//=> false\n```\n\n@param {String} `str`\n@param {String} `pattern`\n@param {Options} `options` Set `strictErrors` to true to throw when bash throws an error. Otherwise it just returns false.\n@return {Boolean}\n@details false\n@api public", "docstring_tokens": ["Returns", "true", "if", "str", "matches", "the", "given", "pattern", "."], "sha": "7374475242822d7b928af9b444968ea1edb14961", "url": "https://github.com/micromatch/bash-match/blob/7374475242822d7b928af9b444968ea1edb14961/index.js#L30-L53", "partition": "test"} +{"repo": "micromatch/bash-match", "path": "index.js", "func_name": "cmd", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create the command to use", "docstring_tokens": ["Create", "the", "command", "to", "use"], "sha": "7374475242822d7b928af9b444968ea1edb14961", "url": "https://github.com/micromatch/bash-match/blob/7374475242822d7b928af9b444968ea1edb14961/index.js#L113-L124", "partition": "test"} +{"repo": "micromatch/bash-match", "path": "index.js", "func_name": "createOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Shallow clone and create options", "docstring_tokens": ["Shallow", "clone", "and", "create", "options"], "sha": "7374475242822d7b928af9b444968ea1edb14961", "url": "https://github.com/micromatch/bash-match/blob/7374475242822d7b928af9b444968ea1edb14961/index.js#L149-L163", "partition": "test"} +{"repo": "micromatch/bash-match", "path": "index.js", "func_name": "getBashPath", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get bash path", "docstring_tokens": ["Get", "bash", "path"], "sha": "7374475242822d7b928af9b444968ea1edb14961", "url": "https://github.com/micromatch/bash-match/blob/7374475242822d7b928af9b444968ea1edb14961/index.js#L169-L179", "partition": "test"} +{"repo": "mcmartins/jsondbfs", "path": "lib/memory.js", "func_name": "Memory", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Provides in memory storage and regular flush to disk.\n\n@param {object} options\n@param {object} options.db\n@param {float} options.db._flush\n@param {string} options.file\n@constructor", "docstring_tokens": ["Provides", "in", "memory", "storage", "and", "regular", "flush", "to", "disk", "."], "sha": "6593ab769b4541634bfe46e9126c3254cd997758", "url": "https://github.com/mcmartins/jsondbfs/blob/6593ab769b4541634bfe46e9126c3254cd997758/lib/memory.js#L44-L78", "partition": "test"} +{"repo": "shama/craft", "path": "example/world.js", "func_name": "deductcost", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "removes the items from craftable if result is picked up", "docstring_tokens": ["removes", "the", "items", "from", "craftable", "if", "result", "is", "picked", "up"], "sha": "3620c61e94942dea00f50c870d04c5e97635c0cd", "url": "https://github.com/shama/craft/blob/3620c61e94942dea00f50c870d04c5e97635c0cd/example/world.js#L51-L87", "partition": "test"} +{"repo": "kaelzhang/document-legacy", "path": "lib/parser.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "descend a specific node or descend all", "docstring_tokens": ["descend", "a", "specific", "node", "or", "descend", "all"], "sha": "51bd863b96a3f767711afb3299da96eb3b491125", "url": "https://github.com/kaelzhang/document-legacy/blob/51bd863b96a3f767711afb3299da96eb3b491125/lib/parser.js#L353-L362", "partition": "test"} +{"repo": "JedWatson/asyncdi", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Registers dependencies that can be provided to the function\n@param {Object|Array} provides map of key: value pairs or an array of values\n@return {Wrapper} this instance", "docstring_tokens": ["Registers", "dependencies", "that", "can", "be", "provided", "to", "the", "function"], "sha": "4e9dd53ded83b65fc96f07fd9347931a1c82b302", "url": "https://github.com/JedWatson/asyncdi/blob/4e9dd53ded83b65fc96f07fd9347931a1c82b302/index.js#L94-L104", "partition": "test"} +{"repo": "JedWatson/asyncdi", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calls the function\n\nWill return the result if not async and no callback is provided\n\n@param {Object} context (optional)\n@param {Function} callback", "docstring_tokens": ["Calls", "the", "function"], "sha": "4e9dd53ded83b65fc96f07fd9347931a1c82b302", "url": "https://github.com/JedWatson/asyncdi/blob/4e9dd53ded83b65fc96f07fd9347931a1c82b302/index.js#L124-L151", "partition": "test"} +{"repo": "JedWatson/asyncdi", "path": "index.js", "func_name": "each", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Applies the function iterator to each item in arr, in parallel.\n\nThe context of the function will be the current item in the array.\n\n@param {Array} arr\n@param {Function} callback", "docstring_tokens": ["Applies", "the", "function", "iterator", "to", "each", "item", "in", "arr", "in", "parallel", "."], "sha": "4e9dd53ded83b65fc96f07fd9347931a1c82b302", "url": "https://github.com/JedWatson/asyncdi/blob/4e9dd53ded83b65fc96f07fd9347931a1c82b302/index.js#L161-L173", "partition": "test"} +{"repo": "JedWatson/asyncdi", "path": "index.js", "func_name": "map", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the results of interating the function on each item in an array.\n\nThe context of the function will be the current item in the array.\n\n@param {Array} arr\n@param {Function} callback\n@return {Array}", "docstring_tokens": ["Returns", "the", "results", "of", "interating", "the", "function", "on", "each", "item", "in", "an", "array", "."], "sha": "4e9dd53ded83b65fc96f07fd9347931a1c82b302", "url": "https://github.com/JedWatson/asyncdi/blob/4e9dd53ded83b65fc96f07fd9347931a1c82b302/index.js#L184-L195", "partition": "test"} +{"repo": "StErMi/openui5-flatpickr", "path": "src/it/designfuture/flatpickr/FlatDatePicker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "force wrap to true defining events callback", "docstring_tokens": ["force", "wrap", "to", "true", "defining", "events", "callback"], "sha": "75bd494b4c5bbae860b71d84a90f21803eb9df90", "url": "https://github.com/StErMi/openui5-flatpickr/blob/75bd494b4c5bbae860b71d84a90f21803eb9df90/src/it/designfuture/flatpickr/FlatDatePicker.js#L400-L403", "partition": "test"} +{"repo": "zhiyelee/mdserver", "path": "lib/server.js", "func_name": "startServer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "start server with provided options", "docstring_tokens": ["start", "server", "with", "provided", "options"], "sha": "0d8815934d095c2564fece1ac80b0c976adcc109", "url": "https://github.com/zhiyelee/mdserver/blob/0d8815934d095c2564fece1ac80b0c976adcc109/lib/server.js#L30-L72", "partition": "test"} +{"repo": "zhiyelee/mdserver", "path": "lib/server.js", "func_name": "showSuccessInfo", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "show server starting information", "docstring_tokens": ["show", "server", "starting", "information"], "sha": "0d8815934d095c2564fece1ac80b0c976adcc109", "url": "https://github.com/zhiyelee/mdserver/blob/0d8815934d095c2564fece1ac80b0c976adcc109/lib/server.js#L79-L95", "partition": "test"} +{"repo": "zhiyelee/mdserver", "path": "lib/server.js", "func_name": "log", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "simple log middleware, output the access log", "docstring_tokens": ["simple", "log", "middleware", "output", "the", "access", "log"], "sha": "0d8815934d095c2564fece1ac80b0c976adcc109", "url": "https://github.com/zhiyelee/mdserver/blob/0d8815934d095c2564fece1ac80b0c976adcc109/lib/server.js#L100-L107", "partition": "test"} +{"repo": "JumpLink/node-mpris", "path": "mpris.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "type = \"get\" | \"set\"", "docstring_tokens": ["type", "=", "get", "|", "set"], "sha": "fa2be9923cf0a21cf2a5845c2615ce75dda8e991", "url": "https://github.com/JumpLink/node-mpris/blob/fa2be9923cf0a21cf2a5845c2615ce75dda8e991/mpris.js#L174-L186", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "init", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sendpulse API initialization\n\n@param userId\n@param secret\n@param storage", "docstring_tokens": ["Sendpulse", "API", "initialization"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L53-L66", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "sendRequest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Form and send request to API service\n\n@param path\n@param method\n@param data\n@param useToken\n@param callback\nDefine the function that will be called\nwhen a response is received.", "docstring_tokens": ["Form", "and", "send", "request", "to", "API", "service"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L79-L130", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "getToken", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get token and store it", "docstring_tokens": ["Get", "token", "and", "store", "it"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L136-L148", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "returnError", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Form error object\n\n@return array", "docstring_tokens": ["Form", "error", "object"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L155-L161", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "createAddressBook", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create address book\n\n@param callback\n@param bookName", "docstring_tokens": ["Create", "address", "book"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L292-L298", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "editAddressBook", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Edit address book name\n\n@param callback\n@param id\n@param bookName", "docstring_tokens": ["Edit", "address", "book", "name"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L307-L313", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "removeAddressBook", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove address book\n\n@param callback\n@param id", "docstring_tokens": ["Remove", "address", "book"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L321-L326", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "getBookInfo", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get information about book\n\n@param callback\n@param id", "docstring_tokens": ["Get", "information", "about", "book"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L334-L339", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "getEmailsFromBook", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "List email addresses from book\n\n@param callback\n@param id", "docstring_tokens": ["List", "email", "addresses", "from", "book"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L347-L352", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "addEmails", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add new emails to address book\n\n@param callback\n@param id\n@param emails", "docstring_tokens": ["Add", "new", "emails", "to", "address", "book"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L361-L367", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "getEmailInfo", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get information about email address from book\n\n@param callback\n@param id\n@param email", "docstring_tokens": ["Get", "information", "about", "email", "address", "from", "book"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L391-L397", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "campaignCost", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get cost of campaign based on address book\n\n@param callback\n@param id", "docstring_tokens": ["Get", "cost", "of", "campaign", "based", "on", "address", "book"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L405-L411", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "listCampaigns", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get list of campaigns\n\n@param callback\n@param limit\n@param offset", "docstring_tokens": ["Get", "list", "of", "campaigns"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L420-L433", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "getCampaignInfo", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get information about campaign\n\n@param callback\n@param id", "docstring_tokens": ["Get", "information", "about", "campaign"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L441-L446", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "campaignStatByCountries", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get campaign statistic by countries\n\n@param callback\n@param id", "docstring_tokens": ["Get", "campaign", "statistic", "by", "countries"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L454-L459", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "campaignStatByReferrals", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get campaign statistic by referrals\n\n@param callback\n@param id", "docstring_tokens": ["Get", "campaign", "statistic", "by", "referrals"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L467-L472", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "createCampaign", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create new campaign\n\n@param callback\n@param senderName\n@param senderEmail\n@param subject\n@param body\n@param bookId\n@param name\n@param attachments", "docstring_tokens": ["Create", "new", "campaign"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L486-L511", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "addSender", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add new sender\n\n@param callback\n@param senderName\n@param senderEmail", "docstring_tokens": ["Add", "new", "sender"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L542-L551", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "activateSender", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Activate sender using code\n\n@param callback\n@param senderEmail\n@param code", "docstring_tokens": ["Activate", "sender", "using", "code"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L576-L584", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "getSenderActivationMail", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Request mail with activation code\n\n@param callback\n@param senderEmail", "docstring_tokens": ["Request", "mail", "with", "activation", "code"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L592-L597", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "getEmailGlobalInfo", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get global information about email\n\n@param callback\n@param email", "docstring_tokens": ["Get", "global", "information", "about", "email"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L605-L610", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "removeEmailFromAllBooks", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove email from all books\n\n@param callback\n@param email", "docstring_tokens": ["Remove", "email", "from", "all", "books"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L618-L623", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "emailStatByCampaigns", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get email statistic by all campaigns\n\n@param callback\n@param email", "docstring_tokens": ["Get", "email", "statistic", "by", "all", "campaigns"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L631-L636", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "addToBlackList", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add email to blacklist\n\n@param callback\n@param emails\n@param comment", "docstring_tokens": ["Add", "email", "to", "blacklist"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L654-L666", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "removeFromBlackList", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove emails from blacklist\n\n@param callback\n@param emails", "docstring_tokens": ["Remove", "emails", "from", "blacklist"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L674-L682", "partition": "test"} +{"repo": "olegpolyakov/sendpulse", "path": "index.js", "func_name": "smtpGetEmailInfoById", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get information about email by id\n\n@param callback\n@param id", "docstring_tokens": ["Get", "information", "about", "email", "by", "id"], "sha": "7c8230e75c918a8a110f641ddb241006a1f86ac1", "url": "https://github.com/olegpolyakov/sendpulse/blob/7c8230e75c918a8a110f641ddb241006a1f86ac1/index.js#L746-L751", "partition": "test"} +{"repo": "kinchanmaemo/standalone-html", "path": "bin/standalone-html.js", "func_name": "minifyFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "minify the result", "docstring_tokens": ["minify", "the", "result"], "sha": "44826566c100c691c371abafae88df2ae67a7abb", "url": "https://github.com/kinchanmaemo/standalone-html/blob/44826566c100c691c371abafae88df2ae67a7abb/bin/standalone-html.js#L89-L100", "partition": "test"} +{"repo": "kinchanmaemo/standalone-html", "path": "bin/standalone-html.js", "func_name": "writeFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "write result to file", "docstring_tokens": ["write", "result", "to", "file"], "sha": "44826566c100c691c371abafae88df2ae67a7abb", "url": "https://github.com/kinchanmaemo/standalone-html/blob/44826566c100c691c371abafae88df2ae67a7abb/bin/standalone-html.js#L103-L113", "partition": "test"} +{"repo": "socialally/browser-cookie", "path": "lib/cookie.js", "func_name": "Cookie", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a cookie instance.\n\n@param options.raw Do not URI encode the cookie value.\n@param options.json Store the cookie value as JSON.\n@param options.expires Define lifetime of the cookie in days, default is 30.\n@param options.path Define the path where the cookie is valid, default is /.\n@param options.domain Define the domain where the cookie is valid.\n@param options.secure If true, the cookie transmission requires a\nsecure protocol (https).", "docstring_tokens": ["Create", "a", "cookie", "instance", "."], "sha": "c64f8abf894bd0d66248d2a6310013783c86dddf", "url": "https://github.com/socialally/browser-cookie/blob/c64f8abf894bd0d66248d2a6310013783c86dddf/lib/cookie.js#L21-L29", "partition": "test"} +{"repo": "socialally/browser-cookie", "path": "lib/cookie.js", "func_name": "set", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set a cookie value.\n\n@param key The cookie key name.\n@param value The value for the cookie.\n@param options Options to use when setting the cookie.", "docstring_tokens": ["Set", "a", "cookie", "value", "."], "sha": "c64f8abf894bd0d66248d2a6310013783c86dddf", "url": "https://github.com/socialally/browser-cookie/blob/c64f8abf894bd0d66248d2a6310013783c86dddf/lib/cookie.js#L40-L56", "partition": "test"} +{"repo": "socialally/browser-cookie", "path": "lib/cookie.js", "func_name": "get", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get a cookie value.\n\n@param key The cookie key name.\n@param value A converter function used when reading the cookie value.", "docstring_tokens": ["Get", "a", "cookie", "value", "."], "sha": "c64f8abf894bd0d66248d2a6310013783c86dddf", "url": "https://github.com/socialally/browser-cookie/blob/c64f8abf894bd0d66248d2a6310013783c86dddf/lib/cookie.js#L64-L84", "partition": "test"} +{"repo": "socialally/browser-cookie", "path": "lib/cookie.js", "func_name": "del", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Delete a cookie value.\n\n@param key The cookie key name.", "docstring_tokens": ["Delete", "a", "cookie", "value", "."], "sha": "c64f8abf894bd0d66248d2a6310013783c86dddf", "url": "https://github.com/socialally/browser-cookie/blob/c64f8abf894bd0d66248d2a6310013783c86dddf/lib/cookie.js#L91-L100", "partition": "test"} +{"repo": "socialally/browser-cookie", "path": "lib/cookie.js", "func_name": "clear", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Clear all stored cookies, optionally keeping the\nkeys in the except array.\n\n@param except Array of keys that should not be deleted.\n@param options The cookie options.", "docstring_tokens": ["Clear", "all", "stored", "cookies", "optionally", "keeping", "the", "keys", "in", "the", "except", "array", "."], "sha": "c64f8abf894bd0d66248d2a6310013783c86dddf", "url": "https://github.com/socialally/browser-cookie/blob/c64f8abf894bd0d66248d2a6310013783c86dddf/lib/cookie.js#L109-L118", "partition": "test"} +{"repo": "wilmoore/curry2.js", "path": "index.js", "func_name": "curry2", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Curry a binary function.\n\n@param {Function} fn\nBinary function to curry.\n\n@param {Object} [self]\nFunction `this` context.\n\n@return {Function|*}\nIf partially applied, return unary function, otherwise, return result of full application.", "docstring_tokens": ["Curry", "a", "binary", "function", "."], "sha": "9864f54362b50d4c6fea62fa9d54224e1d136b70", "url": "https://github.com/wilmoore/curry2.js/blob/9864f54362b50d4c6fea62fa9d54224e1d136b70/index.js#L28-L42", "partition": "test"} +{"repo": "GetmeUK/manhattan-js-assets", "path": "module/utils/sorting.js", "func_name": "cloneGalleryItem", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Clone behaviour for gallery items used when creating a helper for the\npurpose of sorting.", "docstring_tokens": ["Clone", "behaviour", "for", "gallery", "items", "used", "when", "creating", "a", "helper", "for", "the", "purpose", "of", "sorting", "."], "sha": "2813e5bc24549e8353d16e330c47cb7e9f6025b6", "url": "https://github.com/GetmeUK/manhattan-js-assets/blob/2813e5bc24549e8353d16e330c47cb7e9f6025b6/module/utils/sorting.js#L8-L20", "partition": "test"} +{"repo": "elantion/SyncOSS", "path": "lib/oss.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "upload or update file function", "docstring_tokens": ["upload", "or", "update", "file", "function"], "sha": "c70644620c083e1db339430beb8bc1b4270beb0d", "url": "https://github.com/elantion/SyncOSS/blob/c70644620c083e1db339430beb8bc1b4270beb0d/lib/oss.js#L146-L212", "partition": "test"} +{"repo": "elantion/SyncOSS", "path": "lib/oss.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "delete bucket file function", "docstring_tokens": ["delete", "bucket", "file", "function"], "sha": "c70644620c083e1db339430beb8bc1b4270beb0d", "url": "https://github.com/elantion/SyncOSS/blob/c70644620c083e1db339430beb8bc1b4270beb0d/lib/oss.js#L214-L234", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/dispatch.js", "func_name": "setupDispatch", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Setup and return dispatch function. The dispatch function will call the\nrelevant action handler.\n@param {Object} resources - Object with actions, schemas, services, and middlewares\n@returns {function} Dispatch function, accepting an action as only argument", "docstring_tokens": ["Setup", "and", "return", "dispatch", "function", ".", "The", "dispatch", "function", "will", "call", "the", "relevant", "action", "handler", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/dispatch.js#L25-L48", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/utils/nextSchedule.js", "func_name": "nextSchedule", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get next time for a schedule. Will never return the current time, even if it\nis valid for the schedule, unless `allowNow` is true.\n@param {Object} schedule - The schedule\n@param {boolean} allowNow - True to allow now as next Date\n@returns {Date} The next Date", "docstring_tokens": ["Get", "next", "time", "for", "a", "schedule", ".", "Will", "never", "return", "the", "current", "time", "even", "if", "it", "is", "valid", "for", "the", "schedule", "unless", "allowNow", "is", "true", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/utils/nextSchedule.js#L17-L27", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/actions/delete.js", "func_name": "deleteFn", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Delete several items from a service, based on the given payload.\n@param {Object} payload - Payload from action object\n@param {Object} resources - Object with getService\n@returns {Object} Response object with any data returned from the service", "docstring_tokens": ["Delete", "several", "items", "from", "a", "service", "based", "on", "the", "given", "payload", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/actions/delete.js#L25-L45", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/actions/request.js", "func_name": "request", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Normalize and map a request to an action, and map and serialize its response.\n@param {Object} action - The action object\n@param {Object} resources - Object with getService and dispatch\n@returns {Object} Response object", "docstring_tokens": ["Normalize", "and", "map", "a", "request", "to", "an", "action", "and", "map", "and", "serialize", "its", "response", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/actions/request.js#L10-L30", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/actions/getIdent.js", "func_name": "getIdent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get an ident item from service, based on the meta.ident object on the action.\n@param {Object} action - Action object\n@param {Object} resources - Object with getService and identOptions\n@returns {Object} Response object with ident item as data", "docstring_tokens": ["Get", "an", "ident", "item", "from", "service", "based", "on", "the", "meta", ".", "ident", "object", "on", "the", "action", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/actions/getIdent.js#L42-L70", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/integreat.js", "func_name": "integreat", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return an Integreat instance with a dispatch method.\nUse the dispatch method for sending actions to services, for retrieving typed\nitems and updating data.\n@param {Object} defs - Services, schemas, mappings, and auths\n@param {Object} resources - Object with adapters, authenticators, filters, transformers, and actions\n@param {Array} middlewares - Array of middlewares\n@returns {Object} Integration object with the dispatch method", "docstring_tokens": ["Return", "an", "Integreat", "instance", "with", "a", "dispatch", "method", ".", "Use", "the", "dispatch", "method", "for", "sending", "actions", "to", "services", "for", "retrieving", "typed", "items", "and", "updating", "data", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/integreat.js#L19-L117", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/utils/scheduleToAction.js", "func_name": "scheduleToAction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a queuable action from a schedule definition.\n@param {Object} def - A schedule definition\n@returns {object} An action object", "docstring_tokens": ["Create", "a", "queuable", "action", "from", "a", "schedule", "definition", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/utils/scheduleToAction.js#L32-L49", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/actions/get.js", "func_name": "get", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get several items from a service, based on the given action object.\n@param {Object} action - payload and ident from the action object\n@param {Object} resources - Object with getService\n@returns {array} Array of data from the service", "docstring_tokens": ["Get", "several", "items", "from", "a", "service", "based", "on", "the", "given", "action", "object", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/actions/get.js#L25-L52", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/service/sendRequest.js", "func_name": "sendRequest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Send the request with the adapter and return the response. Will serialize any\ndata in the request, and normalize any data in the response. The access\nobject on the request must have status granted, and will be returned on the\nresponse object.\n\n@param {Object} request - The request object\n@param {Object} options - adapter and serviceId\n@returns {Object} The normalized response object", "docstring_tokens": ["Send", "the", "request", "with", "the", "adapter", "and", "return", "the", "response", ".", "Will", "serialize", "any", "data", "in", "the", "request", "and", "normalize", "any", "data", "in", "the", "response", ".", "The", "access", "object", "on", "the", "request", "must", "have", "status", "granted", "and", "will", "be", "returned", "on", "the", "response", "object", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/service/sendRequest.js#L13-L26", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/schema/index.js", "func_name": "schema", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a schema with the given id and service.\n@param {Object} def - Object with id, plural, service, attributes, and relationships\n@returns {Object} The created schema", "docstring_tokens": ["Create", "a", "schema", "with", "the", "given", "id", "and", "service", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/schema/index.js#L29-L90", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/mapping/index.js", "func_name": "mapping", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return item mapper object with fromService and toService.\n@param {Object} resources - filters, transformers, and schemas\n@returns {Object} Item mapping def", "docstring_tokens": ["Return", "item", "mapper", "object", "with", "fromService", "and", "toService", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/mapping/index.js#L148-L209", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/service/mapFromService.js", "func_name": "mapFromService", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Map the data going _to_ the service. Everything is handled by the mappings,\nbut this method make sure that the right types are mapped.\n\n@param {Object} data - The data to map\n@param {Object} options - mappings, params, onlyMappedValues, and endpoint\n@returns {Object[]} Array of mapped items", "docstring_tokens": ["Map", "the", "data", "going", "_to_", "the", "service", ".", "Everything", "is", "handled", "by", "the", "mappings", "but", "this", "method", "make", "sure", "that", "the", "right", "types", "are", "mapped", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/service/mapFromService.js#L22-L54", "partition": "test"} +{"repo": "soldair/node-tailfd", "path": "tail.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "this emits the data events on the watcher emitter for all fds", "docstring_tokens": ["this", "emits", "the", "data", "events", "on", "the", "watcher", "emitter", "for", "all", "fds"], "sha": "ef87ec6389edb7f53b540972aa32256d0b4fc850", "url": "https://github.com/soldair/node-tailfd/blob/ef87ec6389edb7f53b540972aa32256d0b4fc850/tail.js#L173-L208", "partition": "test"} +{"repo": "soldair/node-tailfd", "path": "tail.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "return the total line buffer length from all active tails", "docstring_tokens": ["return", "the", "total", "line", "buffer", "length", "from", "all", "active", "tails"], "sha": "ef87ec6389edb7f53b540972aa32256d0b4fc850", "url": "https://github.com/soldair/node-tailfd/blob/ef87ec6389edb7f53b540972aa32256d0b4fc850/tail.js#L277-L284", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/utils/preparePipeline.js", "func_name": "preparePipeline", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Prepare pipeline by replacing keys with functions or function objects from\nthe collection object, and remove anything that is not functions or function\nobjects.\n@param {array} pipeline - The pipeline definition\n@param {Object} collection - Object with pipeline functions\n@returns {array} Prepared pipeline", "docstring_tokens": ["Prepare", "pipeline", "by", "replacing", "keys", "with", "functions", "or", "function", "objects", "from", "the", "collection", "object", "and", "remove", "anything", "that", "is", "not", "functions", "or", "function", "objects", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/utils/preparePipeline.js#L9-L18", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/schema/castQueryParams.js", "func_name": "castQueryParams", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Cast query params according to type", "docstring_tokens": ["Cast", "query", "params", "according", "to", "type"], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/schema/castQueryParams.js#L6-L21", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/queue/index.js", "func_name": "setupQueue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set up Integreat queue interface.\n\n@param {Object} queue - A supported queue implementation\n@returns {Object} An Integreat queue instance with setDispatch and middleware methods", "docstring_tokens": ["Set", "up", "Integreat", "queue", "interface", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/queue/index.js#L10-L51", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/actions/getMeta.js", "func_name": "getMeta", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get metadata for a service, based on the given action object.\n@param {Object} payload - Payload from action object\n@param {Object} resources - Object with getService\n@returns {Promise} Promise of metdata", "docstring_tokens": ["Get", "metadata", "for", "a", "service", "based", "on", "the", "given", "action", "object", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/actions/getMeta.js#L17-L52", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/actions/set.js", "func_name": "set", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set several items to a service, based on the given action object.\n@param {Object} payload - Payload from action object\n@param {Object} resources - Object with getService\n@returns {Object} Response object with any data returned from the service", "docstring_tokens": ["Set", "several", "items", "to", "a", "service", "based", "on", "the", "given", "action", "object", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/actions/set.js#L37-L55", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/actions/setMeta.js", "func_name": "setMeta", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set metadata on a service, based on the given action object.\n@param {Object} payload - Payload from action object\n@param {Object} resources - Object with getService\n@returns {Promise} Promise that will be resolved when metadata is set", "docstring_tokens": ["Set", "metadata", "on", "a", "service", "based", "on", "the", "given", "action", "object", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/actions/setMeta.js#L10-L44", "partition": "test"} +{"repo": "standardhealth/shr-json-schema-export", "path": "lib/export.js", "func_name": "exportToJSONSchema", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Converts a group of specifications into JSON Schema.\n@param {Specifications} expSpecifications - a fully expanded Specifications object.\n@param {string} baseSchemaURL - the root URL for the schema identifier.\n@param {string} baseTypeURL - the root URL for the EntryType field.\n@param {boolean=} flat - if true then the generated schema will not be hierarchical. Defaults to false.\n@return {Object.} A mapping of schema ids to JSON Schema definitions.", "docstring_tokens": ["Converts", "a", "group", "of", "specifications", "into", "JSON", "Schema", "."], "sha": "7f6d0994185028edc3cf930e233592f5fd54c57d", "url": "https://github.com/standardhealth/shr-json-schema-export/blob/7f6d0994185028edc3cf930e233592f5fd54c57d/lib/export.js#L25-L50", "partition": "test"} +{"repo": "standardhealth/shr-json-schema-export", "path": "lib/export.js", "func_name": "makeRef", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a JSON Schema reference to the specified type.\n\n@param {Identifier} id - the target type.\n@param {Namespace} enclosingNamespace - the current namespace that is being evaluated.\n@param {string} baseSchemaURL - the root URL for the schema identifier\n@returns {string} - a JSON Schema reference to the target type.", "docstring_tokens": ["Create", "a", "JSON", "Schema", "reference", "to", "the", "specified", "type", "."], "sha": "7f6d0994185028edc3cf930e233592f5fd54c57d", "url": "https://github.com/standardhealth/shr-json-schema-export/blob/7f6d0994185028edc3cf930e233592f5fd54c57d/lib/export.js#L770-L776", "partition": "test"} +{"repo": "standardhealth/shr-json-schema-export", "path": "lib/export.js", "func_name": "isOrWasAList", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determine if a value or one of its ancestors is or was a list.\n\n@param {Value} value - the value to test.\n@return {boolean} True if the value or any of its ancestors ever had a cardinality greater than 1.", "docstring_tokens": ["Determine", "if", "a", "value", "or", "one", "of", "its", "ancestors", "is", "or", "was", "a", "list", "."], "sha": "7f6d0994185028edc3cf930e233592f5fd54c57d", "url": "https://github.com/standardhealth/shr-json-schema-export/blob/7f6d0994185028edc3cf930e233592f5fd54c57d/lib/export.js#L1060-L1066", "partition": "test"} +{"repo": "standardhealth/shr-json-schema-export", "path": "lib/export.js", "func_name": "findOptionInChoice", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Searches the aggregate options of a choice for the specified option.\n\n@param {ChoiceValue} choice - the choice to evaluate.\n@param {Identifier} optionId - the identifier to find in the choice.\n@param {DataElementSpecifications} dataElementSpecs - The available DataElement specs.\n@returns {Value?} The first option in the choice that matches the specified optionId.", "docstring_tokens": ["Searches", "the", "aggregate", "options", "of", "a", "choice", "for", "the", "specified", "option", "."], "sha": "7f6d0994185028edc3cf930e233592f5fd54c57d", "url": "https://github.com/standardhealth/shr-json-schema-export/blob/7f6d0994185028edc3cf930e233592f5fd54c57d/lib/export.js#L1076-L1091", "partition": "test"} +{"repo": "standardhealth/shr-json-schema-export", "path": "lib/export.js", "func_name": "supportsCodeConstraint", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "stealing from shr-expand \nDetermine if a type supports a code constraint.\n\n@param {Identifier} identifier - The identifier of the type to check.\n@param {DataElementSpecifications} dataElementSpecs - The available DataElement specs.\n@return {boolean} Whether or not the given type supports a code constraint.", "docstring_tokens": ["stealing", "from", "shr", "-", "expand", "Determine", "if", "a", "type", "supports", "a", "code", "constraint", "."], "sha": "7f6d0994185028edc3cf930e233592f5fd54c57d", "url": "https://github.com/standardhealth/shr-json-schema-export/blob/7f6d0994185028edc3cf930e233592f5fd54c57d/lib/export.js#L1101-L1123", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/actions/expire.js", "func_name": "expire", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Action to delete expired items.\n\nThe given `endpoint` is used to retrieve expired items from the `service`, and\nmay use the paramters `timestamp` or `isodate`, which represents the current\ntime plus the microseconds in `msFromNow`, the former as microseconds since\nJanuary 1, 1970, the latter as an ISO formatted date and time string.\n\nThe items are mapped and typed, so the `type` param should be set to one\nor more types expected from the `endpoint`, and may be a string or an array\nof strings.\n@param {Object} payload - Action payload (service, type, endpoint, and msFromNow)\n@param {Object} resources - Dispatch and queue functions\n@returns {Object} Response object", "docstring_tokens": ["Action", "to", "delete", "expired", "items", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/actions/expire.js#L52-L69", "partition": "test"} +{"repo": "marcelklehr/ot-socialcalc", "path": "index.js", "func_name": "transformRange", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Transforms a range against an array of ops", "docstring_tokens": ["Transforms", "a", "range", "against", "an", "array", "of", "ops"], "sha": "28c05b367a764796d1cd9d4268531c6368fd849d", "url": "https://github.com/marcelklehr/ot-socialcalc/blob/28c05b367a764796d1cd9d4268531c6368fd849d/index.js#L634-L643", "partition": "test"} +{"repo": "marcelklehr/ot-socialcalc", "path": "index.js", "func_name": "transformRangeAnchor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Transforms a range anchor, taking into account whether it's the start or end", "docstring_tokens": ["Transforms", "a", "range", "anchor", "taking", "into", "account", "whether", "it", "s", "the", "start", "or", "end"], "sha": "28c05b367a764796d1cd9d4268531c6368fd849d", "url": "https://github.com/marcelklehr/ot-socialcalc/blob/28c05b367a764796d1cd9d4268531c6368fd849d/index.js#L648-L677", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/endpoints/matchEndpoint.js", "func_name": "matchEndpoint", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the first matching endpoint from an array of endpoints that has\nalready been sortert with higher specificity first. Type should match before\nscope, which should match before action, but the order here is taken care of\nby the required sorting.\n\n@param {Object[]} endpoints - Array of endpoint objects\n@param {Object} action - Action object to match agains\n@returns {Object} Matching endpoint", "docstring_tokens": ["Return", "the", "first", "matching", "endpoint", "from", "an", "array", "of", "endpoints", "that", "has", "already", "been", "sortert", "with", "higher", "specificity", "first", ".", "Type", "should", "match", "before", "scope", "which", "should", "match", "before", "action", "but", "the", "order", "here", "is", "taken", "care", "of", "by", "the", "required", "sorting", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/endpoints/matchEndpoint.js#L42-L51", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/utils/createAction.js", "func_name": "createAction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create an action object.\n@param {string} type - The action type\n@param {Object} payload - The payload of the action\n@param {Object} props - Other action properties\n@returns {Object} An action object", "docstring_tokens": ["Create", "an", "action", "object", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/utils/createAction.js#L8-L18", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/service/authorizeRequest.js", "func_name": "authorizeRequest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Authorize the request according to the setting on the relevant schema.\nSets the access object with `status` property specifying whether access\nis `granted` or `refused`, and returns the request.\n\nThe access object also includes the `ident` and the `scheme`used for\nauthentication.\n\n@param {Object} request - The request object to authorize\n@param {Object} schemas - An object with all schemas that may be needed\n@returns {Object} The request object with updated access object", "docstring_tokens": ["Authorize", "the", "request", "according", "to", "the", "setting", "on", "the", "relevant", "schema", ".", "Sets", "the", "access", "object", "with", "status", "property", "specifying", "whether", "access", "is", "granted", "or", "refused", "and", "returns", "the", "request", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/service/authorizeRequest.js#L33-L53", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/service/requestFromAction.js", "func_name": "requestFromAction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Complete missing props and allow only expected props on the request object.\n@param {Object} request - The request object to complete\n@returns {Object} The completed request object", "docstring_tokens": ["Complete", "missing", "props", "and", "allow", "only", "expected", "props", "on", "the", "request", "object", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/service/requestFromAction.js#L9-L27", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/utils/getService.js", "func_name": "getService", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get service from type or service id.\n@param {Object} schemas - The schemas\n@param {Object} services - The services\n@returns {function} Function to retrieve service from type and service id", "docstring_tokens": ["Get", "service", "from", "type", "or", "service", "id", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/utils/getService.js#L7-L14", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/actions/sync.js", "func_name": "sync", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Action to sync from one service to another.\n\n`retrieve` indicates which items to retrieve. The default is `all`, which\nwill retrieve all items from the `get` endpoint. Set `retrieve` to `updated`\nto retrieve only items that are updated after the `lastSyncedAt` date for\nthe `from` service. This is done by passing the `lastSyncedAt` date as a\nparameter named `updatedAfter` to the `get` endpoint, and by actively\nfilter away any items received with `updatedAt` earlier than `lastSyncedAt`.\n\nThe `lastSyncedAt` metadata will be set on the `from` service when items\nare retrieved and updated.\n\n@param {Object} payload - Action payload (from, to, type, and retrieve)\n@param {Object} resources - Dispatch function\n@returns {Promise} Promise of the action result", "docstring_tokens": ["Action", "to", "sync", "from", "one", "service", "to", "another", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/actions/sync.js#L115-L143", "partition": "test"} +{"repo": "rstone770/babelify-external-helpers", "path": "tasks/Taskman.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Task api that configures and loads gulp tasks.\n\n@param {!Gulp} gulp\n@param {String=} cwd\n@param {Object=} config", "docstring_tokens": ["Task", "api", "that", "configures", "and", "loads", "gulp", "tasks", "."], "sha": "9c6f07b1a882409ba4ae55fbd91e9ee829aab91e", "url": "https://github.com/rstone770/babelify-external-helpers/blob/9c6f07b1a882409ba4ae55fbd91e9ee829aab91e/tasks/Taskman.js#L15-L47", "partition": "test"} +{"repo": "soyuka/ansi-rainbow", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "wrapper to pass bg", "docstring_tokens": ["wrapper", "to", "pass", "bg"], "sha": "d6780661562e4631e9a73cb9c44dbb6690d935fa", "url": "https://github.com/soyuka/ansi-rainbow/blob/d6780661562e4631e9a73cb9c44dbb6690d935fa/index.js#L139-L145", "partition": "test"} +{"repo": "rstone770/babelify-external-helpers", "path": "source/module-injector.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Babel external helper module injector.\n\nThis object will configure browserify to accept a streaming source and then\nresolve any relevant compile time bindings to the built module. The module\ncan later by referenced by name later down the browserify pipeline and modified\nfurther.\n\n@param {!Browserify} browserify\n@param {!String} name\n@param {!Readable} source", "docstring_tokens": ["Babel", "external", "helper", "module", "injector", "."], "sha": "9c6f07b1a882409ba4ae55fbd91e9ee829aab91e", "url": "https://github.com/rstone770/babelify-external-helpers/blob/9c6f07b1a882409ba4ae55fbd91e9ee829aab91e/source/module-injector.js#L30-L48", "partition": "test"} +{"repo": "integreat-io/integreat", "path": "lib/service/mapToService.js", "func_name": "mapToService", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Map the data coming _from_ the service. Everything is handled by the mappings,\nbut this method make sure that the right types are mapped.\n\n@param {Object} data - The data to map\n@param {Object} mappings - The mappings to map with\n@returns {Object} Mapped data", "docstring_tokens": ["Map", "the", "data", "coming", "_from_", "the", "service", ".", "Everything", "is", "handled", "by", "the", "mappings", "but", "this", "method", "make", "sure", "that", "the", "right", "types", "are", "mapped", "."], "sha": "b3092036bfd40d74a082297cace1f678502427c6", "url": "https://github.com/integreat-io/integreat/blob/b3092036bfd40d74a082297cace1f678502427c6/lib/service/mapToService.js#L31-L39", "partition": "test"} +{"repo": "messengerjs/messenger-core", "path": "src/messenger-core.js", "func_name": "processMessengerBody", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Process messages from Facebook Messenger.\n\n@param {object} body _parsed_ JSON HTTP message body.\n@param {function} beforeMiddlewareFn optional function to call before executing\nany plugins.\n@return {boolean} + `true` if the Message was processed\n+ `false` if the body didn't contain\nMessenger messages", "docstring_tokens": ["Process", "messages", "from", "Facebook", "Messenger", "."], "sha": "207117d95aa668f38135378eed8522488dad05f8", "url": "https://github.com/messengerjs/messenger-core/blob/207117d95aa668f38135378eed8522488dad05f8/src/messenger-core.js#L34-L55", "partition": "test"} +{"repo": "base/base-config", "path": "index.js", "func_name": "create", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a function for mapping `app` properties onto the\ngiven `prop` namespace.\n\n@param {String} `prop` The namespace to use\n@param {Object} `argv`\n@return {Object}\n@api public", "docstring_tokens": ["Create", "a", "function", "for", "mapping", "app", "properties", "onto", "the", "given", "prop", "namespace", "."], "sha": "c0be0dd8216c0b4ae1c11c785beee4017f69b411", "url": "https://github.com/base/base-config/blob/c0be0dd8216c0b4ae1c11c785beee4017f69b411/index.js#L30-L67", "partition": "test"} +{"repo": "AndreasMadsen/article", "path": "lib/fase-2/commonality-element.js", "func_name": "ElementMatrix", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Collects features and bind them to the node density", "docstring_tokens": ["Collects", "features", "and", "bind", "them", "to", "the", "node", "density"], "sha": "8cf3777fc9dc72d041214faae1b8d65d37a7d134", "url": "https://github.com/AndreasMadsen/article/blob/8cf3777fc9dc72d041214faae1b8d65d37a7d134/lib/fase-2/commonality-element.js#L19-L25", "partition": "test"} +{"repo": "indrasantosa/node-s3-public-url", "path": "index.js", "func_name": "publicS3URI", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "node-s3-encode-url", "docstring_tokens": ["node", "-", "s3", "-", "encode", "-", "url"], "sha": "e42a09f3e35b79611a2ae9cbb5ecddc9de7804f0", "url": "https://github.com/indrasantosa/node-s3-public-url/blob/e42a09f3e35b79611a2ae9cbb5ecddc9de7804f0/index.js#L5-L22", "partition": "test"} +{"repo": "AndreasMadsen/article", "path": "tools/label/logic.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Save expected file", "docstring_tokens": ["Save", "expected", "file"], "sha": "8cf3777fc9dc72d041214faae1b8d65d37a7d134", "url": "https://github.com/AndreasMadsen/article/blob/8cf3777fc9dc72d041214faae1b8d65d37a7d134/tools/label/logic.js#L94-L103", "partition": "test"} +{"repo": "AndreasMadsen/article", "path": "tools/label/logic.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Save source file", "docstring_tokens": ["Save", "source", "file"], "sha": "8cf3777fc9dc72d041214faae1b8d65d37a7d134", "url": "https://github.com/AndreasMadsen/article/blob/8cf3777fc9dc72d041214faae1b8d65d37a7d134/tools/label/logic.js#L106-L112", "partition": "test"} +{"repo": "AndreasMadsen/article", "path": "tools/label/logic.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Save labeled flag", "docstring_tokens": ["Save", "labeled", "flag"], "sha": "8cf3777fc9dc72d041214faae1b8d65d37a7d134", "url": "https://github.com/AndreasMadsen/article/blob/8cf3777fc9dc72d041214faae1b8d65d37a7d134/tools/label/logic.js#L115-L123", "partition": "test"} +{"repo": "AndreasMadsen/article", "path": "lib/nodes.js", "func_name": "Node", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Node General abstaction between all node types The rule is that this should contain the most obviouse implementation", "docstring_tokens": ["Node", "General", "abstaction", "between", "all", "node", "types", "The", "rule", "is", "that", "this", "should", "contain", "the", "most", "obviouse", "implementation"], "sha": "8cf3777fc9dc72d041214faae1b8d65d37a7d134", "url": "https://github.com/AndreasMadsen/article/blob/8cf3777fc9dc72d041214faae1b8d65d37a7d134/lib/nodes.js#L25-L48", "partition": "test"} +{"repo": "AndreasMadsen/article", "path": "lib/nodes.js", "func_name": "TextNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "TextNode has a parent and a text containter", "docstring_tokens": ["TextNode", "has", "a", "parent", "and", "a", "text", "containter"], "sha": "8cf3777fc9dc72d041214faae1b8d65d37a7d134", "url": "https://github.com/AndreasMadsen/article/blob/8cf3777fc9dc72d041214faae1b8d65d37a7d134/lib/nodes.js#L299-L306", "partition": "test"} +{"repo": "AndreasMadsen/article", "path": "lib/nodes.js", "func_name": "ElementNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "ElementNode has a parent, tagname and attributes", "docstring_tokens": ["ElementNode", "has", "a", "parent", "tagname", "and", "attributes"], "sha": "8cf3777fc9dc72d041214faae1b8d65d37a7d134", "url": "https://github.com/AndreasMadsen/article/blob/8cf3777fc9dc72d041214faae1b8d65d37a7d134/lib/nodes.js#L357-L374", "partition": "test"} +{"repo": "findhit/class", "path": "lib/features/extendable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "extended class with the new prototype", "docstring_tokens": ["extended", "class", "with", "the", "new", "prototype"], "sha": "8db02fcb7c616ca374cafc3eb6e2014945d95157", "url": "https://github.com/findhit/class/blob/8db02fcb7c616ca374cafc3eb6e2014945d95157/lib/features/extendable.js#L8-L25", "partition": "test"} +{"repo": "b44rd/gulp-extract-css", "path": "index.js", "func_name": "distribute", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Distribute content to the cssfiles object", "docstring_tokens": ["Distribute", "content", "to", "the", "cssfiles", "object"], "sha": "56f4d221e9aadbeaefe3c91dedcf694f7ec89413", "url": "https://github.com/b44rd/gulp-extract-css/blob/56f4d221e9aadbeaefe3c91dedcf694f7ec89413/index.js#L31-L35", "partition": "test"} +{"repo": "b44rd/gulp-extract-css", "path": "index.js", "func_name": "detectTakeout", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Detect weather a selector should be extracted or not", "docstring_tokens": ["Detect", "weather", "a", "selector", "should", "be", "extracted", "or", "not"], "sha": "56f4d221e9aadbeaefe3c91dedcf694f7ec89413", "url": "https://github.com/b44rd/gulp-extract-css/blob/56f4d221e9aadbeaefe3c91dedcf694f7ec89413/index.js#L48-L63", "partition": "test"} +{"repo": "azu/hatebu-mydata-parser", "path": "lib/hatebu-mydata-utils.js", "func_name": "parseLineByLine", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "create tuple that\n@param text\n@returns {{bookmarks: string[], lines: string[]}}", "docstring_tokens": ["create", "tuple", "that"], "sha": "964f454a13a754c5b80b6c0143acebb934dffe48", "url": "https://github.com/azu/hatebu-mydata-parser/blob/964f454a13a754c5b80b6c0143acebb934dffe48/lib/hatebu-mydata-utils.js#L25-L32", "partition": "test"} +{"repo": "AndreasMadsen/article", "path": "lib/fase-2/commonality.js", "func_name": "CommonalityInterface", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The exposed API used in all.js", "docstring_tokens": ["The", "exposed", "API", "used", "in", "all", ".", "js"], "sha": "8cf3777fc9dc72d041214faae1b8d65d37a7d134", "url": "https://github.com/AndreasMadsen/article/blob/8cf3777fc9dc72d041214faae1b8d65d37a7d134/lib/fase-2/commonality.js#L8-L14", "partition": "test"} +{"repo": "AndreasMadsen/article", "path": "lib/fase-2/commonality.js", "func_name": "CommanalityMatrix", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Some abstact API for the commanality matrix", "docstring_tokens": ["Some", "abstact", "API", "for", "the", "commanality", "matrix"], "sha": "8cf3777fc9dc72d041214faae1b8d65d37a7d134", "url": "https://github.com/AndreasMadsen/article/blob/8cf3777fc9dc72d041214faae1b8d65d37a7d134/lib/fase-2/commonality.js#L79-L94", "partition": "test"} +{"repo": "AndreasMadsen/article", "path": "lib/fase-2/commonality.js", "func_name": "arrayVector", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extend the rows or the collums", "docstring_tokens": ["Extend", "the", "rows", "or", "the", "collums"], "sha": "8cf3777fc9dc72d041214faae1b8d65d37a7d134", "url": "https://github.com/AndreasMadsen/article/blob/8cf3777fc9dc72d041214faae1b8d65d37a7d134/lib/fase-2/commonality.js#L100-L104", "partition": "test"} +{"repo": "AndreasMadsen/article", "path": "lib/helpers-dom.js", "func_name": "buildAttributeMatcher", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Builds and attribute matching function, complexity is for uncomfirmed performace sake", "docstring_tokens": ["Builds", "and", "attribute", "matching", "function", "complexity", "is", "for", "uncomfirmed", "performace", "sake"], "sha": "8cf3777fc9dc72d041214faae1b8d65d37a7d134", "url": "https://github.com/AndreasMadsen/article/blob/8cf3777fc9dc72d041214faae1b8d65d37a7d134/lib/helpers-dom.js#L60-L109", "partition": "test"} +{"repo": "AndreasMadsen/article", "path": "lib/helpers-dom.js", "func_name": "containerOf", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks if container `a` is a container of `b`", "docstring_tokens": ["Checks", "if", "container", "a", "is", "a", "container", "of", "b"], "sha": "8cf3777fc9dc72d041214faae1b8d65d37a7d134", "url": "https://github.com/AndreasMadsen/article/blob/8cf3777fc9dc72d041214faae1b8d65d37a7d134/lib/helpers-dom.js#L120-L125", "partition": "test"} +{"repo": "AndreasMadsen/article", "path": "lib/helpers-dom.js", "func_name": "commonParent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find the common parent of a and b", "docstring_tokens": ["Find", "the", "common", "parent", "of", "a", "and", "b"], "sha": "8cf3777fc9dc72d041214faae1b8d65d37a7d134", "url": "https://github.com/AndreasMadsen/article/blob/8cf3777fc9dc72d041214faae1b8d65d37a7d134/lib/helpers-dom.js#L129-L143", "partition": "test"} +{"repo": "AndreasMadsen/article", "path": "lib/helpers-dom.js", "func_name": "styleParser", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse style attribute intro object", "docstring_tokens": ["Parse", "style", "attribute", "intro", "object"], "sha": "8cf3777fc9dc72d041214faae1b8d65d37a7d134", "url": "https://github.com/AndreasMadsen/article/blob/8cf3777fc9dc72d041214faae1b8d65d37a7d134/lib/helpers-dom.js#L147-L156", "partition": "test"} +{"repo": "AndreasMadsen/article", "path": "lib/helpers-dom.js", "func_name": "treeDistance", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculate the tree distance between a and b", "docstring_tokens": ["Calculate", "the", "tree", "distance", "between", "a", "and", "b"], "sha": "8cf3777fc9dc72d041214faae1b8d65d37a7d134", "url": "https://github.com/AndreasMadsen/article/blob/8cf3777fc9dc72d041214faae1b8d65d37a7d134/lib/helpers-dom.js#L160-L196", "partition": "test"} +{"repo": "jonschlinkert/dry", "path": "lib/lexer.js", "func_name": "Lexer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a new `Lexer` for the given `file` and `options`.\n@param {object} `file`\n@param {object} `options`", "docstring_tokens": ["Create", "a", "new", "Lexer", "for", "the", "given", "file", "and", "options", "."], "sha": "c841f768d6dbc15a1018ca6927781745e7c83726", "url": "https://github.com/jonschlinkert/dry/blob/c841f768d6dbc15a1018ca6927781745e7c83726/lib/lexer.js#L14-L44", "partition": "test"} +{"repo": "jonschlinkert/dry", "path": "lib/lexer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create default delimiters and tags", "docstring_tokens": ["Create", "default", "delimiters", "and", "tags"], "sha": "c841f768d6dbc15a1018ca6927781745e7c83726", "url": "https://github.com/jonschlinkert/dry/blob/c841f768d6dbc15a1018ca6927781745e7c83726/lib/lexer.js#L57-L135", "partition": "test"} +{"repo": "jonschlinkert/dry", "path": "lib/lexer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set an error message with the current line number and column.\n@param {String} `msg` Message to use in the Error.", "docstring_tokens": ["Set", "an", "error", "message", "with", "the", "current", "line", "number", "and", "column", "."], "sha": "c841f768d6dbc15a1018ca6927781745e7c83726", "url": "https://github.com/jonschlinkert/dry/blob/c841f768d6dbc15a1018ca6927781745e7c83726/lib/lexer.js#L142-L160", "partition": "test"} +{"repo": "jonschlinkert/dry", "path": "lib/lexer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a lexer for the given variable `type`.\n@param {String} `type`\n@return {Function}", "docstring_tokens": ["Create", "a", "lexer", "for", "the", "given", "variable", "type", "."], "sha": "c841f768d6dbc15a1018ca6927781745e7c83726", "url": "https://github.com/jonschlinkert/dry/blob/c841f768d6dbc15a1018ca6927781745e7c83726/lib/lexer.js#L217-L263", "partition": "test"} +{"repo": "jonschlinkert/dry", "path": "lib/lexer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a tag lexer for the given `type`.\n@param {String} `type`\n@return {Function}", "docstring_tokens": ["Create", "a", "tag", "lexer", "for", "the", "given", "type", "."], "sha": "c841f768d6dbc15a1018ca6927781745e7c83726", "url": "https://github.com/jonschlinkert/dry/blob/c841f768d6dbc15a1018ca6927781745e7c83726/lib/lexer.js#L271-L299", "partition": "test"} +{"repo": "jonschlinkert/dry", "path": "lib/lexer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Push AST node `type` onto `parent.nodes`\n@param {String} `type`\n@param {String} `name`\n@param {String} `val`\n@param {Function} `pos`", "docstring_tokens": ["Push", "AST", "node", "type", "onto", "parent", ".", "nodes"], "sha": "c841f768d6dbc15a1018ca6927781745e7c83726", "url": "https://github.com/jonschlinkert/dry/blob/c841f768d6dbc15a1018ca6927781745e7c83726/lib/lexer.js#L309-L325", "partition": "test"} +{"repo": "jonschlinkert/dry", "path": "lib/lexer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create an opening tag lexer for block `name`.\n@param {String} `name`\n@return {Function}", "docstring_tokens": ["Create", "an", "opening", "tag", "lexer", "for", "block", "name", "."], "sha": "c841f768d6dbc15a1018ca6927781745e7c83726", "url": "https://github.com/jonschlinkert/dry/blob/c841f768d6dbc15a1018ca6927781745e7c83726/lib/lexer.js#L333-L393", "partition": "test"} +{"repo": "jonschlinkert/dry", "path": "lib/lexer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a closing tag lexer for block `name`.\n@param {String} `name`\n@return {Function}", "docstring_tokens": ["Create", "a", "closing", "tag", "lexer", "for", "block", "name", "."], "sha": "c841f768d6dbc15a1018ca6927781745e7c83726", "url": "https://github.com/jonschlinkert/dry/blob/c841f768d6dbc15a1018ca6927781745e7c83726/lib/lexer.js#L401-L453", "partition": "test"} +{"repo": "jonschlinkert/dry", "path": "lib/lexer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a block lexer with opening and closing tags for the given `name`.\n@param {String} `name`\n@return {Function}", "docstring_tokens": ["Create", "a", "block", "lexer", "with", "opening", "and", "closing", "tags", "for", "the", "given", "name", "."], "sha": "c841f768d6dbc15a1018ca6927781745e7c83726", "url": "https://github.com/jonschlinkert/dry/blob/c841f768d6dbc15a1018ca6927781745e7c83726/lib/lexer.js#L461-L466", "partition": "test"} +{"repo": "jonschlinkert/dry", "path": "lib/lexer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Unshift node `prop` onto the AST", "docstring_tokens": ["Unshift", "node", "prop", "onto", "the", "AST"], "sha": "c841f768d6dbc15a1018ca6927781745e7c83726", "url": "https://github.com/jonschlinkert/dry/blob/c841f768d6dbc15a1018ca6927781745e7c83726/lib/lexer.js#L472-L474", "partition": "test"} +{"repo": "jonschlinkert/dry", "path": "lib/lexer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Update lineno and column based on `str`.", "docstring_tokens": ["Update", "lineno", "and", "column", "based", "on", "str", "."], "sha": "c841f768d6dbc15a1018ca6927781745e7c83726", "url": "https://github.com/jonschlinkert/dry/blob/c841f768d6dbc15a1018ca6927781745e7c83726/lib/lexer.js#L509-L516", "partition": "test"} +{"repo": "jonschlinkert/dry", "path": "lib/lexer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Run lexers to advance the curson position", "docstring_tokens": ["Run", "lexers", "to", "advance", "the", "curson", "position"], "sha": "c841f768d6dbc15a1018ca6927781745e7c83726", "url": "https://github.com/jonschlinkert/dry/blob/c841f768d6dbc15a1018ca6927781745e7c83726/lib/lexer.js#L536-L545", "partition": "test"} +{"repo": "jonschlinkert/dry", "path": "lib/lexer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the next AST token", "docstring_tokens": ["Get", "the", "next", "AST", "token"], "sha": "c841f768d6dbc15a1018ca6927781745e7c83726", "url": "https://github.com/jonschlinkert/dry/blob/c841f768d6dbc15a1018ca6927781745e7c83726/lib/lexer.js#L551-L559", "partition": "test"} +{"repo": "jonschlinkert/dry", "path": "lib/lexer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Tokenize the given string.\n@return {Array}", "docstring_tokens": ["Tokenize", "the", "given", "string", "."], "sha": "c841f768d6dbc15a1018ca6927781745e7c83726", "url": "https://github.com/jonschlinkert/dry/blob/c841f768d6dbc15a1018ca6927781745e7c83726/lib/lexer.js#L566-L572", "partition": "test"} +{"repo": "ryanpardieck/grunt-notify-chrome", "path": "lib/hooks/notify-fail.js", "func_name": "notifyHook", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Hook for showing the automatic message\n@param e Exception or message\n@returns {*}", "docstring_tokens": ["Hook", "for", "showing", "the", "automatic", "message"], "sha": "6e8d5a95e5f081b7356f8e146b7aa2005e68e3fc", "url": "https://github.com/ryanpardieck/grunt-notify-chrome/blob/6e8d5a95e5f081b7356f8e146b7aa2005e68e3fc/lib/hooks/notify-fail.js#L69-L108", "partition": "test"} +{"repo": "luizbills/fixed-game-loop", "path": "src/fixed-game-loop.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "pauses the timer", "docstring_tokens": ["pauses", "the", "timer"], "sha": "b235cf7f096a5883ac73923212dd535aa1cfaafd", "url": "https://github.com/luizbills/fixed-game-loop/blob/b235cf7f096a5883ac73923212dd535aa1cfaafd/src/fixed-game-loop.js#L44-L56", "partition": "test"} +{"repo": "luizbills/fixed-game-loop", "path": "src/fixed-game-loop.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "resumes the timer", "docstring_tokens": ["resumes", "the", "timer"], "sha": "b235cf7f096a5883ac73923212dd535aa1cfaafd", "url": "https://github.com/luizbills/fixed-game-loop/blob/b235cf7f096a5883ac73923212dd535aa1cfaafd/src/fixed-game-loop.js#L59-L75", "partition": "test"} +{"repo": "nkzawa/mktmpdir", "path": "lib/index.js", "func_name": "mktmpdir", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a temporary directory.\n\nThe directory is created with 0700 permission.\nApplication should not change the permission to make the temporary directory accessible from other users.\n\nThe prefix and suffix of the name of the directory is specified by\nthe optional first argument, prefixSuffix.\n- If it is not specified or null, \"d\" is used as the prefix and no suffix is used.\n- If it is a string, it is used as the prefix and no suffix is used.\n- If it is an array, first element is used as the prefix and second element is used as a suffix.\n\nmktmpdir(function(err, dir) { dir is \".../d...\" });\nmktmpdir('foo', function(err, dir) { dir is \".../foo...\" });\nmktmpdir(['foo', 'bar'], function(err, dir) { dir is \".../foo...bar\" });\n\nThe directory is created under os.tmpdir() or\nthe optional second argument tmpdir if non-null value is given.\n\nmktmpdir(function(err, dir) { dir is os.tmpdir() + \"/d...\" });\nmktmpdir(null, '/var/tmp', function(err, dir) { dir is \"/var/tmp/d...\" });\n\nIf a callback is invoked,\nthe path of the directory and its contents are removed.\n\nmktmpdir(function(err, dir, done) {\nif (err) throw err;\n// use the directory...\nfs.open(dir + '/foo', 'w', function(err, fd) {\ndone(err);\n});\n}, function(err) {\n// the directory has been removed.\n});\n\nIf a callback is not invoked, mktmpdir doesn't remove the directory.\n\nmktmpdir(function(err, dir) {\nif (err) throw err;\n// use the directory...\nfs.open(dir + '/foo', 'w', function(err, fd) {\n// remove the directory.\nexec('rm -rf ' + dir);\n});\n});\n\n@param {String|Array} prefix, or an array including prefix and suffix.\n@param {String} base tmpdir\n@param {Function} callback\n@param {Function} onend\n@api public", "docstring_tokens": ["Creates", "a", "temporary", "directory", "."], "sha": "7881c800df7c8685a2f20c7b03e4b0240d408ee5", "url": "https://github.com/nkzawa/mktmpdir/blob/7881c800df7c8685a2f20c7b03e4b0240d408ee5/lib/index.js#L61-L91", "partition": "test"} +{"repo": "justinfreitag/node-redis-protocol", "path": "index.js", "func_name": "copyString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is not valid for simpleStrings", "docstring_tokens": ["This", "is", "not", "valid", "for", "simpleStrings"], "sha": "0c3ede827aa7ab07a673cc2ebd38703c8b3d9d3d", "url": "https://github.com/justinfreitag/node-redis-protocol/blob/0c3ede827aa7ab07a673cc2ebd38703c8b3d9d3d/index.js#L8-L18", "partition": "test"} +{"repo": "justinfreitag/node-redis-protocol", "path": "index.js", "func_name": "parseSimpleString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is not UTF-8 compliant", "docstring_tokens": ["This", "is", "not", "UTF", "-", "8", "compliant"], "sha": "0c3ede827aa7ab07a673cc2ebd38703c8b3d9d3d", "url": "https://github.com/justinfreitag/node-redis-protocol/blob/0c3ede827aa7ab07a673cc2ebd38703c8b3d9d3d/index.js#L21-L40", "partition": "test"} +{"repo": "r37r0m0d3l/fallback-local-storage", "path": "webpack.config.js", "func_name": "getBaseConfig", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Build base config\n@param {Boolean} isProd [description]\n@return {[type]} [description]", "docstring_tokens": ["Build", "base", "config"], "sha": "64696dd32d050cfedd2864f30bf2bb72d56ab8b9", "url": "https://github.com/r37r0m0d3l/fallback-local-storage/blob/64696dd32d050cfedd2864f30bf2bb72d56ab8b9/webpack.config.js#L66-L135", "partition": "test"} +{"repo": "ryanpardieck/grunt-notify-chrome", "path": "lib/notify-lib.js", "func_name": "postNotification", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Public function to notify\n@param options - options.message is the only required value. title is recommended. subtitle is going overboard.\n@param [cb] - optional callback. function(err, stdout, stderr)", "docstring_tokens": ["Public", "function", "to", "notify"], "sha": "6e8d5a95e5f081b7356f8e146b7aa2005e68e3fc", "url": "https://github.com/ryanpardieck/grunt-notify-chrome/blob/6e8d5a95e5f081b7356f8e146b7aa2005e68e3fc/lib/notify-lib.js#L75-L116", "partition": "test"} +{"repo": "colinskow/superlogin", "path": "lib/user.js", "func_name": "generateUsername", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds numbers to a base name until it finds a unique database key", "docstring_tokens": ["Adds", "numbers", "to", "a", "base", "name", "until", "it", "finds", "a", "unique", "database", "key"], "sha": "8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad", "url": "https://github.com/colinskow/superlogin/blob/8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad/lib/user.js#L1236-L1260", "partition": "test"} +{"repo": "colinskow/superlogin", "path": "lib/oauth.js", "func_name": "linkSuccess", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called after an account has been succesfully linked", "docstring_tokens": ["Called", "after", "an", "account", "has", "been", "succesfully", "linked"], "sha": "8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad", "url": "https://github.com/colinskow/superlogin/blob/8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad/lib/oauth.js#L53-L68", "partition": "test"} +{"repo": "colinskow/superlogin", "path": "lib/oauth.js", "func_name": "linkTokenSuccess", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called after an account has been succesfully linked using access_token provider", "docstring_tokens": ["Called", "after", "an", "account", "has", "been", "succesfully", "linked", "using", "access_token", "provider"], "sha": "8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad", "url": "https://github.com/colinskow/superlogin/blob/8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad/lib/oauth.js#L71-L78", "partition": "test"} +{"repo": "colinskow/superlogin", "path": "lib/oauth.js", "func_name": "oauthErrorHandler", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles errors if authentication fails", "docstring_tokens": ["Handles", "errors", "if", "authentication", "fails"], "sha": "8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad", "url": "https://github.com/colinskow/superlogin/blob/8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad/lib/oauth.js#L81-L94", "partition": "test"} +{"repo": "colinskow/superlogin", "path": "lib/oauth.js", "func_name": "tokenAuthErrorHandler", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles errors if authentication from access_token provider fails", "docstring_tokens": ["Handles", "errors", "if", "authentication", "from", "access_token", "provider", "fails"], "sha": "8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad", "url": "https://github.com/colinskow/superlogin/blob/8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad/lib/oauth.js#L97-L110", "partition": "test"} +{"repo": "colinskow/superlogin", "path": "lib/oauth.js", "func_name": "registerProvider", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Framework to register OAuth providers with passport", "docstring_tokens": ["Framework", "to", "register", "OAuth", "providers", "with", "passport"], "sha": "8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad", "url": "https://github.com/colinskow/superlogin/blob/8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad/lib/oauth.js#L113-L130", "partition": "test"} +{"repo": "colinskow/superlogin", "path": "lib/oauth.js", "func_name": "registerOAuth2", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A shortcut to register OAuth2 providers that follow the exact accessToken, refreshToken pattern.", "docstring_tokens": ["A", "shortcut", "to", "register", "OAuth2", "providers", "that", "follow", "the", "exact", "accessToken", "refreshToken", "pattern", "."], "sha": "8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad", "url": "https://github.com/colinskow/superlogin/blob/8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad/lib/oauth.js#L133-L142", "partition": "test"} +{"repo": "colinskow/superlogin", "path": "lib/oauth.js", "func_name": "registerTokenProvider", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Registers a provider that accepts an access_token directly from the client, skipping the popup window and callback This is for supporting Cordova, native IOS and Android apps, as well as other devices", "docstring_tokens": ["Registers", "a", "provider", "that", "accepts", "an", "access_token", "directly", "from", "the", "client", "skipping", "the", "popup", "window", "and", "callback", "This", "is", "for", "supporting", "Cordova", "native", "IOS", "and", "Android", "apps", "as", "well", "as", "other", "devices"], "sha": "8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad", "url": "https://github.com/colinskow/superlogin/blob/8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad/lib/oauth.js#L146-L166", "partition": "test"} +{"repo": "colinskow/superlogin", "path": "lib/oauth.js", "func_name": "authHandler", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is called after a user has successfully authenticated with a provider If a user is authenticated with a bearer token we will link an account, otherwise log in auth is an object containing 'access_token' and optionally 'refresh_token'", "docstring_tokens": ["This", "is", "called", "after", "a", "user", "has", "successfully", "authenticated", "with", "a", "provider", "If", "a", "user", "is", "authenticated", "with", "a", "bearer", "token", "we", "will", "link", "an", "account", "otherwise", "log", "in", "auth", "is", "an", "object", "containing", "access_token", "and", "optionally", "refresh_token"], "sha": "8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad", "url": "https://github.com/colinskow/superlogin/blob/8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad/lib/oauth.js#L171-L177", "partition": "test"} +{"repo": "colinskow/superlogin", "path": "lib/oauth.js", "func_name": "passportCallback", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Configures the passport.authenticate for the given provider, passing in options Operation is 'login' or 'link'", "docstring_tokens": ["Configures", "the", "passport", ".", "authenticate", "for", "the", "given", "provider", "passing", "in", "options", "Operation", "is", "login", "or", "link"], "sha": "8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad", "url": "https://github.com/colinskow/superlogin/blob/8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad/lib/oauth.js#L181-L195", "partition": "test"} +{"repo": "colinskow/superlogin", "path": "lib/oauth.js", "func_name": "passportTokenCallback", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Configures the passport.authenticate for the given access_token provider, passing in options", "docstring_tokens": ["Configures", "the", "passport", ".", "authenticate", "for", "the", "given", "access_token", "provider", "passing", "in", "options"], "sha": "8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad", "url": "https://github.com/colinskow/superlogin/blob/8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad/lib/oauth.js#L198-L204", "partition": "test"} +{"repo": "colinskow/superlogin", "path": "lib/oauth.js", "func_name": "getProvider", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the provider name from a callback path", "docstring_tokens": ["Gets", "the", "provider", "name", "from", "a", "callback", "path"], "sha": "8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad", "url": "https://github.com/colinskow/superlogin/blob/8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad/lib/oauth.js#L226-L232", "partition": "test"} +{"repo": "colinskow/superlogin", "path": "lib/oauth.js", "func_name": "getProviderToken", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the provider name from a callback path for access_token strategy", "docstring_tokens": ["Gets", "the", "provider", "name", "from", "a", "callback", "path", "for", "access_token", "strategy"], "sha": "8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad", "url": "https://github.com/colinskow/superlogin/blob/8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad/lib/oauth.js#L235-L241", "partition": "test"} +{"repo": "colinskow/superlogin", "path": "lib/middleware.js", "func_name": "requireRole", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Requires that the user have the specified role", "docstring_tokens": ["Requires", "that", "the", "user", "have", "the", "specified", "role"], "sha": "8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad", "url": "https://github.com/colinskow/superlogin/blob/8e7c7c1a77c1f5303b74f941208349e3a6e0c9ad/lib/middleware.js#L23-L36", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "examples/Leaflet.PolarMap/geosearch/demo.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wire up rotation controls", "docstring_tokens": ["Wire", "up", "rotation", "controls"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/examples/Leaflet.PolarMap/geosearch/demo.js#L40-L48", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "src/map/Map.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Use default CRS classes for common codes, fallback to custom for all other codes.", "docstring_tokens": ["Use", "default", "CRS", "classes", "for", "common", "codes", "fallback", "to", "custom", "for", "all", "other", "codes", "."], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/src/map/Map.js#L104-L115", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "src/map/Map.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This recurses through all the map's layers to update layer positions after their positions moved.", "docstring_tokens": ["This", "recurses", "through", "all", "the", "map", "s", "layers", "to", "update", "layer", "positions", "after", "their", "positions", "moved", "."], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/src/map/Map.js#L138-L154", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "js/leaflet.markercluster.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Takes an array of markers and adds them in bulk", "docstring_tokens": ["Takes", "an", "array", "of", "markers", "and", "adds", "them", "in", "bulk"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/js/leaflet.markercluster.js#L165-L251", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "js/leaflet.markercluster.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Takes an array of markers and removes them in bulk", "docstring_tokens": ["Takes", "an", "array", "of", "markers", "and", "removes", "them", "in", "bulk"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/js/leaflet.markercluster.js#L254-L296", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "js/leaflet.markercluster.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Override FeatureGroup.getBounds as it doesn't work", "docstring_tokens": ["Override", "FeatureGroup", ".", "getBounds", "as", "it", "doesn", "t", "work"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/js/leaflet.markercluster.js#L330-L344", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "js/leaflet.markercluster.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Overrides LayerGroup.eachLayer", "docstring_tokens": ["Overrides", "LayerGroup", ".", "eachLayer"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/js/leaflet.markercluster.js#L347-L360", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "js/leaflet.markercluster.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if the given layer is in this MarkerClusterGroup", "docstring_tokens": ["Returns", "true", "if", "the", "given", "layer", "is", "in", "this", "MarkerClusterGroup"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/js/leaflet.markercluster.js#L385-L406", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "js/leaflet.markercluster.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Overrides FeatureGroup.onAdd", "docstring_tokens": ["Overrides", "FeatureGroup", ".", "onAdd"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/js/leaflet.markercluster.js#L456-L494", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "js/leaflet.markercluster.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Overrides FeatureGroup.onRemove", "docstring_tokens": ["Overrides", "FeatureGroup", ".", "onRemove"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/js/leaflet.markercluster.js#L497-L520", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "js/leaflet.markercluster.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove the given object from the given array", "docstring_tokens": ["Remove", "the", "given", "object", "from", "the", "given", "array"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/js/leaflet.markercluster.js#L531-L538", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "js/leaflet.markercluster.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Shared animation code", "docstring_tokens": ["Shared", "animation", "code"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/js/leaflet.markercluster.js#L895-L907", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "js/leaflet.markercluster.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recursively retrieve all child markers of this cluster", "docstring_tokens": ["Recursively", "retrieve", "all", "child", "markers", "of", "this", "cluster"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/js/leaflet.markercluster.js#L1121-L1133", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "js/leaflet.markercluster.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Zoom to the minimum of showing all of the child markers, or the extents of this cluster", "docstring_tokens": ["Zoom", "to", "the", "minimum", "of", "showing", "all", "of", "the", "child", "markers", "or", "the", "extents", "of", "this", "cluster"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/js/leaflet.markercluster.js#L1141-L1166", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "js/leaflet.markercluster.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Expand our bounds and tell our parent to", "docstring_tokens": ["Expand", "our", "bounds", "and", "tell", "our", "parent", "to"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/js/leaflet.markercluster.js#L1218-L1245", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "js/leaflet.markercluster.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "show spiral instead of circle from this marker count upwards. 0 -> always spiral; Infinity -> always circle", "docstring_tokens": ["show", "spiral", "instead", "of", "circle", "from", "this", "marker", "count", "upwards", ".", "0", "-", ">", "always", "spiral", ";", "Infinity", "-", ">", "always", "circle"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/js/leaflet.markercluster.js#L1748-L1772", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "js/leaflet.markercluster.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Non Animated versions of everything", "docstring_tokens": ["Non", "Animated", "versions", "of", "everything"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/js/leaflet.markercluster.js#L1852-L1877", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "js/leaflet.markercluster.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If the given layer is currently being spiderfied then we unspiderfy it so it isn't on the map anymore etc", "docstring_tokens": ["If", "the", "given", "layer", "is", "currently", "being", "spiderfied", "then", "we", "unspiderfy", "it", "so", "it", "isn", "t", "on", "the", "map", "anymore", "etc"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/js/leaflet.markercluster.js#L2148-L2159", "partition": "test"} +{"repo": "GeoSensorWebLab/polarmap.js", "path": "examples/PolarMap/alignment/demo.js", "func_name": "addToMap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Have to create a separate marker for each map else weirdness happens", "docstring_tokens": ["Have", "to", "create", "a", "separate", "marker", "for", "each", "map", "else", "weirdness", "happens"], "sha": "fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b", "url": "https://github.com/GeoSensorWebLab/polarmap.js/blob/fa1e87d0082f5d6ae0981b0c5dd80ed18e7f611b/examples/PolarMap/alignment/demo.js#L35-L38", "partition": "test"} +{"repo": "blakeembrey/metalsmith-pagination", "path": "metalsmith-pagination.js", "func_name": "interpolate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Interpolate the page path with pagination variables.\n\n@param {String} path\n@param {Object} data\n@return {String}", "docstring_tokens": ["Interpolate", "the", "page", "path", "with", "pagination", "variables", "."], "sha": "e9a8acbf0aa7300a293159e9666c1f820fbc6249", "url": "https://github.com/blakeembrey/metalsmith-pagination/blob/e9a8acbf0aa7300a293159e9666c1f820fbc6249/metalsmith-pagination.js#L161-L165", "partition": "test"} +{"repo": "blakeembrey/metalsmith-pagination", "path": "metalsmith-pagination.js", "func_name": "createPagesUtility", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a \"get pages\" utility for people to use when rendering.\n\n@param {Array} pages\n@param {number} index\n@return {Function}", "docstring_tokens": ["Create", "a", "get", "pages", "utility", "for", "people", "to", "use", "when", "rendering", "."], "sha": "e9a8acbf0aa7300a293159e9666c1f820fbc6249", "url": "https://github.com/blakeembrey/metalsmith-pagination/blob/e9a8acbf0aa7300a293159e9666c1f820fbc6249/metalsmith-pagination.js#L186-L201", "partition": "test"} +{"repo": "rniemeyer/knockout-jqAutocomplete", "path": "spec/knockout-jqAutocomplete.spec.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "helper engine that can use a template from a string", "docstring_tokens": ["helper", "engine", "that", "can", "use", "a", "template", "from", "a", "string"], "sha": "5cfce82420b3eaf6c7302582c3d5a6fa338c9839", "url": "https://github.com/rniemeyer/knockout-jqAutocomplete/blob/5cfce82420b3eaf6c7302582c3d5a6fa338c9839/spec/knockout-jqAutocomplete.spec.js#L6-L28", "partition": "test"} +{"repo": "scttnlsn/monq", "path": "lib/job.js", "func_name": "Job", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Job retry specification\n@typedef {Object} Job~Attempts\n@property {string} strategy - Name of {@link Worker~strategyCallback} to use on retry\n@property {number} count - total number of attempts so far\n@property {number} delay - a delay constant for use in determining a delay. In default linear strategy, this will be the delay between attempts\n \n@constructor\n@param {string} collection - The collection to save the job to\n@param {Object} data - The Job data", "docstring_tokens": ["Job", "retry", "specification"], "sha": "3067be74e5f26c0fbfecaeaf32a0250febafa1a6", "url": "https://github.com/scttnlsn/monq/blob/3067be74e5f26c0fbfecaeaf32a0250febafa1a6/lib/job.js#L19-L29", "partition": "test"} +{"repo": "scttnlsn/monq", "path": "lib/worker.js", "func_name": "Worker", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Options for a new worker\n@typedef {Object} Worker~Options\n@property {Number} interval - the polling interval for the worker. Note: The worker will process jobs, one at a time, as fast as possible while queues have waiting jobs\n@property {Worker~Strategies} strategies - {@link Worker~Strategies} for retrying jobs\n@property {Worker~Callbacks} callbacks - Map of {@link Worker~Callback} for processing jobs\n@property {Number} minPriority - The lowest job priority the worker will process\n \n@constructor\n@param {string[]} queues - an array of queue names that this worker will listen for\n@param {Worker~Options} options - {@link Worker~Options} Options object", "docstring_tokens": ["Options", "for", "a", "new", "worker"], "sha": "3067be74e5f26c0fbfecaeaf32a0250febafa1a6", "url": "https://github.com/scttnlsn/monq/blob/3067be74e5f26c0fbfecaeaf32a0250febafa1a6/lib/worker.js#L21-L39", "partition": "test"} +{"repo": "mpangrazzi/html5-uploader", "path": "lib/index.js", "func_name": "handleDragEvents", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "generic drag event handler", "docstring_tokens": ["generic", "drag", "event", "handler"], "sha": "7c64058e5441f6997938423872a5fb61adad9b13", "url": "https://github.com/mpangrazzi/html5-uploader/blob/7c64058e5441f6997938423872a5fb61adad9b13/lib/index.js#L130-L134", "partition": "test"} +{"repo": "eriwen/smap.js", "path": "smap-shim.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "More reliable indexOf, courtesy of @WebReflection", "docstring_tokens": ["More", "reliable", "indexOf", "courtesy", "of"], "sha": "6b7ceae31fee1b94c1b279b0effc607067b63477", "url": "https://github.com/eriwen/smap.js/blob/6b7ceae31fee1b94c1b279b0effc607067b63477/smap-shim.js#L23-L30", "partition": "test"} +{"repo": "danielstjules/toragent", "path": "lib/tor.js", "func_name": "Tor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A wrapper for the tor process containing its ChildProcess, port number\nand data directory.\n\n@param {ChildProcess} child\n@param {int} port\n@param {string} dir", "docstring_tokens": ["A", "wrapper", "for", "the", "tor", "process", "containing", "its", "ChildProcess", "port", "number", "and", "data", "directory", "."], "sha": "5ff30591d788620c00acd05c302ff3dd86606aa3", "url": "https://github.com/danielstjules/toragent/blob/5ff30591d788620c00acd05c302ff3dd86606aa3/lib/tor.js#L12-L16", "partition": "test"} +{"repo": "rrrene/inchjs", "path": "lib/docs/retriever.js", "func_name": "getIncluded", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an Array containing the included locations.", "docstring_tokens": ["Returns", "an", "Array", "containing", "the", "included", "locations", "."], "sha": "453b4dac7a75707afc217fbacdea501179e0e5a4", "url": "https://github.com/rrrene/inchjs/blob/453b4dac7a75707afc217fbacdea501179e0e5a4/lib/docs/retriever.js#L20-L24", "partition": "test"} +{"repo": "rrrene/inchjs", "path": "lib/docs/retriever.js", "func_name": "getDefaultArgs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an Array of default paths.", "docstring_tokens": ["Returns", "an", "Array", "of", "default", "paths", "."], "sha": "453b4dac7a75707afc217fbacdea501179e0e5a4", "url": "https://github.com/rrrene/inchjs/blob/453b4dac7a75707afc217fbacdea501179e0e5a4/lib/docs/retriever.js#L29-L35", "partition": "test"} +{"repo": "rrrene/inchjs", "path": "lib/docs/retriever.js", "func_name": "getPackageJsonArgs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks package.json for possible paths", "docstring_tokens": ["Checks", "package", ".", "json", "for", "possible", "paths"], "sha": "453b4dac7a75707afc217fbacdea501179e0e5a4", "url": "https://github.com/rrrene/inchjs/blob/453b4dac7a75707afc217fbacdea501179e0e5a4/lib/docs/retriever.js#L40-L46", "partition": "test"} +{"repo": "rrrene/inchjs", "path": "lib/docs/retriever.js", "func_name": "getBowerJsonArgs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks bower.json for possible paths", "docstring_tokens": ["Checks", "bower", ".", "json", "for", "possible", "paths"], "sha": "453b4dac7a75707afc217fbacdea501179e0e5a4", "url": "https://github.com/rrrene/inchjs/blob/453b4dac7a75707afc217fbacdea501179e0e5a4/lib/docs/retriever.js#L51-L56", "partition": "test"} +{"repo": "rrrene/inchjs", "path": "lib/docs/retriever.js", "func_name": "getMainFieldAsArray", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an Array of the files mentioned in a 'main' field\nIf the value is noted without '.js' at the end, it is appended.", "docstring_tokens": ["Returns", "an", "Array", "of", "the", "files", "mentioned", "in", "a", "main", "field", "If", "the", "value", "is", "noted", "without", ".", "js", "at", "the", "end", "it", "is", "appended", "."], "sha": "453b4dac7a75707afc217fbacdea501179e0e5a4", "url": "https://github.com/rrrene/inchjs/blob/453b4dac7a75707afc217fbacdea501179e0e5a4/lib/docs/retriever.js#L62-L74", "partition": "test"} +{"repo": "danielstjules/toragent", "path": "lib/agent.js", "func_name": "TorAgent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "An HTTP Agent for proxying requests through Tor using SOCKS5.\n\n@param {object} opts", "docstring_tokens": ["An", "HTTP", "Agent", "for", "proxying", "requests", "through", "Tor", "using", "SOCKS5", "."], "sha": "5ff30591d788620c00acd05c302ff3dd86606aa3", "url": "https://github.com/danielstjules/toragent/blob/5ff30591d788620c00acd05c302ff3dd86606aa3/lib/agent.js#L15-L33", "partition": "test"} +{"repo": "rrrene/inchjs", "path": "lib/inch.js", "func_name": "run", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Runs a local version of Inch.", "docstring_tokens": ["Runs", "a", "local", "version", "of", "Inch", "."], "sha": "453b4dac7a75707afc217fbacdea501179e0e5a4", "url": "https://github.com/rrrene/inchjs/blob/453b4dac7a75707afc217fbacdea501179e0e5a4/lib/inch.js#L18-L25", "partition": "test"} +{"repo": "sebleedelisle/rpi-led-control", "path": "rpi-led-control.js", "func_name": "shutdown", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "shutdown puts it into power saving sleep mode. call with false to wake it up.", "docstring_tokens": ["shutdown", "puts", "it", "into", "power", "saving", "sleep", "mode", ".", "call", "with", "false", "to", "wake", "it", "up", "."], "sha": "4214ebc13f72228c0a66032a1aab0e43d56c58cd", "url": "https://github.com/sebleedelisle/rpi-led-control/blob/4214ebc13f72228c0a66032a1aab0e43d56c58cd/rpi-led-control.js#L134-L142", "partition": "test"} +{"repo": "sebleedelisle/rpi-led-control", "path": "rpi-led-control.js", "func_name": "setScanLimit", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "sets the number of pixels per row, pretty much always 8 for most devices.", "docstring_tokens": ["sets", "the", "number", "of", "pixels", "per", "row", "pretty", "much", "always", "8", "for", "most", "devices", "."], "sha": "4214ebc13f72228c0a66032a1aab0e43d56c58cd", "url": "https://github.com/sebleedelisle/rpi-led-control/blob/4214ebc13f72228c0a66032a1aab0e43d56c58cd/rpi-led-control.js#L148-L155", "partition": "test"} +{"repo": "sebleedelisle/rpi-led-control", "path": "rpi-led-control.js", "func_name": "setBrightness", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "sets the brightness of the LEDs, 0 to 15", "docstring_tokens": ["sets", "the", "brightness", "of", "the", "LEDs", "0", "to", "15"], "sha": "4214ebc13f72228c0a66032a1aab0e43d56c58cd", "url": "https://github.com/sebleedelisle/rpi-led-control/blob/4214ebc13f72228c0a66032a1aab0e43d56c58cd/rpi-led-control.js#L160-L169", "partition": "test"} +{"repo": "sebleedelisle/rpi-led-control", "path": "rpi-led-control.js", "func_name": "clearDisplay", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "clears the entire display", "docstring_tokens": ["clears", "the", "entire", "display"], "sha": "4214ebc13f72228c0a66032a1aab0e43d56c58cd", "url": "https://github.com/sebleedelisle/rpi-led-control/blob/4214ebc13f72228c0a66032a1aab0e43d56c58cd/rpi-led-control.js#L175-L186", "partition": "test"} +{"repo": "sebleedelisle/rpi-led-control", "path": "rpi-led-control.js", "func_name": "showNumber", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "pos is passed in as 0 to 7, 0 on the left, 7 on the right", "docstring_tokens": ["pos", "is", "passed", "in", "as", "0", "to", "7", "0", "on", "the", "left", "7", "on", "the", "right"], "sha": "4214ebc13f72228c0a66032a1aab0e43d56c58cd", "url": "https://github.com/sebleedelisle/rpi-led-control/blob/4214ebc13f72228c0a66032a1aab0e43d56c58cd/rpi-led-control.js#L244-L282", "partition": "test"} +{"repo": "yamadapc/jsdoctest", "path": "lib/get-example-code.js", "func_name": "getExampleCode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compiles down an `example`. Async examples call an imaginary `done` function\nonce they're done.\n\n@param {Object} comment\n@param {String} comment.testCase\n@param {String} comment.expectedResult\n@param {Boolean} comment.isAsync\n@return {String}", "docstring_tokens": ["Compiles", "down", "an", "example", ".", "Async", "examples", "call", "an", "imaginary", "done", "function", "once", "they", "re", "done", "."], "sha": "ccd6cdbff8a4db98d20da8ac1868558a45913005", "url": "https://github.com/yamadapc/jsdoctest/blob/ccd6cdbff8a4db98d20da8ac1868558a45913005/lib/get-example-code.js#L16-L34", "partition": "test"} +{"repo": "ozum/hapi-locale", "path": "lib/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Class to implement inner working of plugin.\n@param {PluginOptions} options - Plugin configuration options.\n@constructor\n@private", "docstring_tokens": ["Class", "to", "implement", "inner", "working", "of", "plugin", "."], "sha": "e0df04260c43ff8d447bac77254caa2c80fd4850", "url": "https://github.com/ozum/hapi-locale/blob/e0df04260c43ff8d447bac77254caa2c80fd4850/lib/index.js#L112-L122", "partition": "test"} +{"repo": "ozum/hapi-locale", "path": "lib/index.js", "func_name": "fileExists", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks synchroniously if given file or directory exists. Returns true or false.\n@param {string} path - Path of the file or directory.\n@param {boolean} shouldBeDir - Whether given path should be directory.\n@returns {boolean}\n@private", "docstring_tokens": ["Checks", "synchroniously", "if", "given", "file", "or", "directory", "exists", ".", "Returns", "true", "or", "false", "."], "sha": "e0df04260c43ff8d447bac77254caa2c80fd4850", "url": "https://github.com/ozum/hapi-locale/blob/e0df04260c43ff8d447bac77254caa2c80fd4850/lib/index.js#L212-L226", "partition": "test"} +{"repo": "ozum/hapi-locale", "path": "lib/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Hapi plugin function which adds i18n support to request and response objects.\n@param {Object} server - Hapi server object\n@param {PluginOptions} options - Plugin configuration options.", "docstring_tokens": ["Hapi", "plugin", "function", "which", "adds", "i18n", "support", "to", "request", "and", "response", "objects", "."], "sha": "e0df04260c43ff8d447bac77254caa2c80fd4850", "url": "https://github.com/ozum/hapi-locale/blob/e0df04260c43ff8d447bac77254caa2c80fd4850/lib/index.js#L370-L424", "partition": "test"} +{"repo": "clux/npm-graph", "path": "lib/npm-graph.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "build a dependency tree from the flat mdeps list by recursing", "docstring_tokens": ["build", "a", "dependency", "tree", "from", "the", "flat", "mdeps", "list", "by", "recursing"], "sha": "69a8391e71d6c50bfeffbbda7f4aa0187f7d7d0a", "url": "https://github.com/clux/npm-graph/blob/69a8391e71d6c50bfeffbbda7f4aa0187f7d7d0a/lib/npm-graph.js#L74-L97", "partition": "test"} +{"repo": "clux/npm-graph", "path": "lib/cycle.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "given a modules array with cycles - trim dependencies in each cycle", "docstring_tokens": ["given", "a", "modules", "array", "with", "cycles", "-", "trim", "dependencies", "in", "each", "cycle"], "sha": "69a8391e71d6c50bfeffbbda7f4aa0187f7d7d0a", "url": "https://github.com/clux/npm-graph/blob/69a8391e71d6c50bfeffbbda7f4aa0187f7d7d0a/lib/cycle.js#L39-L68", "partition": "test"} +{"repo": "taskcluster/taskcluster-lib-stats", "path": "src/series.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a times series that you can report to.\n\noptions:\n{\n// Name of the series in influxdb\nname: 'ResponseTimes',\n\n// Required columns\ncolumns: {\nmethod: stats.types.String,\nduration: stats.types.Number,\ncustom: stats.types.Any\n},\n\n// Type of additional columns if they are allowed (defaults `null`)\nadditionalColumns: stats.types.String\n}", "docstring_tokens": ["Create", "a", "times", "series", "that", "you", "can", "report", "to", "."], "sha": "1760c7037a07f0a4a715c6aa93475209f8bcbfc6", "url": "https://github.com/taskcluster/taskcluster-lib-stats/blob/1760c7037a07f0a4a715c6aa93475209f8bcbfc6/src/series.js#L33-L44", "partition": "test"} +{"repo": "cerebral-legacy/cerebral-operators", "path": "src/when.js", "func_name": "whenRead", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "define the action", "docstring_tokens": ["define", "the", "action"], "sha": "a69ff63b1157b7f99db0a8175ef7c4e2ea5d5589", "url": "https://github.com/cerebral-legacy/cerebral-operators/blob/a69ff63b1157b7f99db0a8175ef7c4e2ea5d5589/src/when.js#L51-L60", "partition": "test"} +{"repo": "VasiliyIsaichkin/osmium-tools", "path": "dist/index.js", "func_name": "findAndDelete", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Finds and deletes first encounter of value in target\n@param target\n@param value\n@returns true if an element has been deleted, otherwise - false", "docstring_tokens": ["Finds", "and", "deletes", "first", "encounter", "of", "value", "in", "target"], "sha": "cbbf23237f56f1e81def570db58ec168ecd1fd3d", "url": "https://github.com/VasiliyIsaichkin/osmium-tools/blob/cbbf23237f56f1e81def570db58ec168ecd1fd3d/dist/index.js#L356-L377", "partition": "test"} +{"repo": "VasiliyIsaichkin/osmium-tools", "path": "dist/index.js", "func_name": "findAndDeleteAll", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Finds and deletes all encounters of value in target\n@param target\n@param value\n@returns true if anything has been deleted, otherwise - false", "docstring_tokens": ["Finds", "and", "deletes", "all", "encounters", "of", "value", "in", "target"], "sha": "cbbf23237f56f1e81def570db58ec168ecd1fd3d", "url": "https://github.com/VasiliyIsaichkin/osmium-tools/blob/cbbf23237f56f1e81def570db58ec168ecd1fd3d/dist/index.js#L385-L391", "partition": "test"} +{"repo": "taskcluster/taskcluster-lib-stats", "path": "src/stats.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create an Influx Database Connection\n\noptions:\n{\n// Connection string for\nconnectionString: '://:@:/db/',\n\n// Max submission delay\nmaxDelay: 60 * 5, // 5 minutes\n\n// Maximum number of pending points before writing\nmaxPendingPoints: 250,\n\n// Allow the connection string to use HTTP instead of HTTPS, this option\n// is just to prevent accidental deployments with HTTP instead of HTTPS\n// (there is no reason not to use HTTPS).\nallowHTTP: false\n}", "docstring_tokens": ["Create", "an", "Influx", "Database", "Connection"], "sha": "1760c7037a07f0a4a715c6aa93475209f8bcbfc6", "url": "https://github.com/taskcluster/taskcluster-lib-stats/blob/1760c7037a07f0a4a715c6aa93475209f8bcbfc6/src/stats.js#L39-L55", "partition": "test"} +{"repo": "taskcluster/taskcluster-lib-stats", "path": "src/stats.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a handler timer for AMQP messages received through\ntaskcluster-client. Please note, that this relies on that messages format.\n\noptions:\n{\ndrain: new Influx(...), // Place to send events\ncomponent: 'queue' // Identifier for taskcluster component\n}", "docstring_tokens": ["Create", "a", "handler", "timer", "for", "AMQP", "messages", "received", "through", "taskcluster", "-", "client", ".", "Please", "note", "that", "this", "relies", "on", "that", "messages", "format", "."], "sha": "1760c7037a07f0a4a715c6aa93475209f8bcbfc6", "url": "https://github.com/taskcluster/taskcluster-lib-stats/blob/1760c7037a07f0a4a715c6aa93475209f8bcbfc6/src/stats.js#L315-L365", "partition": "test"} +{"repo": "taskcluster/taskcluster-lib-stats", "path": "src/stats.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Monitor CPU and memory for this instance.\n\noptions: {\ndrain: new Influx(...), // Place to send the pings\ninterval: 60, // Report every 1 minute\ncomponent: 'queue', // Identifier for the taskcluster component\nprocess: 'server' // Process name\n}\n\nNote, this is global in the current process.", "docstring_tokens": ["Monitor", "CPU", "and", "memory", "for", "this", "instance", "."], "sha": "1760c7037a07f0a4a715c6aa93475209f8bcbfc6", "url": "https://github.com/taskcluster/taskcluster-lib-stats/blob/1760c7037a07f0a4a715c6aa93475209f8bcbfc6/src/stats.js#L386-L431", "partition": "test"} +{"repo": "taskcluster/taskcluster-lib-stats", "path": "src/stats.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a stats handler for taskcluster-client clients which takes an option\n`stats` as function that will be call after an API call.\n\noptions:\n{\ntags: { // Tags as key/value (both strings)\ncomponent: 'queue', // Component identifier\nprocess: 'web' // Process identifier\n// Common tags that are good to use includes:\n// component, process, provisionerId, workerType\n},\ndrain: new Influx(...), // Place to send events\n}", "docstring_tokens": ["Create", "a", "stats", "handler", "for", "taskcluster", "-", "client", "clients", "which", "takes", "an", "option", "stats", "as", "function", "that", "will", "be", "call", "after", "an", "API", "call", "."], "sha": "1760c7037a07f0a4a715c6aa93475209f8bcbfc6", "url": "https://github.com/taskcluster/taskcluster-lib-stats/blob/1760c7037a07f0a4a715c6aa93475209f8bcbfc6/src/stats.js#L461-L474", "partition": "test"} +{"repo": "vadimdemedes/generate-help", "path": "index.js", "func_name": "buildOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Helpers\n \nOutput option list", "docstring_tokens": ["Helpers", "Output", "option", "list"], "sha": "a0ebdda7c7af5d8c30fe563dae08c6e43614e796", "url": "https://github.com/vadimdemedes/generate-help/blob/a0ebdda7c7af5d8c30fe563dae08c6e43614e796/index.js#L84-L127", "partition": "test"} +{"repo": "vadimdemedes/generate-help", "path": "index.js", "func_name": "buildCommands", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Output command list", "docstring_tokens": ["Output", "command", "list"], "sha": "a0ebdda7c7af5d8c30fe563dae08c6e43614e796", "url": "https://github.com/vadimdemedes/generate-help/blob/a0ebdda7c7af5d8c30fe563dae08c6e43614e796/index.js#L134-L145", "partition": "test"} +{"repo": "larvit/larvitrouter", "path": "index.js", "func_name": "Router", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Module main constructor\n\n@param {obj} options - {\n'paths': {\n'controller': {\n'path': 'controllers',\n'exts': 'js'\n},\n'static': {\n'path': 'public',\n'exts': false\n},\n'template': {\n'path': 'public/templates',\n'exts': ['tmpl', 'tmp', 'ejs', 'pug']\n}\n},\n'routes': [],\n'basePath': process.cwd(),\n'log': log object,\n'lfs': larvitfs instance\n}", "docstring_tokens": ["Module", "main", "constructor"], "sha": "d966de32bbc3aeeaeb109c2f763fe93b81ec2077", "url": "https://github.com/larvit/larvitrouter/blob/d966de32bbc3aeeaeb109c2f763fe93b81ec2077/index.js#L31-L96", "partition": "test"} +{"repo": "lobsangnet/lobsang.js", "path": "packages/lobsang-processor-port/lib/lobsang-processor-port.js", "func_name": "getDefaultPortByProtocol", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Helper method to look up port by protocol.\n\n@private\n@param {string} rawProtocol - Protocol as returned by url, i.e. with :\n@returns {Promise}\nAssociated port with protocol.\nOr an Error if the validation failed (e.g. mailto:).", "docstring_tokens": ["Helper", "method", "to", "look", "up", "port", "by", "protocol", "."], "sha": "1d50d976ded68b719d77487952e3fe6ec13d0891", "url": "https://github.com/lobsangnet/lobsang.js/blob/1d50d976ded68b719d77487952e3fe6ec13d0891/packages/lobsang-processor-port/lib/lobsang-processor-port.js#L78-L92", "partition": "test"} +{"repo": "apHarmony/jsharmony-factory", "path": "models/_funcs.js", "func_name": "clearScripts", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Replace scripts with \"...\" and prune empty scripts", "docstring_tokens": ["Replace", "scripts", "with", "...", "and", "prune", "empty", "scripts"], "sha": "7e4d07cdbc95712aedb34e42a1e9c010f051aee8", "url": "https://github.com/apHarmony/jsharmony-factory/blob/7e4d07cdbc95712aedb34e42a1e9c010f051aee8/models/_funcs.js#L85-L98", "partition": "test"} +{"repo": "laktek/SugarlessJS", "path": "lib/sugarless.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "holds functions and error handlers", "docstring_tokens": ["holds", "functions", "and", "error", "handlers"], "sha": "67c080ce2ae08943ac5fd54f5c83fe0d703b55e9", "url": "https://github.com/laktek/SugarlessJS/blob/67c080ce2ae08943ac5fd54f5c83fe0d703b55e9/lib/sugarless.js#L8-L20", "partition": "test"} +{"repo": "mysticatea/eslint-utils", "path": "src/get-static-value.js", "func_name": "getElementValues", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the element values of a given node list.\n@param {Node[]} nodeList The node list to get values.\n@param {Scope|undefined} initialScope The initial scope to find variables.\n@returns {any[]|null} The value list if all nodes are constant. Otherwise, null.", "docstring_tokens": ["Get", "the", "element", "values", "of", "a", "given", "node", "list", "."], "sha": "b2041e47f3c74e00ef7b746c4b0c43fc3f4732f0", "url": "https://github.com/mysticatea/eslint-utils/blob/b2041e47f3c74e00ef7b746c4b0c43fc3f4732f0/src/get-static-value.js#L64-L88", "partition": "test"} +{"repo": "mysticatea/eslint-utils", "path": "src/get-static-value.js", "func_name": "getStaticValueR", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the value of a given node if it's a static value.\n@param {Node} node The node to get.\n@param {Scope|undefined} initialScope The scope to start finding variable.\n@returns {{value:any}|null} The static value of the node, or `null`.", "docstring_tokens": ["Get", "the", "value", "of", "a", "given", "node", "if", "it", "s", "a", "static", "value", "."], "sha": "b2041e47f3c74e00ef7b746c4b0c43fc3f4732f0", "url": "https://github.com/mysticatea/eslint-utils/blob/b2041e47f3c74e00ef7b746c4b0c43fc3f4732f0/src/get-static-value.js#L395-L400", "partition": "test"} +{"repo": "mysticatea/eslint-utils", "path": "src/reference-tracker.js", "func_name": "isModifiedGlobal", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check whether a given variable is modified or not.\n@param {Variable} variable The variable to check.\n@returns {boolean} `true` if the variable is modified.", "docstring_tokens": ["Check", "whether", "a", "given", "variable", "is", "modified", "or", "not", "."], "sha": "b2041e47f3c74e00ef7b746c4b0c43fc3f4732f0", "url": "https://github.com/mysticatea/eslint-utils/blob/b2041e47f3c74e00ef7b746c4b0c43fc3f4732f0/src/reference-tracker.js#L21-L27", "partition": "test"} +{"repo": "mysticatea/eslint-utils", "path": "rollup.config.js", "func_name": "config", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Define the output configuration.\n@param {string} ext The extension for generated files.\n@returns {object} The output configuration", "docstring_tokens": ["Define", "the", "output", "configuration", "."], "sha": "b2041e47f3c74e00ef7b746c4b0c43fc3f4732f0", "url": "https://github.com/mysticatea/eslint-utils/blob/b2041e47f3c74e00ef7b746c4b0c43fc3f4732f0/rollup.config.js#L12-L26", "partition": "test"} +{"repo": "mysticatea/eslint-utils", "path": "src/pattern-matcher.js", "func_name": "isEscaped", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check whether a given character is escaped or not.\n@param {string} str The string to check.\n@param {number} index The location of the character to check.\n@returns {boolean} `true` if the character is escaped.", "docstring_tokens": ["Check", "whether", "a", "given", "character", "is", "escaped", "or", "not", "."], "sha": "b2041e47f3c74e00ef7b746c4b0c43fc3f4732f0", "url": "https://github.com/mysticatea/eslint-utils/blob/b2041e47f3c74e00ef7b746c4b0c43fc3f4732f0/src/pattern-matcher.js#L17-L23", "partition": "test"} +{"repo": "mysticatea/eslint-utils", "path": "src/pattern-matcher.js", "func_name": "replaceS", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Replace a given string by a given matcher.\n@param {PatternMatcher} matcher The pattern matcher.\n@param {string} str The string to be replaced.\n@param {string} replacement The new substring to replace each matched part.\n@returns {string} The replaced string.", "docstring_tokens": ["Replace", "a", "given", "string", "by", "a", "given", "matcher", "."], "sha": "b2041e47f3c74e00ef7b746c4b0c43fc3f4732f0", "url": "https://github.com/mysticatea/eslint-utils/blob/b2041e47f3c74e00ef7b746c4b0c43fc3f4732f0/src/pattern-matcher.js#L32-L71", "partition": "test"} +{"repo": "mysticatea/eslint-utils", "path": "src/pattern-matcher.js", "func_name": "replaceF", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "eslint-disable-next-line valid-jsdoc \nReplace a given string by a given matcher.\n@param {PatternMatcher} matcher The pattern matcher.\n@param {string} str The string to be replaced.\n@param {(...strs[])=>string} replace The function to replace each matched part.\n@returns {string} The replaced string.", "docstring_tokens": ["eslint", "-", "disable", "-", "next", "-", "line", "valid", "-", "jsdoc", "Replace", "a", "given", "string", "by", "a", "given", "matcher", "."], "sha": "b2041e47f3c74e00ef7b746c4b0c43fc3f4732f0", "url": "https://github.com/mysticatea/eslint-utils/blob/b2041e47f3c74e00ef7b746c4b0c43fc3f4732f0/src/pattern-matcher.js#L81-L93", "partition": "test"} +{"repo": "Skhmt/tapic", "path": "src/priv.ps.js", "func_name": "send", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "this provides some preventative error handling because the pubsub edge seems to be unstable", "docstring_tokens": ["this", "provides", "some", "preventative", "error", "handling", "because", "the", "pubsub", "edge", "seems", "to", "be", "unstable"], "sha": "2b6abe67cd5aaf645dcde7c1379c8fee4c9c4470", "url": "https://github.com/Skhmt/tapic/blob/2b6abe67cd5aaf645dcde7c1379c8fee4c9c4470/src/priv.ps.js#L80-L102", "partition": "test"} +{"repo": "Skhmt/tapic", "path": "src/priv.ps.js", "func_name": "parseMessage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "data is message.data, so it should have msg.topic and msg.message", "docstring_tokens": ["data", "is", "message", ".", "data", "so", "it", "should", "have", "msg", ".", "topic", "and", "msg", ".", "message"], "sha": "2b6abe67cd5aaf645dcde7c1379c8fee4c9c4470", "url": "https://github.com/Skhmt/tapic/blob/2b6abe67cd5aaf645dcde7c1379c8fee4c9c4470/src/priv.ps.js#L135-L175", "partition": "test"} +{"repo": "AustP/jwt-express", "path": "jwt-express.js", "func_name": "JWT", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "JWT - Class representing a JSON Web Token, it's payload, and it's status\n@param string secret The secret to sign / verify with\n@param object options The jwt-express options", "docstring_tokens": ["JWT", "-", "Class", "representing", "a", "JSON", "Web", "Token", "it", "s", "payload", "and", "it", "s", "status"], "sha": "f33e5c858e19826b7d767939a7048e3c5ff66387", "url": "https://github.com/AustP/jwt-express/blob/f33e5c858e19826b7d767939a7048e3c5ff66387/jwt-express.js#L9-L17", "partition": "test"} +{"repo": "AustP/jwt-express", "path": "jwt-express.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "sign - generate a new token from the payload\n@param object payload The payload to sign\n@return this", "docstring_tokens": ["sign", "-", "generate", "a", "new", "token", "from", "the", "payload"], "sha": "f33e5c858e19826b7d767939a7048e3c5ff66387", "url": "https://github.com/AustP/jwt-express/blob/f33e5c858e19826b7d767939a7048e3c5ff66387/jwt-express.js#L42-L52", "partition": "test"} +{"repo": "AustP/jwt-express", "path": "jwt-express.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "store - stores the JWT in the cookie\n@param object res The Express HTTP Response object\n@return this", "docstring_tokens": ["store", "-", "stores", "the", "JWT", "in", "the", "cookie"], "sha": "f33e5c858e19826b7d767939a7048e3c5ff66387", "url": "https://github.com/AustP/jwt-express/blob/f33e5c858e19826b7d767939a7048e3c5ff66387/jwt-express.js#L59-L65", "partition": "test"} +{"repo": "AustP/jwt-express", "path": "jwt-express.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "toJSON - this function is called when the jwt is passed through JSON.stringify\nwe don't want the secret or options to be stringified\n@return object", "docstring_tokens": ["toJSON", "-", "this", "function", "is", "called", "when", "the", "jwt", "is", "passed", "through", "JSON", ".", "stringify", "we", "don", "t", "want", "the", "secret", "or", "options", "to", "be", "stringified"], "sha": "f33e5c858e19826b7d767939a7048e3c5ff66387", "url": "https://github.com/AustP/jwt-express/blob/f33e5c858e19826b7d767939a7048e3c5ff66387/jwt-express.js#L72-L80", "partition": "test"} +{"repo": "AustP/jwt-express", "path": "jwt-express.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "verify - verifies the JWT's token\n@param string token The token to verify\n@return this", "docstring_tokens": ["verify", "-", "verifies", "the", "JWT", "s", "token"], "sha": "f33e5c858e19826b7d767939a7048e3c5ff66387", "url": "https://github.com/AustP/jwt-express/blob/f33e5c858e19826b7d767939a7048e3c5ff66387/jwt-express.js#L87-L109", "partition": "test"} +{"repo": "AustP/jwt-express", "path": "jwt-express.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "init - initialize jwt-express\n@param string|function secret If secret is a string, that will be used\nto verify / sign with. If secret is a function, that function will be\ncalled with the Express HTTP Request as it's first parameter, and must\nreturn a string which will be used to verify / sign with.\n@param object options (Optional) The options of jwt-express\ncookie: The name of the cookie (default: 'jwt-express')\ncookieOptions: Options to use when storing the cookie\n(default: {httpOnly: true})\ncookies: Boolean indicating to use cookies to look for / save the JWTs\nor to use the Authorization header to look for the JWTs (default: true)\nrefresh: Boolean indicating if the JWT should be refreshed and stored every request\nreqProperty: The property of req to populate (default: 'jwt')\nrevoke: The function to call when jwt.revoke() is called\n(default: function(jwt) {})\nsignOptions: Options to use when signing the JWT (default: {})\nstales: Milliseconds when the jwt will go stale\nverify: Additional function to call when verifying a JWT\n(default: function(jwt) {return true})\nverifyOptions: Options to use when verifying the JWT (default: {})\n@return function middleware", "docstring_tokens": ["init", "-", "initialize", "jwt", "-", "express"], "sha": "f33e5c858e19826b7d767939a7048e3c5ff66387", "url": "https://github.com/AustP/jwt-express/blob/f33e5c858e19826b7d767939a7048e3c5ff66387/jwt-express.js#L185-L250", "partition": "test"} +{"repo": "AustP/jwt-express", "path": "jwt-express.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "valid - requires that a JWT is valid\n@return function middleware", "docstring_tokens": ["valid", "-", "requires", "that", "a", "JWT", "is", "valid"], "sha": "f33e5c858e19826b7d767939a7048e3c5ff66387", "url": "https://github.com/AustP/jwt-express/blob/f33e5c858e19826b7d767939a7048e3c5ff66387/jwt-express.js#L313-L323", "partition": "test"} +{"repo": "flightjs/jasmine-flight", "path": "lib/jasmine-flight.js", "func_name": "setupComponent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "setupComponent\n- Assumes it has been called in the context of a jasmine spec.\n- Creates a new HTML element and attaches to it an instance of this.Component\n- If a fixture is provided, the fixture will serve as the component root.\n\n@param fixture: HTML or jQuery fixture\n@param options: component initialization options", "docstring_tokens": ["setupComponent", "-", "Assumes", "it", "has", "been", "called", "in", "the", "context", "of", "a", "jasmine", "spec", ".", "-", "Creates", "a", "new", "HTML", "element", "and", "attaches", "to", "it", "an", "instance", "of", "this", ".", "Component", "-", "If", "a", "fixture", "is", "provided", "the", "fixture", "will", "serve", "as", "the", "component", "root", "."], "sha": "8b82f490aaf239adc8369927bbf72e207efffdb1", "url": "https://github.com/flightjs/jasmine-flight/blob/8b82f490aaf239adc8369927bbf72e207efffdb1/lib/jasmine-flight.js#L20-L45", "partition": "test"} +{"repo": "flightjs/jasmine-flight", "path": "lib/jasmine-flight.js", "func_name": "describeModuleFactory", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Load amd module before executing specDefinitions", "docstring_tokens": ["Load", "amd", "module", "before", "executing", "specDefinitions"], "sha": "8b82f490aaf239adc8369927bbf72e207efffdb1", "url": "https://github.com/flightjs/jasmine-flight/blob/8b82f490aaf239adc8369927bbf72e207efffdb1/lib/jasmine-flight.js#L192-L207", "partition": "test"} +{"repo": "h2non/resilient-consul", "path": "consul.js", "func_name": "consul", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Middleware constructor function", "docstring_tokens": ["Middleware", "constructor", "function"], "sha": "d0ddc58d2dacc3a11a005bcd21b96af41f84aea1", "url": "https://github.com/h2non/resilient-consul/blob/d0ddc58d2dacc3a11a005bcd21b96af41f84aea1/consul.js#L39-L75", "partition": "test"} +{"repo": "h2non/resilient-consul", "path": "consul.js", "func_name": "inHandler", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Incoming traffic middleware", "docstring_tokens": ["Incoming", "traffic", "middleware"], "sha": "d0ddc58d2dacc3a11a005bcd21b96af41f84aea1", "url": "https://github.com/h2non/resilient-consul/blob/d0ddc58d2dacc3a11a005bcd21b96af41f84aea1/consul.js#L44-L55", "partition": "test"} +{"repo": "h2non/resilient-consul", "path": "consul.js", "func_name": "outHandler", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Outgoing traffic middleware", "docstring_tokens": ["Outgoing", "traffic", "middleware"], "sha": "d0ddc58d2dacc3a11a005bcd21b96af41f84aea1", "url": "https://github.com/h2non/resilient-consul/blob/d0ddc58d2dacc3a11a005bcd21b96af41f84aea1/consul.js#L57-L73", "partition": "test"} +{"repo": "yahoo/scrollable", "path": "examples/reminders/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "When listing all categories and user taps on a given category", "docstring_tokens": ["When", "listing", "all", "categories", "and", "user", "taps", "on", "a", "given", "category"], "sha": "d9b10d19abaf24dd6e96d9c25b07b80bc79d8a41", "url": "https://github.com/yahoo/scrollable/blob/d9b10d19abaf24dd6e96d9c25b07b80bc79d8a41/examples/reminders/index.js#L85-L95", "partition": "test"} +{"repo": "yahoo/scrollable", "path": "examples/reminders/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "When showing a single category and user taps the stack", "docstring_tokens": ["When", "showing", "a", "single", "category", "and", "user", "taps", "the", "stack"], "sha": "d9b10d19abaf24dd6e96d9c25b07b80bc79d8a41", "url": "https://github.com/yahoo/scrollable/blob/d9b10d19abaf24dd6e96d9c25b07b80bc79d8a41/examples/reminders/index.js#L98-L106", "partition": "test"} +{"repo": "song940/homekit", "path": "lib/Service.js", "func_name": "Service", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Service represents a set of grouped values necessary to provide a logical function. For instance, a\n\"Door Lock Mechanism\" service might contain two values, one for the \"desired lock state\" and one for the\n\"current lock state\". A particular Service is distinguished from others by its \"type\", which is a UUID.\nHomeKit provides a set of known Service UUIDs defined in HomeKitTypes.js along with a corresponding\nconcrete subclass that you can instantiate directly to setup the necessary values. These natively-supported\nServices are expected to contain a particular set of Characteristics.\n\nUnlike Characteristics, where you cannot have two Characteristics with the same UUID in the same Service,\nyou can actually have multiple Services with the same UUID in a single Accessory. For instance, imagine\na Garage Door Opener with both a \"security light\" and a \"backlight\" for the display. Each light could be\na \"Lightbulb\" Service with the same UUID. To account for this situation, we define an extra \"subtype\"\nproperty on Service, that can be a string or other string-convertible object that uniquely identifies the\nService among its peers in an Accessory. For instance, you might have `service1.subtype = 'security_light'`\nfor one and `service2.subtype = 'backlight'` for the other.\n\nYou can also define custom Services by providing your own UUID for the type that you generate yourself.\nCustom Services can contain an arbitrary set of Characteristics, but Siri will likely not be able to\nwork with these.\n\n@event 'characteristic-change' => function({characteristic, oldValue, newValue, context}) { }\nEmitted after a change in the value of one of our Characteristics has occurred.", "docstring_tokens": ["Service", "represents", "a", "set", "of", "grouped", "values", "necessary", "to", "provide", "a", "logical", "function", ".", "For", "instance", "a", "Door", "Lock", "Mechanism", "service", "might", "contain", "two", "values", "one", "for", "the", "desired", "lock", "state", "and", "one", "for", "the", "current", "lock", "state", ".", "A", "particular", "Service", "is", "distinguished", "from", "others", "by", "its", "type", "which", "is", "a", "UUID", ".", "HomeKit", "provides", "a", "set", "of", "known", "Service", "UUIDs", "defined", "in", "HomeKitTypes", ".", "js", "along", "with", "a", "corresponding", "concrete", "subclass", "that", "you", "can", "instantiate", "directly", "to", "setup", "the", "necessary", "values", ".", "These", "natively", "-", "supported", "Services", "are", "expected", "to", "contain", "a", "particular", "set", "of", "Characteristics", "."], "sha": "5ce21f7c7887334ce1e4f019061ea8b7d2b84237", "url": "https://github.com/song940/homekit/blob/5ce21f7c7887334ce1e4f019061ea8b7d2b84237/lib/Service.js#L30-L52", "partition": "test"} +{"repo": "song940/homekit", "path": "lib/Characteristic.js", "func_name": "Characteristic", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Characteristic represents a particular typed variable that can be assigned to a Service. For instance, a\n\"Hue\" Characteristic might store a 'float' value of type 'arcdegrees'. You could add the Hue Characteristic\nto a Service in order to store that value. A particular Characteristic is distinguished from others by its\nUUID. HomeKit provides a set of known Characteristic UUIDs defined in HomeKitTypes.js along with a\ncorresponding concrete subclass.\n\nYou can also define custom Characteristics by providing your own UUID. Custom Characteristics can be added\nto any native or custom Services, but Siri will likely not be able to work with these.\n\nNote that you can get the \"value\" of a Characteristic by accessing the \"value\" property directly, but this\nis really a \"cached value\". If you want to fetch the latest value, which may involve doing some work, then\ncall getValue().\n\n@event 'get' => function(callback(err, newValue), context) { }\nEmitted when someone calls getValue() on this Characteristic and desires the latest non-cached\nvalue. If there are any listeners to this event, one of them MUST call the callback in order\nfor the value to ever be delivered. The `context` object is whatever was passed in by the initiator\nof this event (for instance whomever called `getValue`).\n\n@event 'set' => function(newValue, callback(err), context) { }\nEmitted when someone calls setValue() on this Characteristic with a desired new value. If there\nare any listeners to this event, one of them MUST call the callback in order for this.value to\nactually be set. The `context` object is whatever was passed in by the initiator of this change\n(for instance, whomever called `setValue`).\n\n@event 'change' => function({ oldValue, newValue, context }) { }\nEmitted after a change in our value has occurred. The new value will also be immediately accessible\nin this.value. The event object contains the new value as well as the context object originally\npassed in by the initiator of this change (if known).", "docstring_tokens": ["Characteristic", "represents", "a", "particular", "typed", "variable", "that", "can", "be", "assigned", "to", "a", "Service", ".", "For", "instance", "a", "Hue", "Characteristic", "might", "store", "a", "float", "value", "of", "type", "arcdegrees", ".", "You", "could", "add", "the", "Hue", "Characteristic", "to", "a", "Service", "in", "order", "to", "store", "that", "value", ".", "A", "particular", "Characteristic", "is", "distinguished", "from", "others", "by", "its", "UUID", ".", "HomeKit", "provides", "a", "set", "of", "known", "Characteristic", "UUIDs", "defined", "in", "HomeKitTypes", ".", "js", "along", "with", "a", "corresponding", "concrete", "subclass", "."], "sha": "5ce21f7c7887334ce1e4f019061ea8b7d2b84237", "url": "https://github.com/song940/homekit/blob/5ce21f7c7887334ce1e4f019061ea8b7d2b84237/lib/Characteristic.js#L38-L51", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/migration/DatabaseMigrator.js", "func_name": "migrateDatabase", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Processes the schema descriptors to upgrade the database schema to the\ngreatest version specified.\n\n@param {IDBDatabase} nativeDatabase The native Indexed DB database being\nmigrated to a higher version.\n@param {IDBTransaction} nativeTransaction The native Indexed DB\n{@code versionchange} transaction to use to manipulate the data.\n@param {(DatabaseSchema|UpgradedDatabaseSchema)[]} schemaDescriptors Schema\ndescriptors of the database schemas for various versions, sorted in\nascending order by the version number.\n@param {number} currentVersion The current version of the database schema.\n@return {PromiseSync} A promise that resolves when the schema is\nupgraded to the greatest version specified in the schema\ndescriptors.", "docstring_tokens": ["Processes", "the", "schema", "descriptors", "to", "upgrade", "the", "database", "schema", "to", "the", "greatest", "version", "specified", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/migration/DatabaseMigrator.js#L124-L146", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/migration/DatabaseMigrator.js", "func_name": "migrateDatabaseVersion", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Performs a single-version database migration to the schema described by the\nprovided database schema descriptor.\n\n@param {IDBDatabase} nativeDatabase The native Indexed DB database being\nmigrated to a higher version.\n@param {IDBTransaction} nativeTransaction The native Indexed DB\n{@code versionchange} transaction to use to manipulate the data.\n@param {(DatabaseSchema|UpgradedDatabaseSchema)} descriptor Schema\ndescriptor of the version to which the database is to be upgraded.\n@return {PromiseSync} A promise that resolves once the database\nhas been upgraded to the schema described by the provided schema\ndescriptor.", "docstring_tokens": ["Performs", "a", "single", "-", "version", "database", "migration", "to", "the", "schema", "described", "by", "the", "provided", "database", "schema", "descriptor", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/migration/DatabaseMigrator.js#L162-L185", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/migration/DatabaseMigrator.js", "func_name": "normalizeFetchBeforeObjectStores", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Normalizes the provided array of object store fetch descriptors to process\nbefore upgrading the database schema.\n\n@param {(string|{objectStore: string, preprocessor: function(*, (number|string|Date|Array)): (*|UpgradedDatabaseSchema.SKIP_RECORD|UpgradedDatabaseSchema.DELETE_RECORD)=})[]} objectStores\nThe names of object stores that should have their records fetch or\n(possibly partially filled) object store fetch descriptors, mixed in\nan array.\n@return {{objectStore: string, preprocessor: function(*, (number|string|Date|Array)): (*|UpgradedDatabaseSchema.SKIP_RECORD|UpgradedDatabaseSchema.DELETE_RECORD)}[]}\nNormalized object store fetch descriptors.", "docstring_tokens": ["Normalizes", "the", "provided", "array", "of", "object", "store", "fetch", "descriptors", "to", "process", "before", "upgrading", "the", "database", "schema", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/migration/DatabaseMigrator.js#L198-L214", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/migration/DatabaseMigrator.js", "func_name": "checkSchemaDescriptorTypes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validates the types of the provided schema descriptors.\n\n@param {((DatabaseSchema|UpgradedDatabaseSchema)[]|Object[])} schemaDescriptors\nThe database schemas for database versions to validate, sorted by\nversion number in the ascending order.\n@throws {TypeError} Thrown if the schema descriptors are of invalid type.", "docstring_tokens": ["Validates", "the", "types", "of", "the", "provided", "schema", "descriptors", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/migration/DatabaseMigrator.js#L224-L247", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/AbstractReadOnlyStorage.js", "func_name": "list", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a promise that resolves to a record list containing the first page\nof records matching the provided filter.\n\n@param {AbstractReadOnlyStorage} storage The current storage accessor - will\nbe used to fetch the first page of records.\n@param {(undefined|IDBKeyRange)} keyRange The key range to use for the first\npage or records.\n@param {(undefined|function(*, (number|string|Date|Array), (number|string|Date|Array)): boolean)} filter\nThe filter function restricting the records that will be listed.\nIf a function is provided, the first argument will be set to the\nrecord, the second argument will be set to the primary key of the\nrecord, and the third argument will be set to the key referencing the\nrecord (the primary key if traversing an object store).\n@param {CursorDirection} direction The direction in which the records in the\nstorage should be listed.\n@param {boolean} unique When {@code true}, the keys by which the records are\norganized in the store are always unique for each record.\n@param {number} pageSize The maximum number of records per page. Must be a\npositive integer.\n@param {function(): AbstractReadOnlyStorage} storageFactory A function that\ncreates a new read-only transaction and returns this storage accessor\neach time it is invoked.\n@return {Promise>} A promise that resolves to a record list of\nthe fetched records matching the filter.", "docstring_tokens": ["Creates", "a", "promise", "that", "resolves", "to", "a", "record", "list", "containing", "the", "first", "page", "of", "records", "matching", "the", "provided", "filter", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/AbstractReadOnlyStorage.js#L319-L342", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/AbstractReadOnlyStorage.js", "func_name": "normalizeCompoundObjectKey", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Normalizes the provided compound key represented as an object into a\ncompound key representation compatible with the Indexed DB.\n\n@param {string[]} keyPaths The key paths of this storage.\n@param {Object} key The compound key to normalize for use with the Indexed\nDB.\n@return {Array<(number|string|Date|Array)>} Normalized compound key.", "docstring_tokens": ["Normalizes", "the", "provided", "compound", "key", "represented", "as", "an", "object", "into", "a", "compound", "key", "representation", "compatible", "with", "the", "Indexed", "DB", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/AbstractReadOnlyStorage.js#L353-L372", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/AbstractBaseStorage.js", "func_name": "iterateCursor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Iterates the cursor to which the provided Indexed DB request resolves. The\nmethod will iterate the cursor over the records in this storage within the\nrange specified when the cursor was opened until the provided callback does\nnot request iterating to the next record or the last matching record is\nreached.\n\n@param {IDBRequest} request Indexed DB request that resolves to a cursor\nevery time the cursor iterates to a record.\n@param {function(new: ReadOnlyCursor, IDBRequest, function(), function(IDBRequest): PromiseSync)} cursorConstructor\nConstructor of the cursor class to use to wrap the native IDBRequest\nproducing the native IndexedDB cursor.\n@param {function(ReadOnlyCursor)} recordCallback The callback to execute,\npassing a high-level cursor instance pointing to the current record\nin each iteration of the cursor.\n@return {PromiseSync} A promise that resolves to the number of\nrecords the cursor traversed.", "docstring_tokens": ["Iterates", "the", "cursor", "to", "which", "the", "provided", "Indexed", "DB", "request", "resolves", ".", "The", "method", "will", "iterate", "the", "cursor", "over", "the", "records", "in", "this", "storage", "within", "the", "range", "specified", "when", "the", "cursor", "was", "opened", "until", "the", "provided", "callback", "does", "not", "request", "iterating", "to", "the", "next", "record", "or", "the", "last", "matching", "record", "is", "reached", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/AbstractBaseStorage.js#L211-L244", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/AbstractBaseStorage.js", "func_name": "handleCursorIteration", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles a single iteration of a Indexed DB cursor iterating the records in\nthe storage.\n\n@param {IDBRequest} request Indexed DB request resolved to a cursor.\n@param {function(new: ReadOnlyCursor, IDBRequest, function(), function(IDBRequest): PromiseSync)} cursorConstructor\nConstructor of the high-level cursor implementation to use.\n@param {function(ReadOnlyCursor)} recordCallback The callback to execute,\npassing a high-level cursor instance pointing to the current record.\n@param {function(Error)} reject Callback to call if any sub-operation\ntriggered by the callback results in an error.\n@return {boolean} {@code true} if the cursor should iterate to the next\nrecord.", "docstring_tokens": ["Handles", "a", "single", "iteration", "of", "a", "Indexed", "DB", "cursor", "iterating", "the", "records", "in", "the", "storage", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/AbstractBaseStorage.js#L260-L280", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/migration/RecordFetcher.js", "func_name": "fetchAllRecords", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fetches all records from the specified object stores using the provided\nread-write transaction.\n\n@param {Transaction} transaction The read-write transaction to use to access\nthe object stores.\n@param {(string|{objectStore: string, preprocessor: function(*, (number|string|Date|Array)): (*|UpgradedDatabaseSchema.SKIP_RECORD|UpgradedDatabaseSchema.DELETE_RECORD)=})[]} objectStores\nThe names of object stores that should have their records fetch or\n(possibly partially filled) object store fetch descriptors, mixed in\nan array.\n@return {PromiseSync>}\nA promise that resolves once all the records have been fetched and\nthe records marked for deletion were deleted.\nThe promise resolves to a map of object store names to the records\nfetched from the object store, except for the records marked for\nskipping or deletion.", "docstring_tokens": ["Fetches", "all", "records", "from", "the", "specified", "object", "stores", "using", "the", "provided", "read", "-", "write", "transaction", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/migration/RecordFetcher.js#L67-L82", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/migration/RecordFetcher.js", "func_name": "fetchRecords", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extracts all records from the provided object store and preprocess them\nusing the provided preprocessor.\n\nThe method traverses the records of the object store in ascending order of\ntheir primary keys, deleting the records for which the preprocessor returns\nthe {@linkcode UpgradedDatabaseSchema.DELETE_RECORD} before traversing to\nthe next record.\n\n@param {ObjectStore} objectStore The read-write accessor the object store\nfrom which the records should be read.\n@param {function(*, (number|string|Date|Array)): (*|UpgradedDatabaseSchema.SKIP_RECORD|UpgradedDatabaseSchema.DELETE_RECORD)} preprocessor\nThe callback to call on each record. The value returned by it will be\nstored in the resulting record array instead of the original record.\nThe record will not be included in the resulting record array if the\npreprocessor returns {@linkcode UpgradedDatabaseSchema.SKIP_RECORD}\nor {@linkcode UpgradedDatabaseSchema.DELETE_RECORD}.\n@return {PromiseSync<{key: (number|string|Date|Array), record: *}[]>} A\npromise that resolves once all records in the object store have been\ntraversed. The promise will resolve to an array of the records\nprocessed by the provided record preprocessor, in the order they\nwere traversed, and not containing the records that the preprocessor\nmarked as to be skipped or deleted.", "docstring_tokens": ["Extracts", "all", "records", "from", "the", "provided", "object", "store", "and", "preprocess", "them", "using", "the", "provided", "preprocessor", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/migration/RecordFetcher.js#L108-L135", "partition": "test"} +{"repo": "IonicaBizau/write-file-p", "path": "lib/index.js", "func_name": "writeFileP", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "writeFileP\nCreate the directory structure and then create the file.\n\n@name writeFileP\n@function\n@param {String} outputPath The path to the file you want to create.\n@param {String|Object} data The file content. If an Array/Object is provided, it will be stringified.\n@param {Function} cb The callback function.", "docstring_tokens": ["writeFileP", "Create", "the", "directory", "structure", "and", "then", "create", "the", "file", "."], "sha": "86a67baff3ca16cd6ef2d3e9af09fc1afcef6c87", "url": "https://github.com/IonicaBizau/write-file-p/blob/86a67baff3ca16cd6ef2d3e9af09fc1afcef6c87/lib/index.js#L20-L31", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/Database.js", "func_name": "runTransaction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Runs the provided transaction operations on the specified object stores\nobtained from the provided transaction.\n\nThe function returns a promise resolved when the transaction completes.\n\n@param {ReadOnlyTransaction} transaction The transaction from which the\nobject stores will be retrieved. The returned promise will resolve\nwhen this transaction is completed.\n@param {string[]} objectStoreNames The names of the object stores to pass to the\n{@linkcode transactionOperations} callback.\n@param {function(...ReadOnlyObjectStore, function()): PromiseSync<*>} transactionOperations\nThe callback containing the operations on the object stores in the\ntransaction.\nThe callback will receive the requested object stores as arguments,\nfollowed by a callback for aborting the transaction.\nThe callback should return a synchronous promise (a return value of\none of the data-related methods of object stores and their indexes),\nthe value to which the returned promise resolves will be the result\nvalue of the promise returned by this function.\n@return {Promise<*>} A promise that resolves when the transaction is\ncompleted. The promise will resolve to the value to which resolved\nthe promise returned by the {@linkcode transactionOperations}\ncallback.", "docstring_tokens": ["Runs", "the", "provided", "transaction", "operations", "on", "the", "specified", "object", "stores", "obtained", "from", "the", "provided", "transaction", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/Database.js#L357-L367", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/ReadOnlyIndex.js", "func_name": "toNativeCursorDirection", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the cursor direction to use with the native Indexed DB API.\n\n@param {(CursorDirection|string)=} direction The direction in which the\ncursor will traverse the records. Use either the\n{@code CursorDirection.*} constants, or strings {@code \"NEXT\"} and\n{@code \"PREVIOUS\"} (or {@code \"PREV\"} for short). The letter case\nused in the strings does not matter.\n@param {boolean=} unique When {@code true}, it cursor will skip over the\nrecords stored with the same index key value.\n@return {string} The cursor direction compatible with the native Indexed DB\nAPI.", "docstring_tokens": ["Returns", "the", "cursor", "direction", "to", "use", "with", "the", "native", "Indexed", "DB", "API", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/ReadOnlyIndex.js#L357-L373", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/migration/ObjectStoreMigrator.js", "func_name": "createIndex", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new index in the provided object store according to the provided\nindex schema.\n\n@param {IDBObjectStore} objectStore The native Indexed DB object store.\n@param {IndexSchema} indexSchema The schema of the index to create.", "docstring_tokens": ["Creates", "a", "new", "index", "in", "the", "provided", "object", "store", "according", "to", "the", "provided", "index", "schema", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/migration/ObjectStoreMigrator.js#L122-L133", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/RecordList.js", "func_name": "fetchNextPage", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fetches the next page of records in a new ready-only transaction and\nresolves into a record list containing the fetched records.\n\n@param {function(): AbstractReadOnlyStorage} storageFactory A function that\ncreates a new read-only transaction and returns this storage accessor\neach time it is invoked.\n@param {IDBKeyRange} keyRange The key range to use when opening the cursor\nin order to skip most of the records traversed previously.\n@param {CursorDirection} cursorDirection The direction in which the records\nof the storage are traversed.\n@param {boolean} unique Set to {@code true} if the key used by the storage\nto organize records has a unique value for each record.\n@param {(number|string|Date|Array)} firstPrimaryKey The primary key of the\nfirst record to include to the result.\n@param {(undefined|function(*, (number|string|Date|Array), (number|string|Date|Array)): boolean)} filter\nThe filter function restricting the records that will be listed.\nIf a function is provided, the first argument will be set to the\nrecord, the second argument will be set to the primary key of the\nrecord, and the third argument will be set to the key referencing the\nrecord (the primary key if traversing an object store).\n@param {number} pageSize The maximum number of records per page. Must be a\npositive integer.\n@return {Promise>} A promise that resolves to the next page of\nrecords.", "docstring_tokens": ["Fetches", "the", "next", "page", "of", "records", "in", "a", "new", "ready", "-", "only", "transaction", "and", "resolves", "into", "a", "record", "list", "containing", "the", "fetched", "records", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/RecordList.js#L185-L234", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/transaction/ReadOnlyTransaction.js", "func_name": "executeEventListeners", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Executes the provided event listeners with the provided parameters. Any\nerrors thrown by the executed event listeners will be caught and logged to\nthe console, and then the remaining event listeners will be executed.\n\n@param {function(...*)[]} listeners The event listeners to execute.\n@param {...*} parameters The parameters to pass to the event listeners as\narguments.", "docstring_tokens": ["Executes", "the", "provided", "event", "listeners", "with", "the", "provided", "parameters", ".", "Any", "errors", "thrown", "by", "the", "executed", "event", "listeners", "will", "be", "caught", "and", "logged", "to", "the", "console", "and", "then", "the", "remaining", "event", "listeners", "will", "be", "executed", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/transaction/ReadOnlyTransaction.js#L235-L243", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/PromiseSync.js", "func_name": "resolve", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Resolves the provided promise to the specified state and result value. This\nfunction has no effect if the provided promise has already been resolved.\n\n@param {PromiseSync} instance The promise to resolve.\n@param {Object} newState One of the {@code STATE.*} constants representing\nthe new state of the promise. Must not be {@code STATE.PENDING}.\n@param {(*|Error)} value The new result value of the promise.", "docstring_tokens": ["Resolves", "the", "provided", "promise", "to", "the", "specified", "state", "and", "result", "value", ".", "This", "function", "has", "no", "effect", "if", "the", "provided", "promise", "has", "already", "been", "resolved", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/PromiseSync.js#L318-L336", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/query-engine.js", "func_name": "runQuery", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Executes the specified query using the provided cursor factory.\n\nNote that the callback will be executed on the records only after all\nrecords have been populated if the comparator if a function so the records\nare passed to the callback in the right order.\n\n@param {function(function(ReadyOnlyCursor)): number} cursorFactory The\ncursor factory to use to create a cursor for executing the query.\n@param {?function(*, (number|string|Date|Array)): boolean} filter Optional\ncustom filter callback.\n@param {?function(*, *): number} comparator Optional record comparator to\nuse to sort the records in the result.\n@param {number} offset The index of the first record to include in the\nresult. The records are numbered from {@code 0}, the offset must be\na non-negative integer.\n@param {?number} limit The maximum number of records to return as a result.\nThe limit must be a positive integer, or {@code null} if no limit\nshould be imposed.\n@param {function(*, (number|string|Date|Array))} callback Callback to\nexecute on every iterated record that matches the query.\n@return {PromiseSync} A promise that resolves when the query has\nbeen executed.", "docstring_tokens": ["Executes", "the", "specified", "query", "using", "the", "provided", "cursor", "factory", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/query-engine.js#L168-L218", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/query-engine.js", "func_name": "insertSorted", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Inserts the provided record into the sorted array of records and their\nprimary keys, keeping it sorted.\n\n@param {{record: *, primaryKey: (number|string|Date|Array)}[]} records The\narray of records into which the provided record should be inserted.\n@param {*} record The record to insert into the records array.\n@param {(number|string|Date|Array)} primaryKey The primary key of the\nrecord.\n@param {function(*, *): number} comparator Record comparator by which the\narray is sorted. The comparator is a standard comparator function\ncompatible with the {@linkcode Array.prototype.sort} method.", "docstring_tokens": ["Inserts", "the", "provided", "record", "into", "the", "sorted", "array", "of", "records", "and", "their", "primary", "keys", "keeping", "it", "sorted", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/query-engine.js#L233-L239", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/query-engine.js", "func_name": "findInsertIndex", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Uses the binary search algorithm to find the index at which the specified\nrecord should be inserted into the specified array of records to keep the\narray sorted according to the provided comparator.\n\n@param {{record: *, primaryKey: (number|string|Date|Array)}[]} records The\narray of records into which the provided record should be inserted.\n@param {*} record The record to insert into the records array.\n@param {function(*, *): number} comparator Record comparator by which the\narray is sorted. The comparator is a standard comparator function\ncompatible with the {@linkcode Array.prototype.sort} method.\n@return {number} The index at which the record should be inserted to keep\nthe array of records sorted.", "docstring_tokens": ["Uses", "the", "binary", "search", "algorithm", "to", "find", "the", "index", "at", "which", "the", "specified", "record", "should", "be", "inserted", "into", "the", "specified", "array", "of", "records", "to", "keep", "the", "array", "sorted", "according", "to", "the", "provided", "comparator", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/query-engine.js#L255-L290", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/query-engine.js", "func_name": "prepareQuery", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Prepares the query that uses the specified filter and record order for\nexecution on this storage.\n\nThe method attempts uses a heuristic to determine whether the query should\nbe run directly on this object store or on one of its indexes for maximum\nperformance.\n\nIf the method cannot optimize sorting and filtering, it prefers optimizing\nsorting to optimizing filtering, as optimizing sorting allows the query\nexecutor to skip the requested amount of records and the records following\nthe last record that fills the required amount of records.\n\nIf the sorting cannot be optimized, the method attempts to optimize\nfiltering so that the matching records can be selected by providing a key\nrange to cursor, so that only the matching records will be traversed.\n\nThe method constructs the filtering predicate and sorting comparator if\nneither the sorting nor filtering can be optimized, and prepares the query\nto be executed directly on the object store.\n\n@param {ReadOnlyObjectStore} thisStorage This object store.\n@param {?(undefined|number|string|Date|Array|IDBKeyRange|Object|function(*, (number|string|Date|Array)): boolean)=} filter\nThe filter, restricting the records returned by this method. If a\nfunction is provided, the first argument will be set to the record\nand the second argument will be set to the primary key of the record.\n@param {(string|string[])} order Field paths by which the records should be\nsorted. A field path may be prefixed by an exclamation mark\n({@code \"!\"}) for descending order.\n@return {{storage: AbstractReadOnlyStorage, direction: CursorDirection, comparator: ?function(*, *): number, keyRange: (undefined|IDBKeyRange), filter: (undefined|function(*, (number|string|Date|Array)): boolean)}}\nThe storage on which the query should be executed, the direction in\nwhich the cursor should be opened and the record comparator to use\nto additionally sort the fetched records matching the filter.\nFinally, the returned object has the {@code keyRange} and\n{@code filter} fields set to the key range and custom filter to use\nwith the storage to run the query.", "docstring_tokens": ["Prepares", "the", "query", "that", "uses", "the", "specified", "filter", "and", "record", "order", "for", "execution", "on", "this", "storage", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/query-engine.js#L329-L367", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/query-engine.js", "func_name": "prepareSortingOptimization", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculates the best possible sorting optimization for the provided storages,\nupdating the provided map with sorting optimization scores for each storage.\n\n@param {Map} storages\nMap of storage key paths to storages and information related to how\nthe query would be executed on each of them, including the\nperformance optimization score (the higher is better).\n@param {string[]} simplifiedOrderFieldPaths Ordering field paths with the\nexclamation mark prefix stripped from them.", "docstring_tokens": ["Calculates", "the", "best", "possible", "sorting", "optimization", "for", "the", "provided", "storages", "updating", "the", "provided", "map", "with", "sorting", "optimization", "scores", "for", "each", "storage", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/query-engine.js#L380-L388", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/query-engine.js", "func_name": "prepareFilteringOptimization", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculates the best possible filtering optimizations for the provided\nstorages, updating the provided map with optimized filtering info and\noptimization score for each storage.\n\n@param {Map} storages\nMap of storage key paths to storages and information related to how\nthe query would be executed on each of them, including the\nperformance optimization score (the higher is better).\n@param {?(undefined|number|string|Date|Array|IDBKeyRange|Object|function(*, (number|string|Date|Array)): boolean)=} filter\nThe filter, restricting the records returned by this method. If a\nfunction is provided, the first argument will be set to the record\nand the second argument will be set to the primary key of the record.", "docstring_tokens": ["Calculates", "the", "best", "possible", "filtering", "optimizations", "for", "the", "provided", "storages", "updating", "the", "provided", "map", "with", "optimized", "filtering", "info", "and", "optimization", "score", "for", "each", "storage", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/query-engine.js#L404-L436", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/query-engine.js", "func_name": "chooseStorageForQuery", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Selects the storage on which the execute a query that should lead to the\nbest possible performance. The method returns all the data necessary to\nexecute the query.\n\n@param {Map} storages\nMap of storage key paths to storages and information related to how\nthe query would be executed on each of them, including the\nperformance optimization score (the higher is better).\n@param {string[]} order Field paths by which the records should be sorted. A\nfield path may be prefixed by an exclamation mark ({@code \"!\"}) for\ndescending order.\n@param {string[]} simplifiedOrderFieldPaths Ordering field paths with the\nexclamation mark prefix stripped from them.\n@param {boolean} canSortingBeOptimized Set to {@code true} if sorting\noptimization is possible.\n@param {boolean} expectedSortingDirection Set to {@code true} for descending\norder, set to {@code false} for ascending order.\n@return {{storage: AbstractReadOnlyStorage, direction: CursorDirection, comparator: ?function(*, *): number, keyRange: (undefined|IDBKeyRange), filter: (undefined|function(*, (number|string|Date|Array)): boolean)}}\nThe storage on which the query should be executed, the direction in\nwhich the cursor should be opened and the record comparator to use\nto additionally sort the fetched records matching the filter.\nFinally, the returned object has the {@code keyRange} and\n{@code filter} fields set to the key range and custom filter to use\nwith the storage to run the query.", "docstring_tokens": ["Selects", "the", "storage", "on", "which", "the", "execute", "a", "query", "that", "should", "lead", "to", "the", "best", "possible", "performance", ".", "The", "method", "returns", "all", "the", "data", "necessary", "to", "execute", "the", "query", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/query-engine.js#L464-L490", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/query-engine.js", "func_name": "prepareOrderingSpecificationForQuery", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Preprocess the raw ordering specification into form that can be used in\nquery optimization.\n\n@param {?(CursorDirection|string|string[]|function(*, *): number)} order How\nthe resulting records should be sorted. This can be one of the\nfollowing:\n- a {@code CursorDirection} constant, either {@code NEXT} or\n{@code PREVIOUS} for ascending or descending order respectively\n- {@code null} as alias for {@code CursorDirection.NEXT}\n- one of the {@code \"NEXT\"} (alias for {@code CursorDirection.NEXT}),\n{@code \"PREVIOUS\"} or {@code \"PREV\"} (aliases for\n{@code CursorDirection.PREVIOUS})\n- a string containing a field path, meaning the records should be\nsorted by the values of the denoted field (note that the field\nmust exist in all records and its value must be a valid IndexedDB\nkey value).\nThe order is ascending by default, use the {@code \"!\" prefix} for\ndescending order.\nTo sort by a field named {@code NEXT}, {@code PREVIOUS} or\n{@code PREV} wrap the field path into an array containing the field\npath.\n- an array of field paths, as described above. The records will be\nsorted by the values of the specified fields lexicographically.\n- a comparator function compatible with the\n{@linkcode Array.prototype.sort} method.\n@param {(string|string[])} keyPath The key path of this object store.\n@return {(string[]|function(*, *): number)} Prepared ordering specification\nready to be used in query optimization.", "docstring_tokens": ["Preprocess", "the", "raw", "ordering", "specification", "into", "form", "that", "can", "be", "used", "in", "query", "optimization", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/query-engine.js#L561-L584", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/DBFactory.js", "func_name": "openConnection", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles opening the connection to the database and wraps the whole process\nin a promise.\n\n@param {string} databaseName The name of the Indexed DB database to connect\nto.\n@param {(DatabaseSchema|UpgradedDatabaseSchema|Object)[]} sortedSchemaDescriptors\nThe database schema descriptors, sorted in ascending order by the\nschema version number.\n@return {Promise} A promise that resolves to the database\nconnection.", "docstring_tokens": ["Handles", "opening", "the", "connection", "to", "the", "database", "and", "wraps", "the", "whole", "process", "in", "a", "promise", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/DBFactory.js#L205-L262", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/DBFactory.js", "func_name": "handleConnectionError", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles a database error encountered during connection establishing.\n\n@param {Event} event The error event.\n@param {Error} error The encountered error.\n@param {boolean} wasBlocked Flag signalling whether the connection has been\nblocked.\n@param {boolean} upgradeTriggered Flag signalling whether the database schema\nupgrade process was triggered.\n@param {function(Error)} reject The connection promise rejection callback.\n@param {function(Error)} migrationPromiseRejector The schema migration\npromise rejection callback.", "docstring_tokens": ["Handles", "a", "database", "error", "encountered", "during", "connection", "establishing", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/DBFactory.js#L277-L286", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/DBFactory.js", "func_name": "executeMigrationListeners", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Executes the currently registered database schema migration listeners with\nthe provided arguments.\n\n@param {string} databaseName The name of the database being migrated.\n@param {number} oldVersion The version number from which the schema is being\nmigrated.\n@param {number} newVersion The version number to which the schema is being\nmigrated.\n@param {Promise} completionPromise A promise that resolves when\nthe migration is finished.", "docstring_tokens": ["Executes", "the", "currently", "registered", "database", "schema", "migration", "listeners", "with", "the", "provided", "arguments", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/DBFactory.js#L345-L354", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/utils.js", "func_name": "splitFilteringObject", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Splits the provided filter object to two objects according the the provided\nstorage key path. This is used to separate a complex filter object into an\nobject optimizable into a key range and a simpler object that will be\ncompiled into a filter predicate function.\n\n@param {Object} filter Filtering object to split.\n@param {string[]} filterFieldPaths All field paths in the filtering object.\n@param {string[]} storageKeyPath The key path(s) of the storage for which\nthe filtering object is being split.\n@return {{fieldsToOptimize: Object, fieldsToCompile: Object}}\nThe {@code fieldsToOptimize} filter object will contain only the\nfield paths specified in the {@code storageKeyPath}, while the\n{@code fieldsToCompile} will contain the remaining field paths of\nthe source filter object.", "docstring_tokens": ["Splits", "the", "provided", "filter", "object", "to", "two", "objects", "according", "the", "the", "provided", "storage", "key", "path", ".", "This", "is", "used", "to", "separate", "a", "complex", "filter", "object", "into", "an", "object", "optimizable", "into", "a", "key", "range", "and", "a", "simpler", "object", "that", "will", "be", "compiled", "into", "a", "filter", "predicate", "function", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/utils.js#L193-L210", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/utils.js", "func_name": "getFieldPaths", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generates an array containing all field paths in the provided object.\n\nThe method also tests whether any of the leaf field values is an\n{@linkcode IDBKeyRange} instance, in such case the method returns\n{@code null}.\n\nThe method is used to determine whether the provided object can be turned\ninto and {@linkcode IDBKeyRange} instance for a compound record key, and if\nso, retrieve all field paths in the object so that its structure can be\nvalidated against the field paths of the storage.\n\n@param {Object} object The object from which the field paths are to be\nextracted.\n@param {boolean=} stopOnKeyRange When {@code true}, the method returns\n{@code null} if it encounters a key range.\n@return {?string[]} All field paths in the provided objects, unless the\nobject contains a field set to an {@linkcode IDBKeyRange} instance.", "docstring_tokens": ["Generates", "an", "array", "containing", "all", "field", "paths", "in", "the", "provided", "object", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/utils.js#L430-L460", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/utils.js", "func_name": "setFieldValue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets the specified field, denoted by the specified field path, on the\nprovided object to the provided value.\n\nIf the specified field path does not exist in the object, it is\nautomatically created by inserting new empty objects.\n\n@param {Object} object An object on which the field should be set.\n@param {string} fieldPath A field path on which the value should be set. A\nfield path is a sequence of field names joined by dots ({@code \".\"}).\n@param {*} value The value to set at the specified field path.\n@throws {Error} Thrown if the field path is already present or in a conflict\nwith another already present field path.", "docstring_tokens": ["Sets", "the", "specified", "field", "denoted", "by", "the", "specified", "field", "path", "on", "the", "provided", "object", "to", "the", "provided", "value", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/utils.js#L476-L505", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/object-store/utils.js", "func_name": "getFieldValue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieves the value from the provided object at the specified field path.\n\n@param {Object} object The object from which the field value is to be\nextracted.\n@param {string} fieldPath The path to the field to retrieve, specified as a\nsequence of field names joined by dots ({@code \".\"}).\n@return {*} The value of the specified field.\n@throw {Error} Thrown if the field path does not exist in the provided\nobject.", "docstring_tokens": ["Retrieves", "the", "value", "from", "the", "provided", "object", "at", "the", "specified", "field", "path", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/object-store/utils.js#L518-L534", "partition": "test"} +{"repo": "jurca/indexed-db.es6", "path": "es2015/migration/DatabaseVersionMigrator.js", "func_name": "upgradeSchema", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Updates the schema of the provided Indexed DB database to the schema\nspecified by the provided schema descriptors.\n\n@param {IDBDatabase} nativeDatabase The native Indexed DB database being\nmigrated.\n@param {IDBTransaction} nativeTransaction The native {@code versionchange}\ntransaction.\n@param {((DatabaseSchema|UpgradedDatabaseSchema))[]} descriptors Schema\ndescriptor of the version to which the database is to be upgraded.", "docstring_tokens": ["Updates", "the", "schema", "of", "the", "provided", "Indexed", "DB", "database", "to", "the", "schema", "specified", "by", "the", "provided", "schema", "descriptors", "."], "sha": "abc22dc63b2159c253b60c5dc396d22fd72c2177", "url": "https://github.com/jurca/indexed-db.es6/blob/abc22dc63b2159c253b60c5dc396d22fd72c2177/es2015/migration/DatabaseVersionMigrator.js#L97-L117", "partition": "test"} +{"repo": "Raynos/graphics", "path": "element/container.js", "func_name": "container", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Int -> Int -> Position -> Element -> Element", "docstring_tokens": ["Int", "-", ">", "Int", "-", ">", "Position", "-", ">", "Element", "-", ">", "Element"], "sha": "6c156db7419c9f02b22d277c0579432c7f261e68", "url": "https://github.com/Raynos/graphics/blob/6c156db7419c9f02b22d277c0579432c7f261e68/element/container.js#L32-L35", "partition": "test"} +{"repo": "Raynos/graphics", "path": "examples/full/todo.js", "func_name": "mainSection", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Various template functions to render subsets of the UI", "docstring_tokens": ["Various", "template", "functions", "to", "render", "subsets", "of", "the", "UI"], "sha": "6c156db7419c9f02b22d277c0579432c7f261e68", "url": "https://github.com/Raynos/graphics/blob/6c156db7419c9f02b22d277c0579432c7f261e68/examples/full/todo.js#L84-L102", "partition": "test"} +{"repo": "ksecord/dreamscreen-node", "path": "lib/dreamscreen/client.js", "func_name": "Client", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a dreamscreen client\n@extends EventEmitter", "docstring_tokens": ["Creates", "a", "dreamscreen", "client"], "sha": "09630544520e417f02b21734ef619e013d43d012", "url": "https://github.com/ksecord/dreamscreen-node/blob/09630544520e417f02b21734ef619e013d43d012/lib/dreamscreen/client.js#L18-L30", "partition": "test"} +{"repo": "ksecord/dreamscreen-node", "path": "lib/dreamscreen/light.js", "func_name": "Light", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A representation of a light bulb\nDreamScreen HD, DreamScreen 4K, SideKick\n\n@class\n@param {Obj} constr constructor object\n@param {DreamScreen/Client} constr.client the client the light belongs to\n@param {String} constr.ipAddress ip address of the light", "docstring_tokens": ["A", "representation", "of", "a", "light", "bulb", "DreamScreen", "HD", "DreamScreen", "4K", "SideKick"], "sha": "09630544520e417f02b21734ef619e013d43d012", "url": "https://github.com/ksecord/dreamscreen-node/blob/09630544520e417f02b21734ef619e013d43d012/lib/dreamscreen/light.js#L17-L40", "partition": "test"} +{"repo": "Raynos/graphics", "path": "element/plain-text.js", "func_name": "plainText", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "String -> Element", "docstring_tokens": ["String", "-", ">", "Element"], "sha": "6c156db7419c9f02b22d277c0579432c7f261e68", "url": "https://github.com/Raynos/graphics/blob/6c156db7419c9f02b22d277c0579432c7f261e68/element/plain-text.js#L29-L34", "partition": "test"} +{"repo": "Raynos/graphics", "path": "lib/json-format.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert an array into an HTML fragment", "docstring_tokens": ["Convert", "an", "array", "into", "an", "HTML", "fragment"], "sha": "6c156db7419c9f02b22d277c0579432c7f261e68", "url": "https://github.com/Raynos/graphics/blob/6c156db7419c9f02b22d277c0579432c7f261e68/lib/json-format.js#L57-L73", "partition": "test"} +{"repo": "Raynos/graphics", "path": "lib/json-format.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Produce an error document for when parsing fails.", "docstring_tokens": ["Produce", "an", "error", "document", "for", "when", "parsing", "fails", "."], "sha": "6c156db7419c9f02b22d277c0579432c7f261e68", "url": "https://github.com/Raynos/graphics/blob/6c156db7419c9f02b22d277c0579432c7f261e68/lib/json-format.js#L106-L116", "partition": "test"} +{"repo": "unifiedjs/unified-stream", "path": "index.js", "func_name": "write", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Write a chunk into memory.", "docstring_tokens": ["Write", "a", "chunk", "into", "memory", "."], "sha": "521fe081db71ad182af988832768fbe7dd2be1cb", "url": "https://github.com/unifiedjs/unified-stream/blob/521fe081db71ad182af988832768fbe7dd2be1cb/index.js#L23-L41", "partition": "test"} +{"repo": "unifiedjs/unified-stream", "path": "index.js", "func_name": "end", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "End the writing. Passes all arguments to a final `write`. Starts the process, which will trigger `error`, with a fatal error, if any; `data`, with the generated document in `string` form, if succesful. If messages are triggered during the process, those are triggerd as `warning`s.", "docstring_tokens": ["End", "the", "writing", ".", "Passes", "all", "arguments", "to", "a", "final", "write", ".", "Starts", "the", "process", "which", "will", "trigger", "error", "with", "a", "fatal", "error", "if", "any", ";", "data", "with", "the", "generated", "document", "in", "string", "form", "if", "succesful", ".", "If", "messages", "are", "triggered", "during", "the", "process", "those", "are", "triggerd", "as", "warning", "s", "."], "sha": "521fe081db71ad182af988832768fbe7dd2be1cb", "url": "https://github.com/unifiedjs/unified-stream/blob/521fe081db71ad182af988832768fbe7dd2be1cb/index.js#L47-L81", "partition": "test"} +{"repo": "unifiedjs/unified-stream", "path": "index.js", "func_name": "cleanup", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Clean listeners.", "docstring_tokens": ["Clean", "listeners", "."], "sha": "521fe081db71ad182af988832768fbe7dd2be1cb", "url": "https://github.com/unifiedjs/unified-stream/blob/521fe081db71ad182af988832768fbe7dd2be1cb/index.js#L123-L132", "partition": "test"} +{"repo": "unifiedjs/unified-stream", "path": "index.js", "func_name": "onerror", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Close dangling pipes and handle unheard errors.", "docstring_tokens": ["Close", "dangling", "pipes", "and", "handle", "unheard", "errors", "."], "sha": "521fe081db71ad182af988832768fbe7dd2be1cb", "url": "https://github.com/unifiedjs/unified-stream/blob/521fe081db71ad182af988832768fbe7dd2be1cb/index.js#L135-L144", "partition": "test"} +{"repo": "jolaleye/snap", "path": "tasks/save.js", "func_name": "clean", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "clean out blacklisted content", "docstring_tokens": ["clean", "out", "blacklisted", "content"], "sha": "31bc67af9643aeb799ac87f45587e392a41add19", "url": "https://github.com/jolaleye/snap/blob/31bc67af9643aeb799ac87f45587e392a41add19/tasks/save.js#L73-L82", "partition": "test"} +{"repo": "jolaleye/snap", "path": "tasks/ls.js", "func_name": "ls", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "snap ls list saved boilerplates", "docstring_tokens": ["snap", "ls", "list", "saved", "boilerplates"], "sha": "31bc67af9643aeb799ac87f45587e392a41add19", "url": "https://github.com/jolaleye/snap/blob/31bc67af9643aeb799ac87f45587e392a41add19/tasks/ls.js#L10-L26", "partition": "test"} +{"repo": "andrao/node-analytics", "path": "node-analytics.js", "func_name": "sessionData", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "append session data", "docstring_tokens": ["append", "session", "data"], "sha": "170bca2d2985cc384aa584b0e588221a96630834", "url": "https://github.com/andrao/node-analytics/blob/170bca2d2985cc384aa584b0e588221a96630834/node-analytics.js#L520-L606", "partition": "test"} +{"repo": "andrao/node-analytics", "path": "node-analytics.js", "func_name": "newRequest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "return new request document, create req cookie", "docstring_tokens": ["return", "new", "request", "document", "create", "req", "cookie"], "sha": "170bca2d2985cc384aa584b0e588221a96630834", "url": "https://github.com/andrao/node-analytics/blob/170bca2d2985cc384aa584b0e588221a96630834/node-analytics.js#L610-L651", "partition": "test"} +{"repo": "mapero/node-red-contrib-nools", "path": "nools.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Constructor for the message class", "docstring_tokens": ["Constructor", "for", "the", "message", "class"], "sha": "f569d9ca8c16dac5b9eefe11df290f5a7432b7ec", "url": "https://github.com/mapero/node-red-contrib-nools/blob/f569d9ca8c16dac5b9eefe11df290f5a7432b7ec/nools.js#L4-L32", "partition": "test"} +{"repo": "mapero/node-red-contrib-nools", "path": "nools.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Constructor for the clock class", "docstring_tokens": ["Constructor", "for", "the", "clock", "class"], "sha": "f569d9ca8c16dac5b9eefe11df290f5a7432b7ec", "url": "https://github.com/mapero/node-red-contrib-nools/blob/f569d9ca8c16dac5b9eefe11df290f5a7432b7ec/nools.js#L35-L60", "partition": "test"} +{"repo": "andreypopp/react-app", "path": "controller.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Override request process so it first fetches the data needed for a page\ntransition.", "docstring_tokens": ["Override", "request", "process", "so", "it", "first", "fetches", "the", "data", "needed", "for", "a", "page", "transition", "."], "sha": "1ed2852b99755683eef0e6f9be75d5cd78659dd7", "url": "https://github.com/andreypopp/react-app/blob/1ed2852b99755683eef0e6f9be75d5cd78659dd7/controller.js#L16-L43", "partition": "test"} +{"repo": "GeoXForm/GeoXForm", "path": "src/lib/ogr-cmd.js", "func_name": "create", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets a set of OGR Parameters for an export\n\n@param {object} options - potentially contains a fields object", "docstring_tokens": ["Gets", "a", "set", "of", "OGR", "Parameters", "for", "an", "export"], "sha": "f5c6274514d432e12ca768309b4108dca911c1dc", "url": "https://github.com/GeoXForm/GeoXForm/blob/f5c6274514d432e12ca768309b4108dca911c1dc/src/lib/ogr-cmd.js#L8-L21", "partition": "test"} +{"repo": "GeoXForm/GeoXForm", "path": "src/lib/ogr-cmd.js", "func_name": "csvParams", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add parameters specific to a csv export\n\n@param {array} cmd - an array of OGR command parts to modify\n@param {object} options - may contain fields\n@return {array}\n@private", "docstring_tokens": ["Add", "parameters", "specific", "to", "a", "csv", "export"], "sha": "f5c6274514d432e12ca768309b4108dca911c1dc", "url": "https://github.com/GeoXForm/GeoXForm/blob/f5c6274514d432e12ca768309b4108dca911c1dc/src/lib/ogr-cmd.js#L31-L38", "partition": "test"} +{"repo": "GeoXForm/GeoXForm", "path": "src/lib/ogr-cmd.js", "func_name": "shapefileParams", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add parameters specific to a shapefile export\n\n@param {string} cmd - an array of OGR command parts to modify\n@param {object} options - may contain a wkid or srs\n@param {function} callback - calls back back with a modified command array or an error\n@private", "docstring_tokens": ["Add", "parameters", "specific", "to", "a", "shapefile", "export"], "sha": "f5c6274514d432e12ca768309b4108dca911c1dc", "url": "https://github.com/GeoXForm/GeoXForm/blob/f5c6274514d432e12ca768309b4108dca911c1dc/src/lib/ogr-cmd.js#L61-L68", "partition": "test"} +{"repo": "nodkz/babel-plugin-transform-relay-hot", "path": "index.js", "func_name": "watcherFn", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "file changes watcher", "docstring_tokens": ["file", "changes", "watcher"], "sha": "493bbfac6a29bb63e18c91147a8eb7fc4e318b3f", "url": "https://github.com/nodkz/babel-plugin-transform-relay-hot/blob/493bbfac6a29bb63e18c91147a8eb7fc4e318b3f/index.js#L14-L38", "partition": "test"} +{"repo": "mrlannigan/node-akamai", "path": "lib/purge.js", "func_name": "AkamaiPurge", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Cornerstone function that sends a purge request to Akamai's CCU REST API It will return a promise. `options` is optional.", "docstring_tokens": ["Cornerstone", "function", "that", "sends", "a", "purge", "request", "to", "Akamai", "s", "CCU", "REST", "API", "It", "will", "return", "a", "promise", ".", "options", "is", "optional", "."], "sha": "ccffb1c439293bd98a9f3d90b15c800ddf29338e", "url": "https://github.com/mrlannigan/node-akamai/blob/ccffb1c439293bd98a9f3d90b15c800ddf29338e/lib/purge.js#L20-L87", "partition": "test"} +{"repo": "mrlannigan/node-akamai", "path": "lib/purge.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a new function pre-configured with the options that exist up to this point", "docstring_tokens": ["Returns", "a", "new", "function", "pre", "-", "configured", "with", "the", "options", "that", "exist", "up", "to", "this", "point"], "sha": "ccffb1c439293bd98a9f3d90b15c800ddf29338e", "url": "https://github.com/mrlannigan/node-akamai/blob/ccffb1c439293bd98a9f3d90b15c800ddf29338e/lib/purge.js#L105-L121", "partition": "test"} +{"repo": "meituan/monkey", "path": "index.js", "func_name": "Mock", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize a `Mock` instance.\n\n@constructor\n@param {string} mount Root directory of mock data\n@param {Object} options\n@param {boolean} options.params Whether to supply response with additional\nrequest and response params, default to true", "docstring_tokens": ["Initialize", "a", "Mock", "instance", "."], "sha": "55905e3a5bfff355e8f9f8327332edfbede57de3", "url": "https://github.com/meituan/monkey/blob/55905e3a5bfff355e8f9f8327332edfbede57de3/index.js#L20-L28", "partition": "test"} +{"repo": "noahehall/node-globals", "path": "src/lib/thirdparty/sorttable.js", "func_name": "forEach", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "globally resolve forEach enumeration", "docstring_tokens": ["globally", "resolve", "forEach", "enumeration"], "sha": "23240649a6226dcabdd963ff3c4e7e3e7df9a9ba", "url": "https://github.com/noahehall/node-globals/blob/23240649a6226dcabdd963ff3c4e7e3e7df9a9ba/src/lib/thirdparty/sorttable.js#L467-L486", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/deployer.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "merge in any properties to target that are excelusively only in source", "docstring_tokens": ["merge", "in", "any", "properties", "to", "target", "that", "are", "excelusively", "only", "in", "source"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/deployer.js#L30-L38", "partition": "test"} +{"repo": "ifrost/protoplast", "path": "js/utils/common.js", "func_name": "createObject", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create an object for the prototype\n@param {Object} proto\n@param {Object[]} args\n@returns {Object}", "docstring_tokens": ["Create", "an", "object", "for", "the", "prototype"], "sha": "6ff349404c38a92f8715ab746953adf2dc8d8df6", "url": "https://github.com/ifrost/protoplast/blob/6ff349404c38a92f8715ab746953adf2dc8d8df6/js/utils/common.js#L19-L27", "partition": "test"} +{"repo": "ifrost/protoplast", "path": "js/utils/common.js", "func_name": "mergeProperty", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Merge a single property\n\nArrays are concatenated, primitives taken from the source if not\ndefined and complex object merged recursively\n\n@param {Object} destination\n@param {Object} source\n@param {String} property", "docstring_tokens": ["Merge", "a", "single", "property"], "sha": "6ff349404c38a92f8715ab746953adf2dc8d8df6", "url": "https://github.com/ifrost/protoplast/blob/6ff349404c38a92f8715ab746953adf2dc8d8df6/js/utils/common.js#L64-L74", "partition": "test"} +{"repo": "ifrost/protoplast", "path": "js/utils/common.js", "func_name": "mergeAsArray", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Merges arrays by concatenating them\n\n@param {Object} destination\n@param {Object} source\n@param {String} property", "docstring_tokens": ["Merges", "arrays", "by", "concatenating", "them"], "sha": "6ff349404c38a92f8715ab746953adf2dc8d8df6", "url": "https://github.com/ifrost/protoplast/blob/6ff349404c38a92f8715ab746953adf2dc8d8df6/js/utils/common.js#L83-L85", "partition": "test"} +{"repo": "ifrost/protoplast", "path": "js/utils/common.js", "func_name": "mergeAsObject", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Merges object recursively using merge function\n\n@param {Object} destination\n@param {Object} source\n@param {String} property", "docstring_tokens": ["Merges", "object", "recursively", "using", "merge", "function"], "sha": "6ff349404c38a92f8715ab746953adf2dc8d8df6", "url": "https://github.com/ifrost/protoplast/blob/6ff349404c38a92f8715ab746953adf2dc8d8df6/js/utils/common.js#L107-L110", "partition": "test"} +{"repo": "ifrost/protoplast", "path": "js/utils/common.js", "func_name": "mixin", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Mixes all mixins into the instance\n@param {Object} instance\n@param {Object[]} mixins\n@returns {Object}", "docstring_tokens": ["Mixes", "all", "mixins", "into", "the", "instance"], "sha": "6ff349404c38a92f8715ab746953adf2dc8d8df6", "url": "https://github.com/ifrost/protoplast/blob/6ff349404c38a92f8715ab746953adf2dc8d8df6/js/utils/common.js#L133-L138", "partition": "test"} +{"repo": "chjj/coined", "path": "lib/coined.js", "func_name": "mkdirp", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Copyright 2010 James Halliday (mail@substack.net) This project is free software released under the MIT/X11 license.", "docstring_tokens": ["Copyright", "2010", "James", "Halliday", "(", "mail"], "sha": "4e4d95e95e9f77765be750d33b60c8b774a3736c", "url": "https://github.com/chjj/coined/blob/4e4d95e95e9f77765be750d33b60c8b774a3736c/lib/coined.js#L1967-L1995", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/api.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get the full deployed system definition", "docstring_tokens": ["get", "the", "full", "deployed", "system", "definition"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/api.js#L67-L75", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/api.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "create a new blank system", "docstring_tokens": ["create", "a", "new", "blank", "system"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/api.js#L82-L85", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/api.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "link a system from local fs", "docstring_tokens": ["link", "a", "system", "from", "local", "fs"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/api.js#L93-L96", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/api.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "list all of the available containers in a system", "docstring_tokens": ["list", "all", "of", "the", "available", "containers", "in", "a", "system"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/api.js#L116-L130", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/api.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "build a container", "docstring_tokens": ["build", "a", "container"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/api.js#L137-L172", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/api.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "build all containers belonging to a system, in series", "docstring_tokens": ["build", "all", "containers", "belonging", "to", "a", "system", "in", "series"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/api.js#L179-L230", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/api.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Supports target abbreviation", "docstring_tokens": ["Supports", "target", "abbreviation"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/api.js#L237-L268", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/api.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "deploy the specified revision to the nominated target\nhandle if file is missing", "docstring_tokens": ["deploy", "the", "specified", "revision", "to", "the", "nominated", "target", "handle", "if", "file", "is", "missing"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/api.js#L364-L388", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/api.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "preview a system deploy", "docstring_tokens": ["preview", "a", "system", "deploy"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/api.js#L394-L399", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/api.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get the revision history for a system", "docstring_tokens": ["get", "the", "revision", "history", "for", "a", "system"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/api.js#L406-L421", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/api.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get a specific revision", "docstring_tokens": ["get", "a", "specific", "revision"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/api.js#L428-L439", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/api.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "compile the system into the various targets and commit them to the repository", "docstring_tokens": ["compile", "the", "system", "into", "the", "various", "targets", "and", "commit", "them", "to", "the", "repository"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/api.js#L629-L647", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/api.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "commit the system", "docstring_tokens": ["commit", "the", "system"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/api.js#L654-L679", "partition": "test"} +{"repo": "Banno/grunt-coffeeify", "path": "tasks/coffeeify.js", "func_name": "finalizeBuild", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Finalize the task.", "docstring_tokens": ["Finalize", "the", "task", "."], "sha": "e424f74b5bff1da18112fc5a0a9b0f9fe56e6a74", "url": "https://github.com/Banno/grunt-coffeeify/blob/e424f74b5bff1da18112fc5a0a9b0f9fe56e6a74/tasks/coffeeify.js#L159-L168", "partition": "test"} +{"repo": "mobilehero-archive/aplus-node", "path": "resolver/resolve-fix.js", "func_name": "injectCode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Inject necessary code into the file app.js", "docstring_tokens": ["Inject", "necessary", "code", "into", "the", "file", "app", ".", "js"], "sha": "a16e11722406eb42f7b9e182c1301ffe2b706b67", "url": "https://github.com/mobilehero-archive/aplus-node/blob/a16e11722406eb42f7b9e182c1301ffe2b706b67/resolver/resolve-fix.js#L62-L72", "partition": "test"} +{"repo": "mobilehero-archive/aplus-node", "path": "resolver/resolve-fix.js", "func_name": "fixFiles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fix module resolution in all found javascript files", "docstring_tokens": ["Fix", "module", "resolution", "in", "all", "found", "javascript", "files"], "sha": "a16e11722406eb42f7b9e182c1301ffe2b706b67", "url": "https://github.com/mobilehero-archive/aplus-node/blob/a16e11722406eb42f7b9e182c1301ffe2b706b67/resolver/resolve-fix.js#L77-L104", "partition": "test"} +{"repo": "mobilehero-archive/aplus-node", "path": "resolver/resolve-fix.js", "func_name": "findFiles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find all files that match extension criteria\n\n@param {string} rootpath - Absolute path of the directory from which file search will begin\n@param {string[]|string} [patterns=\"**\"] - Pattern(s) to be used when attempting to match files found\n@returns {string[]} - Matched file paths", "docstring_tokens": ["Find", "all", "files", "that", "match", "extension", "criteria"], "sha": "a16e11722406eb42f7b9e182c1301ffe2b706b67", "url": "https://github.com/mobilehero-archive/aplus-node/blob/a16e11722406eb42f7b9e182c1301ffe2b706b67/resolver/resolve-fix.js#L132-L150", "partition": "test"} +{"repo": "mobilehero-archive/aplus-node", "path": "resolver/resolve-fix.js", "func_name": "loadFiles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find and process all files", "docstring_tokens": ["Find", "and", "process", "all", "files"], "sha": "a16e11722406eb42f7b9e182c1301ffe2b706b67", "url": "https://github.com/mobilehero-archive/aplus-node/blob/a16e11722406eb42f7b9e182c1301ffe2b706b67/resolver/resolve-fix.js#L186-L227", "partition": "test"} +{"repo": "mobilehero-archive/aplus-node", "path": "resolver/resolve-fix.js", "func_name": "writeRegistry", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Write registry file to resolver.js", "docstring_tokens": ["Write", "registry", "file", "to", "resolver", ".", "js"], "sha": "a16e11722406eb42f7b9e182c1301ffe2b706b67", "url": "https://github.com/mobilehero-archive/aplus-node/blob/a16e11722406eb42f7b9e182c1301ffe2b706b67/resolver/resolve-fix.js#L233-L240", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/builder.js", "func_name": "build", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Build the container and update all instantiations of the container\nwith the new speicific block and replace identifiers for new uuids", "docstring_tokens": ["Build", "the", "container", "and", "update", "all", "instantiations", "of", "the", "container", "with", "the", "new", "speicific", "block", "and", "replace", "identifiers", "for", "new", "uuids"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/builder.js#L34-L58", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/builder.js", "func_name": "findContainer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "find the container in the supplied target files, return the container with the highest buildHead number", "docstring_tokens": ["find", "the", "container", "in", "the", "supplied", "target", "files", "return", "the", "container", "with", "the", "highest", "buildHead", "number"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/builder.js#L75-L102", "partition": "test"} +{"repo": "noahehall/node-globals", "path": "dist/constants.js", "func_name": "setAppConsts", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set global variables on worker & main threads, else node\n@type {[type]}", "docstring_tokens": ["Set", "global", "variables", "on", "worker", "&", "main", "threads", "else", "node"], "sha": "23240649a6226dcabdd963ff3c4e7e3e7df9a9ba", "url": "https://github.com/noahehall/node-globals/blob/23240649a6226dcabdd963ff3c4e7e3e7df9a9ba/dist/constants.js#L32-L48", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/sysrev/sysrevMeta.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "ensures that the system repository is in place, creates it if doesn't exist", "docstring_tokens": ["ensures", "that", "the", "system", "repository", "is", "in", "place", "creates", "it", "if", "doesn", "t", "exist"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/sysrev/sysrevMeta.js#L42-L58", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/sysrev/sysrevMeta.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "register a system", "docstring_tokens": ["register", "a", "system"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/sysrev/sysrevMeta.js#L65-L74", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/sysrev/sysrevMeta.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "unregister a system", "docstring_tokens": ["unregister", "a", "system"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/sysrev/sysrevMeta.js#L81-L88", "partition": "test"} +{"repo": "ifrost/protoplast", "path": "js/component.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Init the object, construct and process DOM", "docstring_tokens": ["Init", "the", "object", "construct", "and", "process", "DOM"], "sha": "6ff349404c38a92f8715ab746953adf2dc8d8df6", "url": "https://github.com/ifrost/protoplast/blob/6ff349404c38a92f8715ab746953adf2dc8d8df6/js/component.js#L41-L54", "partition": "test"} +{"repo": "ifrost/protoplast", "path": "js/component.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Process DOM using defined DOM processors", "docstring_tokens": ["Process", "DOM", "using", "defined", "DOM", "processors"], "sha": "6ff349404c38a92f8715ab746953adf2dc8d8df6", "url": "https://github.com/ifrost/protoplast/blob/6ff349404c38a92f8715ab746953adf2dc8d8df6/js/component.js#L59-L71", "partition": "test"} +{"repo": "ifrost/protoplast", "path": "js/component.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a child component\n@param {Component} child", "docstring_tokens": ["Add", "a", "child", "component"], "sha": "6ff349404c38a92f8715ab746953adf2dc8d8df6", "url": "https://github.com/ifrost/protoplast/blob/6ff349404c38a92f8715ab746953adf2dc8d8df6/js/component.js#L155-L166", "partition": "test"} +{"repo": "ifrost/protoplast", "path": "js/component.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove child component\n@param {Component} child", "docstring_tokens": ["Remove", "child", "component"], "sha": "6ff349404c38a92f8715ab746953adf2dc8d8df6", "url": "https://github.com/ifrost/protoplast/blob/6ff349404c38a92f8715ab746953adf2dc8d8df6/js/component.js#L200-L207", "partition": "test"} +{"repo": "ifrost/protoplast", "path": "js/component.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Attaches a component by replacing the provided element. Element must be an element inside the parent component.\n@param {Component} child\n@param {Element} element\n@param {HTMLElement} root if different than child.root", "docstring_tokens": ["Attaches", "a", "component", "by", "replacing", "the", "provided", "element", ".", "Element", "must", "be", "an", "element", "inside", "the", "parent", "component", "."], "sha": "6ff349404c38a92f8715ab746953adf2dc8d8df6", "url": "https://github.com/ifrost/protoplast/blob/6ff349404c38a92f8715ab746953adf2dc8d8df6/js/component.js#L224-L228", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/sysrev/sysrev.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "ensures that system has all required files", "docstring_tokens": ["ensures", "that", "system", "has", "all", "required", "files"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/sysrev/sysrev.js#L55-L61", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/sysrev/sysrev.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "checks if a directory is a system (has all the required files and correct\nsystem.json and system.js", "docstring_tokens": ["checks", "if", "a", "directory", "is", "a", "system", "(", "has", "all", "the", "required", "files", "and", "correct", "system", ".", "json", "and", "system", ".", "js"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/sysrev/sysrev.js#L67-L88", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/sysrev/sysrev.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "create a new system repository", "docstring_tokens": ["create", "a", "new", "system", "repository"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/sysrev/sysrev.js#L150-L176", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/sysrev/sysrev.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "create a new system by linking from local file system", "docstring_tokens": ["create", "a", "new", "system", "by", "linking", "from", "local", "file", "system"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/sysrev/sysrev.js#L183-L197", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/sysrev/sysrev.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "unlink system from the daemon", "docstring_tokens": ["unlink", "system", "from", "the", "daemon"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/sysrev/sysrev.js#L204-L211", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/sysrev/sysrev.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "commit a new version of the system, the head of the commit log\nmay be ahead of the actual deployed version of the system", "docstring_tokens": ["commit", "a", "new", "version", "of", "the", "system", "the", "head", "of", "the", "commit", "log", "may", "be", "ahead", "of", "the", "actual", "deployed", "version", "of", "the", "system"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/sysrev/sysrev.js#L235-L238", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/sysrev/sysrev.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get the head revision for a system", "docstring_tokens": ["get", "the", "head", "revision", "for", "a", "system"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/sysrev/sysrev.js#L245-L250", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/sysrev/sysrev.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get a revision from the history, with a specific version number", "docstring_tokens": ["get", "a", "revision", "from", "the", "history", "with", "a", "specific", "version", "number"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/sysrev/sysrev.js#L284-L298", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/sysrev/sysrev.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get a revision from the history, with abbreviation support", "docstring_tokens": ["get", "a", "revision", "from", "the", "history", "with", "abbreviation", "support"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/sysrev/sysrev.js#L322-L337", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/sysrev/sysrev.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get the currently deployed revision", "docstring_tokens": ["get", "the", "currently", "deployed", "revision"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/sysrev/sysrev.js#L391-L412", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/sysrev/sysrev.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "list all of the available revisions in the system", "docstring_tokens": ["list", "all", "of", "the", "available", "revisions", "in", "the", "system"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/sysrev/sysrev.js#L467-L481", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/sysrev/sysrev.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "find revision id by parital or full identifier", "docstring_tokens": ["find", "revision", "id", "by", "parital", "or", "full", "identifier"], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/sysrev/sysrev.js#L488-L506", "partition": "test"} +{"repo": "he9qi/ember-cli-emoji", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Allows custom configuration from `environment`", "docstring_tokens": ["Allows", "custom", "configuration", "from", "environment"], "sha": "dcf4f38f5628369da6334aa7b5abc819adbf63a6", "url": "https://github.com/he9qi/ember-cli-emoji/blob/dcf4f38f5628369da6334aa7b5abc819adbf63a6/index.js#L50-L75", "partition": "test"} +{"repo": "nearform/nscale-kernel", "path": "lib/proxy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determine the target containers - machine containers that have a proxy on them.", "docstring_tokens": ["Determine", "the", "target", "containers", "-", "machine", "containers", "that", "have", "a", "proxy", "on", "them", "."], "sha": "5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3", "url": "https://github.com/nearform/nscale-kernel/blob/5b9a544a6f2ffdc87294fee3fd00b81667ac0ab3/lib/proxy.js#L28-L39", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a new `Relation`.\n@param {Backbone.RelationalModel} [model]\n@param {Object} relation\n@param {Object} [options]", "docstring_tokens": ["Create", "a", "new", "Relation", "."], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L147-L155", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if the given modelType is registered as another model's subModel. If so, add it to the super model's\n'_subModels', and set the modelType's '_superModel', '_subModelTypeName', and '_subModelTypeAttribute'.\n\n@param {Backbone.RelationalModel} modelType", "docstring_tokens": ["Check", "if", "the", "given", "modelType", "is", "registered", "as", "another", "model", "s", "subModel", ".", "If", "so", "add", "it", "to", "the", "super", "model", "s", "_subModels", "and", "set", "the", "modelType", "s", "_superModel", "_subModelTypeName", "and", "_subModelTypeAttribute", "."], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L193-L210", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a reverse relation. Is added to the 'relations' property on model's prototype, and to\nexisting instances of 'model' in the store as well.\n@param {Object} relation\n@param {Backbone.RelationalModel} relation.model\n@param {String} relation.type\n@param {String} relation.key\n@param {String|Object} relation.relatedModel", "docstring_tokens": ["Add", "a", "reverse", "relation", ".", "Is", "added", "to", "the", "relations", "property", "on", "model", "s", "prototype", "and", "to", "existing", "instances", "of", "model", "in", "the", "store", "as", "well", "."], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L221-L233", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Deposit a `relation` for which the `relatedModel` can't be resolved at the moment.\n\n@param {Object} relation", "docstring_tokens": ["Deposit", "a", "relation", "for", "which", "the", "relatedModel", "can", "t", "be", "resolved", "at", "the", "moment", "."], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L240-L250", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Try to initialize any `_orphanRelation`s", "docstring_tokens": ["Try", "to", "initialize", "any", "_orphanRelation", "s"], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L255-L264", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a 'relation' to all existing instances of 'relation.model' in the store\n@param {Object} relation", "docstring_tokens": ["Add", "a", "relation", "to", "all", "existing", "instances", "of", "relation", ".", "model", "in", "the", "store"], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L287-L296", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find the Store's collection for a certain type of model.\n@param {Backbone.RelationalModel} type\n@param {Boolean} [create=true] Should a collection be created if none is found?\n@return {Backbone.Collection} A collection if found (or applicable for 'model'), or null", "docstring_tokens": ["Find", "the", "Store", "s", "collection", "for", "a", "certain", "type", "of", "model", "."], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L304-L323", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find a model type on one of the modelScopes by name. Names are split on dots.\n@param {String} name\n@return {Object}", "docstring_tokens": ["Find", "a", "model", "type", "on", "one", "of", "the", "modelScopes", "by", "name", ".", "Names", "are", "split", "on", "dots", "."], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L330-L345", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find the attribute that is to be used as the `id` on a given object\n@param type\n@param {String|Number|Object|Backbone.RelationalModel} item\n@return {String|Number}", "docstring_tokens": ["Find", "the", "attribute", "that", "is", "to", "be", "used", "as", "the", "id", "on", "a", "given", "object"], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L372-L390", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find a specific model of a certain `type` in the store\n@param type\n@param {String|Number|Object|Backbone.RelationalModel} item", "docstring_tokens": ["Find", "a", "specific", "model", "of", "a", "certain", "type", "in", "the", "store"], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L397-L412", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a 'model' to its appropriate collection. Retain the original contents of 'model.collection'.\n@param {Backbone.RelationalModel} model", "docstring_tokens": ["Add", "a", "model", "to", "its", "appropriate", "collection", ".", "Retain", "the", "original", "contents", "of", "model", ".", "collection", "."], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L418-L428", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if the given model may use the given `id`\n@param model\n@param [id]", "docstring_tokens": ["Check", "if", "the", "given", "model", "may", "use", "the", "given", "id"], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L435-L446", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove a 'model' from the store.\n@param {Backbone.RelationalModel} model", "docstring_tokens": ["Remove", "a", "model", "from", "the", "store", "."], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L465-L469", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check several pre-conditions.\n@return {Boolean} True if pre-conditions are satisfied, false if they're not.", "docstring_tokens": ["Check", "several", "pre", "-", "conditions", "."], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L594-L634", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "When `this.instance` is destroyed, cleanup our relations.\nGet reverse relation, call removeRelated on each.", "docstring_tokens": ["When", "this", ".", "instance", "is", "destroyed", "cleanup", "our", "relations", ".", "Get", "reverse", "relation", "call", "removeRelated", "on", "each", "."], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L684-L697", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Normalize and reduce `keyContents` to an `id`, for easier comparison\n@param {String|Number|Backbone.Model} keyContents", "docstring_tokens": ["Normalize", "and", "reduce", "keyContents", "to", "an", "id", "for", "easier", "comparison"], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L747-L750", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If a new 'this.relatedModel' appears in the 'store', try to match it to the last set 'keyContents'", "docstring_tokens": ["If", "a", "new", "this", ".", "relatedModel", "appears", "in", "the", "store", "try", "to", "match", "it", "to", "the", "last", "set", "keyContents"], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L805-L810", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Bind events and setup collectionKeys for a collection that is to be used as the backing store for a HasMany.\nIf no 'collection' is supplied, a new collection will be created of the specified 'collectionType' option.\n@param {Backbone.Collection} [collection]\n@return {Backbone.Collection}", "docstring_tokens": ["Bind", "events", "and", "setup", "collectionKeys", "for", "a", "collection", "that", "is", "to", "be", "used", "as", "the", "backing", "store", "for", "a", "HasMany", ".", "If", "no", "collection", "is", "supplied", "a", "new", "collection", "will", "be", "created", "of", "the", "specified", "collectionType", "option", "."], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L873-L905", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Normalize and reduce `keyContents` to a list of `ids`, for easier comparison\n@param {String|Number|String[]|Number[]|Backbone.Collection} keyContents", "docstring_tokens": ["Normalize", "and", "reduce", "keyContents", "to", "a", "list", "of", "ids", "for", "easier", "comparison"], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L963-L978", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieve related objects.\n@param key {string} The relation key to fetch models for.\n@param [options] {Object} Options for 'Backbone.Model.fetch' and 'Backbone.sync'.\n@param [refresh=false] {boolean} Fetch existing models from the server as well (in order to update them).\n@return {jQuery.when[]} An array of request objects", "docstring_tokens": ["Retrieve", "related", "objects", "."], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L1275-L1354", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert relations to JSON, omits them when required", "docstring_tokens": ["Convert", "relations", "to", "JSON", "omits", "them", "when", "required"], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L1451-L1525", "partition": "test"} +{"repo": "carrot/roots-cms-client", "path": "assets/js/vendor/backbone-relational.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find an instance of `this` type in 'Backbone.Relational.store'.\n- If `attributes` is a string or a number, `find` will just query the `store` and return a model if found.\n- If `attributes` is an object and is found in the store, the model will be updated with `attributes` unless `options.update` is `false`.\n@param {Object|String|Number} attributes Either a model's id, or the attributes used to create or update a model.\n@param {Object} [options]\n@param {Boolean} [options.merge=true]\n@param {Boolean} [options.parse=false]\n@return {Backbone.RelationalModel}", "docstring_tokens": ["Find", "an", "instance", "of", "this", "type", "in", "Backbone", ".", "Relational", ".", "store", ".", "-", "If", "attributes", "is", "a", "string", "or", "a", "number", "find", "will", "just", "query", "the", "store", "and", "return", "a", "model", "if", "found", ".", "-", "If", "attributes", "is", "an", "object", "and", "is", "found", "in", "the", "store", "the", "model", "will", "be", "updated", "with", "attributes", "unless", "options", ".", "update", "is", "false", "."], "sha": "57d5281eb03b9f8377d9478da3742f5a74653c17", "url": "https://github.com/carrot/roots-cms-client/blob/57d5281eb03b9f8377d9478da3742f5a74653c17/assets/js/vendor/backbone-relational.js#L1728-L1732", "partition": "test"} +{"repo": "bahrus/xtal-salt", "path": "dist/xtal-salt.iife.js", "func_name": "XtallatX", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Base class for many xtal- components\n@param superClass", "docstring_tokens": ["Base", "class", "for", "many", "xtal", "-", "components"], "sha": "5321b9f60bf5659634376db13162aab0f8716230", "url": "https://github.com/bahrus/xtal-salt/blob/5321b9f60bf5659634376db13162aab0f8716230/dist/xtal-salt.iife.js#L17-L107", "partition": "test"} +{"repo": "ajbarry3/easel-gl", "path": "easeljs.js", "func_name": "Bitmap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A Bitmap represents an Image, Canvas, or Video in the display list. A Bitmap can be instantiated using an existing\nHTML element, or a string.\n\n

    Example

    \n\nvar bitmap = new createjs.Bitmap(\"imagePath.jpg\");\n\nNotes:\n
      \n
    1. When using a video source that may loop or seek, use a {{#crossLink \"VideoBuffer\"}}{{/crossLink}} object to\nprevent blinking / flashing.\n
    2. When a string path or image tag that is not yet loaded is used, the stage may need to be redrawn before it\nwill be displayed.
    3. \n
    4. Bitmaps with an SVG source currently will not respect an alpha value other than 0 or 1. To get around this,\nthe Bitmap can be cached.
    5. \n
    6. Bitmaps with an SVG source will taint the canvas with cross-origin data, which prevents interactivity. This\nhappens in all browsers except recent Firefox builds.
    7. \n
    8. Images loaded cross-origin will throw cross-origin security errors when interacted with using a mouse, using\nmethods such as `getObjectUnderPoint`, or using filters, or caching. You can get around this by setting\n`crossOrigin` flags on your images before passing them to EaselJS, eg: `img.crossOrigin=\"Anonymous\";`
    9. \n
    \n\n@class Bitmap\n@extends DisplayObject\n@constructor\n@param {CanvasImageSource | String | Object} imageOrUri The source image to display. This can be a CanvasImageSource\n(image, video, canvas), an object with a `getImage` method that returns a CanvasImageSource, or a string URL to an image.\nIf the latter, a new Image instance with the URL as its src will be used.", "docstring_tokens": ["A", "Bitmap", "represents", "an", "Image", "Canvas", "or", "Video", "in", "the", "display", "list", ".", "A", "Bitmap", "can", "be", "instantiated", "using", "an", "existing", "HTML", "element", "or", "a", "string", "."], "sha": "e3b14a55d0266fe7950b1ff445be5017658ec665", "url": "https://github.com/ajbarry3/easel-gl/blob/e3b14a55d0266fe7950b1ff445be5017658ec665/easeljs.js#L11292-L11325", "partition": "test"} +{"repo": "mariusGundersen/descartes", "path": "lib/stringify.js", "func_name": "canonicalize", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return a new Thing that has the keys in sorted order. Recursive.\n\nIf the Thing...\n- has already been seen, return string `'[Circular]'`\n- is `undefined`, return string `'[undefined]'`\n- is `null`, return value `null`\n- is some other primitive, return the value\n- is not a primitive or an `Array`, `Object`, or `Function`, return the value of the Thing's `toString()` method\n- is a non-empty `Array`, `Object`, or `Function`, return the result of calling this function again.\n- is an empty `Array`, `Object`, or `Function`, return the result of calling `emptyRepresentation()`", "docstring_tokens": ["Return", "a", "new", "Thing", "that", "has", "the", "keys", "in", "sorted", "order", ".", "Recursive", "."], "sha": "743c71a6e042feaeab65d74be8f0c593850caa5d", "url": "https://github.com/mariusGundersen/descartes/blob/743c71a6e042feaeab65d74be8f0c593850caa5d/lib/stringify.js#L150-L212", "partition": "test"} +{"repo": "mariusGundersen/descartes", "path": "lib/stringify.js", "func_name": "emptyRepresentation", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If a value could have properties, and has none, this function is called,\nwhich returns a string representation of the empty value.\n\nFunctions w/ no properties return `'[Function]'`\nArrays w/ length === 0 return `'[]'`\nObjects w/ no properties return `'{}'`\nAll else: return result of `value.toString()`", "docstring_tokens": ["If", "a", "value", "could", "have", "properties", "and", "has", "none", "this", "function", "is", "called", "which", "returns", "a", "string", "representation", "of", "the", "empty", "value", "."], "sha": "743c71a6e042feaeab65d74be8f0c593850caa5d", "url": "https://github.com/mariusGundersen/descartes/blob/743c71a6e042feaeab65d74be8f0c593850caa5d/lib/stringify.js#L223-L236", "partition": "test"} +{"repo": "cmroanirgo/pl-copyfind", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "increment anchor count", "docstring_tokens": ["increment", "anchor", "count"], "sha": "ffd374546dbd13dd7e6b0b9f902019abf4a90b76", "url": "https://github.com/cmroanirgo/pl-copyfind/blob/ffd374546dbd13dd7e6b0b9f902019abf4a90b76/index.js#L498-L506", "partition": "test"} +{"repo": "coolony/kiwi", "path": "support/compile.js", "func_name": "compile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compile the files.", "docstring_tokens": ["Compile", "the", "files", "."], "sha": "dd421737e74282ef27e3bfb007a5ecba7d9c5864", "url": "https://github.com/coolony/kiwi/blob/dd421737e74282ef27e3bfb007a5ecba7d9c5864/support/compile.js#L98-L121", "partition": "test"} +{"repo": "bahmutov/functional-pipeline", "path": "fp-debug.js", "func_name": "fp", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates an optimistic chain, no checks before calling a function or accessing a property, or calling a method", "docstring_tokens": ["Creates", "an", "optimistic", "chain", "no", "checks", "before", "calling", "a", "function", "or", "accessing", "a", "property", "or", "calling", "a", "method"], "sha": "88efcf3a8cc212827c16a1c4a997db7e1b791e11", "url": "https://github.com/bahmutov/functional-pipeline/blob/88efcf3a8cc212827c16a1c4a997db7e1b791e11/fp-debug.js#L40-L74", "partition": "test"} +{"repo": "GamesDoneQuick/rieussec", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Construct a new Rieussec stopwatch\n\n@class Rieussec\n@classdesc A rieussec stopwatch object.\n\n@param {Number} [tickRate=100] - How often (in milliseconds) to emit \"tick\" events", "docstring_tokens": ["Construct", "a", "new", "Rieussec", "stopwatch"], "sha": "370c53f49da272eb63f30d09c16fdee9a5d1fe1f", "url": "https://github.com/GamesDoneQuick/rieussec/blob/370c53f49da272eb63f30d09c16fdee9a5d1fe1f/index.js#L15-L30", "partition": "test"} +{"repo": "coolony/kiwi", "path": "lib/compiler.js", "func_name": "onProcessed", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Callback for utils.applyAll", "docstring_tokens": ["Callback", "for", "utils", ".", "applyAll"], "sha": "dd421737e74282ef27e3bfb007a5ecba7d9c5864", "url": "https://github.com/coolony/kiwi/blob/dd421737e74282ef27e3bfb007a5ecba7d9c5864/lib/compiler.js#L55-L58", "partition": "test"} +{"repo": "coolony/kiwi", "path": "lib/template.js", "func_name": "Template", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initializes `Template` with optionnally the given `str` and\n`options`.\n\n@param {String} [str]\n@param {Object} [options]\n@api public", "docstring_tokens": ["Initializes", "Template", "with", "optionnally", "the", "given", "str", "and", "options", "."], "sha": "dd421737e74282ef27e3bfb007a5ecba7d9c5864", "url": "https://github.com/coolony/kiwi/blob/dd421737e74282ef27e3bfb007a5ecba7d9c5864/lib/template.js#L66-L101", "partition": "test"} +{"repo": "McLeopold/JavascriptHtmlr", "path": "bin/htmlr-cli.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "used to fix fs.watch on windows triggering cascading events the function fn can only be called once per rate", "docstring_tokens": ["used", "to", "fix", "fs", ".", "watch", "on", "windows", "triggering", "cascading", "events", "the", "function", "fn", "can", "only", "be", "called", "once", "per", "rate"], "sha": "2ebf10ef34ba57dc102a7055ce56ceefe2a6a67a", "url": "https://github.com/McLeopold/JavascriptHtmlr/blob/2ebf10ef34ba57dc102a7055ce56ceefe2a6a67a/bin/htmlr-cli.js#L20-L31", "partition": "test"} +{"repo": "McLeopold/JavascriptHtmlr", "path": "bin/htmlr-cli.js", "func_name": "get_data", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get optional data from command line as json or file containing json or javascript", "docstring_tokens": ["get", "optional", "data", "from", "command", "line", "as", "json", "or", "file", "containing", "json", "or", "javascript"], "sha": "2ebf10ef34ba57dc102a7055ce56ceefe2a6a67a", "url": "https://github.com/McLeopold/JavascriptHtmlr/blob/2ebf10ef34ba57dc102a7055ce56ceefe2a6a67a/bin/htmlr-cli.js#L35-L55", "partition": "test"} +{"repo": "AbbottPlatform/abbott-framework", "path": "lib/controllers/slack/botkit/index.js", "func_name": "secureWebhookEndpoints", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "adds the webhook authentication middleware module to the webserver", "docstring_tokens": ["adds", "the", "webhook", "authentication", "middleware", "module", "to", "the", "webserver"], "sha": "24ae64070c9dfe8407eb2ba0cead2cb277e38704", "url": "https://github.com/AbbottPlatform/abbott-framework/blob/24ae64070c9dfe8407eb2ba0cead2cb277e38704/lib/controllers/slack/botkit/index.js#L109-L121", "partition": "test"} +{"repo": "AbbottPlatform/abbott-framework", "path": "lib/controllers/slack/botkit/slack_web_api.js", "func_name": "postForm", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Makes a POST request as a form to the given url with the options as data\n\n@param {string} url The URL to POST to\n@param {Object} formData The data to POST as a form\n@param {function=} cb An optional NodeJS style callback when the POST completes or errors out.", "docstring_tokens": ["Makes", "a", "POST", "request", "as", "a", "form", "to", "the", "given", "url", "with", "the", "options", "as", "data"], "sha": "24ae64070c9dfe8407eb2ba0cead2cb277e38704", "url": "https://github.com/AbbottPlatform/abbott-framework/blob/24ae64070c9dfe8407eb2ba0cead2cb277e38704/lib/controllers/slack/botkit/slack_web_api.js#L244-L283", "partition": "test"} +{"repo": "AbbottPlatform/abbott-framework", "path": "lib/controllers/facebook/botkit/index.js", "func_name": "verifyRequest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Verifies the SHA1 signature of the raw request payload before bodyParser parses it Will abort parsing if signature is invalid, and pass a generic error to response", "docstring_tokens": ["Verifies", "the", "SHA1", "signature", "of", "the", "raw", "request", "payload", "before", "bodyParser", "parses", "it", "Will", "abort", "parsing", "if", "signature", "is", "invalid", "and", "pass", "a", "generic", "error", "to", "response"], "sha": "24ae64070c9dfe8407eb2ba0cead2cb277e38704", "url": "https://github.com/AbbottPlatform/abbott-framework/blob/24ae64070c9dfe8407eb2ba0cead2cb277e38704/lib/controllers/facebook/botkit/index.js#L846-L854", "partition": "test"} +{"repo": "MartinKolarik/ractive-route", "path": "demo/js/vendor/ractive.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method forces the evaluator to sync with the current model in the case of a smart update", "docstring_tokens": ["This", "method", "forces", "the", "evaluator", "to", "sync", "with", "the", "current", "model", "in", "the", "case", "of", "a", "smart", "update"], "sha": "0557db606a8bd4f19d18e41e99b40450a27c04c9", "url": "https://github.com/MartinKolarik/ractive-route/blob/0557db606a8bd4f19d18e41e99b40450a27c04c9/demo/js/vendor/ractive.js#L3742-L3754", "partition": "test"} +{"repo": "iorga-group/docker-cmd", "path": "lib/docker-cmd-manager.js", "func_name": "DockerCmdManager", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This class manages the DockerCmd and handles dockerdesc.json\n@constructor\n@param {string} [dockerdescPath='./dockerdesc.json'] - Path to `dockerdesc.json` file or parent dir", "docstring_tokens": ["This", "class", "manages", "the", "DockerCmd", "and", "handles", "dockerdesc", ".", "json"], "sha": "95ea2d5062b3133fd1e638c023483d834a960a4c", "url": "https://github.com/iorga-group/docker-cmd/blob/95ea2d5062b3133fd1e638c023483d834a960a4c/lib/docker-cmd-manager.js#L14-L35", "partition": "test"} +{"repo": "d10n/drilldown", "path": "src/drilldown.js", "func_name": "dd", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "drilldown\nSafely accesses deep properties of objects.\n\nvar foo;\nfoo.bar;\n// TypeError: Cannot read property 'bar' of undefined\n\nvar foo = {abc: {def: {ghi: 'jkl'}}};\ndd(foo)('abc')('def')('ghi').val is 'jkl'\ndd(foo)('abc')('zzz')('yyy').val is undefined\n\nCheck if a deep property exists:\ndd(foo)('abc').exists\n\nWorks with arrays too:\nvar foo = {abc: [ {bar: 'def'},{bar: 'ghi'} ]};\ndd(foo)('abc')(0)('bar') is 'def'\n\nSafely call functions:\nvar foo = {abc: {addOne: function(x) { return x + 1; }}};\ndd(foo)('abc')('addOne').invoke(5); returns 6\ndd(foo)('zzz')('aaa').invoke(5); returns undefined\n\nUpdate values if the original value exists:\nvar foo = {abc: {def: {ghi: 'jkl'}}};\nvar newValue = {ping: 'pong'};\ndd(foo)('abc')('def').update(newValue);\n- foo is now {abc: {def: {ping: 'pong'}}}\n- {ping: 'pong'} is returned\ndd(foo)('abc')('zzz').update(5);\n- foo is unchanged\n- undefined is returned\n\nSet values even if the path drilled to does not exist:\nvar foo = {abc: {}};\ndd(foo)('abc')('def')('ghi').set('jkl');\n- foo is now {abc: {def: {ghi: 'jkl}}}\n\nTo prevent confusion, only own properties are drilled into.\n\nAvailable properties:\n- val - the value\n- exists - true if val is defined\n- update function(value) - sets the value if the value exists\n- set function(value) - sets the value at any path\n- invoke - the value if the value is a function, or else a dummy function\n\n@param {object} object\n@param _context\n@param _key\n@param _root\n@param _rootPath\n@returns {Function}", "docstring_tokens": ["drilldown", "Safely", "accesses", "deep", "properties", "of", "objects", "."], "sha": "29dd7df329a78bcaa6645aa40ba1552ef0d70c7d", "url": "https://github.com/d10n/drilldown/blob/29dd7df329a78bcaa6645aa40ba1552ef0d70c7d/src/drilldown.js#L76-L126", "partition": "test"} +{"repo": "megahertz/gulp-task-doc", "path": "lib/printer.js", "func_name": "printTasks", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Render output from tasks\n@param {TaskList} tasks\n@param {boolean} [verbose=false]\n@returns {string}", "docstring_tokens": ["Render", "output", "from", "tasks"], "sha": "90333aec0ff8a66b63b308c14e7cd90010622bbf", "url": "https://github.com/megahertz/gulp-task-doc/blob/90333aec0ff8a66b63b308c14e7cd90010622bbf/lib/printer.js#L12-L36", "partition": "test"} +{"repo": "megahertz/gulp-task-doc", "path": "lib/printer.js", "func_name": "formatColumn", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return a text surrounded by space\n@param {string} text\n@param {number} width Column width without offsets\n@param {number} [offsetLeft=3] space count before text\n@param {number} [offsetRight=3] space count after text\n@returns {string}", "docstring_tokens": ["Return", "a", "text", "surrounded", "by", "space"], "sha": "90333aec0ff8a66b63b308c14e7cd90010622bbf", "url": "https://github.com/megahertz/gulp-task-doc/blob/90333aec0ff8a66b63b308c14e7cd90010622bbf/lib/printer.js#L46-L54", "partition": "test"} +{"repo": "megahertz/gulp-task-doc", "path": "index.js", "func_name": "inheritGulp", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return a new instance that is inherited from Gulp\n@returns {TaskDoc}", "docstring_tokens": ["Return", "a", "new", "instance", "that", "is", "inherited", "from", "Gulp"], "sha": "90333aec0ff8a66b63b308c14e7cd90010622bbf", "url": "https://github.com/megahertz/gulp-task-doc/blob/90333aec0ff8a66b63b308c14e7cd90010622bbf/index.js#L99-L106", "partition": "test"} +{"repo": "gluwer/bunyan-winston-adapter", "path": "index.js", "func_name": "_log", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "We are creating one generic version of logger.", "docstring_tokens": ["We", "are", "creating", "one", "generic", "version", "of", "logger", "."], "sha": "ff74cfff31bc8d699cedd88b8cd64c20a27652f0", "url": "https://github.com/gluwer/bunyan-winston-adapter/blob/ff74cfff31bc8d699cedd88b8cd64c20a27652f0/index.js#L4-L29", "partition": "test"} +{"repo": "hash-bang/async-chainable", "path": "index.js", "func_name": "isPromise", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Try and idenfity if the given item is a promise or is promise like\n@param {*} item The item to examine\n@returns {boolean} Whether the item looks like a promise", "docstring_tokens": ["Try", "and", "idenfity", "if", "the", "given", "item", "is", "a", "promise", "or", "is", "promise", "like"], "sha": "9f2ef431598472ed3ac8d8a518b3108ef138c0e8", "url": "https://github.com/hash-bang/async-chainable/blob/9f2ef431598472ed3ac8d8a518b3108ef138c0e8/index.js#L33-L40", "partition": "test"} +{"repo": "hash-bang/async-chainable", "path": "index.js", "func_name": "hasCallback", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Figure out if a function declaration looks like it takes a callback\nReally this just checks the setup of a function for an argument - it cannot check if that argument is a function\n@param {function} fn The function to examine\n@returns {boolean} Whether the function LOOKS like it takes a callback", "docstring_tokens": ["Figure", "out", "if", "a", "function", "declaration", "looks", "like", "it", "takes", "a", "callback", "Really", "this", "just", "checks", "the", "setup", "of", "a", "function", "for", "an", "argument", "-", "it", "cannot", "check", "if", "that", "argument", "is", "a", "function"], "sha": "9f2ef431598472ed3ac8d8a518b3108ef138c0e8", "url": "https://github.com/hash-bang/async-chainable/blob/9f2ef431598472ed3ac8d8a518b3108ef138c0e8/index.js#L49-L80", "partition": "test"} +{"repo": "hash-bang/async-chainable", "path": "index.js", "func_name": "race", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Like parallel but only return the first, non-undefined, non-null result\n@param {string} The ID to set when the first function returns a non-undefined, non-null result\n@param {array} The functions to execute\n@return {Object} This chainable object", "docstring_tokens": ["Like", "parallel", "but", "only", "return", "the", "first", "non", "-", "undefined", "non", "-", "null", "result"], "sha": "9f2ef431598472ed3ac8d8a518b3108ef138c0e8", "url": "https://github.com/hash-bang/async-chainable/blob/9f2ef431598472ed3ac8d8a518b3108ef138c0e8/index.js#L179-L195", "partition": "test"} +{"repo": "hash-bang/async-chainable", "path": "index.js", "func_name": "deferAdd", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Collection of items that have been deferred\n@type {array} {payload: function, id: null|String, prereq: [dep1, dep2...]}\n@access private", "docstring_tokens": ["Collection", "of", "items", "that", "have", "been", "deferred"], "sha": "9f2ef431598472ed3ac8d8a518b3108ef138c0e8", "url": "https://github.com/hash-bang/async-chainable/blob/9f2ef431598472ed3ac8d8a518b3108ef138c0e8/index.js#L252-L283", "partition": "test"} +{"repo": "hash-bang/async-chainable", "path": "index.js", "func_name": "await", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Queue up an await point\nThis stops the execution queue until its satisfied that dependencies have been resolved\n@param {array,...} The dependencies to check resolution of. If omitted all are checked\n@return {Object} This chainable object", "docstring_tokens": ["Queue", "up", "an", "await", "point", "This", "stops", "the", "execution", "queue", "until", "its", "satisfied", "that", "dependencies", "have", "been", "resolved"], "sha": "9f2ef431598472ed3ac8d8a518b3108ef138c0e8", "url": "https://github.com/hash-bang/async-chainable/blob/9f2ef431598472ed3ac8d8a518b3108ef138c0e8/index.js#L372-L398", "partition": "test"} +{"repo": "hash-bang/async-chainable", "path": "index.js", "func_name": "timeout", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Queue up a timeout setter\n@param {number|function|false} Either a number (time in ms) of the timeout, a function to set the timeout handler to or falsy to disable\n@return {Object} This chainable object", "docstring_tokens": ["Queue", "up", "a", "timeout", "setter"], "sha": "9f2ef431598472ed3ac8d8a518b3108ef138c0e8", "url": "https://github.com/hash-bang/async-chainable/blob/9f2ef431598472ed3ac8d8a518b3108ef138c0e8/index.js#L406-L433", "partition": "test"} +{"repo": "hash-bang/async-chainable", "path": "index.js", "func_name": "_timeoutHandler", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The default timeout handler\nThis function displays a simple error message and also fires the 'timeout' hook", "docstring_tokens": ["The", "default", "timeout", "handler", "This", "function", "displays", "a", "simple", "error", "message", "and", "also", "fires", "the", "timeout", "hook"], "sha": "9f2ef431598472ed3ac8d8a518b3108ef138c0e8", "url": "https://github.com/hash-bang/async-chainable/blob/9f2ef431598472ed3ac8d8a518b3108ef138c0e8/index.js#L440-L451", "partition": "test"} +{"repo": "hash-bang/async-chainable", "path": "index.js", "func_name": "run", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Run a single function, promise return, promise factory or any other combination - then a callback when finished\nTake a function reference and treat it as a callback style function\nIf the function returns a promise this behaviour is transformed into a callback style function\n\nThis function accepts all types of input functions:\n- callback functions (e.g. `next => ...`)\n- async functions (e.g. `async ()=> ...`)\n- promise functions (e.g. `new Promise(resolve => ...)`)\n- promise factories (e.g. `()=> new Promise(resolve => ...)`)\n\n@param {Object} context The context object to pass to the function\n@param {function|Promise} fn The function to run or the promise to resolve\n@param {function} finish The function to call when finished\n@param {array} [args] Additional arguments to pass when calling the function\n\n@example Run a regular callback function - if func is callback its just passed through, if its a promise its mapped normally\nrun(func, thenFunc)", "docstring_tokens": ["Run", "a", "single", "function", "promise", "return", "promise", "factory", "or", "any", "other", "combination", "-", "then", "a", "callback", "when", "finished", "Take", "a", "function", "reference", "and", "treat", "it", "as", "a", "callback", "style", "function", "If", "the", "function", "returns", "a", "promise", "this", "behaviour", "is", "transformed", "into", "a", "callback", "style", "function"], "sha": "9f2ef431598472ed3ac8d8a518b3108ef138c0e8", "url": "https://github.com/hash-bang/async-chainable/blob/9f2ef431598472ed3ac8d8a518b3108ef138c0e8/index.js#L988-L1036", "partition": "test"} +{"repo": "hash-bang/async-chainable", "path": "index.js", "func_name": "runWhile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal function to run a callback until it returns a falsy value\n@param {function} iter The function to invoke on each call with the arguments (next, index)\n@param {number} limit The number of parallel threads to execute. This must be a finite number (defaults to 10 if not)\n@param {function} callback The function to invoke when iter finally returns a falsy value\n@return {Object} This chainable object", "docstring_tokens": ["Internal", "function", "to", "run", "a", "callback", "until", "it", "returns", "a", "falsy", "value"], "sha": "9f2ef431598472ed3ac8d8a518b3108ef138c0e8", "url": "https://github.com/hash-bang/async-chainable/blob/9f2ef431598472ed3ac8d8a518b3108ef138c0e8/index.js#L1048-L1077", "partition": "test"} +{"repo": "hash-bang/async-chainable", "path": "index.js", "func_name": "reset", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "}}} \nReset all state variables and return the object into a pristine condition\n@return {Object} This chainable object", "docstring_tokens": ["}}}", "Reset", "all", "state", "variables", "and", "return", "the", "object", "into", "a", "pristine", "condition"], "sha": "9f2ef431598472ed3ac8d8a518b3108ef138c0e8", "url": "https://github.com/hash-bang/async-chainable/blob/9f2ef431598472ed3ac8d8a518b3108ef138c0e8/index.js#L1085-L1100", "partition": "test"} +{"repo": "hash-bang/async-chainable", "path": "index.js", "func_name": "hook", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Hooks {{{ \nSet up a hook\n@param {string} hook The hook name\n@param {string} [name] The function ID\n@param {array} [prereqs] Optional prerequisites to fired\n@param {function} callback Callback to run when hook fires (each callback takes a next paramter which must be called)\n@return {Object} This chainable object", "docstring_tokens": ["Hooks", "{{{", "Set", "up", "a", "hook"], "sha": "9f2ef431598472ed3ac8d8a518b3108ef138c0e8", "url": "https://github.com/hash-bang/async-chainable/blob/9f2ef431598472ed3ac8d8a518b3108ef138c0e8/index.js#L1112-L1143", "partition": "test"} +{"repo": "megahertz/gulp-task-doc", "path": "lib/models.js", "func_name": "tag", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the first tag with a name=name\n@param {string} name\n@returns {*}", "docstring_tokens": ["Return", "the", "first", "tag", "with", "a", "name", "=", "name"], "sha": "90333aec0ff8a66b63b308c14e7cd90010622bbf", "url": "https://github.com/megahertz/gulp-task-doc/blob/90333aec0ff8a66b63b308c14e7cd90010622bbf/lib/models.js#L22-L34", "partition": "test"} +{"repo": "pdaether/file-cleaner", "path": "index.js", "func_name": "checkPattern", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Helper functions\n \nChecks blackList- and whitList-regex against\nthe given file name and returns if this file can\nbe deleted.\n\n@param string file - the gile name\n@param regex|undefined blackList\n@param regex|undefined - whiteList\n@returns {boolean}", "docstring_tokens": ["Helper", "functions", "Checks", "blackList", "-", "and", "whitList", "-", "regex", "against", "the", "given", "file", "name", "and", "returns", "if", "this", "file", "can", "be", "deleted", "."], "sha": "01fc96f719b71199e6f8e7888f427e7fa5ea2f9e", "url": "https://github.com/pdaether/file-cleaner/blob/01fc96f719b71199e6f8e7888f427e7fa5ea2f9e/index.js#L169-L183", "partition": "test"} +{"repo": "tdillon/7", "path": "dist/seven-segment.bundle.js", "func_name": "Seven", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Construct a new Seven object.\nOptionally pass a SevenConfig object to set properties.\nEach property of the SevenConfig object is optional.\nIf the passed in config contains bad values an exception will be thrown.", "docstring_tokens": ["Construct", "a", "new", "Seven", "object", ".", "Optionally", "pass", "a", "SevenConfig", "object", "to", "set", "properties", ".", "Each", "property", "of", "the", "SevenConfig", "object", "is", "optional", ".", "If", "the", "passed", "in", "config", "contains", "bad", "values", "an", "exception", "will", "be", "thrown", "."], "sha": "206ce7c185d8b67ed812fcc5024614411ed6a28b", "url": "https://github.com/tdillon/7/blob/206ce7c185d8b67ed812fcc5024614411ed6a28b/dist/seven-segment.bundle.js#L61-L107", "partition": "test"} +{"repo": "NiklasGollenstede/es6lib", "path": "dom.js", "func_name": "onChange", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "after dialog close, wait for 'change'", "docstring_tokens": ["after", "dialog", "close", "wait", "for", "change"], "sha": "8aeabdf5cadafaf9c47c69f13bb8f7f6bec581c8", "url": "https://github.com/NiklasGollenstede/es6lib/blob/8aeabdf5cadafaf9c47c69f13bb8f7f6bec581c8/dom.js#L106-L109", "partition": "test"} +{"repo": "NiklasGollenstede/es6lib", "path": "observer.js", "func_name": "RemoveObserver_init", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "there are no properties on a `RemoveObserver`, every object that went as ref through this function can be used as `this` in any of the RemoveObserver methods", "docstring_tokens": ["there", "are", "no", "properties", "on", "a", "RemoveObserver", "every", "object", "that", "went", "as", "ref", "through", "this", "function", "can", "be", "used", "as", "this", "in", "any", "of", "the", "RemoveObserver", "methods"], "sha": "8aeabdf5cadafaf9c47c69f13bb8f7f6bec581c8", "url": "https://github.com/NiklasGollenstede/es6lib/blob/8aeabdf5cadafaf9c47c69f13bb8f7f6bec581c8/observer.js#L155-L162", "partition": "test"} +{"repo": "chip-js/expressions-js", "path": "src/property-chains.js", "func_name": "parsePropertyChains", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Finds and parses the property chains in an expression.", "docstring_tokens": ["Finds", "and", "parses", "the", "property", "chains", "in", "an", "expression", "."], "sha": "d7164a0f89ef938a4e7d90115fc9fb9d1308ea4c", "url": "https://github.com/chip-js/expressions-js/blob/d7164a0f89ef938a4e7d90115fc9fb9d1308ea4c/src/property-chains.js#L103-L121", "partition": "test"} +{"repo": "chip-js/expressions-js", "path": "src/property-chains.js", "func_name": "parseFunction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles a function to be called in its correct scope Finds the end of the function and processes the arguments", "docstring_tokens": ["Handles", "a", "function", "to", "be", "called", "in", "its", "correct", "scope", "Finds", "the", "end", "of", "the", "function", "and", "processes", "the", "arguments"], "sha": "d7164a0f89ef938a4e7d90115fc9fb9d1308ea4c", "url": "https://github.com/chip-js/expressions-js/blob/d7164a0f89ef938a4e7d90115fc9fb9d1308ea4c/src/property-chains.js#L243-L268", "partition": "test"} +{"repo": "chip-js/expressions-js", "path": "src/property-chains.js", "func_name": "parseBrackets", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles a bracketed expression to be parsed", "docstring_tokens": ["Handles", "a", "bracketed", "expression", "to", "be", "parsed"], "sha": "d7164a0f89ef938a4e7d90115fc9fb9d1308ea4c", "url": "https://github.com/chip-js/expressions-js/blob/d7164a0f89ef938a4e7d90115fc9fb9d1308ea4c/src/property-chains.js#L271-L290", "partition": "test"} +{"repo": "chip-js/expressions-js", "path": "src/property-chains.js", "func_name": "addReferences", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Prepends reference variable definitions", "docstring_tokens": ["Prepends", "reference", "variable", "definitions"], "sha": "d7164a0f89ef938a4e7d90115fc9fb9d1308ea4c", "url": "https://github.com/chip-js/expressions-js/blob/d7164a0f89ef938a4e7d90115fc9fb9d1308ea4c/src/property-chains.js#L335-L344", "partition": "test"} +{"repo": "switer/vfe", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Run once and lastest one", "docstring_tokens": ["Run", "once", "and", "lastest", "one"], "sha": "ff6d74ae0b4d41684b657462be3f364628e9b4c5", "url": "https://github.com/switer/vfe/blob/ff6d74ae0b4d41684b657462be3f364628e9b4c5/index.js#L299-L320", "partition": "test"} +{"repo": "emilbayes/nanoassert", "path": "index.js", "func_name": "assert", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Minimal assert function\n@param {any} t Value to check if falsy\n@param {string=} m Optional assertion error message\n@throws {AssertionError}", "docstring_tokens": ["Minimal", "assert", "function"], "sha": "237fd5f382f077f0be45954741a935f2c6070660", "url": "https://github.com/emilbayes/nanoassert/blob/237fd5f382f077f0be45954741a935f2c6070660/index.js#L12-L18", "partition": "test"} +{"repo": "chip-js/expressions-js", "path": "src/expressions.js", "func_name": "bindArguments", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "a custom \"bind\" function to bind arguments to a function without binding the context", "docstring_tokens": ["a", "custom", "bind", "function", "to", "bind", "arguments", "to", "a", "function", "without", "binding", "the", "context"], "sha": "d7164a0f89ef938a4e7d90115fc9fb9d1308ea4c", "url": "https://github.com/chip-js/expressions-js/blob/d7164a0f89ef938a4e7d90115fc9fb9d1308ea4c/src/expressions.js#L94-L101", "partition": "test"} +{"repo": "StarryInternet/eslint-plugin-starry", "path": "lib/rules/space-in-parens.js", "func_name": "getExceptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Produces an object with the opener and closer exception values\n@param {Object} opts The exception options\n@returns {Object} `openers` and `closers` exception values\n@private", "docstring_tokens": ["Produces", "an", "object", "with", "the", "opener", "and", "closer", "exception", "values"], "sha": "6b0a55c4d0263c549e88f80001b8cca417fca5ca", "url": "https://github.com/StarryInternet/eslint-plugin-starry/blob/6b0a55c4d0263c549e88f80001b8cca417fca5ca/lib/rules/space-in-parens.js#L70-L98", "partition": "test"} +{"repo": "StarryInternet/eslint-plugin-starry", "path": "lib/rules/space-in-parens.js", "func_name": "shouldOpenerHaveSpace", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determines if an opener paren should have a missing space after it\n@param {Object} left The paren token\n@param {Object} right The token after it\n@returns {boolean} True if the paren should have a space", "docstring_tokens": ["Determines", "if", "an", "opener", "paren", "should", "have", "a", "missing", "space", "after", "it"], "sha": "6b0a55c4d0263c549e88f80001b8cca417fca5ca", "url": "https://github.com/StarryInternet/eslint-plugin-starry/blob/6b0a55c4d0263c549e88f80001b8cca417fca5ca/lib/rules/space-in-parens.js#L129-L141", "partition": "test"} +{"repo": "StarryInternet/eslint-plugin-starry", "path": "lib/rules/space-in-parens.js", "func_name": "shouldCloserHaveSpace", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determines if an closer paren should have a missing space after it\n@param {Object} left The token before the paren\n@param {Object} right The paren token\n@returns {boolean} True if the paren should have a space", "docstring_tokens": ["Determines", "if", "an", "closer", "paren", "should", "have", "a", "missing", "space", "after", "it"], "sha": "6b0a55c4d0263c549e88f80001b8cca417fca5ca", "url": "https://github.com/StarryInternet/eslint-plugin-starry/blob/6b0a55c4d0263c549e88f80001b8cca417fca5ca/lib/rules/space-in-parens.js#L149-L162", "partition": "test"} +{"repo": "StarryInternet/eslint-plugin-starry", "path": "lib/rules/space-in-parens.js", "func_name": "shouldOpenerRejectSpace", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determines if an opener paren should not have an existing space after it\n@param {Object} left The paren token\n@param {Object} right The token after it\n@returns {boolean} True if the paren should reject the space", "docstring_tokens": ["Determines", "if", "an", "opener", "paren", "should", "not", "have", "an", "existing", "space", "after", "it"], "sha": "6b0a55c4d0263c549e88f80001b8cca417fca5ca", "url": "https://github.com/StarryInternet/eslint-plugin-starry/blob/6b0a55c4d0263c549e88f80001b8cca417fca5ca/lib/rules/space-in-parens.js#L170-L187", "partition": "test"} +{"repo": "StarryInternet/eslint-plugin-starry", "path": "lib/rules/space-in-parens.js", "func_name": "shouldCloserRejectSpace", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determines if an closer paren should not have an existing space after it\n@param {Object} left The token before the paren\n@param {Object} right The paren token\n@returns {boolean} True if the paren should reject the space", "docstring_tokens": ["Determines", "if", "an", "closer", "paren", "should", "not", "have", "an", "existing", "space", "after", "it"], "sha": "6b0a55c4d0263c549e88f80001b8cca417fca5ca", "url": "https://github.com/StarryInternet/eslint-plugin-starry/blob/6b0a55c4d0263c549e88f80001b8cca417fca5ca/lib/rules/space-in-parens.js#L195-L212", "partition": "test"} +{"repo": "kevincennis/promise", "path": "promise.js", "func_name": "defineConfigurable", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "set a value as configurable and non-enumerable", "docstring_tokens": ["set", "a", "value", "as", "configurable", "and", "non", "-", "enumerable"], "sha": "b58ef67dd4023139d0aad98ccd0cb60d8a4f9eec", "url": "https://github.com/kevincennis/promise/blob/b58ef67dd4023139d0aad98ccd0cb60d8a4f9eec/promise.js#L26-L33", "partition": "test"} +{"repo": "kevincennis/promise", "path": "promise.js", "func_name": "ToInteger", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "7.1.4 ToInteger", "docstring_tokens": ["7", ".", "1", ".", "4", "ToInteger"], "sha": "b58ef67dd4023139d0aad98ccd0cb60d8a4f9eec", "url": "https://github.com/kevincennis/promise/blob/b58ef67dd4023139d0aad98ccd0cb60d8a4f9eec/promise.js#L61-L70", "partition": "test"} +{"repo": "kevincennis/promise", "path": "promise.js", "func_name": "ToLength", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "7.1.15 ToLength", "docstring_tokens": ["7", ".", "1", ".", "15", "ToLength"], "sha": "b58ef67dd4023139d0aad98ccd0cb60d8a4f9eec", "url": "https://github.com/kevincennis/promise/blob/b58ef67dd4023139d0aad98ccd0cb60d8a4f9eec/promise.js#L93-L96", "partition": "test"} +{"repo": "kevincennis/promise", "path": "promise.js", "func_name": "CreateArrayIterator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "22.1.5.1 CreateArrayIterator Abstract Operation", "docstring_tokens": ["22", ".", "1", ".", "5", ".", "1", "CreateArrayIterator", "Abstract", "Operation"], "sha": "b58ef67dd4023139d0aad98ccd0cb60d8a4f9eec", "url": "https://github.com/kevincennis/promise/blob/b58ef67dd4023139d0aad98ccd0cb60d8a4f9eec/promise.js#L193-L200", "partition": "test"} +{"repo": "kevincennis/promise", "path": "promise.js", "func_name": "PromiseResolve", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "25.4.1.4.1 Promise Resolve Functions", "docstring_tokens": ["25", ".", "4", ".", "1", ".", "4", ".", "1", "Promise", "Resolve", "Functions"], "sha": "b58ef67dd4023139d0aad98ccd0cb60d8a4f9eec", "url": "https://github.com/kevincennis/promise/blob/b58ef67dd4023139d0aad98ccd0cb60d8a4f9eec/promise.js#L303-L319", "partition": "test"} +{"repo": "kevincennis/promise", "path": "promise.js", "func_name": "GetCapabilitiesExecutor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "25.4.1.5.2 GetCapabilitiesExecutor Functions", "docstring_tokens": ["25", ".", "4", ".", "1", ".", "5", ".", "2", "GetCapabilitiesExecutor", "Functions"], "sha": "b58ef67dd4023139d0aad98ccd0cb60d8a4f9eec", "url": "https://github.com/kevincennis/promise/blob/b58ef67dd4023139d0aad98ccd0cb60d8a4f9eec/promise.js#L362-L374", "partition": "test"} +{"repo": "kevincennis/promise", "path": "promise.js", "func_name": "PromiseResolutionHandlerFunction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "25.4.5.3.2 PromiseResolutionHandlerFunctions", "docstring_tokens": ["25", ".", "4", ".", "5", ".", "3", ".", "2", "PromiseResolutionHandlerFunctions"], "sha": "b58ef67dd4023139d0aad98ccd0cb60d8a4f9eec", "url": "https://github.com/kevincennis/promise/blob/b58ef67dd4023139d0aad98ccd0cb60d8a4f9eec/promise.js#L742-L772", "partition": "test"} +{"repo": "nbubna/trigger", "path": "dist/trigger.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "custom event stuff", "docstring_tokens": ["custom", "event", "stuff"], "sha": "e54cd09f0f58be7e943ef781a58c4bf27f38abfa", "url": "https://github.com/nbubna/trigger/blob/e54cd09f0f58be7e943ef781a58c4bf27f38abfa/dist/trigger.js#L17-L30", "partition": "test"} +{"repo": "nbubna/trigger", "path": "dist/trigger.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "native DOM and event stuff", "docstring_tokens": ["native", "DOM", "and", "event", "stuff"], "sha": "e54cd09f0f58be7e943ef781a58c4bf27f38abfa", "url": "https://github.com/nbubna/trigger/blob/e54cd09f0f58be7e943ef781a58c4bf27f38abfa/dist/trigger.js#L78-L95", "partition": "test"} +{"repo": "StarryInternet/eslint-plugin-starry", "path": "lib/rules/computed-property-spacing.js", "func_name": "reportNoEndingSpace", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Reports that there shouldn't be a space before the last token\n@param {ASTNode} node - The node to report in the event of an error.\n@param {Token} token - The token to use for the report.\n@param {Token} tokenBefore - The token before `token`.\n@returns {void}", "docstring_tokens": ["Reports", "that", "there", "shouldn", "t", "be", "a", "space", "before", "the", "last", "token"], "sha": "6b0a55c4d0263c549e88f80001b8cca417fca5ca", "url": "https://github.com/StarryInternet/eslint-plugin-starry/blob/6b0a55c4d0263c549e88f80001b8cca417fca5ca/lib/rules/computed-property-spacing.js#L52-L61", "partition": "test"} +{"repo": "StarryInternet/eslint-plugin-starry", "path": "lib/rules/computed-property-spacing.js", "func_name": "reportRequiredBeginningSpace", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Reports that there should be a space after the first token\n@param {ASTNode} node - The node to report in the event of an error.\n@param {Token} token - The token to use for the report.\n@returns {void}", "docstring_tokens": ["Reports", "that", "there", "should", "be", "a", "space", "after", "the", "first", "token"], "sha": "6b0a55c4d0263c549e88f80001b8cca417fca5ca", "url": "https://github.com/StarryInternet/eslint-plugin-starry/blob/6b0a55c4d0263c549e88f80001b8cca417fca5ca/lib/rules/computed-property-spacing.js#L70-L79", "partition": "test"} +{"repo": "StarryInternet/eslint-plugin-starry", "path": "lib/rules/computed-property-spacing.js", "func_name": "reportRequiredEndingSpace", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Reports that there should be a space before the last token\n@param {ASTNode} node - The node to report in the event of an error.\n@param {Token} token - The token to use for the report.\n@returns {void}", "docstring_tokens": ["Reports", "that", "there", "should", "be", "a", "space", "before", "the", "last", "token"], "sha": "6b0a55c4d0263c549e88f80001b8cca417fca5ca", "url": "https://github.com/StarryInternet/eslint-plugin-starry/blob/6b0a55c4d0263c549e88f80001b8cca417fca5ca/lib/rules/computed-property-spacing.js#L88-L97", "partition": "test"} +{"repo": "conveyal/browsochrones", "path": "example.js", "func_name": "generateDestinationLonLat", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get a random point offset from the origin", "docstring_tokens": ["Get", "a", "random", "point", "offset", "from", "the", "origin"], "sha": "6c10a92121eaa3df8fd37eaf301846de70af92eb", "url": "https://github.com/conveyal/browsochrones/blob/6c10a92121eaa3df8fd37eaf301846de70af92eb/example.js#L111-L121", "partition": "test"} +{"repo": "Real-Serious-Games/confucious", "path": "confucious.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get a nested value from the specified object. Returns undefined if not found.", "docstring_tokens": ["Get", "a", "nested", "value", "from", "the", "specified", "object", ".", "Returns", "undefined", "if", "not", "found", "."], "sha": "99e2f83dd6662333251ff1c1be70203662718a48", "url": "https://github.com/Real-Serious-Games/confucious/blob/99e2f83dd6662333251ff1c1be70203662718a48/confucious.js#L104-L115", "partition": "test"} +{"repo": "DTrejo/node-authors", "path": "lib/authors.js", "func_name": "gitAuthors", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "returns array of strings like \"firstname lastname \" - first contributions are first in the list - contains duplicates - might not have a real email - might not have real name", "docstring_tokens": ["returns", "array", "of", "strings", "like", "firstname", "lastname", " array", "docstring_tokens": ["string", "=", ">", "array"], "sha": "84044ca9124c5eb4dc28d8e0c8d366c7abd761fa", "url": "https://github.com/cranbee/template/blob/84044ca9124c5eb4dc28d8e0c8d366c7abd761fa/src/scanner.js#L11-L18", "partition": "test"} +{"repo": "racker/node-keystone-client", "path": "lib/client.js", "func_name": "KeystoneClient", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "OpenStack Keystone Identity API client.\n\n@param {String} url Base keystone server url including the version.\n@param {Object} options Authentication options (username, apiKey, password,\ncacheTokenFor).\n@constructor", "docstring_tokens": ["OpenStack", "Keystone", "Identity", "API", "client", "."], "sha": "fb1f0be6f640740ee914474619ec31440773a747", "url": "https://github.com/racker/node-keystone-client/blob/fb1f0be6f640740ee914474619ec31440773a747/lib/client.js#L44-L66", "partition": "test"} +{"repo": "prtksxna/jsdoc-class-hierarchy", "path": "index.js", "func_name": "findAllParents", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A recursive function that finds all the parents of a given class.\n\n@param {string[]} p A single element array with the name of the class\nwhose parents we need to find\n@returns {string[]} An array of all parents starting with the highest", "docstring_tokens": ["A", "recursive", "function", "that", "finds", "all", "the", "parents", "of", "a", "given", "class", "."], "sha": "5a3ec689a85aea83ac4b8f1623ea4a79f8676ccc", "url": "https://github.com/prtksxna/jsdoc-class-hierarchy/blob/5a3ec689a85aea83ac4b8f1623ea4a79f8676ccc/index.js#L21-L30", "partition": "test"} +{"repo": "prtksxna/jsdoc-class-hierarchy", "path": "index.js", "func_name": "findDirectChildren", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Finds all the direct children of a given class name.\n\n@param {string} className\n@returns {string[]} Array of the child classes' names", "docstring_tokens": ["Finds", "all", "the", "direct", "children", "of", "a", "given", "class", "name", "."], "sha": "5a3ec689a85aea83ac4b8f1623ea4a79f8676ccc", "url": "https://github.com/prtksxna/jsdoc-class-hierarchy/blob/5a3ec689a85aea83ac4b8f1623ea4a79f8676ccc/index.js#L38-L46", "partition": "test"} +{"repo": "prtksxna/jsdoc-class-hierarchy", "path": "index.js", "func_name": "makeHierarchyList", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recursive function that creates a nested list of a class' parents.\n\n@param {string[]} classes Array of class' parent's names\n@returns {string} HTML string of a `
      `", "docstring_tokens": ["Recursive", "function", "that", "creates", "a", "nested", "list", "of", "a", "class", "parents", "."], "sha": "5a3ec689a85aea83ac4b8f1623ea4a79f8676ccc", "url": "https://github.com/prtksxna/jsdoc-class-hierarchy/blob/5a3ec689a85aea83ac4b8f1623ea4a79f8676ccc/index.js#L64-L71", "partition": "test"} +{"repo": "prtksxna/jsdoc-class-hierarchy", "path": "index.js", "func_name": "makeChildrenList", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a list of child classes.\n\n@param {string[]} classes Array of all the child classes' names.\n@returns {string} HTML string of a `
        `", "docstring_tokens": ["Creates", "a", "list", "of", "child", "classes", "."], "sha": "5a3ec689a85aea83ac4b8f1623ea4a79f8676ccc", "url": "https://github.com/prtksxna/jsdoc-class-hierarchy/blob/5a3ec689a85aea83ac4b8f1623ea4a79f8676ccc/index.js#L79-L86", "partition": "test"} +{"repo": "prtksxna/jsdoc-class-hierarchy", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add names to the parents map for every new doclet", "docstring_tokens": ["Add", "names", "to", "the", "parents", "map", "for", "every", "new", "doclet"], "sha": "5a3ec689a85aea83ac4b8f1623ea4a79f8676ccc", "url": "https://github.com/prtksxna/jsdoc-class-hierarchy/blob/5a3ec689a85aea83ac4b8f1623ea4a79f8676ccc/index.js#L91-L100", "partition": "test"} +{"repo": "rootsdev/gedcomx-fs-js", "path": "src/Tag.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A tag in the FamilySearch system.\n\n@class Tag\n@extends Base\n@param {Object} [json]", "docstring_tokens": ["A", "tag", "in", "the", "FamilySearch", "system", "."], "sha": "47b6c6c9a609e163d80673d08fc83073f730d9d8", "url": "https://github.com/rootsdev/gedcomx-fs-js/blob/47b6c6c9a609e163d80673d08fc83073f730d9d8/src/Tag.js#L10-L23", "partition": "test"} +{"repo": "lighterio/exam", "path": "common/process/cli.js", "func_name": "gotOption", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handle the event of an option being seen.", "docstring_tokens": ["Handle", "the", "event", "of", "an", "option", "being", "seen", "."], "sha": "df65bf4b2deb448ad3a136adc10fe1be92fecee2", "url": "https://github.com/lighterio/exam/blob/df65bf4b2deb448ad3a136adc10fe1be92fecee2/common/process/cli.js#L212-L246", "partition": "test"} +{"repo": "rootsdev/gedcomx-fs-js", "path": "src/Error.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A common representation of an error on the FamilySearch platform.\n\n@class Error\n@extends Base\n@param {Object} [json]", "docstring_tokens": ["A", "common", "representation", "of", "an", "error", "on", "the", "FamilySearch", "platform", "."], "sha": "47b6c6c9a609e163d80673d08fc83073f730d9d8", "url": "https://github.com/rootsdev/gedcomx-fs-js/blob/47b6c6c9a609e163d80673d08fc83073f730d9d8/src/Error.js#L10-L23", "partition": "test"} +{"repo": "rootsdev/gedcomx-fs-js", "path": "src/ChildAndParentsRelationship.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The FamilySearch-proprietary model for a relationship between a child and a pair of parents.\n\n@class ChildAndParentsRelationship\n@extends Subject\n@param {Object} [json]", "docstring_tokens": ["The", "FamilySearch", "-", "proprietary", "model", "for", "a", "relationship", "between", "a", "child", "and", "a", "pair", "of", "parents", "."], "sha": "47b6c6c9a609e163d80673d08fc83073f730d9d8", "url": "https://github.com/rootsdev/gedcomx-fs-js/blob/47b6c6c9a609e163d80673d08fc83073f730d9d8/src/ChildAndParentsRelationship.js#L10-L23", "partition": "test"} +{"repo": "rootsdev/gedcomx-fs-js", "path": "src/ArtifactMetadata.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A representation of metadata about an artifact such as a memory.\n\n@class ArtifactMetadata\n@extends Base\n@param {Object} [json]", "docstring_tokens": ["A", "representation", "of", "metadata", "about", "an", "artifact", "such", "as", "a", "memory", "."], "sha": "47b6c6c9a609e163d80673d08fc83073f730d9d8", "url": "https://github.com/rootsdev/gedcomx-fs-js/blob/47b6c6c9a609e163d80673d08fc83073f730d9d8/src/ArtifactMetadata.js#L10-L23", "partition": "test"} +{"repo": "rootsdev/gedcomx-fs-js", "path": "src/FeatureSet.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A description of a FamilySearch feature.\n\n@class FeatureSet\n@extends Base\n@param {Object} [json]", "docstring_tokens": ["A", "description", "of", "a", "FamilySearch", "feature", "."], "sha": "47b6c6c9a609e163d80673d08fc83073f730d9d8", "url": "https://github.com/rootsdev/gedcomx-fs-js/blob/47b6c6c9a609e163d80673d08fc83073f730d9d8/src/FeatureSet.js#L10-L23", "partition": "test"} +{"repo": "jsguy/ulib", "path": "dist/version/ulib-0.1.3.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get a cookie", "docstring_tokens": ["Get", "a", "cookie"], "sha": "11909c905e2297276754b4e33d74e3cb9bdf2462", "url": "https://github.com/jsguy/ulib/blob/11909c905e2297276754b4e33d74e3cb9bdf2462/dist/version/ulib-0.1.3.js#L178-L185", "partition": "test"} +{"repo": "jsguy/ulib", "path": "dist/version/ulib-0.1.3.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Listen to events in the events manager", "docstring_tokens": ["Listen", "to", "events", "in", "the", "events", "manager"], "sha": "11909c905e2297276754b4e33d74e3cb9bdf2462", "url": "https://github.com/jsguy/ulib/blob/11909c905e2297276754b4e33d74e3cb9bdf2462/dist/version/ulib-0.1.3.js#L904-L919", "partition": "test"} +{"repo": "rootsdev/gedcomx-fs-js", "path": "src/ChangeInfo.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Information about a change.\n\n@class ChangeInfo\n@extends Base\n@param {Object} [json]", "docstring_tokens": ["Information", "about", "a", "change", "."], "sha": "47b6c6c9a609e163d80673d08fc83073f730d9d8", "url": "https://github.com/rootsdev/gedcomx-fs-js/blob/47b6c6c9a609e163d80673d08fc83073f730d9d8/src/ChangeInfo.js#L10-L23", "partition": "test"} +{"repo": "cscott/npm-travis", "path": "lib/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Ensure that there is a github remote, named 'github'.", "docstring_tokens": ["Ensure", "that", "there", "is", "a", "github", "remote", "named", "github", "."], "sha": "5745ca552fa35a4b6b4d86caa80d4359b0ba3756", "url": "https://github.com/cscott/npm-travis/blob/5745ca552fa35a4b6b4d86caa80d4359b0ba3756/lib/index.js#L92-L99", "partition": "test"} +{"repo": "cscott/npm-travis", "path": "lib/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Push to github.", "docstring_tokens": ["Push", "to", "github", "."], "sha": "5745ca552fa35a4b6b4d86caa80d4359b0ba3756", "url": "https://github.com/cscott/npm-travis/blob/5745ca552fa35a4b6b4d86caa80d4359b0ba3756/lib/index.js#L117-L121", "partition": "test"} +{"repo": "lighterio/exam", "path": "lib/bench.js", "func_name": "runSync", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Run the current child's test function synchronously.", "docstring_tokens": ["Run", "the", "current", "child", "s", "test", "function", "synchronously", "."], "sha": "df65bf4b2deb448ad3a136adc10fe1be92fecee2", "url": "https://github.com/lighterio/exam/blob/df65bf4b2deb448ad3a136adc10fe1be92fecee2/lib/bench.js#L91-L96", "partition": "test"} +{"repo": "lighterio/exam", "path": "lib/bench.js", "func_name": "runAsync", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Run the current child's test function asynchronously.", "docstring_tokens": ["Run", "the", "current", "child", "s", "test", "function", "asynchronously", "."], "sha": "df65bf4b2deb448ad3a136adc10fe1be92fecee2", "url": "https://github.com/lighterio/exam/blob/df65bf4b2deb448ad3a136adc10fe1be92fecee2/lib/bench.js#L99-L107", "partition": "test"} +{"repo": "rootsdev/gedcomx-fs-js", "path": "src/Comment.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Comment on a discussion\n\n@class Comment\n@extends ExtensibleData\n@param {Object} [json]", "docstring_tokens": ["Comment", "on", "a", "discussion"], "sha": "47b6c6c9a609e163d80673d08fc83073f730d9d8", "url": "https://github.com/rootsdev/gedcomx-fs-js/blob/47b6c6c9a609e163d80673d08fc83073f730d9d8/src/Comment.js#L10-L23", "partition": "test"} +{"repo": "lighterio/exam", "path": "common/fs/deep-watch.js", "func_name": "watch", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recurse to find directories we can watch.", "docstring_tokens": ["Recurse", "to", "find", "directories", "we", "can", "watch", "."], "sha": "df65bf4b2deb448ad3a136adc10fe1be92fecee2", "url": "https://github.com/lighterio/exam/blob/df65bf4b2deb448ad3a136adc10fe1be92fecee2/common/fs/deep-watch.js#L73-L104", "partition": "test"} +{"repo": "lighterio/exam", "path": "common/fs/deep-watch.js", "func_name": "addDir", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a watchable directory to the map and list of directories we're watching.", "docstring_tokens": ["Add", "a", "watchable", "directory", "to", "the", "map", "and", "list", "of", "directories", "we", "re", "watching", "."], "sha": "df65bf4b2deb448ad3a136adc10fe1be92fecee2", "url": "https://github.com/lighterio/exam/blob/df65bf4b2deb448ad3a136adc10fe1be92fecee2/common/fs/deep-watch.js#L109-L124", "partition": "test"} +{"repo": "lighterio/exam", "path": "common/fs/deep-watch.js", "func_name": "startWatches", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Iterate over the age-prioritized list, and start fs watches.", "docstring_tokens": ["Iterate", "over", "the", "age", "-", "prioritized", "list", "and", "start", "fs", "watches", "."], "sha": "df65bf4b2deb448ad3a136adc10fe1be92fecee2", "url": "https://github.com/lighterio/exam/blob/df65bf4b2deb448ad3a136adc10fe1be92fecee2/common/fs/deep-watch.js#L138-L150", "partition": "test"} +{"repo": "lighterio/exam", "path": "common/fs/deep-watch.js", "func_name": "checkDir", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check a directory for changes.", "docstring_tokens": ["Check", "a", "directory", "for", "changes", "."], "sha": "df65bf4b2deb448ad3a136adc10fe1be92fecee2", "url": "https://github.com/lighterio/exam/blob/df65bf4b2deb448ad3a136adc10fe1be92fecee2/common/fs/deep-watch.js#L164-L189", "partition": "test"} +{"repo": "lighterio/exam", "path": "common/fs/deep-watch.js", "func_name": "notify", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Notify the master process that something changed.", "docstring_tokens": ["Notify", "the", "master", "process", "that", "something", "changed", "."], "sha": "df65bf4b2deb448ad3a136adc10fe1be92fecee2", "url": "https://github.com/lighterio/exam/blob/df65bf4b2deb448ad3a136adc10fe1be92fecee2/common/fs/deep-watch.js#L194-L201", "partition": "test"} +{"repo": "lighterio/exam", "path": "lib/mock.js", "func_name": "decorateFn", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Decorate a mock function with chainable methods.", "docstring_tokens": ["Decorate", "a", "mock", "function", "with", "chainable", "methods", "."], "sha": "df65bf4b2deb448ad3a136adc10fe1be92fecee2", "url": "https://github.com/lighterio/exam/blob/df65bf4b2deb448ad3a136adc10fe1be92fecee2/lib/mock.js#L79-L85", "partition": "test"} +{"repo": "lighterio/exam", "path": "lib/mock.js", "func_name": "MockDate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Construct a `MockDate` using a `Date` constructor value.", "docstring_tokens": ["Construct", "a", "MockDate", "using", "a", "Date", "constructor", "value", "."], "sha": "df65bf4b2deb448ad3a136adc10fe1be92fecee2", "url": "https://github.com/lighterio/exam/blob/df65bf4b2deb448ad3a136adc10fe1be92fecee2/lib/mock.js#L266-L285", "partition": "test"} +{"repo": "lighterio/exam", "path": "lib/mock.js", "func_name": "moveTime", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If mock time is moving forward, schedule a time check.", "docstring_tokens": ["If", "mock", "time", "is", "moving", "forward", "schedule", "a", "time", "check", "."], "sha": "df65bf4b2deb448ad3a136adc10fe1be92fecee2", "url": "https://github.com/lighterio/exam/blob/df65bf4b2deb448ad3a136adc10fe1be92fecee2/lib/mock.js#L348-L363", "partition": "test"} +{"repo": "lighterio/exam", "path": "lib/mock.js", "func_name": "getScheduler", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The `getScheduler` returns mocks for `setTimeout` and `setInterval`.", "docstring_tokens": ["The", "getScheduler", "returns", "mocks", "for", "setTimeout", "and", "setInterval", "."], "sha": "df65bf4b2deb448ad3a136adc10fe1be92fecee2", "url": "https://github.com/lighterio/exam/blob/df65bf4b2deb448ad3a136adc10fe1be92fecee2/lib/mock.js#L382-L391", "partition": "test"} +{"repo": "lighterio/exam", "path": "lib/mock.js", "func_name": "getUnscheduler", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The `getUnscheduler` returns mocks for `clearTimeout` and `clearInterval`.", "docstring_tokens": ["The", "getUnscheduler", "returns", "mocks", "for", "clearTimeout", "and", "clearInterval", "."], "sha": "df65bf4b2deb448ad3a136adc10fe1be92fecee2", "url": "https://github.com/lighterio/exam/blob/df65bf4b2deb448ad3a136adc10fe1be92fecee2/lib/mock.js#L396-L407", "partition": "test"} +{"repo": "lighterio/exam", "path": "lib/mock.js", "func_name": "runSchedules", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "When `mock.time.add` is called, run schedules whose time has come.", "docstring_tokens": ["When", "mock", ".", "time", ".", "add", "is", "called", "run", "schedules", "whose", "time", "has", "come", "."], "sha": "df65bf4b2deb448ad3a136adc10fe1be92fecee2", "url": "https://github.com/lighterio/exam/blob/df65bf4b2deb448ad3a136adc10fe1be92fecee2/lib/mock.js#L412-L439", "partition": "test"} +{"repo": "brycebaril/level-version", "path": "gc.js", "func_name": "startGc", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Start a gc task if options dictate it. GC task will kick off\noccasionally to reap expired versions of records.\n@param {Version} db level-version instance\n@param {Object} options GC options\n- gcMaxVersions [no default] When doing GC it will only keep gcMaxVersions newest versions of each key\n- gcMaxAge [no default] When doing GC only keep versions where Date.now() - gcMaxAge > version\n- gcFreqMs [60000] How often the GC runs to apply GC rules. Only runs if a gcMax* option is set.\n- gcBackup [no default] A level-version instance to stream culled records into\n- gcCallback [no default] A callback to execute when gc sweeps complete\n@return {LooseInterval} A http://npm.im/loose-interval object controlling the repeated gc task.", "docstring_tokens": ["Start", "a", "gc", "task", "if", "options", "dictate", "it", ".", "GC", "task", "will", "kick", "off", "occasionally", "to", "reap", "expired", "versions", "of", "records", "."], "sha": "0941eb7cda460e50ddf9818c21712b0484f658e9", "url": "https://github.com/brycebaril/level-version/blob/0941eb7cda460e50ddf9818c21712b0484f658e9/gc.js#L18-L46", "partition": "test"} +{"repo": "rootsdev/gedcomx-fs-js", "path": "src/NameFormInfo.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extra information about a name form.\n\n@class NameFormInfo\n@extends Base\n@param {Object} [json]", "docstring_tokens": ["Extra", "information", "about", "a", "name", "form", "."], "sha": "47b6c6c9a609e163d80673d08fc83073f730d9d8", "url": "https://github.com/rootsdev/gedcomx-fs-js/blob/47b6c6c9a609e163d80673d08fc83073f730d9d8/src/NameFormInfo.js#L10-L23", "partition": "test"} +{"repo": "rootsdev/gedcomx-fs-js", "path": "src/OAuth2.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "OAuth 2 token responses\n\n@class OAuth2\n@extends Base\n@param {Object} [json]", "docstring_tokens": ["OAuth", "2", "token", "responses"], "sha": "47b6c6c9a609e163d80673d08fc83073f730d9d8", "url": "https://github.com/rootsdev/gedcomx-fs-js/blob/47b6c6c9a609e163d80673d08fc83073f730d9d8/src/OAuth2.js#L10-L23", "partition": "test"} +{"repo": "MichalBures/electron-redux-multi-window-comm", "path": "src/utils/processShapeEditPath.js", "func_name": "forceInRange", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets `value` back to the given `min` - `max` range if necessary\n\n@param value\n@param min\n@param max\n@returns {*}", "docstring_tokens": ["Sets", "value", "back", "to", "the", "given", "min", "-", "max", "range", "if", "necessary"], "sha": "546cd2d62e34e0be206fcb52f7db5d650a55006f", "url": "https://github.com/MichalBures/electron-redux-multi-window-comm/blob/546cd2d62e34e0be206fcb52f7db5d650a55006f/src/utils/processShapeEditPath.js#L198-L206", "partition": "test"} +{"repo": "MichalBures/electron-redux-multi-window-comm", "path": "src/utils/processShapeEditPath.js", "func_name": "insertIntoList", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Insert `item` into the `list` at a given `position`\n\n@param item\n@param position\n@param list\n@returns {Array.|string|Buffer}", "docstring_tokens": ["Insert", "item", "into", "the", "list", "at", "a", "given", "position"], "sha": "546cd2d62e34e0be206fcb52f7db5d650a55006f", "url": "https://github.com/MichalBures/electron-redux-multi-window-comm/blob/546cd2d62e34e0be206fcb52f7db5d650a55006f/src/utils/processShapeEditPath.js#L216-L222", "partition": "test"} +{"repo": "cranbee/template", "path": "src/parser.js", "func_name": "validateProps", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "object => undefined", "docstring_tokens": ["object", "=", ">", "undefined"], "sha": "84044ca9124c5eb4dc28d8e0c8d366c7abd761fa", "url": "https://github.com/cranbee/template/blob/84044ca9124c5eb4dc28d8e0c8d366c7abd761fa/src/parser.js#L98-L104", "partition": "test"} +{"repo": "justinhoward/hoopla", "path": "src/Event.js", "func_name": "Event", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A named event\n\n@param {string} name The name of the event\n@param {object} [attributes] Custom attributes for the event", "docstring_tokens": ["A", "named", "event"], "sha": "eb144811e7bfc3ac6fc8a0597f8bf5a936ce00ce", "url": "https://github.com/justinhoward/hoopla/blob/eb144811e7bfc3ac6fc8a0597f8bf5a936ce00ce/src/Event.js#L9-L17", "partition": "test"} +{"repo": "cranbee/template", "path": "src/s-reader.js", "func_name": "create", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "string => object", "docstring_tokens": ["string", "=", ">", "object"], "sha": "84044ca9124c5eb4dc28d8e0c8d366c7abd761fa", "url": "https://github.com/cranbee/template/blob/84044ca9124c5eb4dc28d8e0c8d366c7abd761fa/src/s-reader.js#L4-L17", "partition": "test"} +{"repo": "rootsdev/gedcomx-fs-js", "path": "src/FeedbackInfo.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Information about feedback for places.\n\n@class FeedbackInfo\n@extends Base\n@param {Object} [json]", "docstring_tokens": ["Information", "about", "feedback", "for", "places", "."], "sha": "47b6c6c9a609e163d80673d08fc83073f730d9d8", "url": "https://github.com/rootsdev/gedcomx-fs-js/blob/47b6c6c9a609e163d80673d08fc83073f730d9d8/src/FeedbackInfo.js#L10-L23", "partition": "test"} +{"repo": "rootsdev/gedcomx-fs-js", "path": "src/Reservation.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "LDS ordinance reservation\n\n@class Reservation\n@extends Conclusion\n@param {Object} [json]", "docstring_tokens": ["LDS", "ordinance", "reservation"], "sha": "47b6c6c9a609e163d80673d08fc83073f730d9d8", "url": "https://github.com/rootsdev/gedcomx-fs-js/blob/47b6c6c9a609e163d80673d08fc83073f730d9d8/src/Reservation.js#L10-L23", "partition": "test"} +{"repo": "rootsdev/gedcomx-fs-js", "path": "src/SearchInfo.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Information about a search.\n\n@class SearchInfo\n@extends Base\n@param {Object} [json]", "docstring_tokens": ["Information", "about", "a", "search", "."], "sha": "47b6c6c9a609e163d80673d08fc83073f730d9d8", "url": "https://github.com/rootsdev/gedcomx-fs-js/blob/47b6c6c9a609e163d80673d08fc83073f730d9d8/src/SearchInfo.js#L10-L23", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "asyncForEach", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Simultaneously processes all items in the given array.\n\n@param {array} array - The array to iterate over\n@param {function} iterator - The function to call for each item in the array\n@param {function} done - The function to call when all iterators have completed", "docstring_tokens": ["Simultaneously", "processes", "all", "items", "in", "the", "given", "array", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L15-L32", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "safeCall", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calls a function with the given arguments, and ensures that the error-first callback is _always_\ninvoked exactly once, even if the function throws an error.\n\n@param {function} fn - The function to invoke\n@param {...*} args - The arguments to pass to the function. The final argument must be a callback function.", "docstring_tokens": ["Calls", "a", "function", "with", "the", "given", "arguments", "and", "ensures", "that", "the", "error", "-", "first", "callback", "is", "_always_", "invoked", "exactly", "once", "even", "if", "the", "function", "throws", "an", "error", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L99-L113", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "callOnce", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a wrapper function that ensures the given callback function is only called once.\nSubsequent calls are ignored, unless the first argument is an Error, in which case the\nerror is thrown.\n\n@param {function} fn - The function that should only be called once\n@returns {function}", "docstring_tokens": ["Returns", "a", "wrapper", "function", "that", "ensures", "the", "given", "callback", "function", "is", "only", "called", "once", ".", "Subsequent", "calls", "are", "ignored", "unless", "the", "first", "argument", "is", "an", "Error", "in", "which", "case", "the", "error", "is", "thrown", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L123-L138", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "uniqNoSet", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "there's 3 implementations written in increasing order of efficiency 1 - no Set type is defined", "docstring_tokens": ["there", "s", "3", "implementations", "written", "in", "increasing", "order", "of", "efficiency", "1", "-", "no", "Set", "type", "is", "defined"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L1250-L1260", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "uniqSetWithForEach", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "3 - a standard Set type is defined and it has a forEach method", "docstring_tokens": ["3", "-", "a", "standard", "Set", "type", "is", "defined", "and", "it", "has", "a", "forEach", "method"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L1276-L1284", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "Base", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create an instance of `Base` with the given `config` and `options`.\n\n```js\n// initialize with `config` and `options`\nvar app = new Base({isApp: true}, {abc: true});\napp.set('foo', 'bar');\n\n// values defined with the given `config` object will be on the root of the instance\nconsole.log(app.baz); //=> undefined\nconsole.log(app.foo); //=> 'bar'\n// or use `.get`\nconsole.log(app.get('isApp')); //=> true\nconsole.log(app.get('foo')); //=> 'bar'\n\n// values defined with the given `options` object will be on `app.options\nconsole.log(app.options.abc); //=> true\n```\n\n@param {Object} `config` If supplied, this object is passed to [cache-base][] to merge onto the the instance upon instantiation.\n@param {Object} `options` If supplied, this object is used to initialize the `base.options` object.\n@api public", "docstring_tokens": ["Create", "an", "instance", "of", "Base", "with", "the", "given", "config", "and", "options", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L2780-L2787", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "memoize", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Memoize a generated regex or function. A unique key is generated\nfrom the method name, pattern, and user-defined options. Set\noptions.memoize to false to disable.", "docstring_tokens": ["Memoize", "a", "generated", "regex", "or", "function", ".", "A", "unique", "key", "is", "generated", "from", "the", "method", "name", "pattern", "and", "user", "-", "defined", "options", ".", "Set", "options", ".", "memoize", "to", "false", "to", "disable", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L3841-L3856", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "multiply", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Multiply the segments in the current brace level", "docstring_tokens": ["Multiply", "the", "segments", "in", "the", "current", "brace", "level"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L4196-L4198", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "noInner", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if the given `node` does not have an inner value.\n@return {Boolean}", "docstring_tokens": ["Returns", "true", "if", "the", "given", "node", "does", "not", "have", "an", "inner", "value", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L4236-L4245", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "brackets", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parses the given POSIX character class `pattern` and returns a\nstring that can be used for creating regular expressions for matching.\n\n@param {String} `pattern`\n@param {Object} `options`\n@return {Object}\n@api public", "docstring_tokens": ["Parses", "the", "given", "POSIX", "character", "class", "pattern", "and", "returns", "a", "string", "that", "can", "be", "used", "for", "creating", "regular", "expressions", "for", "matching", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L9989-L9993", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "wrap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wrap the string with the correct regex\nsyntax.", "docstring_tokens": ["Wrap", "the", "string", "with", "the", "correct", "regex", "syntax", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L11197-L11216", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "formatPadding", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Format padding, taking leading `-` into account", "docstring_tokens": ["Format", "padding", "taking", "leading", "-", "into", "account"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L11262-L11268", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "isPadded", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If the string is padded, returns a curried function with\nthe a cached padding string, or `false` if no padding.\n\n@param {*} `origA` String or number.\n@return {String|Boolean}", "docstring_tokens": ["If", "the", "string", "is", "padded", "returns", "a", "curried", "function", "with", "the", "a", "cached", "padding", "string", "or", "false", "if", "no", "padding", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L11348-L11362", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "Extglob", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Customize Snapdragon parser and renderer", "docstring_tokens": ["Customize", "Snapdragon", "parser", "and", "renderer"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L12131-L12181", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "micromatch", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The main function takes a list of strings and one or more\nglob patterns to use for matching.\n\n```js\nvar mm = require('micromatch');\nmm(list, patterns[, options]);\n\nconsole.log(mm(['a.js', 'a.txt'], ['*.js']));\n//=> [ 'a.js' ]\n```\n@param {Array} `list` A list of strings to match\n@param {String|Array} `patterns` One or more glob patterns to use for matching.\n@param {Object} `options` See available [options](#options) for changing how matches are performed\n@return {Array} Returns an array of matches\n@summary false\n@api public", "docstring_tokens": ["The", "main", "function", "takes", "a", "list", "of", "strings", "and", "one", "or", "more", "glob", "patterns", "to", "use", "for", "matching", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L12481-L12514", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "sync", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Synchronous API.", "docstring_tokens": ["Synchronous", "API", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L13960-L13963", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "stream", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Stream API.", "docstring_tokens": ["Stream", "API", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L13976-L13979", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "generateTasks", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return a set of tasks based on provided patterns.", "docstring_tokens": ["Return", "a", "set", "of", "tasks", "based", "on", "provided", "patterns", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L13984-L13988", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "getWorks", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a set of works based on provided tasks and class of the reader.", "docstring_tokens": ["Returns", "a", "set", "of", "works", "based", "on", "provided", "tasks", "and", "class", "of", "the", "reader", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L13993-L13999", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "generate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate tasks based on parent directory of each pattern.", "docstring_tokens": ["Generate", "tasks", "based", "on", "parent", "directory", "of", "each", "pattern", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L14074-L14084", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "convertPatternsToTasks", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert patterns to tasks based on parent directory of each pattern.", "docstring_tokens": ["Convert", "patterns", "to", "tasks", "based", "on", "parent", "directory", "of", "each", "pattern", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L14089-L14099", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "getNegativePatternsAsPositive", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return only negative patterns.", "docstring_tokens": ["Return", "only", "negative", "patterns", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L14111-L14115", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "groupPatternsByBaseDirectory", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Group patterns by base directory of each pattern.", "docstring_tokens": ["Group", "patterns", "by", "base", "directory", "of", "each", "pattern", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L14120-L14131", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "convertPatternGroupsToTasks", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert group of patterns to tasks.", "docstring_tokens": ["Convert", "group", "of", "patterns", "to", "tasks", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L14136-L14143", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "findLocalNegativePatterns", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns those negative patterns whose base paths includes positive base path.", "docstring_tokens": ["Returns", "those", "negative", "patterns", "whose", "base", "paths", "includes", "positive", "base", "path", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L14148-L14155", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "convertPatternGroupToTask", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a task for positive and negative patterns.", "docstring_tokens": ["Create", "a", "task", "for", "positive", "and", "negative", "patterns", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L14160-L14168", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "matchAny", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if the entry match any of the given RegExp's.", "docstring_tokens": ["Returns", "true", "if", "the", "entry", "match", "any", "of", "the", "given", "RegExp", "s", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L14819-L14837", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sync the files and persist them to the cache\n@method reconcile", "docstring_tokens": ["Sync", "the", "files", "and", "persist", "them", "to", "the", "cache"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L15022-L15053", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Load the cache from the provided file\n@method loadFile\n@param {String} pathToFile the path to the file containing the info for the cache", "docstring_tokens": ["Load", "the", "cache", "from", "the", "provided", "file"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L15317-L15323", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Save the state of the cache identified by the docId to disk\nas a JSON structure\n@param [noPrune=false] {Boolean} whether to remove from cache the non visited files\n@method save", "docstring_tokens": ["Save", "the", "state", "of", "the", "cache", "identified", "by", "the", "docId", "to", "disk", "as", "a", "JSON", "structure"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L15398-L15403", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Load a cache identified by the given Id. If the element does not exists, then initialize an empty\ncache storage.\n\n@method create\n@param docId {String} the id of the cache, would also be used as the name of the file cache\n@param [cacheDir] {String} directory for the cache entry\n@returns {cache} cache instance", "docstring_tokens": ["Load", "a", "cache", "identified", "by", "the", "given", "Id", ".", "If", "the", "element", "does", "not", "exists", "then", "initialize", "an", "empty", "cache", "storage", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L15448-L15452", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Clear the cache identified by the given id. Caches stored in a different cache directory can be deleted directly\n\n@method clearCache\n@param docId {String} the id of the cache, would also be used as the name of the file cache\n@param cacheDir {String} the directory where the cache file was written\n@returns {Boolean} true if the cache folder was deleted. False otherwise", "docstring_tokens": ["Clear", "the", "cache", "identified", "by", "the", "given", "id", ".", "Caches", "stored", "in", "a", "different", "cache", "directory", "can", "be", "deleted", "directly"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L15467-L15470", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set a value for property `key` on cache `name`\n\n```js\nfragment.set('files', 'somefile.js', new File({path: 'somefile.js'}));\n```\n@name .set\n@param {String} `name`\n@param {String} `key` Property name to set\n@param {any} `val` The value of `key`\n@return {Object} The cache instance for chaining\n@api public", "docstring_tokens": ["Set", "a", "value", "for", "property", "key", "on", "cache", "name"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L15842-L15846", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "LOOP", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "walk down the path, swapping out linked pathparts for their real values", "docstring_tokens": ["walk", "down", "the", "path", "swapping", "out", "linked", "pathparts", "for", "their", "real", "values"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L16209-L16235", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "micromatch", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The main function. Pass an array of filepaths,\nand a string or array of glob patterns\n\n@param {Array|String} `files`\n@param {Array|String} `patterns`\n@param {Object} `opts`\n@return {Array} Array of matches", "docstring_tokens": ["The", "main", "function", ".", "Pass", "an", "array", "of", "filepaths", "and", "a", "string", "or", "array", "of", "glob", "patterns"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L42059-L42083", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "match", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return an array of files that match the given glob pattern.\n\nThis function is called by the main `micromatch` function If you only\nneed to pass a single pattern you might get very minor speed improvements\nusing this function.\n\n@param {Array} `files`\n@param {String} `pattern`\n@param {Object} `options`\n@return {Array}", "docstring_tokens": ["Return", "an", "array", "of", "files", "that", "match", "the", "given", "glob", "pattern", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L42098-L42158", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "isMatch", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if the filepath contains the given\npattern. Can also return a function for matching.\n\n```js\nisMatch('foo.md', '*.md', {});\n//=> true\n\nisMatch('*.md', {})('foo.md')\n//=> true\n```\n@param {String} `fp`\n@param {String} `pattern`\n@param {Object} `opts`\n@return {Boolean}", "docstring_tokens": ["Returns", "true", "if", "the", "filepath", "contains", "the", "given", "pattern", ".", "Can", "also", "return", "a", "function", "for", "matching", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L42221-L42231", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "contains", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if the filepath matches the\ngiven pattern.", "docstring_tokens": ["Returns", "true", "if", "the", "filepath", "matches", "the", "given", "pattern", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L42238-L42251", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "any", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if a file path matches any of the\ngiven patterns.\n\n@param {String} `fp` The filepath to test.\n@param {String|Array} `patterns` Glob patterns to use.\n@param {Object} `opts` Options to pass to the `matcher()` function.\n@return {String}", "docstring_tokens": ["Returns", "true", "if", "a", "file", "path", "matches", "any", "of", "the", "given", "patterns", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L42263-L42279", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "matchKeys", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Filter the keys of an object with the given `glob` pattern\nand `options`\n\n@param {Object} `object`\n@param {Pattern} `object`\n@return {Array}", "docstring_tokens": ["Filter", "the", "keys", "of", "an", "object", "with", "the", "given", "glob", "pattern", "and", "options"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L42290-L42304", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "matcher", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return a function for matching based on the\ngiven `pattern` and `options`.\n\n@param {String} `pattern`\n@param {Object} `options`\n@return {Function}", "docstring_tokens": ["Return", "a", "function", "for", "matching", "based", "on", "the", "given", "pattern", "and", "options", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L42315-L42350", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "toRegex", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create and cache a regular expression for matching\nfile paths.\n\nIf the leading character in the `glob` is `!`, a negation\nregex is returned.\n\n@param {String} `glob`\n@param {Object} `options`\n@return {RegExp}", "docstring_tokens": ["Create", "and", "cache", "a", "regular", "expression", "for", "matching", "file", "paths", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L42364-L42391", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "wrapGlob", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create the regex to do the matching. If the leading\ncharacter in the `glob` is `!` a negation regex is returned.\n\n@param {String} `glob`\n@param {Boolean} `negate`", "docstring_tokens": ["Create", "the", "regex", "to", "do", "the", "matching", ".", "If", "the", "leading", "character", "in", "the", "glob", "is", "!", "a", "negation", "regex", "is", "returned", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L42401-L42409", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "makeRe", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create and cache a regular expression for matching file paths.\nIf the leading character in the `glob` is `!`, a negation\nregex is returned.\n\n@param {String} `glob`\n@param {Object} `options`\n@return {RegExp}", "docstring_tokens": ["Create", "and", "cache", "a", "regular", "expression", "for", "matching", "file", "paths", ".", "If", "the", "leading", "character", "in", "the", "glob", "is", "!", "a", "negation", "regex", "is", "returned", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L42421-L42426", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "collapse", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Collapse repeated character sequences.\n\n```js\ncollapse('a/../../../b', '../');\n//=> 'a/../b'\n```\n\n@param {String} `str`\n@param {String} `ch` Character sequence to collapse\n@return {String}", "docstring_tokens": ["Collapse", "repeated", "character", "sequences", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L42765-L42773", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "exponential", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Expand exponential ranges\n\n`a{,}{,}` => ['a', 'a', 'a', 'a']", "docstring_tokens": ["Expand", "exponential", "ranges"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L43446-L43487", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "splitWhitespace", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handle patterns with whitespace", "docstring_tokens": ["Handle", "patterns", "with", "whitespace"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L43533-L43543", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "filter", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fast array filter", "docstring_tokens": ["Fast", "array", "filter"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L43665-L43681", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "extglob", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert the given extglob `string` to a regex-compatible\nstring.\n\n```js\nvar extglob = require('extglob');\nextglob('!(a?(b))');\n//=> '(?!a(?:b)?)[^/]*?'\n```\n\n@param {String} `str` The string to convert.\n@param {Object} `options`\n@option {Boolean} [options] `esc` If `false` special characters will not be escaped. Defaults to `true`.\n@option {Boolean} [options] `regex` If `true` a regular expression is returned instead of a string.\n@return {String}\n@api public", "docstring_tokens": ["Convert", "the", "given", "extglob", "string", "to", "a", "regex", "-", "compatible", "string", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L43890-L43956", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "wrap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert `string` to a regex string.\n\n@param {String} `str`\n@param {String} `prefix` Character that determines how to wrap the string.\n@param {Boolean} `esc` If `false` special characters will not be escaped. Defaults to `true`.\n@return {String}", "docstring_tokens": ["Convert", "string", "to", "a", "regex", "string", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L43967-L43984", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "toRegex", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create the regex to do the matching. If\nthe leading character in the `pattern` is `!`\na negation regex is returned.\n\n@param {String} `pattern`\n@param {Boolean} `contains` Allow loose matching.\n@param {Boolean} `isNegated` True if the pattern is a negation pattern.", "docstring_tokens": ["Create", "the", "regex", "to", "do", "the", "matching", ".", "If", "the", "leading", "character", "in", "the", "pattern", "is", "!", "a", "negation", "regex", "is", "returned", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L44018-L44026", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "copy", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Copy properties from the source object to the\ntarget object.\n\n@param {*} `val`\n@param {String} `key`", "docstring_tokens": ["Copy", "properties", "from", "the", "source", "object", "to", "the", "target", "object", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L44984-L44995", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "advanceTo", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Advance to the next non-escaped character", "docstring_tokens": ["Advance", "to", "the", "next", "non", "-", "escaped", "character"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L46799-L46823", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "BasicSourceMapConsumer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A BasicSourceMapConsumer instance represents a parsed source map which we can\nquery for information about the original file positions by giving it a file\nposition in the generated source.\n\nThe first parameter is the raw source map (either as a JSON string, or\nalready parsed to an object). According to the spec, source maps have the\nfollowing attributes:\n\n- version: Which version of the source map spec this map is following.\n- sources: An array of URLs to the original source files.\n- names: An array of identifiers which can be referrenced by individual mappings.\n- sourceRoot: Optional. The URL root from which all sources are relative.\n- sourcesContent: Optional. An array of contents of the original source files.\n- mappings: A string of base64 VLQs which contain the actual mappings.\n- file: Optional. The generated file this source map is associated with.\n\nHere is an example source map, taken from the source map spec[0]:\n\n{\nversion : 3,\nfile: \"out.js\",\nsourceRoot : \"\",\nsources: [\"foo.js\", \"bar.js\"],\nnames: [\"src\", \"maps\", \"are\", \"fun\"],\nmappings: \"AA,AB;;ABCDE;\"\n}\n\nThe second parameter, if given, is a string whose value is the URL\nat which the source map was found. This URL is used to compute the\nsources array.\n\n[0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#", "docstring_tokens": ["A", "BasicSourceMapConsumer", "instance", "represents", "a", "parsed", "source", "map", "which", "we", "can", "query", "for", "information", "about", "the", "original", "file", "positions", "by", "giving", "it", "a", "file", "position", "in", "the", "generated", "source", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L56239-L56297", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "compareByOriginalPositions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Comparator between two mappings where the original positions are compared.\n\nOptionally pass in `true` as `onlyCompareGenerated` to consider two\nmappings with the same original source/line/column, but different generated\nline and column the same. Useful when searching for a mapping with a\nstubbed out mapping.", "docstring_tokens": ["Comparator", "between", "two", "mappings", "where", "the", "original", "positions", "are", "compared", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L58244-L58271", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "compareByGeneratedPositionsDeflated", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Comparator between two mappings with deflated source and name indices where\nthe generated positions are compared.\n\nOptionally pass in `true` as `onlyCompareGenerated` to consider two\nmappings with the same generated line and column, but different\nsource/name/original line and column the same. Useful when searching for a\nmapping with a stubbed out mapping.", "docstring_tokens": ["Comparator", "between", "two", "mappings", "with", "deflated", "source", "and", "name", "indices", "where", "the", "generated", "positions", "are", "compared", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L58283-L58310", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "computeSourceURL", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compute the URL of a source given the the source root, the source's\nURL, and the source map's URL.", "docstring_tokens": ["Compute", "the", "URL", "of", "a", "source", "given", "the", "the", "source", "root", "the", "source", "s", "URL", "and", "the", "source", "map", "s", "URL", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L58381-L58427", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "CorkedRequest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "It seems a linked list but it is not there will be only 2 of these for each stream", "docstring_tokens": ["It", "seems", "a", "linked", "list", "but", "it", "is", "not", "there", "will", "be", "only", "2", "of", "these", "for", "each", "stream"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L60306-L60314", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "clearBuffer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "if there's something in the buffer waiting, then process it", "docstring_tokens": ["if", "there", "s", "something", "in", "the", "buffer", "waiting", "then", "process", "it"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L60767-L60826", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "Node", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a new AST `Node` with the given `val` and `type`.\n\n```js\nvar node = new Node('*', 'Star');\nvar node = new Node({type: 'star', val: '*'});\n```\n@name Node\n@param {String|Object} `val` Pass a matched substring, or an object to merge onto the node.\n@param {String} `type` The node type to use when `val` is a string.\n@return {Object} node instance\n@api public", "docstring_tokens": ["Create", "a", "new", "AST", "Node", "with", "the", "given", "val", "and", "type", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L62778-L62801", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "append", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Shim to ensure the `.append` methods work with any version of snapdragon", "docstring_tokens": ["Shim", "to", "ensure", "the", ".", "append", "methods", "work", "with", "any", "version", "of", "snapdragon"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L64264-L64269", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "Snapdragon", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a new instance of `Snapdragon` with the given `options`.\n\n```js\nvar snapdragon = new Snapdragon();\n```\n\n@param {Object} `options`\n@api public", "docstring_tokens": ["Create", "a", "new", "instance", "of", "Snapdragon", "with", "the", "given", "options", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L64303-L64326", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Throw an error message with details including the cursor position.\n@param {String} `msg` Message to use in the Error.", "docstring_tokens": ["Throw", "an", "error", "message", "with", "details", "including", "the", "cursor", "position", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L64500-L64514", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Visit `node`.", "docstring_tokens": ["Visit", "node", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L64580-L64588", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compile `ast`.", "docstring_tokens": ["Compile", "ast", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L64610-L64628", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "Parser", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a new `Parser` with the given `input` and `options`.\n@param {String} `input`\n@param {Object} `options`\n@api public", "docstring_tokens": ["Create", "a", "new", "Parser", "with", "the", "given", "input", "and", "options", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L64657-L64662", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set parser `name` with the given `fn`\n@param {String} `name`\n@param {Function} `fn`\n@api public", "docstring_tokens": ["Set", "parser", "name", "with", "the", "given", "fn"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L64767-L64773", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Push a `token` onto the `type` stack.\n\n@param {String} `type`\n@return {Object} `token`\n@api public", "docstring_tokens": ["Push", "a", "token", "onto", "the", "type", "stack", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L64793-L64798", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Pop a token off of the `type` stack\n@param {String} `type`\n@returns {Object} Returns a token\n@api public", "docstring_tokens": ["Pop", "a", "token", "off", "of", "the", "type", "stack"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L64807-L64812", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the previous AST node\n@return {Object}", "docstring_tokens": ["Get", "the", "previous", "AST", "node"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L64848-L64852", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Update column based on `str`.", "docstring_tokens": ["Update", "column", "based", "on", "str", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L64866-L64873", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a parser with open and close for parens,\nbrackets or braces", "docstring_tokens": ["Create", "a", "parser", "with", "open", "and", "close", "for", "parens", "brackets", "or", "braces"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L64932-L65015", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Capture end-of-string", "docstring_tokens": ["Capture", "end", "-", "of", "-", "string"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L65021-L65053", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Run parsers to advance the cursor position", "docstring_tokens": ["Run", "parsers", "to", "advance", "the", "cursor", "position"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L65059-L65073", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse the given string.\n@return {Array}", "docstring_tokens": ["Parse", "the", "given", "string", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L65080-L65129", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "mixin", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Mixin source map support into `compiler`.\n\n@param {Object} `compiler`\n@api public", "docstring_tokens": ["Mixin", "source", "map", "support", "into", "compiler", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L65215-L65225", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "utf8End", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "For UTF-8, a replacement character is added when ending on a partial character.", "docstring_tokens": ["For", "UTF", "-", "8", "a", "replacement", "character", "is", "added", "when", "ending", "on", "a", "partial", "character", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L68741-L68745", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "rangeToPattern", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert a range to a regex pattern\n@param {Number} `start`\n@param {Number} `stop`\n@return {String}", "docstring_tokens": ["Convert", "a", "range", "to", "a", "regex", "pattern"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L72369-L72401", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "use", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Call plugin `fn`. If a function is returned push it into the\n`fns` array to be called by the `run` method.", "docstring_tokens": ["Call", "plugin", "fn", ".", "If", "a", "function", "is", "returned", "push", "it", "into", "the", "fns", "array", "to", "be", "called", "by", "the", "run", "method", "."], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L72991-L73021", "partition": "test"} +{"repo": "openstyles/stylelint-bundle", "path": "stylelint-bundle-worker.js", "func_name": "wrap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wrap a named plugin function so that it's only called on objects of the\ngiven `type`\n\n@param {String} `type`\n@param {Function} `fn` Plugin function\n@return {Function}", "docstring_tokens": ["Wrap", "a", "named", "plugin", "function", "so", "that", "it", "s", "only", "called", "on", "objects", "of", "the", "given", "type"], "sha": "9d5712e5f7f779f59cb2a447f281d4b5b606ae96", "url": "https://github.com/openstyles/stylelint-bundle/blob/9d5712e5f7f779f59cb2a447f281d4b5b606ae96/stylelint-bundle-worker.js#L73032-L73036", "partition": "test"} +{"repo": "makepost/gunit", "path": "gunit-src/app/Require/Require.js", "func_name": "memoize", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Caches results of unary or binary function.\n@param {(arg1: any, arg2?: any) => any} fun", "docstring_tokens": ["Caches", "results", "of", "unary", "or", "binary", "function", "."], "sha": "56ccf5283f3f913d33cb7cd7886aed26c6290102", "url": "https://github.com/makepost/gunit/blob/56ccf5283f3f913d33cb7cd7886aed26c6290102/gunit-src/app/Require/Require.js#L569-L602", "partition": "test"} +{"repo": "jeffijoe/keyblade", "path": "lib/keyblade.js", "func_name": "keyblade", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Protects the given object by wrapping it in a Proxy.\n\n@param {object} obj\nThe object to wrap.\n\n@param {(string) => string} opts.message\nOptional function used to construct the error message.\nWill get the key passed as the only argument.\n\n@param {string[]} ignore\nFields to ignore.\n\n@param {bool|Function(message: string, key: string)}\nIf specified, and is a function, is invoked before throwing.\nIf specified, and is truthy, `console.error` before throwing.\n\n@return {Proxy}", "docstring_tokens": ["Protects", "the", "given", "object", "by", "wrapping", "it", "in", "a", "Proxy", "."], "sha": "f879e6ed451ec199166fd511c4dbbe30d77419c6", "url": "https://github.com/jeffijoe/keyblade/blob/f879e6ed451ec199166fd511c4dbbe30d77419c6/lib/keyblade.js#L24-L56", "partition": "test"} +{"repo": "Wiredcraft/file-register", "path": "lib/proto.js", "func_name": "subRegister", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get or build a sub register for an object.", "docstring_tokens": ["Get", "or", "build", "a", "sub", "register", "for", "an", "object", "."], "sha": "6393edebdcd7074eba41fc2838988772da7b1766", "url": "https://github.com/Wiredcraft/file-register/blob/6393edebdcd7074eba41fc2838988772da7b1766/lib/proto.js#L16-L20", "partition": "test"} +{"repo": "Wiredcraft/file-register", "path": "lib/proto.js", "func_name": "registerDir", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Try to handle as a directory.", "docstring_tokens": ["Try", "to", "handle", "as", "a", "directory", "."], "sha": "6393edebdcd7074eba41fc2838988772da7b1766", "url": "https://github.com/Wiredcraft/file-register/blob/6393edebdcd7074eba41fc2838988772da7b1766/lib/proto.js#L51-L67", "partition": "test"} +{"repo": "nearform/nscale-planner", "path": "lib/containerStatus.js", "func_name": "containerStatus", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a container status to be used as a precondition\n\nValid values for the status parameters are:\n- a string, such as 'detached', 'added', 'started', 'running'\n- an object, such as { added: true, started: true, running: false }\n\n@param {object} original - the container\n@param {object|string} status - the status to set.\n@param {object} parent - the parent container's id.", "docstring_tokens": ["Creates", "a", "container", "status", "to", "be", "used", "as", "a", "precondition"], "sha": "40a33413dce28d2f95b3a8036a7c63a6c82b877e", "url": "https://github.com/nearform/nscale-planner/blob/40a33413dce28d2f95b3a8036a7c63a6c82b877e/lib/containerStatus.js#L32-L87", "partition": "test"} +{"repo": "wrote/read-dir-structure", "path": "build/index.js", "func_name": "lstatFiles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Update information about directory's content with lstat.\n@param {string} dirPath Path to the root directory\n@param {!Array} dirContent\n@returns {Promise>} An array with file objects.", "docstring_tokens": ["Update", "information", "about", "directory", "s", "content", "with", "lstat", "."], "sha": "b3fcd367d122ad96c8123f5cf2783ac164205c2a", "url": "https://github.com/wrote/read-dir-structure/blob/b3fcd367d122ad96c8123f5cf2783ac164205c2a/build/index.js#L11-L23", "partition": "test"} +{"repo": "wrote/read-dir-structure", "path": "build/index.js", "func_name": "readDirStructure", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read a directory, and return its structure as an object. Only `Files`, `Directories` and `Symlinks` are included!\n@param {string} dirPath Path to the directory.\n@returns {Promise<_readDirStructure.DirectoryStructure>} An object reflecting the directory structure.\n@example\n```js\nconst res = await readDirStructure('dir')\nresult:\n{\ntype: 'Directory',\ncontent: {\n'data.txt': {\ntype: 'File'\n},\nsubdir: {\ntype: 'Directory',\ncontent: {\n'data-ln.txt': {\ntype: 'SymbolicLink'\n},\n}\n}\n}\n}\n```", "docstring_tokens": ["Read", "a", "directory", "and", "return", "its", "structure", "as", "an", "object", ".", "Only", "Files", "Directories", "and", "Symlinks", "are", "included!"], "sha": "b3fcd367d122ad96c8123f5cf2783ac164205c2a", "url": "https://github.com/wrote/read-dir-structure/blob/b3fcd367d122ad96c8123f5cf2783ac164205c2a/build/index.js#L82-L125", "partition": "test"} +{"repo": "html-document/html-document", "path": "lib/utils/escapeAttributeName.js", "func_name": "propertyNameToAttribute", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Function converts dataset property name \"someValue\" to \"data-some-value\".\n\n@param {string} name\n@returns {string}\n @function\n@param name", "docstring_tokens": ["Function", "converts", "dataset", "property", "name", "someValue", "to", "data", "-", "some", "-", "value", "."], "sha": "383dd88259edac5b529cc676bd08887c37901395", "url": "https://github.com/html-document/html-document/blob/383dd88259edac5b529cc676bd08887c37901395/lib/utils/escapeAttributeName.js#L31-L36", "partition": "test"} +{"repo": "nearform/nscale-planner", "path": "lib/generateCommands.js", "func_name": "generateCommands", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate the configure and detach commands for all root elements.\n\n@param {object} origin - The origin system definition\n@param {object} dest - The destination system definition", "docstring_tokens": ["Generate", "the", "configure", "and", "detach", "commands", "for", "all", "root", "elements", "."], "sha": "40a33413dce28d2f95b3a8036a7c63a6c82b877e", "url": "https://github.com/nearform/nscale-planner/blob/40a33413dce28d2f95b3a8036a7c63a6c82b877e/lib/generateCommands.js#L27-L58", "partition": "test"} +{"repo": "postcore/limon", "path": "index.js", "func_name": "Limon", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "> Initialize `Limon` with `input` and `options`.\nBoth are completely optional. You can pass plugins\nand tokens to `options`.\n\n**Example**\n\n```js\nvar Limon = require('limon').Limon\nvar lexer = new Limon('foo bar')\n\n// or pass only options\nvar limon = new Limon({ foo: 'bar' })\nvar tokens = limon.tokenize('baz qux')\n```\n\n@param {String} `input` String value to tokenize, or if object it is assumed `options`.\n@param {Object} `options` Optional options, use it to pass plugins or tokens.\n@api public", "docstring_tokens": [">", "Initialize", "Limon", "with", "input", "and", "options", ".", "Both", "are", "completely", "optional", ".", "You", "can", "pass", "plugins", "and", "tokens", "to", "options", "."], "sha": "31e03f7df208efdb071e875351fa466b855695bf", "url": "https://github.com/postcore/limon/blob/31e03f7df208efdb071e875351fa466b855695bf/index.js#L33-L46", "partition": "test"} +{"repo": "nearform/nscale-planner", "path": "index.js", "func_name": "planner", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new planner\n\n@param {object} origin - The origin system definition\n@param {object} dest - The destination system definition\n@param {object} opts - The options", "docstring_tokens": ["Creates", "a", "new", "planner"], "sha": "40a33413dce28d2f95b3a8036a7c63a6c82b877e", "url": "https://github.com/nearform/nscale-planner/blob/40a33413dce28d2f95b3a8036a7c63a6c82b877e/index.js#L46-L97", "partition": "test"} +{"repo": "johnnycopperstone/led-me-know", "path": "lib/led-me-know.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set the strip to a loading pattern.\nTriggered when the tests have started.", "docstring_tokens": ["Set", "the", "strip", "to", "a", "loading", "pattern", ".", "Triggered", "when", "the", "tests", "have", "started", "."], "sha": "ece9bfed5e4ed4de1ad3c31def1aea59c7a72023", "url": "https://github.com/johnnycopperstone/led-me-know/blob/ece9bfed5e4ed4de1ad3c31def1aea59c7a72023/lib/led-me-know.js#L38-L50", "partition": "test"} +{"repo": "johnnycopperstone/led-me-know", "path": "lib/led-me-know.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Flash the strip with green lights,\nindicating tests were successful.", "docstring_tokens": ["Flash", "the", "strip", "with", "green", "lights", "indicating", "tests", "were", "successful", "."], "sha": "ece9bfed5e4ed4de1ad3c31def1aea59c7a72023", "url": "https://github.com/johnnycopperstone/led-me-know/blob/ece9bfed5e4ed4de1ad3c31def1aea59c7a72023/lib/led-me-know.js#L56-L70", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/mixins/create.js", "func_name": "create", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new resource.\n\n@param {Function} parent The parent this resource should be attached to.\n@param {String} baseUrl That's needed for sub resources (/api/v2/customers/1/cases).\n@param {Object} params The params to use for the resource.\n@param {Function} callback The callback called with the new resource or error.\n@api public", "docstring_tokens": ["Creates", "a", "new", "resource", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/mixins/create.js#L19-L24", "partition": "test"} +{"repo": "lixinliang/require-extension-vue", "path": "index.js", "func_name": "register", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Register Loader of different Language\n@param {String | String[]} type | style | script | template |\n@param {String} lang scss, ts, jade etc.\n@param {Function} handler", "docstring_tokens": ["Register", "Loader", "of", "different", "Language"], "sha": "7e8d45cc3c734e4ddd8ca5f9ab23015739a38d6f", "url": "https://github.com/lixinliang/require-extension-vue/blob/7e8d45cc3c734e4ddd8ca5f9ab23015739a38d6f/index.js#L63-L69", "partition": "test"} +{"repo": "danheberden/perform", "path": "lib/perform.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "generator to add callbacks to a bucked and possible fire them", "docstring_tokens": ["generator", "to", "add", "callbacks", "to", "a", "bucked", "and", "possible", "fire", "them"], "sha": "eaff7958f07ae489d660bccdcf3bf38904d29d9a", "url": "https://github.com/danheberden/perform/blob/eaff7958f07ae489d660bccdcf3bf38904d29d9a/lib/perform.js#L22-L43", "partition": "test"} +{"repo": "danheberden/perform", "path": "lib/perform.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "call a callback set", "docstring_tokens": ["call", "a", "callback", "set"], "sha": "eaff7958f07ae489d660bccdcf3bf38904d29d9a", "url": "https://github.com/danheberden/perform/blob/eaff7958f07ae489d660bccdcf3bf38904d29d9a/lib/perform.js#L46-L74", "partition": "test"} +{"repo": "danheberden/perform", "path": "lib/perform.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "call all the callback sets in a callback bucket", "docstring_tokens": ["call", "all", "the", "callback", "sets", "in", "a", "callback", "bucket"], "sha": "eaff7958f07ae489d660bccdcf3bf38904d29d9a", "url": "https://github.com/danheberden/perform/blob/eaff7958f07ae489d660bccdcf3bf38904d29d9a/lib/perform.js#L77-L82", "partition": "test"} +{"repo": "danheberden/perform", "path": "lib/perform.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "promise generator - psuedo read-only", "docstring_tokens": ["promise", "generator", "-", "psuedo", "read", "-", "only"], "sha": "eaff7958f07ae489d660bccdcf3bf38904d29d9a", "url": "https://github.com/danheberden/perform/blob/eaff7958f07ae489d660bccdcf3bf38904d29d9a/lib/perform.js#L85-L96", "partition": "test"} +{"repo": "danheberden/perform", "path": "lib/perform.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "pass judgement onto thy deferred", "docstring_tokens": ["pass", "judgement", "onto", "thy", "deferred"], "sha": "eaff7958f07ae489d660bccdcf3bf38904d29d9a", "url": "https://github.com/danheberden/perform/blob/eaff7958f07ae489d660bccdcf3bf38904d29d9a/lib/perform.js#L99-L110", "partition": "test"} +{"repo": "danheberden/perform", "path": "lib/perform.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "the heart of the beast", "docstring_tokens": ["the", "heart", "of", "the", "beast"], "sha": "eaff7958f07ae489d660bccdcf3bf38904d29d9a", "url": "https://github.com/danheberden/perform/blob/eaff7958f07ae489d660bccdcf3bf38904d29d9a/lib/perform.js#L113-L125", "partition": "test"} +{"repo": "danheberden/perform", "path": "lib/perform.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "upon any action on the dependencies, check the resolution", "docstring_tokens": ["upon", "any", "action", "on", "the", "dependencies", "check", "the", "resolution"], "sha": "eaff7958f07ae489d660bccdcf3bf38904d29d9a", "url": "https://github.com/danheberden/perform/blob/eaff7958f07ae489d660bccdcf3bf38904d29d9a/lib/perform.js#L157-L175", "partition": "test"} +{"repo": "alanhoff/node-bolty", "path": "lib/bolty.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Bolty main class\n@class\n@param {object} schema The main schmma.\n@example\n```javascript\nvar Bolty = require('bolty');\nvar schema = {\nname: 'string',\nsurname: 'string'\n};\nvar template = new Bolty(schema);\n```", "docstring_tokens": ["Bolty", "main", "class"], "sha": "979d73b13db2a88996b8a76a51dcce03bf62d8b9", "url": "https://github.com/alanhoff/node-bolty/blob/979d73b13db2a88996b8a76a51dcce03bf62d8b9/lib/bolty.js#L19-L35", "partition": "test"} +{"repo": "monarkee/postcss-beard-spacing", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Make a functional CSS rule\n@param {string} selector The selector to use including a dot or hash (. or #)\n@param {array} properties The property names to assign to the declaration\n@param {string} value The value for each declaration\n@return {array} an array of PostCSS Rules", "docstring_tokens": ["Make", "a", "functional", "CSS", "rule"], "sha": "0679a00ea08e775e7c4a2a59f06c9749164a1c8e", "url": "https://github.com/monarkee/postcss-beard-spacing/blob/0679a00ea08e775e7c4a2a59f06c9749164a1c8e/index.js#L53-L63", "partition": "test"} +{"repo": "monarkee/postcss-beard-spacing", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate a complete set of responsive spacing helpers\n@param {object} breakpoints A set of breakpoints to generate the spacer for\n@param {object} spacingScale The spacing scale to use\n@return {array} Rules", "docstring_tokens": ["Generate", "a", "complete", "set", "of", "responsive", "spacing", "helpers"], "sha": "0679a00ea08e775e7c4a2a59f06c9749164a1c8e", "url": "https://github.com/monarkee/postcss-beard-spacing/blob/0679a00ea08e775e7c4a2a59f06c9749164a1c8e/index.js#L71-L90", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/mixins/destroy.js", "func_name": "destroy", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Allows a resource to be deleted.\n\n@param {Function} callback The callback to call with an error message if there was an error\n@api public", "docstring_tokens": ["Allows", "a", "resource", "to", "be", "deleted", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/mixins/destroy.js#L18-L23", "partition": "test"} +{"repo": "sendanor/nor-pgrunner", "path": "src/bin/pgrunner.js", "func_name": "load_config", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns current config", "docstring_tokens": ["Returns", "current", "config"], "sha": "99c1a8ef8961f98b65bcfd3cc3a5c227816cece5", "url": "https://github.com/sendanor/nor-pgrunner/blob/99c1a8ef8961f98b65bcfd3cc3a5c227816cece5/src/bin/pgrunner.js#L32-L44", "partition": "test"} +{"repo": "sendanor/nor-pgrunner", "path": "src/bin/pgrunner.js", "func_name": "save_config", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Save current config\n\n@param config", "docstring_tokens": ["Save", "current", "config"], "sha": "99c1a8ef8961f98b65bcfd3cc3a5c227816cece5", "url": "https://github.com/sendanor/nor-pgrunner/blob/99c1a8ef8961f98b65bcfd3cc3a5c227816cece5/src/bin/pgrunner.js#L50-L55", "partition": "test"} +{"repo": "sendanor/nor-pgrunner", "path": "src/bin/pgrunner.js", "func_name": "get_server_opts", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns server options\n\n@param opts\n@returns {{database: *, port: (*|number), dbconfig: *, host: (*|string), user: *}}", "docstring_tokens": ["Returns", "server", "options"], "sha": "99c1a8ef8961f98b65bcfd3cc3a5c227816cece5", "url": "https://github.com/sendanor/nor-pgrunner/blob/99c1a8ef8961f98b65bcfd3cc3a5c227816cece5/src/bin/pgrunner.js#L89-L99", "partition": "test"} +{"repo": "mojaie/kiwiii-client", "path": "src/store/StoreConnection.js", "func_name": "getResources", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "API data resource on local IndexedDB", "docstring_tokens": ["API", "data", "resource", "on", "local", "IndexedDB"], "sha": "0f2820e9e0500c845acc36e8e21cb2ee11c28996", "url": "https://github.com/mojaie/kiwiii-client/blob/0f2820e9e0500c845acc36e8e21cb2ee11c28996/src/store/StoreConnection.js#L82-L86", "partition": "test"} +{"repo": "nathanfaucett/js-url", "path": "src/index.js", "func_name": "urlFormat", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "format a parsed object into a url string", "docstring_tokens": ["format", "a", "parsed", "object", "into", "a", "url", "string"], "sha": "19b90692d340ada986e86f083fa85be2c09cf855", "url": "https://github.com/nathanfaucett/js-url/blob/19b90692d340ada986e86f083fa85be2c09cf855/src/index.js#L582-L597", "partition": "test"} +{"repo": "psalaets/ray-vs-circle", "path": "index.js", "func_name": "rayLineVsCircle", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Treats ray like an infinite line see where it intersects circle.\n\n@param {object} ray - ray-like\n@param {Circle2} circle\n@return {Array} containing 0, 1, or 2 Vec2 where line hits circle", "docstring_tokens": ["Treats", "ray", "like", "an", "infinite", "line", "see", "where", "it", "intersects", "circle", "."], "sha": "5f147d56e8988e76949ea0e296baec0b684c2760", "url": "https://github.com/psalaets/ray-vs-circle/blob/5f147d56e8988e76949ea0e296baec0b684c2760/index.js#L43-L52", "partition": "test"} +{"repo": "sportngin/ngin_client_node", "path": "src/sports/tiebreakPreference.js", "func_name": "scopeUrl", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Scopes the url to the tournament, league, or flight\n\n@param {Object} options\n@returns {String}\n@api public", "docstring_tokens": ["Scopes", "the", "url", "to", "the", "tournament", "league", "or", "flight"], "sha": "dafed7f3b86e86b01f7d5fd707d4a8d608258fe9", "url": "https://github.com/sportngin/ngin_client_node/blob/dafed7f3b86e86b01f7d5fd707d4a8d608258fe9/src/sports/tiebreakPreference.js#L19-L31", "partition": "test"} +{"repo": "sportngin/ngin_client_node", "path": "src/sports/tiebreakPreference.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fetch is used by Tournament and list is being used by Flight. Can those be consolidated?", "docstring_tokens": ["Fetch", "is", "used", "by", "Tournament", "and", "list", "is", "being", "used", "by", "Flight", ".", "Can", "those", "be", "consolidated?"], "sha": "dafed7f3b86e86b01f7d5fd707d4a8d608258fe9", "url": "https://github.com/sportngin/ngin_client_node/blob/dafed7f3b86e86b01f7d5fd707d4a8d608258fe9/src/sports/tiebreakPreference.js#L46-L49", "partition": "test"} +{"repo": "openmason/jsonrpclib", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "JSON RPC library entry point", "docstring_tokens": ["JSON", "RPC", "library", "entry", "point"], "sha": "fc6477bf9261dc692d09f8fc36e697e1314fec1c", "url": "https://github.com/openmason/jsonrpclib/blob/fc6477bf9261dc692d09f8fc36e697e1314fec1c/index.js#L120-L131", "partition": "test"} +{"repo": "openmason/jsonrpclib", "path": "index.js", "func_name": "_getParamNames", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "returns the function parameters", "docstring_tokens": ["returns", "the", "function", "parameters"], "sha": "fc6477bf9261dc692d09f8fc36e697e1314fec1c", "url": "https://github.com/openmason/jsonrpclib/blob/fc6477bf9261dc692d09f8fc36e697e1314fec1c/index.js#L274-L277", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/mixins/update.js", "func_name": "_getChangedProperties", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get only changed properties as a hash.\n\n@return {Object}\n@api private", "docstring_tokens": ["Get", "only", "changed", "properties", "as", "a", "hash", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/mixins/update.js#L19-L25", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/mixins/update.js", "func_name": "update", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Allows a resource to be updated.\n\n@param {Object|Function} properties A hash of fields to be updated or the callback.\n@param {Function} callback The callback to call with the updated resource or an error message.\n@api public", "docstring_tokens": ["Allows", "a", "resource", "to", "be", "updated", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/mixins/update.js#L34-L57", "partition": "test"} +{"repo": "the-labo/the-story-base", "path": "lib/by.js", "func_name": "byClass", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "By class name\n@param {string} c - Class name\n@returns {string} Selector by class", "docstring_tokens": ["By", "class", "name"], "sha": "c9a445a0df2286b1e8d6b366fd211eabab3d99e2", "url": "https://github.com/the-labo/the-story-base/blob/c9a445a0df2286b1e8d6b366fd211eabab3d99e2/lib/by.js#L49-L55", "partition": "test"} +{"repo": "westoque/gauges-node", "path": "docs/jsdoc/templates/codeview/publish.js", "func_name": "subtemplate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Include a sub-template in the current template, specifying a data object", "docstring_tokens": ["Include", "a", "sub", "-", "template", "in", "the", "current", "template", "specifying", "a", "data", "object"], "sha": "4dfc962cc58fb03d97e0137d89703e321d4f8ec3", "url": "https://github.com/westoque/gauges-node/blob/4dfc962cc58fb03d97e0137d89703e321d4f8ec3/docs/jsdoc/templates/codeview/publish.js#L142-L147", "partition": "test"} +{"repo": "westoque/gauges-node", "path": "docs/jsdoc/templates/codeview/publish.js", "func_name": "makeSignature", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Build output for displaying function parameters.", "docstring_tokens": ["Build", "output", "for", "displaying", "function", "parameters", "."], "sha": "4dfc962cc58fb03d97e0137d89703e321d4f8ec3", "url": "https://github.com/westoque/gauges-node/blob/4dfc962cc58fb03d97e0137d89703e321d4f8ec3/docs/jsdoc/templates/codeview/publish.js#L202-L220", "partition": "test"} +{"repo": "vkiding/jud-devtool", "path": "frontend/devtools/elements/Spectrum.js", "func_name": "approach", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Approach the desired contrast ratio by modifying the given component\nfrom the given starting value.\n@param {number} index\n@param {number} x\n@param {boolean} onAxis\n@return {?number}", "docstring_tokens": ["Approach", "the", "desired", "contrast", "ratio", "by", "modifying", "the", "given", "component", "from", "the", "given", "starting", "value", "."], "sha": "02c73a122ed3e6178be63b3bc79a576397ab640a", "url": "https://github.com/vkiding/jud-devtool/blob/02c73a122ed3e6178be63b3bc79a576397ab640a/frontend/devtools/elements/Spectrum.js#L737-L752", "partition": "test"} +{"repo": "mojaie/kiwiii-client", "path": "src/graph/GraphControlBox.js", "func_name": "updateNodeColor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Update DOM attributes", "docstring_tokens": ["Update", "DOM", "attributes"], "sha": "0f2820e9e0500c845acc36e8e21cb2ee11c28996", "url": "https://github.com/mojaie/kiwiii-client/blob/0f2820e9e0500c845acc36e8e21cb2ee11c28996/src/graph/GraphControlBox.js#L97-L100", "partition": "test"} +{"repo": "mojaie/kiwiii-client", "path": "src/graph/GraphControlBox.js", "func_name": "mainControlBox", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate controlBox elements", "docstring_tokens": ["Generate", "controlBox", "elements"], "sha": "0f2820e9e0500c845acc36e8e21cb2ee11c28996", "url": "https://github.com/mojaie/kiwiii-client/blob/0f2820e9e0500c845acc36e8e21cb2ee11c28996/src/graph/GraphControlBox.js#L221-L229", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "centerGraph", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Centers the graph. All parameters can be either a number or a function evaluated for a number result.\n\n`newScale` and `duration` are evaluated in the centering anonymous function allowing values to be determined\nafter debounce.\n\n@param {number|function} newScale - New scale value for graph.\n@param {number|function} duration - Duration of centering transition.\n@param {number|function} delay - Delay for debounce before centering occurs.", "docstring_tokens": ["Centers", "the", "graph", ".", "All", "parameters", "can", "be", "either", "a", "number", "or", "a", "function", "evaluated", "for", "a", "number", "result", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L168-L214", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "detectAllNodesFixed", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Helper function to determin if all nodes are fixed. This is run after any node is dragged and set to fixed.", "docstring_tokens": ["Helper", "function", "to", "determin", "if", "all", "nodes", "are", "fixed", ".", "This", "is", "run", "after", "any", "node", "is", "dragged", "and", "set", "to", "fixed", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L219-L229", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "fadeRelatedNodes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fades and unfades connected nodes to a given `targetNode`.\n\n@param {object} targetNode - The target node from which fading occurs / connections are calculated.\n@param {boolean} selected - Indicates if the fade is in / out; true fades nodes / false un-fades nodes.\n@param {Array} nodes - An array of all graph nodes.\n@param {Array} links - An array of all graph links.", "docstring_tokens": ["Fades", "and", "unfades", "connected", "nodes", "to", "a", "given", "targetNode", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L239-L294", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "findElementByNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A helper to select a given SVG element from given node data.\n\n@param {string} prefix - String prefix.\n@param {object} node - Node object", "docstring_tokens": ["A", "helper", "to", "select", "a", "given", "SVG", "element", "from", "given", "node", "data", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L302-L306", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "getElementCoords", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Pass in the element and the screen coordinates are returned.\n\n@param element\n\n@returns {{x: number, y: number}}", "docstring_tokens": ["Pass", "in", "the", "element", "and", "the", "screen", "coordinates", "are", "returned", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L327-L332", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "getSVG", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets a recycled SVG element from the pool, `svgElementMap`, or creates a new element for the given type. Any\ndata specified by D3 will be copied to the element. Returns a function which is evaluated by D3.\n\n@param {string} elementType - SVG element: `circle`, `g`, `path`, or `text`.\n\n@returns {*}", "docstring_tokens": ["Gets", "a", "recycled", "SVG", "element", "from", "the", "pool", "svgElementMap", "or", "creates", "a", "new", "element", "for", "the", "given", "type", ".", "Any", "data", "specified", "by", "D3", "will", "be", "copied", "to", "the", "element", ".", "Returns", "a", "function", "which", "is", "evaluated", "by", "D3", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L342-L375", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "hideNodeContextMenu", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Hides the node context menu if visible and removes any node highlighting. If an event is supplied it is checked\nagainst any existing context menu and is ignored if the context menu is within the parent hierarchy.\n\n@param {object|undefined} event - Optional event", "docstring_tokens": ["Hides", "the", "node", "context", "menu", "if", "visible", "and", "removes", "any", "node", "highlighting", ".", "If", "an", "event", "is", "supplied", "it", "is", "checked", "against", "any", "existing", "context", "menu", "and", "is", "ignored", "if", "the", "context", "menu", "is", "within", "the", "parent", "hierarchy", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L383-L414", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "isConnected", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks if a target node is connected to another given node by checking `index` or the `linkedByIndex` map.\n\n@param {object} targetNode\n@param {object} otherNode\n\n@returns {boolean}", "docstring_tokens": ["Checks", "if", "a", "target", "node", "is", "connected", "to", "another", "given", "node", "by", "checking", "index", "or", "the", "linkedByIndex", "map", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L424-L427", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "onControlDepsClicked", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles responding to the dependencies radio group.", "docstring_tokens": ["Handles", "responding", "to", "the", "dependencies", "radio", "group", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L442-L471", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "onControlLevelChanged", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles responding to the level slider.", "docstring_tokens": ["Handles", "responding", "to", "the", "level", "slider", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L476-L488", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "onControlMenuClicked", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles responding to overflow menu selections.", "docstring_tokens": ["Handles", "responding", "to", "overflow", "menu", "selections", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L503-L529", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "onControlTableRowContextClick", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles a context click on a table row showing the related node context menu.\n\n@param {object} node - Target node.\n@param {object} event - mouse event", "docstring_tokens": ["Handles", "a", "context", "click", "on", "a", "table", "row", "showing", "the", "related", "node", "context", "menu", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L537-L541", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "onControlTableRowMouseOver", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles a context click on a table row showing the related node context menu. Defers to `onNodeMouseOverOut`.\n\n@param {Array} nodes - All graph nodes.\n@param {Array} links - All graph links.\n@param {object} node - Target node.\n@param {boolean} enter - true when mouse entering / false when mouse exiting.", "docstring_tokens": ["Handles", "a", "context", "click", "on", "a", "table", "row", "showing", "the", "related", "node", "context", "menu", ".", "Defers", "to", "onNodeMouseOverOut", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L551-L557", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "onControlZoomClicked", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles clicks on zoom control buttons and invokes `centerGraph` with new scale value.", "docstring_tokens": ["Handles", "clicks", "on", "zoom", "control", "buttons", "and", "invokes", "centerGraph", "with", "new", "scale", "value", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L562-L584", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "onNodeContextMenuClick", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles clicks on the node context menu invoking any active actions.", "docstring_tokens": ["Handles", "clicks", "on", "the", "node", "context", "menu", "invoking", "any", "active", "actions", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L589-L606", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "onNodeContextClick", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Shows the node context menu\n\n@param {object} targetNode - The target node.\n\n@param {object} coords - Object containing x / y position for context menu; if not provided Node position\ndetermines coords.", "docstring_tokens": ["Shows", "the", "node", "context", "menu"], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L616-L726", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "onNodeMouseDown", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles a mouse down action on a graph node. Hides any showing context menu. For left clicks the selected node\nbecomes the drag target and related nodes are faded. Any other mouse button is ignored.\n\n@param {Array} nodes - All graph nodes.\n@param {Array} links - All graph links.\n@param {object} targetNode - The target node.", "docstring_tokens": ["Handles", "a", "mouse", "down", "action", "on", "a", "graph", "node", ".", "Hides", "any", "showing", "context", "menu", ".", "For", "left", "clicks", "the", "selected", "node", "becomes", "the", "drag", "target", "and", "related", "nodes", "are", "faded", ".", "Any", "other", "mouse", "button", "is", "ignored", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L736-L752", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "onNodeMouseOverOut", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles fading related nodes to the given `targetNode` if there is no currently selected node.\n\n@param {Array} nodes - All graph nodes.\n@param {Array} links - All graph links.\n@param {boolean} enter - true when mouse entering / false when mouse exiting.\n@param {object} targetNode - The target node.", "docstring_tokens": ["Handles", "fading", "related", "nodes", "to", "the", "given", "targetNode", "if", "there", "is", "no", "currently", "selected", "node", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L762-L769", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "onResize", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handles the window resize event.", "docstring_tokens": ["Handles", "the", "window", "resize", "event", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L774-L792", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "onTick", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "D3 tick handler for the forced graph layout.", "docstring_tokens": ["D3", "tick", "handler", "for", "the", "forced", "graph", "layout", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L797-L816", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "recycleGraph", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recycles all SVG elements above the top level SVGGElement defining the graph.", "docstring_tokens": ["Recycles", "all", "SVG", "elements", "above", "the", "top", "level", "SVGGElement", "defining", "the", "graph", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L833-L855", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "reverseGraphLinks", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Reverses all graph links.", "docstring_tokens": ["Reverses", "all", "graph", "links", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L961-L974", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "updateMenuUI", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Provides handling of changing menu text & material icons based on current state.", "docstring_tokens": ["Provides", "handling", "of", "changing", "menu", "text", "&", "material", "icons", "based", "on", "current", "state", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L1073-L1086", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "updateTableUI", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Builds the table UI with all current node data and associates the active events on each row.", "docstring_tokens": ["Builds", "the", "table", "UI", "with", "all", "current", "node", "data", "and", "associates", "the", "active", "events", "on", "each", "row", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L1091-L1131", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "updateTableUIExtent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Updates the node table max-height enabling scrolling as necessary.", "docstring_tokens": ["Updates", "the", "node", "table", "max", "-", "height", "enabling", "scrolling", "as", "necessary", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L1136-L1148", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/d3-graph.js", "func_name": "zoomFit", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determines a new scale that fits the entire graph into view.\n\n@returns {number}", "docstring_tokens": ["Determines", "a", "new", "scale", "that", "fits", "the", "entire", "graph", "into", "view", "."], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/d3-graph.js#L1155-L1169", "partition": "test"} +{"repo": "westoque/gauges-node", "path": "docs/jsdoc/templates/codeview/javascript/all.js", "func_name": "getWindowWidth", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the the inner width of the browser window", "docstring_tokens": ["Get", "the", "the", "inner", "width", "of", "the", "browser", "window"], "sha": "4dfc962cc58fb03d97e0137d89703e321d4f8ec3", "url": "https://github.com/westoque/gauges-node/blob/4dfc962cc58fb03d97e0137d89703e321d4f8ec3/docs/jsdoc/templates/codeview/javascript/all.js#L61-L71", "partition": "test"} +{"repo": "westoque/gauges-node", "path": "docs/jsdoc/templates/codeview/javascript/all.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds link to CSS in the head if no CSS is loaded\n\n@since 1.0 - 2010-08-21\n@version 1.0 - 2010-08-21\n@param {String|Object} cssScreen URL to CSS file for larger screens\n@param {String|Object} cssHandheld URL to CSS file for smaller screens\n@param {Number} mobileMaxWidth Maximum width for handheld devices\n@example\nwbos.CssTools.MediaQueryFallBack.LoadCss(['screen.css', 'screen2.css'], 'mobile.css', 480)", "docstring_tokens": ["Adds", "link", "to", "CSS", "in", "the", "head", "if", "no", "CSS", "is", "loaded"], "sha": "4dfc962cc58fb03d97e0137d89703e321d4f8ec3", "url": "https://github.com/westoque/gauges-node/blob/4dfc962cc58fb03d97e0137d89703e321d4f8ec3/docs/jsdoc/templates/codeview/javascript/all.js#L98-L167", "partition": "test"} +{"repo": "sendanor/nor-api", "path": "src/index.js", "func_name": "do_success", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sends successful HTTP reply", "docstring_tokens": ["Sends", "successful", "HTTP", "reply"], "sha": "50c88c6a606443e89f978a75057902a65d8312bd", "url": "https://github.com/sendanor/nor-api/blob/50c88c6a606443e89f978a75057902a65d8312bd/src/index.js#L17-L21", "partition": "test"} +{"repo": "sendanor/nor-api", "path": "src/index.js", "func_name": "do_failure", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sends failed HTTP reply", "docstring_tokens": ["Sends", "failed", "HTTP", "reply"], "sha": "50c88c6a606443e89f978a75057902a65d8312bd", "url": "https://github.com/sendanor/nor-api/blob/50c88c6a606443e89f978a75057902a65d8312bd/src/index.js#L24-L34", "partition": "test"} +{"repo": "sendanor/nor-api", "path": "src/index.js", "func_name": "do_create_req", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Builder for generic HTTP Request Handler", "docstring_tokens": ["Builder", "for", "generic", "HTTP", "Request", "Handler"], "sha": "50c88c6a606443e89f978a75057902a65d8312bd", "url": "https://github.com/sendanor/nor-api/blob/50c88c6a606443e89f978a75057902a65d8312bd/src/index.js#L37-L62", "partition": "test"} +{"repo": "sendanor/nor-api", "path": "src/index.js", "func_name": "do_create_server", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "HTTP Server Creation", "docstring_tokens": ["HTTP", "Server", "Creation"], "sha": "50c88c6a606443e89f978a75057902a65d8312bd", "url": "https://github.com/sendanor/nor-api/blob/50c88c6a606443e89f978a75057902a65d8312bd/src/index.js#L65-L75", "partition": "test"} +{"repo": "sendanor/nor-api", "path": "src/index.js", "func_name": "setup_server", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "API server builder", "docstring_tokens": ["API", "server", "builder"], "sha": "50c88c6a606443e89f978a75057902a65d8312bd", "url": "https://github.com/sendanor/nor-api/blob/50c88c6a606443e89f978a75057902a65d8312bd/src/index.js#L78-L99", "partition": "test"} +{"repo": "zuren/catdown-scrollsync", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Cross-browser event listener", "docstring_tokens": ["Cross", "-", "browser", "event", "listener"], "sha": "1becc36002c2636ecc3823691405d2cd8842073a", "url": "https://github.com/zuren/catdown-scrollsync/blob/1becc36002c2636ecc3823691405d2cd8842073a/index.js#L2-L6", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/resource/reply.js", "func_name": "Reply", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize a new `Reply` with the given `parent` and `definition`.\n\n@param {Function} parent The parent this resource is attached to.\n@param {Object} definition The resource definition.\n@api private", "docstring_tokens": ["Initialize", "a", "new", "Reply", "with", "the", "given", "parent", "and", "definition", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/resource/reply.js#L21-L27", "partition": "test"} +{"repo": "TooTallNate/node-gitProvider", "path": "index.js", "func_name": "serveGitFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a Buffer of the specified file from the specified repo and commit reference. Recursively gets the tree instances until the last part, which is gets the rawObject for and serves back over HTTP.", "docstring_tokens": ["Returns", "a", "Buffer", "of", "the", "specified", "file", "from", "the", "specified", "repo", "and", "commit", "reference", ".", "Recursively", "gets", "the", "tree", "instances", "until", "the", "last", "part", "which", "is", "gets", "the", "rawObject", "for", "and", "serves", "back", "over", "HTTP", "."], "sha": "d17888e1e575264d3a69477680038e65c25e3187", "url": "https://github.com/TooTallNate/node-gitProvider/blob/d17888e1e575264d3a69477680038e65c25e3187/index.js#L140-L165", "partition": "test"} +{"repo": "elkdanger/express-autoapi", "path": "index.js", "func_name": "processFileList", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Processes a list of files and produces the api routing for them\n@param files The list of files to process\n@param settings express-autoapi settings\n@param state The process state", "docstring_tokens": ["Processes", "a", "list", "of", "files", "and", "produces", "the", "api", "routing", "for", "them"], "sha": "26de6d57ddfe3e8903c6a523486415d20853f1bf", "url": "https://github.com/elkdanger/express-autoapi/blob/26de6d57ddfe3e8903c6a523486415d20853f1bf/index.js#L27-L77", "partition": "test"} +{"repo": "arokor/quota-storage", "path": "lib/quota-storage.js", "func_name": "packageModule", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "package module for different environments", "docstring_tokens": ["package", "module", "for", "different", "environments"], "sha": "a88a6c4df89017824e42b8e48ed18cd207af3801", "url": "https://github.com/arokor/quota-storage/blob/a88a6c4df89017824e42b8e48ed18cd207af3801/lib/quota-storage.js#L5-L13", "partition": "test"} +{"repo": "scrollback/ebus", "path": "ebus.js", "func_name": "Ebus", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "polyfills the global setImmediate", "docstring_tokens": ["polyfills", "the", "global", "setImmediate"], "sha": "834231071e430ebbad057a9a40aad4cff6dcd42d", "url": "https://github.com/scrollback/ebus/blob/834231071e430ebbad057a9a40aad4cff6dcd42d/ebus.js#L35-L47", "partition": "test"} +{"repo": "sportngin/ngin_client_node", "path": "src/index.js", "func_name": "ApiClient", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Common entry point for all API models\n\n@param {Object} config\n@api public", "docstring_tokens": ["Common", "entry", "point", "for", "all", "API", "models"], "sha": "dafed7f3b86e86b01f7d5fd707d4a8d608258fe9", "url": "https://github.com/sportngin/ngin_client_node/blob/dafed7f3b86e86b01f7d5fd707d4a8d608258fe9/src/index.js#L47-L67", "partition": "test"} +{"repo": "writetome51/array-get-indexes-basic", "path": "dist/getFirstIndexOf.js", "func_name": "getFirstIndexOf", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "returns -1 if value being searched for isn't found. value cannot be object.", "docstring_tokens": ["returns", "-", "1", "if", "value", "being", "searched", "for", "isn", "t", "found", ".", "value", "cannot", "be", "object", "."], "sha": "6e724f4100228e990e019c23267b069cf93d88ed", "url": "https://github.com/writetome51/array-get-indexes-basic/blob/6e724f4100228e990e019c23267b069cf93d88ed/dist/getFirstIndexOf.js#L9-L17", "partition": "test"} +{"repo": "sportngin/ngin_client_node", "path": "src/sports/division.js", "func_name": "scopeUrl", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Scopes the url to the season\n\n@param {Object} options\n@returns {String}\n@api public", "docstring_tokens": ["Scopes", "the", "url", "to", "the", "season"], "sha": "dafed7f3b86e86b01f7d5fd707d4a8d608258fe9", "url": "https://github.com/sportngin/ngin_client_node/blob/dafed7f3b86e86b01f7d5fd707d4a8d608258fe9/src/sports/division.js#L18-L24", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/resource/customer.js", "func_name": "Customer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize a new `Customer` with the given `parent` and `definition`.\n\n@param {Function} parent The parent this resource is attached to.\n@param {Object} definition The resource definition.\n@api private", "docstring_tokens": ["Initialize", "a", "new", "Customer", "with", "the", "given", "parent", "and", "definition", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/resource/customer.js#L21-L27", "partition": "test"} +{"repo": "blujedis/formatr", "path": "dist/index.js", "func_name": "copy", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This does a shallow copy of objects. This is needed for objects such as Errors Otherwise some properties may not be available.", "docstring_tokens": ["This", "does", "a", "shallow", "copy", "of", "objects", ".", "This", "is", "needed", "for", "objects", "such", "as", "Errors", "Otherwise", "some", "properties", "may", "not", "be", "available", "."], "sha": "9a76bc00703b8ed631c44d726025bc1f929aa074", "url": "https://github.com/blujedis/formatr/blob/9a76bc00703b8ed631c44d726025bc1f929aa074/dist/index.js#L24-L29", "partition": "test"} +{"repo": "blujedis/formatr", "path": "dist/index.js", "func_name": "formatWith", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Formats a message using the specified options.\n\n@param options pass options for this instance of formatting.", "docstring_tokens": ["Formats", "a", "message", "using", "the", "specified", "options", "."], "sha": "9a76bc00703b8ed631c44d726025bc1f929aa074", "url": "https://github.com/blujedis/formatr/blob/9a76bc00703b8ed631c44d726025bc1f929aa074/dist/index.js#L99-L104", "partition": "test"} +{"repo": "unfoldingWord-dev/node-resource-container", "path": "lib/utils/compression.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Zips up a directory.\n\n@param sourceDir {string} the directory to be zipped\n@param destFile {string} the output file\n@param opts {{}}\n@returns {Promise.} path to the archive", "docstring_tokens": ["Zips", "up", "a", "directory", "."], "sha": "20c4b7bfd2fa3f397ee7e0e743567822912c305b", "url": "https://github.com/unfoldingWord-dev/node-resource-container/blob/20c4b7bfd2fa3f397ee7e0e743567822912c305b/lib/utils/compression.js#L20-L40", "partition": "test"} +{"repo": "unfoldingWord-dev/node-resource-container", "path": "lib/utils/compression.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extracts a zip to a directory.\nThis will fail if the destination already exists.\n\n@param sourceFile {string}\n@param destDir {string}\n@returns {Promise.} path to the destination", "docstring_tokens": ["Extracts", "a", "zip", "to", "a", "directory", ".", "This", "will", "fail", "if", "the", "destination", "already", "exists", "."], "sha": "20c4b7bfd2fa3f397ee7e0e743567822912c305b", "url": "https://github.com/unfoldingWord-dev/node-resource-container/blob/20c4b7bfd2fa3f397ee7e0e743567822912c305b/lib/utils/compression.js#L51-L61", "partition": "test"} +{"repo": "unfoldingWord-dev/node-resource-container", "path": "lib/utils/compression.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a Bzip2 compressed tar of a directory.\n\n@param sourceDir {string} the directory to be compressed\n@param destFile {string} the output file\n@param opts {{}}\n@returns {Promise.} path to the archive", "docstring_tokens": ["Create", "a", "Bzip2", "compressed", "tar", "of", "a", "directory", "."], "sha": "20c4b7bfd2fa3f397ee7e0e743567822912c305b", "url": "https://github.com/unfoldingWord-dev/node-resource-container/blob/20c4b7bfd2fa3f397ee7e0e743567822912c305b/lib/utils/compression.js#L71-L102", "partition": "test"} +{"repo": "unfoldingWord-dev/node-resource-container", "path": "lib/utils/compression.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extracts a tar to a directory.\n\n@param sourceFile {string}\n@param destDir {string}\n@returns {Promise.} path to the destination", "docstring_tokens": ["Extracts", "a", "tar", "to", "a", "directory", "."], "sha": "20c4b7bfd2fa3f397ee7e0e743567822912c305b", "url": "https://github.com/unfoldingWord-dev/node-resource-container/blob/20c4b7bfd2fa3f397ee7e0e743567822912c305b/lib/utils/compression.js#L111-L138", "partition": "test"} +{"repo": "wrote/ensure-path", "path": "build/index.js", "func_name": "make", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recursive promise-based mkdir.\n@param {string} dir Path to the directory to be created", "docstring_tokens": ["Recursive", "promise", "-", "based", "mkdir", "."], "sha": "efb4390c5b8a2f313cfd8f2ffd249ec786f2a97b", "url": "https://github.com/wrote/ensure-path/blob/efb4390c5b8a2f313cfd8f2ffd249ec786f2a97b/build/index.js#L27-L39", "partition": "test"} +{"repo": "bigpipe/fabricator", "path": "index.js", "func_name": "fabricator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Expose small fabrication helper.\n\nPossible options:\n\n- source: {String} Absolute path to be used to resolve file paths.\n- recursive: {Boolean} Should file paths be recursively discovered.\n- name: {String} Force a name for a given constructor.\n\n@param {Mixed} stack String, array or object that contains constructible entities\n@param {Object} options Optional options.\n@returns {Array} collection of constructors.\n@api public", "docstring_tokens": ["Expose", "small", "fabrication", "helper", "."], "sha": "b480885caf5f2367385e981e1a915dda18de2806", "url": "https://github.com/bigpipe/fabricator/blob/b480885caf5f2367385e981e1a915dda18de2806/index.js#L20-L50", "partition": "test"} +{"repo": "bigpipe/fabricator", "path": "index.js", "func_name": "read", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read directory and initialize JavaScript files.\n\n@param {String} filepath Full directory path.\n@param {Object} options Additional configuration.\n@return {Array} collection of constructor\n@api private", "docstring_tokens": ["Read", "directory", "and", "initialize", "JavaScript", "files", "."], "sha": "b480885caf5f2367385e981e1a915dda18de2806", "url": "https://github.com/bigpipe/fabricator/blob/b480885caf5f2367385e981e1a915dda18de2806/index.js#L60-L95", "partition": "test"} +{"repo": "bigpipe/fabricator", "path": "index.js", "func_name": "iterator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return iterator for array or object.\n\n@param {Function} traverse Recursive iterator, called on directories.\n@param {Object} obj Original object, if set values are fetched by entity.\n@param {Object} options Configuration.\n@return {Function} iterator\n@api private", "docstring_tokens": ["Return", "iterator", "for", "array", "or", "object", "."], "sha": "b480885caf5f2367385e981e1a915dda18de2806", "url": "https://github.com/bigpipe/fabricator/blob/b480885caf5f2367385e981e1a915dda18de2806/index.js#L106-L141", "partition": "test"} +{"repo": "bigpipe/fabricator", "path": "index.js", "func_name": "js", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Make sure only valid JavaScript files are used as source. Ignore other files,\nlike .log files. Also allow constructors.\n\n@param {String|Function} file Path or constructor function.\n@returns {Boolean} allow entity to be used or not.\n@api private", "docstring_tokens": ["Make", "sure", "only", "valid", "JavaScript", "files", "are", "used", "as", "source", ".", "Ignore", "other", "files", "like", ".", "log", "files", ".", "Also", "allow", "constructors", "."], "sha": "b480885caf5f2367385e981e1a915dda18de2806", "url": "https://github.com/bigpipe/fabricator/blob/b480885caf5f2367385e981e1a915dda18de2806/index.js#L151-L156", "partition": "test"} +{"repo": "bigpipe/fabricator", "path": "index.js", "func_name": "empty", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Simple check to see if the provided stack is empty or falsy.\n\n@param {Mixed} value Entity to check\n@return {Boolean} result of check\n@api private", "docstring_tokens": ["Simple", "check", "to", "see", "if", "the", "provided", "stack", "is", "empty", "or", "falsy", "."], "sha": "b480885caf5f2367385e981e1a915dda18de2806", "url": "https://github.com/bigpipe/fabricator/blob/b480885caf5f2367385e981e1a915dda18de2806/index.js#L178-L185", "partition": "test"} +{"repo": "synacor/jan", "path": "doctemplate/static/scripts/enhancements.js", "func_name": "click", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "menu link is a toggle, sidebar links are close-only", "docstring_tokens": ["menu", "link", "is", "a", "toggle", "sidebar", "links", "are", "close", "-", "only"], "sha": "a53be0a3cda1f9b672b80b3d52588b10a4e0a31c", "url": "https://github.com/synacor/jan/blob/a53be0a3cda1f9b672b80b3d52588b10a4e0a31c/doctemplate/static/scripts/enhancements.js#L49-L56", "partition": "test"} +{"repo": "DeadAlready/node-easy-pipe", "path": "lib/shellStream.js", "func_name": "ShellStream", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Main function for creating a shellstream\n\n@param {Array} args -> arguments to apply to PipeStream\n\n@returns {ShellStream}", "docstring_tokens": ["Main", "function", "for", "creating", "a", "shellstream"], "sha": "e739e052494cd6be96c95bc65e34442042243e7d", "url": "https://github.com/DeadAlready/node-easy-pipe/blob/e739e052494cd6be96c95bc65e34442042243e7d/lib/shellStream.js#L18-L30", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "lib/ProfileObject.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A representation of an object in the profile", "docstring_tokens": ["A", "representation", "of", "an", "object", "in", "the", "profile"], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/lib/ProfileObject.js#L25-L96", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "lib/ProfileObject.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extend our properties based on specified object", "docstring_tokens": ["Extend", "our", "properties", "based", "on", "specified", "object"], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/lib/ProfileObject.js#L103-L124", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "lib/ProfileObject.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate the property getter", "docstring_tokens": ["Generate", "the", "property", "getter"], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/lib/ProfileObject.js#L145-L171", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "lib/ProfileObject.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate the name of the property initialization function.\nThis is used to de-duplicate init functions for the same properties", "docstring_tokens": ["Generate", "the", "name", "of", "the", "property", "initialization", "function", ".", "This", "is", "used", "to", "de", "-", "duplicate", "init", "functions", "for", "the", "same", "properties"], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/lib/ProfileObject.js#L177-L180", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "lib/ProfileObject.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate the piece of code that initializes an instance of the object", "docstring_tokens": ["Generate", "the", "piece", "of", "code", "that", "initializes", "an", "instance", "of", "the", "object"], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/lib/ProfileObject.js#L185-L286", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "index.js", "func_name": "bufferMode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read entire buffer and compile", "docstring_tokens": ["Read", "entire", "buffer", "and", "compile"], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/index.js#L34-L45", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "index.js", "func_name": "streamMode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read entire stream and process", "docstring_tokens": ["Read", "entire", "stream", "and", "process"], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/index.js#L50-L74", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Call when finished with compression", "docstring_tokens": ["Call", "when", "finished", "with", "compression"], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/index.js#L95-L126", "partition": "test"} +{"repo": "fomeboy/agency", "path": "lib/journal.js", "func_name": "journal", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "journal.js\n\nThe journal module implements the logging logic of agency.js\nThree methods are available by passing a parameter to the agency constructor:\n'q' quiet, produces no log\n'v' verbose, log is displayed on the console (recommended during development)\n'l' log, writes the creation and execution events in a file (recommended for production)\n\nCopyright 2016 Fernando Pires\n\nReleased under the MIT License.\n\n--------------------------------------------------------\n\nauthor: Fernando Pires\nversion: 1.0.0", "docstring_tokens": ["journal", ".", "js"], "sha": "9a04b031142d5d44b09757444b899662b1d93b48", "url": "https://github.com/fomeboy/agency/blob/9a04b031142d5d44b09757444b899662b1d93b48/lib/journal.js#L20-L103", "partition": "test"} +{"repo": "fomeboy/agency", "path": "lib/journal.js", "func_name": "logCreationEvent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "records the agent's validation and creation events in a temporary structure if log method is 'l' or outputs the same events to the console if method is 'v'", "docstring_tokens": ["records", "the", "agent", "s", "validation", "and", "creation", "events", "in", "a", "temporary", "structure", "if", "log", "method", "is", "l", "or", "outputs", "the", "same", "events", "to", "the", "console", "if", "method", "is", "v"], "sha": "9a04b031142d5d44b09757444b899662b1d93b48", "url": "https://github.com/fomeboy/agency/blob/9a04b031142d5d44b09757444b899662b1d93b48/lib/journal.js#L40-L51", "partition": "test"} +{"repo": "fomeboy/agency", "path": "lib/journal.js", "func_name": "logExecutionEvent", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "records the agent's execution events in a temporary structure if log method is 'l' or outputs the same events to the console if method is 'v'", "docstring_tokens": ["records", "the", "agent", "s", "execution", "events", "in", "a", "temporary", "structure", "if", "log", "method", "is", "l", "or", "outputs", "the", "same", "events", "to", "the", "console", "if", "method", "is", "v"], "sha": "9a04b031142d5d44b09757444b899662b1d93b48", "url": "https://github.com/fomeboy/agency/blob/9a04b031142d5d44b09757444b899662b1d93b48/lib/journal.js#L55-L66", "partition": "test"} +{"repo": "fomeboy/agency", "path": "lib/journal.js", "func_name": "report", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "outputs the contents of the temporary creation and execution structure to a specific file defined by the user; if file is not defined outputs to a default file; otherwise outputs error to the console", "docstring_tokens": ["outputs", "the", "contents", "of", "the", "temporary", "creation", "and", "execution", "structure", "to", "a", "specific", "file", "defined", "by", "the", "user", ";", "if", "file", "is", "not", "defined", "outputs", "to", "a", "default", "file", ";", "otherwise", "outputs", "error", "to", "the", "console"], "sha": "9a04b031142d5d44b09757444b899662b1d93b48", "url": "https://github.com/fomeboy/agency/blob/9a04b031142d5d44b09757444b899662b1d93b48/lib/journal.js#L70-L94", "partition": "test"} +{"repo": "sportngin/ngin_client_node", "path": "src/teamcenter/teamCenterContact.js", "func_name": "scopeUrl", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Scopes the url to the team and member\n\n@param {Object} options\n@returns {String}\n@api public", "docstring_tokens": ["Scopes", "the", "url", "to", "the", "team", "and", "member"], "sha": "dafed7f3b86e86b01f7d5fd707d4a8d608258fe9", "url": "https://github.com/sportngin/ngin_client_node/blob/dafed7f3b86e86b01f7d5fd707d4a8d608258fe9/src/teamcenter/teamCenterContact.js#L18-L26", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/resource/article_translation.js", "func_name": "ArticleTranslation", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize a new `ArticleTranslation` with the given `parent` and `definition`.\n\n@param {Function} parent The parent this resource is attached to.\n@param {Object} definition The resource definition.\n@api private", "docstring_tokens": ["Initialize", "a", "new", "ArticleTranslation", "with", "the", "given", "parent", "and", "definition", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/resource/article_translation.js#L21-L27", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/resource/macro_action.js", "func_name": "MacroAction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize a new `MacroAction` with the given `parent` and `definition`.\n\n@param {Function} parent The parent this resource is attached to.\n@param {Object} definition The resource definition.\n@api private", "docstring_tokens": ["Initialize", "a", "new", "MacroAction", "with", "the", "given", "parent", "and", "definition", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/resource/macro_action.js#L21-L27", "partition": "test"} +{"repo": "SSharyk/properties-mapper", "path": "index.js", "func_name": "map", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Converts one JSON object to another using maps specified with from->to array\n\nobj {JSON Object} - Object need be converted,\nsource {string} - Either comma-separated string or array of properties the object has\ntarget {string} - Either comma-separated string or array of properties the new object has have\nisRecurcive {boolean} - True if nested objects should be converted too\n@returns {JSON Object} New object with renamed properties", "docstring_tokens": ["Converts", "one", "JSON", "object", "to", "another", "using", "maps", "specified", "with", "from", "-", ">", "to", "array"], "sha": "d23819788726205c215547a1c56ace0c33b389ec", "url": "https://github.com/SSharyk/properties-mapper/blob/d23819788726205c215547a1c56ace0c33b389ec/index.js#L10-L47", "partition": "test"} +{"repo": "unfoldingWord-dev/node-resource-container", "path": "lib/utils/promises.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Executes a function as a promise for every item in a list.\n\n@param visit {function} the function to execute\n@param onFail {function} error callback\n@param opts {{}} options for setting progress listener or compactness\n@returns {Promise.<[]>} results from function", "docstring_tokens": ["Executes", "a", "function", "as", "a", "promise", "for", "every", "item", "in", "a", "list", "."], "sha": "20c4b7bfd2fa3f397ee7e0e743567822912c305b", "url": "https://github.com/unfoldingWord-dev/node-resource-container/blob/20c4b7bfd2fa3f397ee7e0e743567822912c305b/lib/utils/promises.js#L13-L36", "partition": "test"} +{"repo": "sportngin/ngin_client_node", "path": "src/sports/flightStage.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Old snake_case method", "docstring_tokens": ["Old", "snake_case", "method"], "sha": "dafed7f3b86e86b01f7d5fd707d4a8d608258fe9", "url": "https://github.com/sportngin/ngin_client_node/blob/dafed7f3b86e86b01f7d5fd707d4a8d608258fe9/src/sports/flightStage.js#L87-L92", "partition": "test"} +{"repo": "writetome51/array-get-indexes-basic", "path": "dist/getIndexOfPrimitive.js", "func_name": "getIndexOfPrimitive", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "According to tests, this error-checking does not slow down execution. It's not necessary to worry about repetitive error-checking slowing down execution when this function is called inside a loop.", "docstring_tokens": ["According", "to", "tests", "this", "error", "-", "checking", "does", "not", "slow", "down", "execution", ".", "It", "s", "not", "necessary", "to", "worry", "about", "repetitive", "error", "-", "checking", "slowing", "down", "execution", "when", "this", "function", "is", "called", "inside", "a", "loop", "."], "sha": "6e724f4100228e990e019c23267b069cf93d88ed", "url": "https://github.com/writetome51/array-get-indexes-basic/blob/6e724f4100228e990e019c23267b069cf93d88ed/dist/getIndexOfPrimitive.js#L9-L15", "partition": "test"} +{"repo": "unshiftio/loads", "path": "index.js", "func_name": "loads", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Attach various of event listeners to a given XHR request.\n\n@param {XHR} xhr A XHR request that requires listening.\n@param {EventEmitter} ee EventEmitter that receives events.\n@api public", "docstring_tokens": ["Attach", "various", "of", "event", "listeners", "to", "a", "given", "XHR", "request", "."], "sha": "c422a019fcc956d0afcc6b46ca74e9f5c2d4a4a1", "url": "https://github.com/unshiftio/loads/blob/c422a019fcc956d0afcc6b46ca74e9f5c2d4a4a1/index.js#L23-L160", "partition": "test"} +{"repo": "bootprint/customize-engine-uglify", "path": "lib/orderFiles.js", "func_name": "addWithDependencies", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a filename to the list with its dependencies first\n@param {string[]} allFiles all filenames, for consistency checks\n@param {string} newFile the new file\n@param {object} dependencies each property contains the dependencies for the file named like the key\n@param {string[]} currentFiles the file that have already been added. This array is modified\n@param {string[]} cycleCheck an internal stack of visited files", "docstring_tokens": ["Add", "a", "filename", "to", "the", "list", "with", "its", "dependencies", "first"], "sha": "835931f2fc527af1514e04c7c14e3efbe0c59ec7", "url": "https://github.com/bootprint/customize-engine-uglify/blob/835931f2fc527af1514e04c7c14e3efbe0c59ec7/lib/orderFiles.js#L9-L31", "partition": "test"} +{"repo": "commonform-archive/commonform-serve", "path": "routes/post.js", "func_name": "batchForms", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Given a new LevelUp chain-style batch, a denormalized Common Form, and the output of commonform-merkleize for that Common Form, add LevelUp put operations to the batch for the Common Form and each of its children.", "docstring_tokens": ["Given", "a", "new", "LevelUp", "chain", "-", "style", "batch", "a", "denormalized", "Common", "Form", "and", "the", "output", "of", "commonform", "-", "merkleize", "for", "that", "Common", "Form", "add", "LevelUp", "put", "operations", "to", "the", "batch", "for", "the", "Common", "Form", "and", "each", "of", "its", "children", "."], "sha": "b7ff827ba9b0262cfa9fb3f149c27203934eb00a", "url": "https://github.com/commonform-archive/commonform-serve/blob/b7ff827ba9b0262cfa9fb3f149c27203934eb00a/routes/post.js#L86-L97", "partition": "test"} +{"repo": "commonform-archive/commonform-serve", "path": "routes/post.js", "func_name": "parseJSON", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "JSON.parse, wrapped to take an errback.", "docstring_tokens": ["JSON", ".", "parse", "wrapped", "to", "take", "an", "errback", "."], "sha": "b7ff827ba9b0262cfa9fb3f149c27203934eb00a", "url": "https://github.com/commonform-archive/commonform-serve/blob/b7ff827ba9b0262cfa9fb3f149c27203934eb00a/routes/post.js#L100-L107", "partition": "test"} +{"repo": "sportngin/ngin_client_node", "path": "src/sports/standings.js", "func_name": "scopeUrl", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Builds the url based on crazy\n\n@param {Object} options\n@param {Object} inst\n@returns {String}\n@api public", "docstring_tokens": ["Builds", "the", "url", "based", "on", "crazy"], "sha": "dafed7f3b86e86b01f7d5fd707d4a8d608258fe9", "url": "https://github.com/sportngin/ngin_client_node/blob/dafed7f3b86e86b01f7d5fd707d4a8d608258fe9/src/sports/standings.js#L19-L31", "partition": "test"} +{"repo": "TF2Stadium/wsevent.js", "path": "wsevent.js", "func_name": "ReconnectingWebSocket", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extend WebSocket to automatically reconnect", "docstring_tokens": ["Extend", "WebSocket", "to", "automatically", "reconnect"], "sha": "78abc93c4f1422c014aaf811bcf7f1745a54ad54", "url": "https://github.com/TF2Stadium/wsevent.js/blob/78abc93c4f1422c014aaf811bcf7f1745a54ad54/wsevent.js#L14-L70", "partition": "test"} +{"repo": "writetome51/array-get-indexes-basic", "path": "dist/getFirstIndexOfArray.js", "func_name": "getFirstIndexOfArray", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "returns -1 if array being searched for isn't found. if arrayToSearchFor contains objects, this will always return -1.", "docstring_tokens": ["returns", "-", "1", "if", "array", "being", "searched", "for", "isn", "t", "found", ".", "if", "arrayToSearchFor", "contains", "objects", "this", "will", "always", "return", "-", "1", "."], "sha": "6e724f4100228e990e019c23267b069cf93d88ed", "url": "https://github.com/writetome51/array-get-indexes-basic/blob/6e724f4100228e990e019c23267b069cf93d88ed/dist/getFirstIndexOfArray.js#L9-L15", "partition": "test"} +{"repo": "unfoldingWord-dev/node-resource-container", "path": "__mocks__/fs.js", "func_name": "writePath", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recursively creates a file\n@param parentDir\n@param path\n@param data", "docstring_tokens": ["Recursively", "creates", "a", "file"], "sha": "20c4b7bfd2fa3f397ee7e0e743567822912c305b", "url": "https://github.com/unfoldingWord-dev/node-resource-container/blob/20c4b7bfd2fa3f397ee7e0e743567822912c305b/__mocks__/fs.js#L11-L26", "partition": "test"} +{"repo": "FCOO/fcoo-grunt-plugin", "path": "grunt/config/bower_concat.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Is set by the task \"_read_overrides_and_resolutions\"", "docstring_tokens": ["Is", "set", "by", "the", "task", "_read_overrides_and_resolutions"], "sha": "03d8b5c0b493244b4db3d08844554b31306ca8bf", "url": "https://github.com/FCOO/fcoo-grunt-plugin/blob/03d8b5c0b493244b4db3d08844554b31306ca8bf/grunt/config/bower_concat.js#L23-L38", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "lib/ProfileIndex.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The profile index where profile objects\nare contained.", "docstring_tokens": ["The", "profile", "index", "where", "profile", "objects", "are", "contained", "."], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/lib/ProfileIndex.js#L31-L48", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "lib/ProfileIndex.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a profile object on the index", "docstring_tokens": ["Add", "a", "profile", "object", "on", "the", "index"], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/lib/ProfileIndex.js#L55-L64", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "lib/ProfileIndex.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generates a divide-and-conquer nested if-statements\nup to maximum 'depth' steps deep. After that it performs\nequality testing using a switch-case statement.\n\nThis is intended for optimizing the lookup speed of\nelements when processing.", "docstring_tokens": ["Generates", "a", "divide", "-", "and", "-", "conquer", "nested", "if", "-", "statements", "up", "to", "maximum", "depth", "steps", "deep", ".", "After", "that", "it", "performs", "equality", "testing", "using", "a", "switch", "-", "case", "statement", "."], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/lib/ProfileIndex.js#L74-L106", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "lib/ProfileIndex.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return the property variable name, used to optimize for size\nthe minified result.", "docstring_tokens": ["Return", "the", "property", "variable", "name", "used", "to", "optimize", "for", "size", "the", "minified", "result", "."], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/lib/ProfileIndex.js#L112-L122", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "lib/ProfileIndex.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Resolve dependencies and arrange objects\naccoridng to priority and priority.\n\nAlso handle subclassing of objects and other elements.", "docstring_tokens": ["Resolve", "dependencies", "and", "arrange", "objects", "accoridng", "to", "priority", "and", "priority", "."], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/lib/ProfileIndex.js#L130-L197", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "lib/ProfileIndex.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate a table with all the property constants", "docstring_tokens": ["Generate", "a", "table", "with", "all", "the", "property", "constants"], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/lib/ProfileIndex.js#L202-L211", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "lib/ProfileIndex.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate the list of init functions used by the lookup fcatory\nto generate the items", "docstring_tokens": ["Generate", "the", "list", "of", "init", "functions", "used", "by", "the", "lookup", "fcatory", "to", "generate", "the", "items"], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/lib/ProfileIndex.js#L217-L236", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "lib/ProfileIndex.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate the lookup factory by ID", "docstring_tokens": ["Generate", "the", "lookup", "factory", "by", "ID"], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/lib/ProfileIndex.js#L241-L254", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "lib/ProfileIndex.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate the function to use for identifying an object", "docstring_tokens": ["Generate", "the", "function", "to", "use", "for", "identifying", "an", "object"], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/lib/ProfileIndex.js#L259-L271", "partition": "test"} +{"repo": "wavesoft/gulp-jbb-profile", "path": "lib/ProfileIndex.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate the function that is used to encode an object", "docstring_tokens": ["Generate", "the", "function", "that", "is", "used", "to", "encode", "an", "object"], "sha": "3e9bc0ca733ae0325a09a461f504fc847e256f7a", "url": "https://github.com/wavesoft/gulp-jbb-profile/blob/3e9bc0ca733ae0325a09a461f504fc847e256f7a/lib/ProfileIndex.js#L276-L290", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/client.js", "func_name": "Client", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize a new `Client` with the given `options`.\n\nOptions:\n\n- `subdomain` the desk.com subdomain to use\n- `endpoint` the desk.com custom domain to use - if you use your own domain\n- `username` username for basic authentication\n- `password` password for basic authentication\n- `consumerKey` consumer key for the oauth application\n- `consumerSecret` secret for the oauth application\n- `token` the token for the oauth authentication\n- `tokenSecret` secret for the oauth authentication\n- `retry` retry request on 429 and 503\n- `logger` logging function to use for request logging\n\n@param {Object} options\n@api private", "docstring_tokens": ["Initialize", "a", "new", "Client", "with", "the", "given", "options", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/client.js#L58-L93", "partition": "test"} +{"repo": "StupidStudio/stupid-imagesloader", "path": "imagesloader.js", "func_name": "Imagesloader", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Image collection loader\n@constructor", "docstring_tokens": ["Image", "collection", "loader"], "sha": "92eafa59778b6657b745196ce508fef41546805d", "url": "https://github.com/StupidStudio/stupid-imagesloader/blob/92eafa59778b6657b745196ce508fef41546805d/imagesloader.js#L8-L148", "partition": "test"} +{"repo": "StupidStudio/stupid-imagesloader", "path": "imagesloader.js", "func_name": "load", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Load a collection of images\n@example imageloader.load(['img1.jpg', 'img2.jpg', 'img3.jpg']).success(function(){ // Do something });\n@param {array} images A collection of img object or img.src (paths)\n@config {object} def Create a promise object\n@return {object} Return the promise object", "docstring_tokens": ["Load", "a", "collection", "of", "images"], "sha": "92eafa59778b6657b745196ce508fef41546805d", "url": "https://github.com/StupidStudio/stupid-imagesloader/blob/92eafa59778b6657b745196ce508fef41546805d/imagesloader.js#L46-L70", "partition": "test"} +{"repo": "StupidStudio/stupid-imagesloader", "path": "imagesloader.js", "func_name": "imageLoaded", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Image loaded checker\n@param {img} img The loaded image", "docstring_tokens": ["Image", "loaded", "checker"], "sha": "92eafa59778b6657b745196ce508fef41546805d", "url": "https://github.com/StupidStudio/stupid-imagesloader/blob/92eafa59778b6657b745196ce508fef41546805d/imagesloader.js#L76-L93", "partition": "test"} +{"repo": "StupidStudio/stupid-imagesloader", "path": "imagesloader.js", "func_name": "convertImagesToSrc", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert img to src\n@param {array} imgs A collection og img/img paths\n@config {array} src A temporally array for storing img path/src\n@return {array} Return an array of img src's", "docstring_tokens": ["Convert", "img", "to", "src"], "sha": "92eafa59778b6657b745196ce508fef41546805d", "url": "https://github.com/StupidStudio/stupid-imagesloader/blob/92eafa59778b6657b745196ce508fef41546805d/imagesloader.js#L101-L113", "partition": "test"} +{"repo": "StupidStudio/stupid-imagesloader", "path": "imagesloader.js", "func_name": "sortImages", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sort images after the originally order\n@config {array} arr A temporally array for sorting images", "docstring_tokens": ["Sort", "images", "after", "the", "originally", "order"], "sha": "92eafa59778b6657b745196ce508fef41546805d", "url": "https://github.com/StupidStudio/stupid-imagesloader/blob/92eafa59778b6657b745196ce508fef41546805d/imagesloader.js#L119-L136", "partition": "test"} +{"repo": "Wiredcraft/env-var-defaults", "path": "lib/builder.js", "func_name": "builder", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Build a default value getter.\n\n@param {Array} envList the list of supported NODE_ENV, default to `['test', 'development', 'staging', 'production']`\n@param {String} envName you can use a different variable name for your `NODE_ENV` if you want\n@return {Function} the builder", "docstring_tokens": ["Build", "a", "default", "value", "getter", "."], "sha": "535c4e6a738f4870263b9f6136fef18f19ce8881", "url": "https://github.com/Wiredcraft/env-var-defaults/blob/535c4e6a738f4870263b9f6136fef18f19ce8881/lib/builder.js#L16-L46", "partition": "test"} +{"repo": "fomeboy/agency", "path": "lib/agent.js", "func_name": "validateId", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "validates the agent's id according to the validity of the symbols used and the possibility of duplication inside the same agency", "docstring_tokens": ["validates", "the", "agent", "s", "id", "according", "to", "the", "validity", "of", "the", "symbols", "used", "and", "the", "possibility", "of", "duplication", "inside", "the", "same", "agency"], "sha": "9a04b031142d5d44b09757444b899662b1d93b48", "url": "https://github.com/fomeboy/agency/blob/9a04b031142d5d44b09757444b899662b1d93b48/lib/agent.js#L48-L62", "partition": "test"} +{"repo": "fomeboy/agency", "path": "lib/agent.js", "func_name": "arrayGetUniques", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "returns a list of unique dependency agents", "docstring_tokens": ["returns", "a", "list", "of", "unique", "dependency", "agents"], "sha": "9a04b031142d5d44b09757444b899662b1d93b48", "url": "https://github.com/fomeboy/agency/blob/9a04b031142d5d44b09757444b899662b1d93b48/lib/agent.js#L65-L72", "partition": "test"} +{"repo": "fomeboy/agency", "path": "lib/agent.js", "func_name": "setFunction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "setter for function property", "docstring_tokens": ["setter", "for", "function", "property"], "sha": "9a04b031142d5d44b09757444b899662b1d93b48", "url": "https://github.com/fomeboy/agency/blob/9a04b031142d5d44b09757444b899662b1d93b48/lib/agent.js#L299-L309", "partition": "test"} +{"repo": "fomeboy/agency", "path": "lib/agent.js", "func_name": "setCallback", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "setter for callback property", "docstring_tokens": ["setter", "for", "callback", "property"], "sha": "9a04b031142d5d44b09757444b899662b1d93b48", "url": "https://github.com/fomeboy/agency/blob/9a04b031142d5d44b09757444b899662b1d93b48/lib/agent.js#L312-L322", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/resource/case.js", "func_name": "Case", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize a new `Case` with the given `parent` and `definition`.\n\n@param {Function} parent The parent this resource is attached to.\n@param {Object} definition The resource definition.\n@api private", "docstring_tokens": ["Initialize", "a", "new", "Case", "with", "the", "given", "parent", "and", "definition", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/resource/case.js#L21-L27", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/resource/index.js", "func_name": "Resource", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize a new `Resource` with the given `parent` and `definition`.\n\n@param {Function} parent The parent this resource is attached to.\n@param {Object} definition The resource definition.\n@api private", "docstring_tokens": ["Initialize", "a", "new", "Resource", "with", "the", "given", "parent", "and", "definition", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/resource/index.js#L21-L29", "partition": "test"} +{"repo": "unfoldingWord-dev/node-resource-container", "path": "lib/main.js", "func_name": "containerSlug", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a properly formatted container slug.\n\n@param language_slug {string}\n@param project_slug {string}\n@param resource_slug {string}\n@returns {string}", "docstring_tokens": ["Returns", "a", "properly", "formatted", "container", "slug", "."], "sha": "20c4b7bfd2fa3f397ee7e0e743567822912c305b", "url": "https://github.com/unfoldingWord-dev/node-resource-container/blob/20c4b7bfd2fa3f397ee7e0e743567822912c305b/lib/main.js#L33-L38", "partition": "test"} +{"repo": "unfoldingWord-dev/node-resource-container", "path": "lib/main.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an array of chapters in this resource container", "docstring_tokens": ["Returns", "an", "array", "of", "chapters", "in", "this", "resource", "container"], "sha": "20c4b7bfd2fa3f397ee7e0e743567822912c305b", "url": "https://github.com/unfoldingWord-dev/node-resource-container/blob/20c4b7bfd2fa3f397ee7e0e743567822912c305b/lib/main.js#L90-L100", "partition": "test"} +{"repo": "unfoldingWord-dev/node-resource-container", "path": "lib/main.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the contents of a chunk.\nIf the chunk does not exist or there is an exception an empty string will be returned.\n@param chapterSlug\n@param chunkSlug\n@returns string the contents of the chunk", "docstring_tokens": ["Returns", "the", "contents", "of", "a", "chunk", ".", "If", "the", "chunk", "does", "not", "exist", "or", "there", "is", "an", "exception", "an", "empty", "string", "will", "be", "returned", "."], "sha": "20c4b7bfd2fa3f397ee7e0e743567822912c305b", "url": "https://github.com/unfoldingWord-dev/node-resource-container/blob/20c4b7bfd2fa3f397ee7e0e743567822912c305b/lib/main.js#L124-L127", "partition": "test"} +{"repo": "unfoldingWord-dev/node-resource-container", "path": "lib/main.js", "func_name": "makeContainer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new resource container.\nRejects with an error if the container exists.\n\n@param container_directory {string}\n@param opts {{}}\n@returns {Promise}", "docstring_tokens": ["Creates", "a", "new", "resource", "container", ".", "Rejects", "with", "an", "error", "if", "the", "container", "exists", "."], "sha": "20c4b7bfd2fa3f397ee7e0e743567822912c305b", "url": "https://github.com/unfoldingWord-dev/node-resource-container/blob/20c4b7bfd2fa3f397ee7e0e743567822912c305b/lib/main.js#L254-L267", "partition": "test"} +{"repo": "unfoldingWord-dev/node-resource-container", "path": "lib/main.js", "func_name": "openContainer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Opens an archived resource container.\nIf the container is already opened it will be loaded\n\n@param container_archive {string}\n@param container_directory {string}\n@param opts {{}} extra options such as compression_method (zip or tar)\n@returns {Promise}", "docstring_tokens": ["Opens", "an", "archived", "resource", "container", ".", "If", "the", "container", "is", "already", "opened", "it", "will", "be", "loaded"], "sha": "20c4b7bfd2fa3f397ee7e0e743567822912c305b", "url": "https://github.com/unfoldingWord-dev/node-resource-container/blob/20c4b7bfd2fa3f397ee7e0e743567822912c305b/lib/main.js#L278-L295", "partition": "test"} +{"repo": "unfoldingWord-dev/node-resource-container", "path": "lib/main.js", "func_name": "inspectContainer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Reads the resource container info without opening it.\nThis will however, work on containers that are both open and closed.\n\n@param container_path {string} path to the container archive or directory\n@param opts {{}}\n@returns {Promise.<{}>} the resource container info (package.json)", "docstring_tokens": ["Reads", "the", "resource", "container", "info", "without", "opening", "it", ".", "This", "will", "however", "work", "on", "containers", "that", "are", "both", "open", "and", "closed", "."], "sha": "20c4b7bfd2fa3f397ee7e0e743567822912c305b", "url": "https://github.com/unfoldingWord-dev/node-resource-container/blob/20c4b7bfd2fa3f397ee7e0e743567822912c305b/lib/main.js#L747-L778", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/resource/user_preference.js", "func_name": "UserPreference", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize a new `UserPreference` with the given `parent` and `definition`.\n\n@param {Function} parent The parent this resource is attached to.\n@param {Object} definition The resource definition.\n@api private", "docstring_tokens": ["Initialize", "a", "new", "UserPreference", "with", "the", "given", "parent", "and", "definition", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/resource/user_preference.js#L21-L27", "partition": "test"} +{"repo": "bholloway/browserify-nginject", "path": "lib/get-updater.js", "func_name": "getUpdater", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create an updater function for the esprima transform with the given error handler\n@param {function} [errorFn] An optional error handler function\n@returns {function(string, object):object} A method that transforms the esprima tree", "docstring_tokens": ["Create", "an", "updater", "function", "for", "the", "esprima", "transform", "with", "the", "given", "error", "handler"], "sha": "42cff52081b66d77e4e7fac923d4d824de13cfd3", "url": "https://github.com/bholloway/browserify-nginject/blob/42cff52081b66d77e4e7fac923d4d824de13cfd3/lib/get-updater.js#L14-L83", "partition": "test"} +{"repo": "bholloway/browserify-nginject", "path": "lib/get-updater.js", "func_name": "updater", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The updater function for the esprima transform\n@param {string} file The filename for the Browserify transform\n@param {object} ast The esprima syntax tree\n@returns {object} The transformed esprima syntax tree", "docstring_tokens": ["The", "updater", "function", "for", "the", "esprima", "transform"], "sha": "42cff52081b66d77e4e7fac923d4d824de13cfd3", "url": "https://github.com/bholloway/browserify-nginject/blob/42cff52081b66d77e4e7fac923d4d824de13cfd3/lib/get-updater.js#L24-L36", "partition": "test"} +{"repo": "bholloway/browserify-nginject", "path": "lib/get-updater.js", "func_name": "getAnnotatedNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the node that is annotated by the comment or throw if not present.\n@throws {Error} Where comment does not annotate a node\n@param {object} comment The comment node", "docstring_tokens": ["Get", "the", "node", "that", "is", "annotated", "by", "the", "comment", "or", "throw", "if", "not", "present", "."], "sha": "42cff52081b66d77e4e7fac923d4d824de13cfd3", "url": "https://github.com/bholloway/browserify-nginject/blob/42cff52081b66d77e4e7fac923d4d824de13cfd3/lib/get-updater.js#L43-L82", "partition": "test"} +{"repo": "cronvel/kung-fig-common", "path": "lib/parsers.js", "func_name": "locationStr", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Used to report errors", "docstring_tokens": ["Used", "to", "report", "errors"], "sha": "136581e57957f4b8636de25f466c31adb80de70e", "url": "https://github.com/cronvel/kung-fig-common/blob/136581e57957f4b8636de25f466c31adb80de70e/lib/parsers.js#L223-L228", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/resource/macro.js", "func_name": "Macro", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize a new `Macro` with the given `parent` and `definition`.\n\n@param {Function} parent The parent this resource is attached to.\n@param {Object} definition The resource definition.\n@api private", "docstring_tokens": ["Initialize", "a", "new", "Macro", "with", "the", "given", "parent", "and", "definition", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/resource/macro.js#L22-L29", "partition": "test"} +{"repo": "kasperisager/bundstreg", "path": "lib/array/sort.js", "func_name": "quickSort", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Quick sort an array.\n\n@see https://en.wikipedia.org/wiki/Quicksort\n\n@param {Array} a The array to quick sort.\n@param {number} l The lower index of the sorting.\n@param {number} h The higher index of the sorting.\n@param {number} k The sorting cutoff.\n@param {Function} c The comparator to use.\n@private", "docstring_tokens": ["Quick", "sort", "an", "array", "."], "sha": "75b16e7587ecba7f565bf5a7cab4aba911ef21f5", "url": "https://github.com/kasperisager/bundstreg/blob/75b16e7587ecba7f565bf5a7cab4aba911ef21f5/lib/array/sort.js#L46-L72", "partition": "test"} +{"repo": "kasperisager/bundstreg", "path": "lib/array/sort.js", "func_name": "pivot", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Select the pivot element using the median-of-three rule.\n\n@see https://en.wikipedia.org/wiki/Quicksort#Choice_of_pivot\n\n@param {Array} a The array to select a pivot in.\n@param {number} l The lower index of the pivot selection.\n@param {number} h The higher index of the pivot selection.\n@param {Function} c The comparator function.\n@return {number} The selected pivot.\n@private", "docstring_tokens": ["Select", "the", "pivot", "element", "using", "the", "median", "-", "of", "-", "three", "rule", "."], "sha": "75b16e7587ecba7f565bf5a7cab4aba911ef21f5", "url": "https://github.com/kasperisager/bundstreg/blob/75b16e7587ecba7f565bf5a7cab4aba911ef21f5/lib/array/sort.js#L86-L102", "partition": "test"} +{"repo": "kasperisager/bundstreg", "path": "lib/array/sort.js", "func_name": "partition", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Partition a subarray according to the Hoare partitioning scheme.\n\n@see https://en.wikipedia.org/wiki/Quicksort#Hoare_partition_scheme\n\n@param {Array} a The array to partition.\n@param {number} l The lower index of the partition.\n@param {number} h The higher index of the partition.\n@param {Function} c The comparator function.\n@return {number} The final position of the pivot.\n@private", "docstring_tokens": ["Partition", "a", "subarray", "according", "to", "the", "Hoare", "partitioning", "scheme", "."], "sha": "75b16e7587ecba7f565bf5a7cab4aba911ef21f5", "url": "https://github.com/kasperisager/bundstreg/blob/75b16e7587ecba7f565bf5a7cab4aba911ef21f5/lib/array/sort.js#L116-L137", "partition": "test"} +{"repo": "kasperisager/bundstreg", "path": "lib/array/sort.js", "func_name": "insertionSort", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Insertion sort an array.\n\n@see https://en.wikipedia.org/wiki/Insertion_sort\n\n@param {Array} a The array to insertion sort.\n@param {number} l The lower index of the sorting.\n@param {number} h The higher index of the sorting.\n@param {Function} c The comparator to use.\n@private", "docstring_tokens": ["Insertion", "sort", "an", "array", "."], "sha": "75b16e7587ecba7f565bf5a7cab4aba911ef21f5", "url": "https://github.com/kasperisager/bundstreg/blob/75b16e7587ecba7f565bf5a7cab4aba911ef21f5/lib/array/sort.js#L150-L162", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/mixins/search.js", "func_name": "search", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Searches a resource.\n\n@param {Function} parent The parent this resource should be attached to.\n@param {String} baseUrl That's needed for sub resources (/api/v2/customers/1/cases).\n@param {Function} callback The callback called with the new resource or error.\n@api public", "docstring_tokens": ["Searches", "a", "resource", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/mixins/search.js#L20-L27", "partition": "test"} +{"repo": "DeadAlready/node-easy-pipe", "path": "lib/pipeStream.js", "func_name": "createPipeStream", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Main entrance function, will create PipeStream or joined pipe based on input\n\n@param {Object|String|Array} cmd a Stream or Spawn object\nor string command to create a spawn object\nor an array of the previous types\n@param {Array} [args=[]] optional array to string command\n@param {Object} [opts={}] optional options to string command\n@returns {PipeStream}", "docstring_tokens": ["Main", "entrance", "function", "will", "create", "PipeStream", "or", "joined", "pipe", "based", "on", "input"], "sha": "e739e052494cd6be96c95bc65e34442042243e7d", "url": "https://github.com/DeadAlready/node-easy-pipe/blob/e739e052494cd6be96c95bc65e34442042243e7d/lib/pipeStream.js#L23-L60", "partition": "test"} +{"repo": "DeadAlready/node-easy-pipe", "path": "lib/pipeStream.js", "func_name": "wrapMethods", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Function for wrapping default EventEmitter functions to return itself\n\n@param {EventEmitter} self\n@returns {EventEmitter}", "docstring_tokens": ["Function", "for", "wrapping", "default", "EventEmitter", "functions", "to", "return", "itself"], "sha": "e739e052494cd6be96c95bc65e34442042243e7d", "url": "https://github.com/DeadAlready/node-easy-pipe/blob/e739e052494cd6be96c95bc65e34442042243e7d/lib/pipeStream.js#L88-L113", "partition": "test"} +{"repo": "DeadAlready/node-easy-pipe", "path": "lib/pipeStream.js", "func_name": "connectEvents", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Function for connecting some events\n\n@param {EventEmitter} self", "docstring_tokens": ["Function", "for", "connecting", "some", "events"], "sha": "e739e052494cd6be96c95bc65e34442042243e7d", "url": "https://github.com/DeadAlready/node-easy-pipe/blob/e739e052494cd6be96c95bc65e34442042243e7d/lib/pipeStream.js#L218-L227", "partition": "test"} +{"repo": "DeadAlready/node-easy-pipe", "path": "lib/pipeStream.js", "func_name": "addEventHandlers", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Function for adding internal event handlers\n@param {EventEmitter} self", "docstring_tokens": ["Function", "for", "adding", "internal", "event", "handlers"], "sha": "e739e052494cd6be96c95bc65e34442042243e7d", "url": "https://github.com/DeadAlready/node-easy-pipe/blob/e739e052494cd6be96c95bc65e34442042243e7d/lib/pipeStream.js#L232-L240", "partition": "test"} +{"repo": "sendanor/nor-api", "path": "src/Router.js", "func_name": "_resolve", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal target resolver\n@param routes Object prepresenting routes to resources.\n@param path Path to the resource as an array of keys.", "docstring_tokens": ["Internal", "target", "resolver"], "sha": "50c88c6a606443e89f978a75057902a65d8312bd", "url": "https://github.com/sendanor/nor-api/blob/50c88c6a606443e89f978a75057902a65d8312bd/src/Router.js#L13-L74", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/mixins/link.js", "func_name": "_buildFunction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Builds the function for the resource.\n\n@param {Object|Null} resource The resource for the getter.\n@return {Function}\n@api private", "docstring_tokens": ["Builds", "the", "function", "for", "the", "resource", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/mixins/link.js#L53-L61", "partition": "test"} +{"repo": "feedhenry-staff/fh-instance-url", "path": "lib/util.js", "func_name": "getApiKey", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the app api key required to make a service request\n@return {String}", "docstring_tokens": ["Returns", "the", "app", "api", "key", "required", "to", "make", "a", "service", "request"], "sha": "0c19e9844b7252061922fc0227a5d1c678ff1d71", "url": "https://github.com/feedhenry-staff/fh-instance-url/blob/0c19e9844b7252061922fc0227a5d1c678ff1d71/lib/util.js#L15-L23", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/mixins/resource.js", "func_name": "getResource", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get or require the resource based on the class name.\n\n@param {String} name The class name for this resource.\n@return {Function}\n@api private", "docstring_tokens": ["Get", "or", "require", "the", "resource", "based", "on", "the", "class", "name", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/mixins/resource.js#L19-L23", "partition": "test"} +{"repo": "strongloop/microgateway-util", "path": "utils/utils.js", "func_name": "signMsg", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "sign msg with the given key and alg", "docstring_tokens": ["sign", "msg", "with", "the", "given", "key", "and", "alg"], "sha": "58631765eac4b0c675f458c3904ee07fbe2bac5b", "url": "https://github.com/strongloop/microgateway-util/blob/58631765eac4b0c675f458c3904ee07fbe2bac5b/utils/utils.js#L79-L83", "partition": "test"} +{"repo": "strongloop/microgateway-util", "path": "utils/utils.js", "func_name": "hashMsg", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "hash the msg with the msg and alg", "docstring_tokens": ["hash", "the", "msg", "with", "the", "msg", "and", "alg"], "sha": "58631765eac4b0c675f458c3904ee07fbe2bac5b", "url": "https://github.com/strongloop/microgateway-util/blob/58631765eac4b0c675f458c3904ee07fbe2bac5b/utils/utils.js#L88-L92", "partition": "test"} +{"repo": "strongloop/microgateway-util", "path": "utils/utils.js", "func_name": "addSignatureHeaders", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compute the signature headers \"date\", \"digest\", and \"authorization\" headers\naccording to IETF I-D draft-cavage-http-signatures-05 using rsa-sha256 algorithm\n\nIf the `date` header already exists in the input, it's used as-is\nIf the `digest` header already exists in the input, it's used as-is (which means that body is ignored)\n\n\n@param body (String): Message body (ignored if there is already a digest header)\n@param headers (Object): Contains the existing list of headers\n@param keyId (String): Identifier for the private key, ends up in the \"keyId\" param of the authorization header\n@param key (String): RSA Private key to be used for the signature\n@returns {*}", "docstring_tokens": ["Compute", "the", "signature", "headers", "date", "digest", "and", "authorization", "headers", "according", "to", "IETF", "I", "-", "D", "draft", "-", "cavage", "-", "http", "-", "signatures", "-", "05", "using", "rsa", "-", "sha256", "algorithm"], "sha": "58631765eac4b0c675f458c3904ee07fbe2bac5b", "url": "https://github.com/strongloop/microgateway-util/blob/58631765eac4b0c675f458c3904ee07fbe2bac5b/utils/utils.js#L142-L174", "partition": "test"} +{"repo": "the-labo/the-story-base", "path": "lib/commands.js", "func_name": "waitVariableToBe", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wait variable expression matches value\n@param {string} variableExpression\n@param {string} value\n@param {number} [timeout]\n@returns {Promise<*|void>}", "docstring_tokens": ["Wait", "variable", "expression", "matches", "value"], "sha": "c9a445a0df2286b1e8d6b366fd211eabab3d99e2", "url": "https://github.com/the-labo/the-story-base/blob/c9a445a0df2286b1e8d6b366fd211eabab3d99e2/lib/commands.js#L13-L18", "partition": "test"} +{"repo": "the-labo/the-story-base", "path": "lib/commands.js", "func_name": "waitAttributeToBe", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wait attribute matches value\n@param {string} selector\n@param {string} key\n@param {string} value\n@param {number} [timeout]\n@returns {Promise<*|void>}", "docstring_tokens": ["Wait", "attribute", "matches", "value"], "sha": "c9a445a0df2286b1e8d6b366fd211eabab3d99e2", "url": "https://github.com/the-labo/the-story-base/blob/c9a445a0df2286b1e8d6b366fd211eabab3d99e2/lib/commands.js#L28-L33", "partition": "test"} +{"repo": "jordifreek/Backbone-Special-K", "path": "src/specialk.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Realiza un unmount y renderiza la nueva vista.\n\nPara poder renderizar una vista es necesario que devuelva \"this\"\nen el m\u00e9todo render.\n\n@param {Object} view Nueva vista a renderizar", "docstring_tokens": ["Realiza", "un", "unmount", "y", "renderiza", "la", "nueva", "vista", "."], "sha": "c22fcc3c398d30379c6d4625072f642ed376639b", "url": "https://github.com/jordifreek/Backbone-Special-K/blob/c22fcc3c398d30379c6d4625072f642ed376639b/src/specialk.js#L25-L33", "partition": "test"} +{"repo": "jordifreek/Backbone-Special-K", "path": "src/specialk.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Elimina la vista actual y sus eventos en DOM.\n@return {bool} True si exit\u00eda alguna vista y ha sido eliminada.", "docstring_tokens": ["Elimina", "la", "vista", "actual", "y", "sus", "eventos", "en", "DOM", "."], "sha": "c22fcc3c398d30379c6d4625072f642ed376639b", "url": "https://github.com/jordifreek/Backbone-Special-K/blob/c22fcc3c398d30379c6d4625072f642ed376639b/src/specialk.js#L39-L47", "partition": "test"} +{"repo": "tyler-johnson/plain-merge", "path": "src/index.js", "func_name": "mergeAll", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "keeping it DRY", "docstring_tokens": ["keeping", "it", "DRY"], "sha": "ef3792b57badd7cc9a4bd6ad41ae35fc576ed1bd", "url": "https://github.com/tyler-johnson/plain-merge/blob/ef3792b57badd7cc9a4bd6ad41ae35fc576ed1bd/src/index.js#L46-L52", "partition": "test"} +{"repo": "School-Yard/Recess", "path": "lib/utils.js", "func_name": "quality", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse quality `str` returning an\nobject with `.value` and `.quality`.\n\n@param {String} str\n@return {Object}\n@api private", "docstring_tokens": ["Parse", "quality", "str", "returning", "an", "object", "with", ".", "value", "and", ".", "quality", "."], "sha": "a44694dd39caa3cd34ad9049cf2923109e4c56ac", "url": "https://github.com/School-Yard/Recess/blob/a44694dd39caa3cd34ad9049cf2923109e4c56ac/lib/utils.js#L174-L181", "partition": "test"} +{"repo": "FCOO/fcoo-grunt-plugin", "path": "lib/options.js", "func_name": "getBrightness", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Functions to calculate brightness", "docstring_tokens": ["Functions", "to", "calculate", "brightness"], "sha": "03d8b5c0b493244b4db3d08844554b31306ca8bf", "url": "https://github.com/FCOO/fcoo-grunt-plugin/blob/03d8b5c0b493244b4db3d08844554b31306ca8bf/lib/options.js#L13-L24", "partition": "test"} +{"repo": "sendanor/nor-pgrunner", "path": "src/index.js", "func_name": "command_exists", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Search command from PATH\n\n@param paths {string|array}\n@param name\n@returns {*|boolean}", "docstring_tokens": ["Search", "command", "from", "PATH"], "sha": "99c1a8ef8961f98b65bcfd3cc3a5c227816cece5", "url": "https://github.com/sendanor/nor-pgrunner/blob/99c1a8ef8961f98b65bcfd3cc3a5c227816cece5/src/index.js#L32-L41", "partition": "test"} +{"repo": "HRDeprecated/builder", "path": "lib/utils.js", "func_name": "qExec", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Execute with promises", "docstring_tokens": ["Execute", "with", "promises"], "sha": "5063595a089f9cb72ed68e5c546cbf807a52c1ab", "url": "https://github.com/HRDeprecated/builder/blob/5063595a089f9cb72ed68e5c546cbf807a52c1ab/lib/utils.js#L24-L37", "partition": "test"} +{"repo": "makeomatic/ms-users-restify", "path": "docs/main.js", "func_name": "initDynamic", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "On Template changes, recall plugins.", "docstring_tokens": ["On", "Template", "changes", "recall", "plugins", "."], "sha": "f6c1e464458eb35c1dd62ce0bf648a560d6759e0", "url": "https://github.com/makeomatic/ms-users-restify/blob/f6c1e464458eb35c1dd62ce0bf648a560d6759e0/docs/main.js#L359-L397", "partition": "test"} +{"repo": "makeomatic/ms-users-restify", "path": "docs/main.js", "func_name": "changeAllVersionCompareTo", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compare all currently selected Versions with their predecessor.", "docstring_tokens": ["Compare", "all", "currently", "selected", "Versions", "with", "their", "predecessor", "."], "sha": "f6c1e464458eb35c1dd62ce0bf648a560d6759e0", "url": "https://github.com/makeomatic/ms-users-restify/blob/f6c1e464458eb35c1dd62ce0bf648a560d6759e0/docs/main.js#L559-L575", "partition": "test"} +{"repo": "makeomatic/ms-users-restify", "path": "docs/main.js", "func_name": "addArticleSettings", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add article settings.", "docstring_tokens": ["Add", "article", "settings", "."], "sha": "f6c1e464458eb35c1dd62ce0bf648a560d6759e0", "url": "https://github.com/makeomatic/ms-users-restify/blob/f6c1e464458eb35c1dd62ce0bf648a560d6759e0/docs/main.js#L580-L603", "partition": "test"} +{"repo": "makeomatic/ms-users-restify", "path": "docs/main.js", "func_name": "renderArticle", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Render Article.", "docstring_tokens": ["Render", "Article", "."], "sha": "f6c1e464458eb35c1dd62ce0bf648a560d6759e0", "url": "https://github.com/makeomatic/ms-users-restify/blob/f6c1e464458eb35c1dd62ce0bf648a560d6759e0/docs/main.js#L608-L622", "partition": "test"} +{"repo": "makeomatic/ms-users-restify", "path": "docs/main.js", "func_name": "resetArticle", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Render original Article and remove the current visible Article.", "docstring_tokens": ["Render", "original", "Article", "and", "remove", "the", "current", "visible", "Article", "."], "sha": "f6c1e464458eb35c1dd62ce0bf648a560d6759e0", "url": "https://github.com/makeomatic/ms-users-restify/blob/f6c1e464458eb35c1dd62ce0bf648a560d6759e0/docs/main.js#L627-L641", "partition": "test"} +{"repo": "makeomatic/ms-users-restify", "path": "docs/main.js", "func_name": "loadGoogleFontCss", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Load google fonts.", "docstring_tokens": ["Load", "google", "fonts", "."], "sha": "f6c1e464458eb35c1dd62ce0bf648a560d6759e0", "url": "https://github.com/makeomatic/ms-users-restify/blob/f6c1e464458eb35c1dd62ce0bf648a560d6759e0/docs/main.js#L646-L658", "partition": "test"} +{"repo": "makeomatic/ms-users-restify", "path": "docs/main.js", "func_name": "sortByOrder", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return ordered entries by custom order and append not defined entries to the end.\n@param {String[]} elements\n@param {String[]} order\n@param {String} splitBy\n@return {String[]} Custom ordered list.", "docstring_tokens": ["Return", "ordered", "entries", "by", "custom", "order", "and", "append", "not", "defined", "entries", "to", "the", "end", "."], "sha": "f6c1e464458eb35c1dd62ce0bf648a560d6759e0", "url": "https://github.com/makeomatic/ms-users-restify/blob/f6c1e464458eb35c1dd62ce0bf648a560d6759e0/docs/main.js#L667-L689", "partition": "test"} +{"repo": "bholloway/browserify-nginject", "path": "index.js", "func_name": "browserifyNgInject", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Esprima based explicitly @ngInject annotation with sourcemaps.\nBy default, files must be either transformed (as indicated by an embeded source-map) or js\nextension. To process other files set an explicit opt.filter.\n@param {object} opt An options hash", "docstring_tokens": ["Esprima", "based", "explicitly"], "sha": "42cff52081b66d77e4e7fac923d4d824de13cfd3", "url": "https://github.com/bholloway/browserify-nginject/blob/42cff52081b66d77e4e7fac923d4d824de13cfd3/index.js#L15-L21", "partition": "test"} +{"repo": "sofa/angular-sofa-select-box", "path": "dist/sofaSelectBox.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "a) \"ngModel compares by reference, not value. This is important when binding to an array of objects.\" b) Regardless of data type also check whether the given model exists within the options-data", "docstring_tokens": ["a", ")", "ngModel", "compares", "by", "reference", "not", "value", ".", "This", "is", "important", "when", "binding", "to", "an", "array", "of", "objects", ".", "b", ")", "Regardless", "of", "data", "type", "also", "check", "whether", "the", "given", "model", "exists", "within", "the", "options", "-", "data"], "sha": "3260d465c5e4a2e1afbd538ed794ba7e89e56f1f", "url": "https://github.com/sofa/angular-sofa-select-box/blob/3260d465c5e4a2e1afbd538ed794ba7e89e56f1f/dist/sofaSelectBox.js#L43-L62", "partition": "test"} +{"repo": "sportngin/ngin_client_node", "path": "src/users/persona.js", "func_name": "scopeUrl", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Scopes the url to a user, group, or persona\n\n@param {Object} options\n@returns {String}\n@api private", "docstring_tokens": ["Scopes", "the", "url", "to", "a", "user", "group", "or", "persona"], "sha": "dafed7f3b86e86b01f7d5fd707d4a8d608258fe9", "url": "https://github.com/sportngin/ngin_client_node/blob/dafed7f3b86e86b01f7d5fd707d4a8d608258fe9/src/users/persona.js#L17-L36", "partition": "test"} +{"repo": "bholloway/browserify-nginject", "path": "lib/process-node.js", "func_name": "processNode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add explicit dependency statements to the node.\n@param {object} node An esprima AST function-type node", "docstring_tokens": ["Add", "explicit", "dependency", "statements", "to", "the", "node", "."], "sha": "42cff52081b66d77e4e7fac923d4d824de13cfd3", "url": "https://github.com/bholloway/browserify-nginject/blob/42cff52081b66d77e4e7fac923d4d824de13cfd3/lib/process-node.js#L11-L58", "partition": "test"} +{"repo": "School-Yard/Recess", "path": "lib/recess.js", "func_name": "createApplication", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a new application.\n\nreturn {Function} - return an app instance", "docstring_tokens": ["Create", "a", "new", "application", "."], "sha": "a44694dd39caa3cd34ad9049cf2923109e4c56ac", "url": "https://github.com/School-Yard/Recess/blob/a44694dd39caa3cd34ad9049cf2923109e4c56ac/lib/recess.js#L21-L29", "partition": "test"} +{"repo": "dataminr/advice", "path": "Gruntfile.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Globally include the chai expect module so each test doesn't need to manually require it", "docstring_tokens": ["Globally", "include", "the", "chai", "expect", "module", "so", "each", "test", "doesn", "t", "need", "to", "manually", "require", "it"], "sha": "6c22fb868c77a17d8c315c80baf3c92d1cbba255", "url": "https://github.com/dataminr/advice/blob/6c22fb868c77a17d8c315c80baf3c92d1cbba255/Gruntfile.js#L28-L33", "partition": "test"} +{"repo": "tstachl/desk.js", "path": "lib/resource/company.js", "func_name": "Company", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize a new `Company` with the given `parent` and `definition`.\n\n@param {Function} parent The parent this resource is attached to.\n@param {Object} definition The resource definition.\n@api private", "docstring_tokens": ["Initialize", "a", "new", "Company", "with", "the", "given", "parent", "and", "definition", "."], "sha": "b339196cce68dbbc79d3075f2ebe82372972f4f5", "url": "https://github.com/tstachl/desk.js/blob/b339196cce68dbbc79d3075f2ebe82372972f4f5/lib/resource/company.js#L21-L27", "partition": "test"} +{"repo": "bholloway/browserify-nginject", "path": "lib/infer-angular.js", "func_name": "inferAngular", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find functions that are obvious angular entities.\n@param {object} ast An esprima syntax tree", "docstring_tokens": ["Find", "functions", "that", "are", "obvious", "angular", "entities", "."], "sha": "42cff52081b66d77e4e7fac923d4d824de13cfd3", "url": "https://github.com/bholloway/browserify-nginject/blob/42cff52081b66d77e4e7fac923d4d824de13cfd3/lib/infer-angular.js#L11-L17", "partition": "test"} +{"repo": "bholloway/browserify-nginject", "path": "lib/infer-angular.js", "func_name": "getAnnotationCandidates", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find inject candidates\n@param {object} node An esprima syntax tree\n@returns {object|null} A node that may need annotation, or null where not suitable", "docstring_tokens": ["Find", "inject", "candidates"], "sha": "42cff52081b66d77e4e7fac923d4d824de13cfd3", "url": "https://github.com/bholloway/browserify-nginject/blob/42cff52081b66d77e4e7fac923d4d824de13cfd3/lib/infer-angular.js#L26-L35", "partition": "test"} +{"repo": "bholloway/browserify-nginject", "path": "lib/infer-angular.js", "func_name": "followReference", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Given a function or reference that points to one will resolve to the function node.\n@param {object} node An esprima AST node of type function or identifier\n@returns {object|null} The AST node for the function that was resolved, or null if unresolved", "docstring_tokens": ["Given", "a", "function", "or", "reference", "that", "points", "to", "one", "will", "resolve", "to", "the", "function", "node", "."], "sha": "42cff52081b66d77e4e7fac923d4d824de13cfd3", "url": "https://github.com/bholloway/browserify-nginject/blob/42cff52081b66d77e4e7fac923d4d824de13cfd3/lib/infer-angular.js#L42-L89", "partition": "test"} +{"repo": "vanHeemstraSystems/tacit-server", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Manage prepare for shutdown", "docstring_tokens": ["Manage", "prepare", "for", "shutdown"], "sha": "2fa6418a0a93c6cc30ad16af55082d35565fd384", "url": "https://github.com/vanHeemstraSystems/tacit-server/blob/2fa6418a0a93c6cc30ad16af55082d35565fd384/index.js#L78-L100", "partition": "test"} +{"repo": "makeomatic/ms-users-restify", "path": "src/endpoints/register.js", "func_name": "transformBody", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Transform body into ms-users message\n@param {Request} req\n@param {Object} body\n@return {Object}", "docstring_tokens": ["Transform", "body", "into", "ms", "-", "users", "message"], "sha": "f6c1e464458eb35c1dd62ce0bf648a560d6759e0", "url": "https://github.com/makeomatic/ms-users-restify/blob/f6c1e464458eb35c1dd62ce0bf648a560d6759e0/src/endpoints/register.js#L37-L86", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/jquery-tablesorter.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "return text string value by adding up ascii value so the text is somewhat sorted when using a digital sort this is NOT an alphanumeric sort", "docstring_tokens": ["return", "text", "string", "value", "by", "adding", "up", "ascii", "value", "so", "the", "text", "is", "somewhat", "sorted", "when", "using", "a", "digital", "sort", "this", "is", "NOT", "an", "alphanumeric", "sort"], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/jquery-tablesorter.js#L1816-L1828", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/jquery-tablesorter.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "automatically add a colgroup with col elements set to a percentage width", "docstring_tokens": ["automatically", "add", "a", "colgroup", "with", "col", "elements", "set", "to", "a", "percentage", "width"], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/jquery-tablesorter.js#L2214-L2235", "partition": "test"} +{"repo": "typhonjs-node-esdoc/esdoc-plugin-dependency-graphs", "path": "template/html/jquery-tablesorter.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "'mmddyyyy', 'ddmmyyyy' or 'yyyymmdd'", "docstring_tokens": ["mmddyyyy", "ddmmyyyy", "or", "yyyymmdd"], "sha": "af2d9cabce2d48edd4ad7ed81c722cc27efacb67", "url": "https://github.com/typhonjs-node-esdoc/esdoc-plugin-dependency-graphs/blob/af2d9cabce2d48edd4ad7ed81c722cc27efacb67/template/html/jquery-tablesorter.js#L2629-L2632", "partition": "test"} +{"repo": "pdubroy/eslint-plugin-no-extension-in-require", "path": "index.js", "func_name": "checkCallExpression", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns false if `node` is a require expression where the module path ends with '.js'.", "docstring_tokens": ["Returns", "false", "if", "node", "is", "a", "require", "expression", "where", "the", "module", "path", "ends", "with", ".", "js", "."], "sha": "8fad3c82f5376aa6a48fe36ce9f1956b404fde75", "url": "https://github.com/pdubroy/eslint-plugin-no-extension-in-require/blob/8fad3c82f5376aa6a48fe36ce9f1956b404fde75/index.js#L19-L33", "partition": "test"} +{"repo": "jahnestacado/logia", "path": "lib/factory.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Listens for certain server events.\nCurrently the only supported event is the \"log\" event which is triggered when Logia server receives a log.\n@alias server.on\n@method server.on\n@memberof Logia\n@param {string} event\n@param {function} callback", "docstring_tokens": ["Listens", "for", "certain", "server", "events", ".", "Currently", "the", "only", "supported", "event", "is", "the", "log", "event", "which", "is", "triggered", "when", "Logia", "server", "receives", "a", "log", "."], "sha": "a198aa71adbd45e3ddd1dba4115c0521a265afc5", "url": "https://github.com/jahnestacado/logia/blob/a198aa71adbd45e3ddd1dba4115c0521a265afc5/lib/factory.js#L184-L195", "partition": "test"} +{"repo": "MiguelTVMS/GitCapsule", "path": "lib/gitrepository.js", "func_name": "createGitRepository", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a instance of a GitCapsule.\n@param {string} basePath The path where the repository will be stored locally.\n@param {RepositoryOptions} options? the repository options that will be used.\n@returns GitRepository", "docstring_tokens": ["Create", "a", "instance", "of", "a", "GitCapsule", "."], "sha": "cea800170bd4a47541413e93f0961ea16e2ff6f0", "url": "https://github.com/MiguelTVMS/GitCapsule/blob/cea800170bd4a47541413e93f0961ea16e2ff6f0/lib/gitrepository.js#L385-L392", "partition": "test"} +{"repo": "foqer/flashchainjs", "path": "lib/ecc/src/ecdsa.js", "func_name": "recoverPubKey", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recover a public key from a signature.\n\nSee SEC 1: Elliptic Curve Cryptography, section 4.1.6, \"Public\nKey Recovery Operation\".\n\nhttp://www.secg.org/download/aid-780/sec1-v2.pdf", "docstring_tokens": ["Recover", "a", "public", "key", "from", "a", "signature", "."], "sha": "b83351f23ff31a3adbd36f751c53c520a8e9b878", "url": "https://github.com/foqer/flashchainjs/blob/b83351f23ff31a3adbd36f751c53c520a8e9b878/lib/ecc/src/ecdsa.js#L147-L185", "partition": "test"} +{"repo": "foqer/flashchainjs", "path": "lib/ecc/src/ecdsa.js", "func_name": "calcPubKeyRecoveryParam", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculate pubkey extraction parameter.\n\nWhen extracting a pubkey from a signature, we have to\ndistinguish four different cases. Rather than putting this\nburden on the verifier, Bitcoin includes a 2-bit value with the\nsignature.\n\nThis function simply tries all four cases and returns the value\nthat resulted in a successful pubkey recovery.", "docstring_tokens": ["Calculate", "pubkey", "extraction", "parameter", "."], "sha": "b83351f23ff31a3adbd36f751c53c520a8e9b878", "url": "https://github.com/foqer/flashchainjs/blob/b83351f23ff31a3adbd36f751c53c520a8e9b878/lib/ecc/src/ecdsa.js#L198-L209", "partition": "test"} +{"repo": "Everyplay/serverbone-acl", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "allows additional permissions for this acl\n\n@param {Object} permissions", "docstring_tokens": ["allows", "additional", "permissions", "for", "this", "acl"], "sha": "389221e3c1d7016a18b5a770d20b675c8c3e6d48", "url": "https://github.com/Everyplay/serverbone-acl/blob/389221e3c1d7016a18b5a770d20b675c8c3e6d48/index.js#L89-L94", "partition": "test"} +{"repo": "Everyplay/serverbone-acl", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Revoke a role\n\n@param {String|Array} roles a role or roles to revoke\n@api public\n\n@return {ACL} this for chaining", "docstring_tokens": ["Revoke", "a", "role"], "sha": "389221e3c1d7016a18b5a770d20b675c8c3e6d48", "url": "https://github.com/Everyplay/serverbone-acl/blob/389221e3c1d7016a18b5a770d20b675c8c3e6d48/index.js#L103-L114", "partition": "test"} +{"repo": "cybersettler/websemble", "path": "backend/dao/DAOImplementation.js", "func_name": "DAOImplementation", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "DAO implementation.\n@constructor\n@implements {DAOInterface}\n@param {Object} config - Configuration.\n@param {string} config.collectionName - Collection name.\n@param {Object} config.schema - Collection schema.\n@param {Object} config.basePath - Base path to collection data folder.\n@param {string} [config.filename] - Path to the\nfile where the data is persisted. If left blank,\nthe datastore is automatically considered in-memory\nonly. It cannot end with a ~ which is used in the\ntemporary files NeDB uses to perform crash-safe writes.\n@param {boolean} [config.inMemoryOnly] - Defaults\nto false, as the name implies.\n@param {boolean} [config.timestampData] - Defaults to\nfalse. Timestamp the insertion and last update of all documents,\nwith the fields createdAt and updatedAt. User-specified\nvalues override automatic generation, usually useful\nfor testing.\n@param {boolean} [config.autoload] - Defaults to false.\nIf used, the database will automatically be loaded from\nthe datafile upon creation (you don't need to call\nloadDatabase. Any command issued before load is finished\nis buffered and will be executed when load is done.\n@param {Object} [config.onload] - If you use autoloading,\nthis is the handler called after the loadDatabase.\nIt takes one error argument. If you use autoloading without\nspecifying this handler, and an error happens during load,\nan error will be thrown.\n@param {Object} [config.afterSerialization] - Hook you can use\nto transform data after it was serialized and before it is\nwritten to disk. Can be used for example to encrypt data\nbefore writing database to disk. This function takes a\nstring as parameter (one line of an NeDB data file) and\noutputs the transformed string, which must absolutely not\ncontain a \\n character (or data will be lost).\n@param {Object} [config.beforeDeserialization] - Inverse of\nafterSerialization. Make sure to include both and not just\none or you risk data loss. For the same reason, make sure\nboth functions are inverses of one another. Some failsafe\nmechanisms are in place to prevent data loss if you misuse\nthe serialization hooks: NeDB checks that never one is\ndeclared without the other, and checks that they are reverse\nof one another by testing on random strings of various lengths.\nIn addition, if too much data is detected as corrupt, NeDB will\nrefuse to start as it could mean you're not using the\ndeserialization hook corresponding to the serialization hook\nused before (see below).\n@param {number} [config.corruptAlertThreshold] -\nbetween 0 and 1,\ndefaults to 10%. NeDB will refuse to start if more than this\npercentage of the datafile is corrupt. 0 means you don't tolerate\nany corruption, 1 means you don't care.\n@param {Object} [config.compareStrings] - function\ncompareStrings(a, b)\ncompares strings a and b and return -1, 0 or 1. If specified,\nit overrides default string comparison which is not well adapted\nto non-US characters in particular accented letters. Native\nlocalCompare will most of the time be the right choice.", "docstring_tokens": ["DAO", "implementation", "."], "sha": "2cf2b3343207e7ded03f018310c9ca6680f734e8", "url": "https://github.com/cybersettler/websemble/blob/2cf2b3343207e7ded03f018310c9ca6680f734e8/backend/dao/DAOImplementation.js#L71-L89", "partition": "test"} +{"repo": "mattijs/proximo", "path": "lib/model.js", "func_name": "Model", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Model implementation based on Backbone.js' Model implementation.\n\nThe Model object uses an internal hash to store it's values and\nemits events on Model attribute changes.\n\n@param {Object} attributes Initial attributes for the Model", "docstring_tokens": ["Model", "implementation", "based", "on", "Backbone", ".", "js", "Model", "implementation", "."], "sha": "c83213af184035651ba367aa923550bcb7afb046", "url": "https://github.com/mattijs/proximo/blob/c83213af184035651ba367aa923550bcb7afb046/lib/model.js#L31-L67", "partition": "test"} +{"repo": "mattijs/proximo", "path": "lib/model.js", "func_name": "ProxiedModel", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "ProxiedModel constructor. This will return a ProxyHandle to act as a Proxy for\nthe created model.", "docstring_tokens": ["ProxiedModel", "constructor", ".", "This", "will", "return", "a", "ProxyHandle", "to", "act", "as", "a", "Proxy", "for", "the", "created", "model", "."], "sha": "c83213af184035651ba367aa923550bcb7afb046", "url": "https://github.com/mattijs/proximo/blob/c83213af184035651ba367aa923550bcb7afb046/lib/model.js#L231-L244", "partition": "test"} +{"repo": "mattijs/proximo", "path": "lib/model.js", "func_name": "createModelProxy", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a Proxy for a Model. This function will return a new Proxy handle for the given Model.\n@param {Model} model\n@return Object", "docstring_tokens": ["Create", "a", "Proxy", "for", "a", "Model", ".", "This", "function", "will", "return", "a", "new", "Proxy", "handle", "for", "the", "given", "Model", "."], "sha": "c83213af184035651ba367aa923550bcb7afb046", "url": "https://github.com/mattijs/proximo/blob/c83213af184035651ba367aa923550bcb7afb046/lib/model.js#L251-L299", "partition": "test"} +{"repo": "mattijs/proximo", "path": "lib/model.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get an attribute from the Model. This will first check for Model properties before checking the Model's internal attributes map.", "docstring_tokens": ["Get", "an", "attribute", "from", "the", "Model", ".", "This", "will", "first", "check", "for", "Model", "properties", "before", "checking", "the", "Model", "s", "internal", "attributes", "map", "."], "sha": "c83213af184035651ba367aa923550bcb7afb046", "url": "https://github.com/mattijs/proximo/blob/c83213af184035651ba367aa923550bcb7afb046/lib/model.js#L266-L274", "partition": "test"} +{"repo": "leader22/grunt-json5-to-json", "path": "tasks/json5_to_json.js", "func_name": "detectDestType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Private functions.", "docstring_tokens": ["Private", "functions", "."], "sha": "0b812f032882a7ac9ea44b8b2cca144e0fbf72a7", "url": "https://github.com/leader22/grunt-json5-to-json/blob/0b812f032882a7ac9ea44b8b2cca144e0fbf72a7/tasks/json5_to_json.js#L97-L103", "partition": "test"} +{"repo": "gavinhungry/pingy", "path": "pingy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get a random color\n\n@return {Object} RGBA value", "docstring_tokens": ["Get", "a", "random", "color"], "sha": "6043347be9c05a2adb8a853f9face425a97799b4", "url": "https://github.com/gavinhungry/pingy/blob/6043347be9c05a2adb8a853f9face425a97799b4/pingy.js#L54-L61", "partition": "test"} +{"repo": "gavinhungry/pingy", "path": "pingy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Execute a function on each point in an image\n\nThe rgba object passed to the callback will be saved back to the image,\nso no need to call `set_rgba` there\n\nIf the callback returns an object, it will be used as the new rgba value\n\n@param {Function} fn - Function(x, y, rgba) to execute\n@return {Pingy} self", "docstring_tokens": ["Execute", "a", "function", "on", "each", "point", "in", "an", "image"], "sha": "6043347be9c05a2adb8a853f9face425a97799b4", "url": "https://github.com/gavinhungry/pingy/blob/6043347be9c05a2adb8a853f9face425a97799b4/pingy.js#L158-L170", "partition": "test"} +{"repo": "gavinhungry/pingy", "path": "pingy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the RGBA value of a coordinate\n\n@param {Number} x - x coordinate\n@param {Number} y - y coordinate\n@return {Object} RGBA value", "docstring_tokens": ["Get", "the", "RGBA", "value", "of", "a", "coordinate"], "sha": "6043347be9c05a2adb8a853f9face425a97799b4", "url": "https://github.com/gavinhungry/pingy/blob/6043347be9c05a2adb8a853f9face425a97799b4/pingy.js#L179-L188", "partition": "test"} +{"repo": "gavinhungry/pingy", "path": "pingy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set the RGBA value of a coordinate\n\n@param {Number} x - x coordinate\n@param {Number} y - y coordinate\n@param {Object} rgba - RGBA value\n@return {Object} RGBA value", "docstring_tokens": ["Set", "the", "RGBA", "value", "of", "a", "coordinate"], "sha": "6043347be9c05a2adb8a853f9face425a97799b4", "url": "https://github.com/gavinhungry/pingy/blob/6043347be9c05a2adb8a853f9face425a97799b4/pingy.js#L198-L208", "partition": "test"} +{"repo": "gavinhungry/pingy", "path": "pingy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Enlarge by some integer factor\n\n@param {Number} factor\n@return {Pingy} self", "docstring_tokens": ["Enlarge", "by", "some", "integer", "factor"], "sha": "6043347be9c05a2adb8a853f9face425a97799b4", "url": "https://github.com/gavinhungry/pingy/blob/6043347be9c05a2adb8a853f9face425a97799b4/pingy.js#L234-L260", "partition": "test"} +{"repo": "gavinhungry/pingy", "path": "pingy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the base64 encoding\n\n@param {Function} [fn] - callback, defaults to console.log", "docstring_tokens": ["Get", "the", "base64", "encoding"], "sha": "6043347be9c05a2adb8a853f9face425a97799b4", "url": "https://github.com/gavinhungry/pingy/blob/6043347be9c05a2adb8a853f9face425a97799b4/pingy.js#L267-L283", "partition": "test"} +{"repo": "gavinhungry/pingy", "path": "pingy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the base64 encoding as a data URI\n\n@param {Function} [fn] - callback, defaults to console.log", "docstring_tokens": ["Get", "the", "base64", "encoding", "as", "a", "data", "URI"], "sha": "6043347be9c05a2adb8a853f9face425a97799b4", "url": "https://github.com/gavinhungry/pingy/blob/6043347be9c05a2adb8a853f9face425a97799b4/pingy.js#L290-L296", "partition": "test"} +{"repo": "othiym23/node-deepest", "path": "deepest.js", "func_name": "deepest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is a node-specific version of an anal structural equality test, modeled\non bits and pieces of many other versions of this check, most notably\ndeeper, which is in turn based on the Node.js source's assert.deepEqual and\nthe Underscore library. It doesn't throw and handles cycles.\n\nEverybody who writes one of these functions puts the documentation\ninline, which makes it incredibly hard to follow. Here's what this version\nof the algorithm does, in order:\n\n1. === only tests objects and and functions by reference. Null is an object.\nAny pairs of identical entities failing this test are therefore objects\n(including null), which need to be recursed into and compared attribute by\nattribute.\n2. Since the only matching entities to get to this test must be objects, if\na or b is not an object, they're clearly not the same. All unfiltered a\nand b getting are objects (including null).\n3. null is an object, but null === null. All unfiltered a and b are non-null\nobjects.\n4. Buffers need to be special-cased because they live partially on the wrong\nside of the C++ / JavaScript barrier. Still, calling this on structures\nthat can contain Buffers is a bad idea, because they can contain\nmultiple megabytes of data and comparing them byte-by-byte is hella\nexpensive.\n5. It's much faster to compare dates by numeric value than by lexical value.\n6. Same goes for Regexps.\n7. The parts of an arguments list most people care about are the arguments\nthemselves, not the callee, which you shouldn't be looking at anyway.\n8. Objects are more complex:\na. ensure that a and b are on the same constructor chain\nb. ensure that a and b have the same number of own properties, *ignoring\nwhether they're enumerable or not*.\nc. ensure that cyclical references don't blow up the stack.\nd. ensure that all the property names match (faster).\ne. fetch each property's descriptor, and ensure all the regular descriptor\nvalues match.\nf. recursively call deepest on any property values found through the\ndescriptor.\n\n(SOMEWHAT UNTESTED) ASSUMPTIONS:\n\no Functions are only considered identical if they unify to the same\nreference. To anything else is to invite the wrath of the halting problem.\no V8 is smart enough to optimize treating an Array like any other kind of\nobject.\no Users of this function are cool with mutually recursive data structures\nthat are otherwise identical being treated as the same.", "docstring_tokens": ["This", "is", "a", "node", "-", "specific", "version", "of", "an", "anal", "structural", "equality", "test", "modeled", "on", "bits", "and", "pieces", "of", "many", "other", "versions", "of", "this", "check", "most", "notably", "deeper", "which", "is", "in", "turn", "based", "on", "the", "Node", ".", "js", "source", "s", "assert", ".", "deepEqual", "and", "the", "Underscore", "library", ".", "It", "doesn", "t", "throw", "and", "handles", "cycles", "."], "sha": "ecb8978fa28881587d6321149688c314ed288813", "url": "https://github.com/othiym23/node-deepest/blob/ecb8978fa28881587d6321149688c314ed288813/deepest.js#L64-L128", "partition": "test"} +{"repo": "othiym23/node-deepest", "path": "deepest.js", "func_name": "assertParasite", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "copied straight from tap-test.js", "docstring_tokens": ["copied", "straight", "from", "tap", "-", "test", ".", "js"], "sha": "ecb8978fa28881587d6321149688c314ed288813", "url": "https://github.com/othiym23/node-deepest/blob/ecb8978fa28881587d6321149688c314ed288813/deepest.js#L170-L178", "partition": "test"} +{"repo": "maxleiko/grunt-publish", "path": "tasks/publish.js", "func_name": "getIgnored", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validates \"ignore\" option for given path\n@param filepath\n@returns {*}", "docstring_tokens": ["Validates", "ignore", "option", "for", "given", "path"], "sha": "d4df6e441edd9203c66e18c53c50c7416dc7d499", "url": "https://github.com/maxleiko/grunt-publish/blob/d4df6e441edd9203c66e18c53c50c7416dc7d499/tasks/publish.js#L34-L41", "partition": "test"} +{"repo": "kingerking/input-promptify", "path": "prompt.js", "func_name": "renderInputPrompt", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Basic input prompt rendering.", "docstring_tokens": ["Basic", "input", "prompt", "rendering", "."], "sha": "e2aa5436d8d4f6e7d7108d2490d25c35d943c21d", "url": "https://github.com/kingerking/input-promptify/blob/e2aa5436d8d4f6e7d7108d2490d25c35d943c21d/prompt.js#L84-L87", "partition": "test"} +{"repo": "kingerking/input-promptify", "path": "prompt.js", "func_name": "calculateFieldColor", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Will return a chalk function based on selected index, etc..\n@param {*} selectedColor\n@param {*} nonSelectedColor\n@param {*} focusedColor\n@param {*} index", "docstring_tokens": ["Will", "return", "a", "chalk", "function", "based", "on", "selected", "index", "etc", ".."], "sha": "e2aa5436d8d4f6e7d7108d2490d25c35d943c21d", "url": "https://github.com/kingerking/input-promptify/blob/e2aa5436d8d4f6e7d7108d2490d25c35d943c21d/prompt.js#L109-L118", "partition": "test"} +{"repo": "terrawheat/ember-cli-keyboard-actions", "path": "Brocfile.js", "func_name": "render", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Use `app.import` to add additional libraries to the generated output files. If you need to use different assets in different environments, specify an object as the first parameter. That object's keys should be the environment name and the values should be the asset to use in that environment. If the library that you are including contains AMD or ES6 modules that you would like to import into your application please specify an object with the list of modules as keys along with the exports of each module as its value.", "docstring_tokens": ["Use", "app", ".", "import", "to", "add", "additional", "libraries", "to", "the", "generated", "output", "files", ".", "If", "you", "need", "to", "use", "different", "assets", "in", "different", "environments", "specify", "an", "object", "as", "the", "first", "parameter", ".", "That", "object", "s", "keys", "should", "be", "the", "environment", "name", "and", "the", "values", "should", "be", "the", "asset", "to", "use", "in", "that", "environment", ".", "If", "the", "library", "that", "you", "are", "including", "contains", "AMD", "or", "ES6", "modules", "that", "you", "would", "like", "to", "import", "into", "your", "application", "please", "specify", "an", "object", "with", "the", "list", "of", "modules", "as", "keys", "along", "with", "the", "exports", "of", "each", "module", "as", "its", "value", "."], "sha": "7ea5c02411575387dcee95ac858c5720c11b715d", "url": "https://github.com/terrawheat/ember-cli-keyboard-actions/blob/7ea5c02411575387dcee95ac858c5720c11b715d/Brocfile.js#L26-L32", "partition": "test"} +{"repo": "cybersettler/websemble", "path": "backend/service/RESTService.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handle GET request.\n@param {string} url - Resource locator.\n@return {Promise} A resource.", "docstring_tokens": ["Handle", "GET", "request", "."], "sha": "2cf2b3343207e7ded03f018310c9ca6680f734e8", "url": "https://github.com/cybersettler/websemble/blob/2cf2b3343207e7ded03f018310c9ca6680f734e8/backend/service/RESTService.js#L30-L39", "partition": "test"} +{"repo": "cybersettler/websemble", "path": "backend/service/RESTService.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handle PUT request.\n@param {string} url - Resource locator.\n@param {Object} data - Resource data.\n@return {Promise} Updated resource.", "docstring_tokens": ["Handle", "PUT", "request", "."], "sha": "2cf2b3343207e7ded03f018310c9ca6680f734e8", "url": "https://github.com/cybersettler/websemble/blob/2cf2b3343207e7ded03f018310c9ca6680f734e8/backend/service/RESTService.js#L62-L71", "partition": "test"} +{"repo": "sneakertack/suit", "path": "lib/index.js", "func_name": "mapPrune", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a copy of the input in which any property that hasn't explicitly been expressed in the schema is stripped.", "docstring_tokens": ["Returns", "a", "copy", "of", "the", "input", "in", "which", "any", "property", "that", "hasn", "t", "explicitly", "been", "expressed", "in", "the", "schema", "is", "stripped", "."], "sha": "122283cb991b735bbcd4192cdc13f937c5c6f9af", "url": "https://github.com/sneakertack/suit/blob/122283cb991b735bbcd4192cdc13f937c5c6f9af/lib/index.js#L53-L65", "partition": "test"} +{"repo": "LuccaSA/lui-build", "path": "index.js", "func_name": "createYamlSchema", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates the YAML schema based on default and passed custom types.\n\n@param {Object} List of all YAML custom types\n@return {Object} The resulting YAML schema", "docstring_tokens": ["Creates", "the", "YAML", "schema", "based", "on", "default", "and", "passed", "custom", "types", "."], "sha": "916343e0ba3c36c4e9f97761e402783ca68df44d", "url": "https://github.com/LuccaSA/lui-build/blob/916343e0ba3c36c4e9f97761e402783ca68df44d/index.js#L72-L90", "partition": "test"} +{"repo": "LuccaSA/lui-build", "path": "index.js", "func_name": "loadYamlFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Loads a YAML file and parses it into an Object.\n\n@param {String} filepath\n@return {Object}", "docstring_tokens": ["Loads", "a", "YAML", "file", "and", "parses", "it", "into", "an", "Object", "."], "sha": "916343e0ba3c36c4e9f97761e402783ca68df44d", "url": "https://github.com/LuccaSA/lui-build/blob/916343e0ba3c36c4e9f97761e402783ca68df44d/index.js#L99-L110", "partition": "test"} +{"repo": "LuccaSA/lui-build", "path": "index.js", "func_name": "loadTheme", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Load theme variables from a YAML file.\n\n@param {Array} props\n@return {Object} result", "docstring_tokens": ["Load", "theme", "variables", "from", "a", "YAML", "file", "."], "sha": "916343e0ba3c36c4e9f97761e402783ca68df44d", "url": "https://github.com/LuccaSA/lui-build/blob/916343e0ba3c36c4e9f97761e402783ca68df44d/index.js#L119-L142", "partition": "test"} +{"repo": "LuccaSA/lui-build", "path": "index.js", "func_name": "luiTheme", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieves theme variables from cached theme var or from file if need be\n\n@param {String|Array} properties Array or string with a dot separator\n@return {Object|String} The theme variable retrieved", "docstring_tokens": ["Retrieves", "theme", "variables", "from", "cached", "theme", "var", "or", "from", "file", "if", "need", "be"], "sha": "916343e0ba3c36c4e9f97761e402783ca68df44d", "url": "https://github.com/LuccaSA/lui-build/blob/916343e0ba3c36c4e9f97761e402783ca68df44d/index.js#L151-L177", "partition": "test"} +{"repo": "LuccaSA/lui-build", "path": "index.js", "func_name": "write", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Writes a string in a file.\n\n@param {String} destination\n@param {String} data to be written\n@param {Function} callback\n@return {?} callback result", "docstring_tokens": ["Writes", "a", "string", "in", "a", "file", "."], "sha": "916343e0ba3c36c4e9f97761e402783ca68df44d", "url": "https://github.com/LuccaSA/lui-build/blob/916343e0ba3c36c4e9f97761e402783ca68df44d/index.js#L188-L205", "partition": "test"} +{"repo": "LuccaSA/lui-build", "path": "index.js", "func_name": "init", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initializes global variables. In particular, merges defaults and custom options.\n\n@param {Object} custom options\n@return {Object} merged options", "docstring_tokens": ["Initializes", "global", "variables", ".", "In", "particular", "merges", "defaults", "and", "custom", "options", "."], "sha": "916343e0ba3c36c4e9f97761e402783ca68df44d", "url": "https://github.com/LuccaSA/lui-build/blob/916343e0ba3c36c4e9f97761e402783ca68df44d/index.js#L213-L225", "partition": "test"} +{"repo": "LuccaSA/lui-build", "path": "index.js", "func_name": "redact", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compiles build definitions and theme variables into a ready-to-import scss string.\n\n@param {Object} options\n@param {Function} callback\n@return {String} the scss output", "docstring_tokens": ["Compiles", "build", "definitions", "and", "theme", "variables", "into", "a", "ready", "-", "to", "-", "import", "scss", "string", "."], "sha": "916343e0ba3c36c4e9f97761e402783ca68df44d", "url": "https://github.com/LuccaSA/lui-build/blob/916343e0ba3c36c4e9f97761e402783ca68df44d/index.js#L235-L264", "partition": "test"} +{"repo": "LuccaSA/lui-build", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Builds the scss and writes it into destination file passed in options.\n\n@param {Object} options\n@param {Function} callback", "docstring_tokens": ["Builds", "the", "scss", "and", "writes", "it", "into", "destination", "file", "passed", "in", "options", "."], "sha": "916343e0ba3c36c4e9f97761e402783ca68df44d", "url": "https://github.com/LuccaSA/lui-build/blob/916343e0ba3c36c4e9f97761e402783ca68df44d/index.js#L287-L290", "partition": "test"} +{"repo": "LuccaSA/lui-build", "path": "lib/to-sass.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Converts objects to a map typed scss variable", "docstring_tokens": ["Converts", "objects", "to", "a", "map", "typed", "scss", "variable"], "sha": "916343e0ba3c36c4e9f97761e402783ca68df44d", "url": "https://github.com/LuccaSA/lui-build/blob/916343e0ba3c36c4e9f97761e402783ca68df44d/lib/to-sass.js#L17-L21", "partition": "test"} +{"repo": "LuccaSA/lui-build", "path": "lib/to-sass.js", "func_name": "objectToSass", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parses a Javascript Object and returns a sass map string\n\n@param {Object}\n@return {String}", "docstring_tokens": ["Parses", "a", "Javascript", "Object", "and", "returns", "a", "sass", "map", "string"], "sha": "916343e0ba3c36c4e9f97761e402783ca68df44d", "url": "https://github.com/LuccaSA/lui-build/blob/916343e0ba3c36c4e9f97761e402783ca68df44d/lib/to-sass.js#L30-L34", "partition": "test"} +{"repo": "LuccaSA/lui-build", "path": "lib/to-sass.js", "func_name": "parseValue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Distinguishes between strings, list and maps and calls the appropriate parser\n\n@param {String}\n@return {String}", "docstring_tokens": ["Distinguishes", "between", "strings", "list", "and", "maps", "and", "calls", "the", "appropriate", "parser"], "sha": "916343e0ba3c36c4e9f97761e402783ca68df44d", "url": "https://github.com/LuccaSA/lui-build/blob/916343e0ba3c36c4e9f97761e402783ca68df44d/lib/to-sass.js#L42-L49", "partition": "test"} +{"repo": "svenanders/random-guid", "path": "index.js", "func_name": "domSafeRandomGuid", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "generate a guid that is tested unique against id's on the current doc", "docstring_tokens": ["generate", "a", "guid", "that", "is", "tested", "unique", "against", "id", "s", "on", "the", "current", "doc"], "sha": "42430fe845d4d52ceb2a0113cf1275d6b8c8472c", "url": "https://github.com/svenanders/random-guid/blob/42430fe845d4d52ceb2a0113cf1275d6b8c8472c/index.js#L56-L86", "partition": "test"} +{"repo": "eugeny-dementev/yamlify-object", "path": "src/index.js", "func_name": "objectProperty", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Object to yaml string formatter\n\n@param {Object} obj\n@param {number} [indentLength=1]\n@returns {string}", "docstring_tokens": ["Object", "to", "yaml", "string", "formatter"], "sha": "5a3a3166d2b33c547e3aff2b1f8cabccd8b41cc7", "url": "https://github.com/eugeny-dementev/yamlify-object/blob/5a3a3166d2b33c547e3aff2b1f8cabccd8b41cc7/src/index.js#L29-L60", "partition": "test"} +{"repo": "eugeny-dementev/yamlify-object", "path": "src/index.js", "func_name": "arrayProperty", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Array to yaml string formatter\n\n@param {Array} values\n@param {number} [indentLength=1]\n@return {string}", "docstring_tokens": ["Array", "to", "yaml", "string", "formatter"], "sha": "5a3a3166d2b33c547e3aff2b1f8cabccd8b41cc7", "url": "https://github.com/eugeny-dementev/yamlify-object/blob/5a3a3166d2b33c547e3aff2b1f8cabccd8b41cc7/src/index.js#L69-L95", "partition": "test"} +{"repo": "cybersettler/websemble", "path": "backend/service/RESTResponse.js", "func_name": "RESTResponse", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Backend response.\n@constructor\n@param {string} url - Resource locator.\n@param {string} method - Method used in the Request.\n@param {Object|string} body - The body of the response.", "docstring_tokens": ["Backend", "response", "."], "sha": "2cf2b3343207e7ded03f018310c9ca6680f734e8", "url": "https://github.com/cybersettler/websemble/blob/2cf2b3343207e7ded03f018310c9ca6680f734e8/backend/service/RESTResponse.js#L8-L18", "partition": "test"} +{"repo": "ljharb/map-tojson", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "polyfilled Maps with es6-shim might exist without for..of", "docstring_tokens": ["polyfilled", "Maps", "with", "es6", "-", "shim", "might", "exist", "without", "for", "..", "of"], "sha": "3e907585b2a29061e7028d5f3a6236ba91eb776d", "url": "https://github.com/ljharb/map-tojson/blob/3e907585b2a29061e7028d5f3a6236ba91eb776d/index.js#L12-L18", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/ComponentManager.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Registers an item to be managed.\n@param {Object} component The item to register.", "docstring_tokens": ["Registers", "an", "item", "to", "be", "managed", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/ComponentManager.js#L50-L60", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/ComponentManager.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new Component from the specified config object using the\nconfig object's `xtype` to determine the class to instantiate.\n@param {Object} component A configuration object for the Component you wish to create.\n@param {Function} [defaultType] The constructor to provide the default Component type if\nthe config object does not contain a `xtype`. (Optional if the config contains an `xtype`).\n@return {Ext.Component} The newly instantiated Component.", "docstring_tokens": ["Creates", "a", "new", "Component", "from", "the", "specified", "config", "object", "using", "the", "config", "object", "s", "xtype", "to", "determine", "the", "class", "to", "instantiate", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/ComponentManager.js#L97-L109", "partition": "test"} +{"repo": "snapptop/ninjs-lodash", "path": "cli.js", "func_name": "rns", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "runs a name.space", "docstring_tokens": ["runs", "a", "name", ".", "space"], "sha": "fab253b7d96cc9bb3f2a1057efff2684c200bcee", "url": "https://github.com/snapptop/ninjs-lodash/blob/fab253b7d96cc9bb3f2a1057efff2684c200bcee/cli.js#L13-L34", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dom/Element.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Serializes a DOM element and its children recursively into a string.\n@param {Object} node DOM element to serialize.\n@returns {String}", "docstring_tokens": ["Serializes", "a", "DOM", "element", "and", "its", "children", "recursively", "into", "a", "string", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dom/Element.js#L310-L332", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dom/Element.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the value of an attribute from the element's underlying DOM node.\n@param {String} name The attribute name.\n@param {String} [namespace] The namespace in which to look for the attribute.\n@return {String} The attribute value.", "docstring_tokens": ["Returns", "the", "value", "of", "an", "attribute", "from", "the", "element", "s", "underlying", "DOM", "node", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dom/Element.js#L528-L533", "partition": "test"} +{"repo": "sebinsua/eventual-schema", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "An eventual schema exists for a key-value object.", "docstring_tokens": ["An", "eventual", "schema", "exists", "for", "a", "key", "-", "value", "object", "."], "sha": "7792c9cad68651f3152aeae0d421b4c045e34f70", "url": "https://github.com/sebinsua/eventual-schema/blob/7792c9cad68651f3152aeae0d421b4c045e34f70/index.js#L14-L24", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/mixin/Sortable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method adds all the sorters in a passed array.\n@param {Array} sorters An array with sorters. A sorter can be an instance of Ext.util.Sorter, a string\nindicating a property name, an object representing an Ext.util.Sorter configuration,\nor a sort function.\n@param {String} defaultDirection The default direction for each sorter in the array. Defaults\nto the value of {@link #defaultSortDirection}. Can be either 'ASC' or 'DESC'.", "docstring_tokens": ["This", "method", "adds", "all", "the", "sorters", "in", "a", "passed", "array", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/mixin/Sortable.js#L102-L105", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/mixin/Sortable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method inserts all the sorters in the passed array at the given index.\n@param {Number} index The index at which to insert the sorters.\n@param {Array} sorters Can be an instance of Ext.util.Sorter, a string indicating a property name,\nan object representing an Ext.util.Sorter configuration, or a sort function.\n@param {String} defaultDirection The default direction for each sorter in the array. Defaults\nto the value of {@link #defaultSortDirection}. Can be either 'ASC' or 'DESC'.", "docstring_tokens": ["This", "method", "inserts", "all", "the", "sorters", "in", "the", "passed", "array", "at", "the", "given", "index", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/mixin/Sortable.js#L128-L216", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/mixin/Sortable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method removes all the sorters in a passed array.\n@param {Array} sorters Each value in the array can be a string (property name),\nfunction (sorterFn) or {@link Ext.util.Sorter Sorter} instance.", "docstring_tokens": ["This", "method", "removes", "all", "the", "sorters", "in", "a", "passed", "array", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/mixin/Sortable.js#L233-L264", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/mixin/Sortable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method returns the index that a given item would be inserted into a\ngiven array based on the current sorters.\n@param {Array} items The array that you want to insert the item into.\n@param {Mixed} item The item that you want to insert into the items array.\n@param {Function} [sortFn] external sorting function\n@param {Boolean} containsItem Sencha's implementation assumes the item have to be excluded from the array before searching.\nOT implementation allow avoid this kind of restriction. `true` assumes the item can be existed in the `items` array.\n@return {Number} The index for the given item in the given array based on\nthe current sorters.", "docstring_tokens": ["This", "method", "returns", "the", "index", "that", "a", "given", "item", "would", "be", "inserted", "into", "a", "given", "array", "based", "on", "the", "current", "sorters", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/mixin/Sortable.js#L329-L356", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/field/Input.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Helper method to update a specified attribute on the `fieldEl`, or remove the attribute all together.\n@private", "docstring_tokens": ["Helper", "method", "to", "update", "a", "specified", "attribute", "on", "the", "fieldEl", "or", "remove", "the", "attribute", "all", "together", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/field/Input.js#L384-L392", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/field/Input.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the `checked` value of this field\n@return {Mixed} value The field value", "docstring_tokens": ["Returns", "the", "checked", "value", "of", "this", "field"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/field/Input.js#L589-L599", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/field/Input.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Attempts to set the field as the active input focus.\n@return {Ext.field.Input} this", "docstring_tokens": ["Attempts", "to", "set", "the", "field", "as", "the", "active", "input", "focus", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/field/Input.js#L725-L733", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/field/Input.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Attempts to forcefully blur input focus for the field.\n@return {Ext.field.Input} this\n@chainable", "docstring_tokens": ["Attempts", "to", "forcefully", "blur", "input", "focus", "for", "the", "field", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/field/Input.js#L740-L748", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/field/Input.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Attempts to forcefully select all the contents of the input field.\n@return {Ext.field.Input} this\n@chainable", "docstring_tokens": ["Attempts", "to", "forcefully", "select", "all", "the", "contents", "of", "the", "input", "field", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/field/Input.js#L755-L763", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/DateExtras.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Formats a date given the supplied format string.\n@param {Date} date The date to format.\n@param {String} format The format string.\n@return {String} The formatted date.", "docstring_tokens": ["Formats", "a", "date", "given", "the", "supplied", "format", "string", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/DateExtras.js#L1029-L1035", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/DateExtras.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Provides a convenient method for performing basic date arithmetic. This method\ndoes not modify the Date instance being called - it creates and returns\na new Date instance containing the resulting date value.\n\n@example\n// Basic usage:\nvar dt = Ext.Date.add(new Date('10/29/2006'), Ext.Date.DAY, 5);\nalert(dt); // 'Fri Nov 03 2006 00:00:00'\n\nYou can also subtract date values by passing a negative value:\n\n@example\n// Negative values will be subtracted:\nvar dt2 = Ext.Date.add(new Date('10/1/2006'), Ext.Date.DAY, -5);\nalert(dt2); // 'Tue Sep 26 2006 00:00:00'\n\n@param {Date} date The date to modify.\n@param {String} interval A valid date interval enum value.\n@param {Number} value The amount to add to the current date.\n@return {Date} The new Date instance.", "docstring_tokens": ["Provides", "a", "convenient", "method", "for", "performing", "basic", "date", "arithmetic", ".", "This", "method", "does", "not", "modify", "the", "Date", "instance", "being", "called", "-", "it", "creates", "and", "returns", "a", "new", "Date", "instance", "containing", "the", "resulting", "date", "value", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/DateExtras.js#L1369-L1402", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/DateExtras.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Calculate how many units are there between two time.\n@param {Date} min The first time.\n@param {Date} max The second time.\n@param {String} unit The unit. This unit is compatible with the date interval constants.\n@return {Number} The maximum number n of units that min + n * unit <= max.", "docstring_tokens": ["Calculate", "how", "many", "units", "are", "there", "between", "two", "time", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/DateExtras.js#L1423-L1453", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/DateExtras.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Align the date to `unit`.\n@param {Date} date The date to be aligned.\n@param {String} unit The unit. This unit is compatible with the date interval constants.\n@return {Date} The aligned date.", "docstring_tokens": ["Align", "the", "date", "to", "unit", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/DateExtras.js#L1461-L1512", "partition": "test"} +{"repo": "Rudellandy/console2file", "path": "lib/index.js", "func_name": "getOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns options for specified message type\n@param {string} messageType\n@returns {IOptions}", "docstring_tokens": ["Returns", "options", "for", "specified", "message", "type"], "sha": "221ac5b86c72b620dd9804b39fb6433c79d83111", "url": "https://github.com/Rudellandy/console2file/blob/221ac5b86c72b620dd9804b39fb6433c79d83111/lib/index.js#L47-L53", "partition": "test"} +{"repo": "Rudellandy/console2file", "path": "lib/index.js", "func_name": "parse", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Prepare message and return as string\n@param {string} messageType\n@param args\n@returns {string}", "docstring_tokens": ["Prepare", "message", "and", "return", "as", "string"], "sha": "221ac5b86c72b620dd9804b39fb6433c79d83111", "url": "https://github.com/Rudellandy/console2file/blob/221ac5b86c72b620dd9804b39fb6433c79d83111/lib/index.js#L71-L101", "partition": "test"} +{"repo": "Rudellandy/console2file", "path": "lib/index.js", "func_name": "stdout", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Main stdout function\n@param {string} messageType\n@returns {IStdout}", "docstring_tokens": ["Main", "stdout", "function"], "sha": "221ac5b86c72b620dd9804b39fb6433c79d83111", "url": "https://github.com/Rudellandy/console2file/blob/221ac5b86c72b620dd9804b39fb6433c79d83111/lib/index.js#L107-L124", "partition": "test"} +{"repo": "Rudellandy/console2file", "path": "lib/index.js", "func_name": "assignOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Assign user options to object\n@param {IOptions} defaults\n@param {IOptions} userDefined", "docstring_tokens": ["Assign", "user", "options", "to", "object"], "sha": "221ac5b86c72b620dd9804b39fb6433c79d83111", "url": "https://github.com/Rudellandy/console2file/blob/221ac5b86c72b620dd9804b39fb6433c79d83111/lib/index.js#L131-L141", "partition": "test"} +{"repo": "rocco/grunt-mustache-hogan-html", "path": "tasks/mustache_hogan_html.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Hogan render each page, return rendered pages", "docstring_tokens": ["Hogan", "render", "each", "page", "return", "rendered", "pages"], "sha": "bdfc54e1268d41a90711abae2d80d3949d5d57c4", "url": "https://github.com/rocco/grunt-mustache-hogan-html/blob/bdfc54e1268d41a90711abae2d80d3949d5d57c4/tasks/mustache_hogan_html.js#L65-L117", "partition": "test"} +{"repo": "zdfs/grunt-datadriver", "path": "tasks/datadriver.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This gets executed before the original process.stdout.write", "docstring_tokens": ["This", "gets", "executed", "before", "the", "original", "process", ".", "stdout", ".", "write"], "sha": "8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e", "url": "https://github.com/zdfs/grunt-datadriver/blob/8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e/tasks/datadriver.js#L100-L112", "partition": "test"} +{"repo": "zdfs/grunt-datadriver", "path": "tasks/datadriver.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "helper function for asyncjs", "docstring_tokens": ["helper", "function", "for", "asyncjs"], "sha": "8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e", "url": "https://github.com/zdfs/grunt-datadriver/blob/8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e/tasks/datadriver.js#L140-L153", "partition": "test"} +{"repo": "zdfs/grunt-datadriver", "path": "tasks/datadriver.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "check if selenium server is already running", "docstring_tokens": ["check", "if", "selenium", "server", "is", "already", "running"], "sha": "8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e", "url": "https://github.com/zdfs/grunt-datadriver/blob/8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e/tasks/datadriver.js#L160-L183", "partition": "test"} +{"repo": "zdfs/grunt-datadriver", "path": "tasks/datadriver.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "install drivers if needed", "docstring_tokens": ["install", "drivers", "if", "needed"], "sha": "8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e", "url": "https://github.com/zdfs/grunt-datadriver/blob/8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e/tasks/datadriver.js#L187-L201", "partition": "test"} +{"repo": "zdfs/grunt-datadriver", "path": "tasks/datadriver.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "init WebdriverIO instance", "docstring_tokens": ["init", "WebdriverIO", "instance"], "sha": "8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e", "url": "https://github.com/zdfs/grunt-datadriver/blob/8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e/tasks/datadriver.js#L259-L269", "partition": "test"} +{"repo": "zdfs/grunt-datadriver", "path": "tasks/datadriver.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "run mocha tests", "docstring_tokens": ["run", "mocha", "tests"], "sha": "8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e", "url": "https://github.com/zdfs/grunt-datadriver/blob/8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e/tasks/datadriver.js#L274-L283", "partition": "test"} +{"repo": "zdfs/grunt-datadriver", "path": "tasks/datadriver.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "end selenium session", "docstring_tokens": ["end", "selenium", "session"], "sha": "8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e", "url": "https://github.com/zdfs/grunt-datadriver/blob/8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e/tasks/datadriver.js#L288-L296", "partition": "test"} +{"repo": "zdfs/grunt-datadriver", "path": "tasks/datadriver.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "update job on Sauce Labs", "docstring_tokens": ["update", "job", "on", "Sauce", "Labs"], "sha": "8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e", "url": "https://github.com/zdfs/grunt-datadriver/blob/8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e/tasks/datadriver.js#L319-L336", "partition": "test"} +{"repo": "zdfs/grunt-datadriver", "path": "tasks/datadriver.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "finish grunt task", "docstring_tokens": ["finish", "grunt", "task"], "sha": "8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e", "url": "https://github.com/zdfs/grunt-datadriver/blob/8c08f6dfe10a66c4b02a9a4fe42d4f64cb72354e/tasks/datadriver.js#L341-L359", "partition": "test"} +{"repo": "jsantell/GhostTrain", "path": "lib/sendRequest.js", "func_name": "render", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Takes a request, response and body object and return a response object\nfor the `send` callback.\n\n@param {Request} req\n@param {Response} res\n@param {Object|String} body\n@return {Object}", "docstring_tokens": ["Takes", "a", "request", "response", "and", "body", "object", "and", "return", "a", "response", "object", "for", "the", "send", "callback", "."], "sha": "e69b6cc33669035c1d571bff3805e1b6d8a50ccb", "url": "https://github.com/jsantell/GhostTrain/blob/e69b6cc33669035c1d571bff3805e1b6d8a50ccb/lib/sendRequest.js#L85-L106", "partition": "test"} +{"repo": "ctr-lang/ctr", "path": "lib/ctr-nodes/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "wrapper for bellow each loop", "docstring_tokens": ["wrapper", "for", "bellow", "each", "loop"], "sha": "f73465cb7420bcc4f18a892a37529b3b366fb08a", "url": "https://github.com/ctr-lang/ctr/blob/f73465cb7420bcc4f18a892a37529b3b366fb08a/lib/ctr-nodes/index.js#L78-L90", "partition": "test"} +{"repo": "ctr-lang/ctr", "path": "lib/ctr-nodes/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "wrapper for set option", "docstring_tokens": ["wrapper", "for", "set", "option"], "sha": "f73465cb7420bcc4f18a892a37529b3b366fb08a", "url": "https://github.com/ctr-lang/ctr/blob/f73465cb7420bcc4f18a892a37529b3b366fb08a/lib/ctr-nodes/index.js#L93-L110", "partition": "test"} +{"repo": "ctr-lang/ctr", "path": "lib/ctr-nodes/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "So the gist of this funk is its a wrapper funk for the passed in args.\nI would take a look at whats happening below in the loop to get a better\nidea of whats going on but we are just passing the keyArgs into this funk\n@param {str} key -> Key from the objectArgs\n@param {str} keyList -> the regex ref in the _H.util\n@param {str} plural -> The plural name which will then cycle through\nthe cylceCallFn\n@param {fn} funk -> The funk which we will invoke if it passes the\nif gate\n@param {bln} passKey -> If we need to pass the key to the funk\n@return {---} -> A whole shit load could happen but nothing\nis returned directly", "docstring_tokens": ["So", "the", "gist", "of", "this", "funk", "is", "its", "a", "wrapper", "funk", "for", "the", "passed", "in", "args", ".", "I", "would", "take", "a", "look", "at", "whats", "happening", "below", "in", "the", "loop", "to", "get", "a", "better", "idea", "of", "whats", "going", "on", "but", "we", "are", "just", "passing", "the", "keyArgs", "into", "this", "funk"], "sha": "f73465cb7420bcc4f18a892a37529b3b366fb08a", "url": "https://github.com/ctr-lang/ctr/blob/f73465cb7420bcc4f18a892a37529b3b366fb08a/lib/ctr-nodes/index.js#L320-L334", "partition": "test"} +{"repo": "ctr-lang/ctr", "path": "lib/ctr-nodes/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "recurse check these, since there may be deeper options like tl to remove", "docstring_tokens": ["recurse", "check", "these", "since", "there", "may", "be", "deeper", "options", "like", "tl", "to", "remove"], "sha": "f73465cb7420bcc4f18a892a37529b3b366fb08a", "url": "https://github.com/ctr-lang/ctr/blob/f73465cb7420bcc4f18a892a37529b3b366fb08a/lib/ctr-nodes/index.js#L476-L495", "partition": "test"} +{"repo": "apentle/redux-reducers-hub", "path": "index.js", "func_name": "add", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "add - add reducers\n\n@param {object} reducers reducer functions\n@param {string} scope state data scope\n@param {mixed} defaultState default state of scope\n@returns {undefined}", "docstring_tokens": ["add", "-", "add", "reducers"], "sha": "2720045f1ea635affae2cdb307a6d27562b65fc1", "url": "https://github.com/apentle/redux-reducers-hub/blob/2720045f1ea635affae2cdb307a6d27562b65fc1/index.js#L62-L82", "partition": "test"} +{"repo": "apentle/redux-reducers-hub", "path": "index.js", "func_name": "remove", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "remove - remove reducers by scope & type\n\n@param {string} scope state data scope\n@param {string} type action.type that reducer affect\n@returns {undefined}", "docstring_tokens": ["remove", "-", "remove", "reducers", "by", "scope", "&", "type"], "sha": "2720045f1ea635affae2cdb307a6d27562b65fc1", "url": "https://github.com/apentle/redux-reducers-hub/blob/2720045f1ea635affae2cdb307a6d27562b65fc1/index.js#L91-L99", "partition": "test"} +{"repo": "apentle/redux-reducers-hub", "path": "index.js", "func_name": "replace", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "replace - replace with new reducers\n\n@param {object} reducers reducer functions\n@param {string} scope state data scope\n@param {mixed} defaultState default state of scope\n@returns {undefined}", "docstring_tokens": ["replace", "-", "replace", "with", "new", "reducers"], "sha": "2720045f1ea635affae2cdb307a6d27562b65fc1", "url": "https://github.com/apentle/redux-reducers-hub/blob/2720045f1ea635affae2cdb307a6d27562b65fc1/index.js#L109-L112", "partition": "test"} +{"repo": "dryjs/dry-underscore", "path": "lib/lodash.js", "func_name": "toInteger", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Converts `value` to an integer.\n\n**Note:** This function is loosely based on [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).\n\n@static\n@memberOf _\n@category Lang\n@param {*} value The value to convert.\n@returns {number} Returns the converted integer.\n@example\n\n_.toInteger(3);\n// => 3\n\n_.toInteger(Number.MIN_VALUE);\n// => 0\n\n_.toInteger(Infinity);\n// => 1.7976931348623157e+308\n\n_.toInteger('3');\n// => 3", "docstring_tokens": ["Converts", "value", "to", "an", "integer", "."], "sha": "32dff1d8abf575b3576406049dd02f0f7d946187", "url": "https://github.com/dryjs/dry-underscore/blob/32dff1d8abf575b3576406049dd02f0f7d946187/lib/lodash.js#L783-L794", "partition": "test"} +{"repo": "weikinhuang/closedinterval-git-hooks", "path": "lib/pre-commit/pre-commit-base.js", "func_name": "writeError", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Write an error to the errors buffer\n@param {String} type\n@param {String} file\n@param {String} line\n@param {String} message", "docstring_tokens": ["Write", "an", "error", "to", "the", "errors", "buffer"], "sha": "42d7e6874a4500bc3d6f9aaadf03324748930e44", "url": "https://github.com/weikinhuang/closedinterval-git-hooks/blob/42d7e6874a4500bc3d6f9aaadf03324748930e44/lib/pre-commit/pre-commit-base.js#L62-L72", "partition": "test"} +{"repo": "weikinhuang/closedinterval-git-hooks", "path": "lib/pre-commit/pre-commit-base.js", "func_name": "flushMessages", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Flush the errors buffer", "docstring_tokens": ["Flush", "the", "errors", "buffer"], "sha": "42d7e6874a4500bc3d6f9aaadf03324748930e44", "url": "https://github.com/weikinhuang/closedinterval-git-hooks/blob/42d7e6874a4500bc3d6f9aaadf03324748930e44/lib/pre-commit/pre-commit-base.js#L77-L84", "partition": "test"} +{"repo": "weikinhuang/closedinterval-git-hooks", "path": "lib/pre-commit/pre-commit-base.js", "func_name": "getConfig", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get a JSON based config file\n@param {String} file\n@returns {Object}", "docstring_tokens": ["Get", "a", "JSON", "based", "config", "file"], "sha": "42d7e6874a4500bc3d6f9aaadf03324748930e44", "url": "https://github.com/weikinhuang/closedinterval-git-hooks/blob/42d7e6874a4500bc3d6f9aaadf03324748930e44/lib/pre-commit/pre-commit-base.js#L91-L106", "partition": "test"} +{"repo": "weikinhuang/closedinterval-git-hooks", "path": "lib/pre-commit/pre-commit-base.js", "func_name": "isIgnored", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if a filename matches an ignore pattern\n@param {String} file\n@returns {Boolean}", "docstring_tokens": ["Check", "if", "a", "filename", "matches", "an", "ignore", "pattern"], "sha": "42d7e6874a4500bc3d6f9aaadf03324748930e44", "url": "https://github.com/weikinhuang/closedinterval-git-hooks/blob/42d7e6874a4500bc3d6f9aaadf03324748930e44/lib/pre-commit/pre-commit-base.js#L113-L120", "partition": "test"} +{"repo": "weikinhuang/closedinterval-git-hooks", "path": "lib/pre-commit/pre-commit-base.js", "func_name": "extractStyles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Replace non css content in a html file with empty lines\n@param {String} src\n@returns {String}", "docstring_tokens": ["Replace", "non", "css", "content", "in", "a", "html", "file", "with", "empty", "lines"], "sha": "42d7e6874a4500bc3d6f9aaadf03324748930e44", "url": "https://github.com/weikinhuang/closedinterval-git-hooks/blob/42d7e6874a4500bc3d6f9aaadf03324748930e44/lib/pre-commit/pre-commit-base.js#L155-L176", "partition": "test"} +{"repo": "weikinhuang/closedinterval-git-hooks", "path": "lib/pre-commit/pre-commit-base.js", "func_name": "read", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get file contents and file name from process.argv\n@returns {Promise.<{filename: *, src}>|String|*}", "docstring_tokens": ["Get", "file", "contents", "and", "file", "name", "from", "process", ".", "argv"], "sha": "42d7e6874a4500bc3d6f9aaadf03324748930e44", "url": "https://github.com/weikinhuang/closedinterval-git-hooks/blob/42d7e6874a4500bc3d6f9aaadf03324748930e44/lib/pre-commit/pre-commit-base.js#L182-L197", "partition": "test"} +{"repo": "weikinhuang/closedinterval-git-hooks", "path": "lib/pre-commit/pre-commit-base.js", "func_name": "loadFileCheckerPlugins", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Load all file checking plugins\n@returns {Object}", "docstring_tokens": ["Load", "all", "file", "checking", "plugins"], "sha": "42d7e6874a4500bc3d6f9aaadf03324748930e44", "url": "https://github.com/weikinhuang/closedinterval-git-hooks/blob/42d7e6874a4500bc3d6f9aaadf03324748930e44/lib/pre-commit/pre-commit-base.js#L228-L243", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dom/Element.style.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Replaces a CSS class on the element with another.\nIf the old name does not exist, the new name will simply be added.\n@param {String} oldName The CSS class to replace.\n@param {String} newName The replacement CSS class.\n@param {String} [prefix=''] Prefix to prepend to each class to be replaced.\n@param {String} [suffix=''] Suffix to append to each class to be replaced.\n@return {Ext.dom.Element} this", "docstring_tokens": ["Replaces", "a", "CSS", "class", "on", "the", "element", "with", "another", ".", "If", "the", "old", "name", "does", "not", "exist", "the", "new", "name", "will", "simply", "be", "added", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dom/Element.style.js#L204-L257", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dom/Element.style.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets the specified CSS class on this element's DOM node.\n@param {String/Array} className The CSS class to set on this element.", "docstring_tokens": ["Sets", "the", "specified", "CSS", "class", "on", "this", "element", "s", "DOM", "node", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dom/Element.style.js#L276-L293", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dom/Element.style.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set the size of this Element.\n\n@param {Number/String} width The new width. This may be one of:\n\n- A Number specifying the new width in this Element's {@link #defaultUnit}s (by default, pixels).\n- A String used to set the CSS width style. Animation may **not** be used.\n- A size object in the format `{width: widthValue, height: heightValue}`.\n\n@param {Number/String} height The new height. This may be one of:\n\n- A Number specifying the new height in this Element's {@link #defaultUnit}s (by default, pixels).\n- A String used to set the CSS height style. Animation may **not** be used.\n@return {Ext.dom.Element} this", "docstring_tokens": ["Set", "the", "size", "of", "this", "Element", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dom/Element.style.js#L368-L379", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dom/Element.style.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Normalizes `currentStyle` and `computedStyle`.\n@param {String} prop The style property whose value is returned.\n@return {String} The current value of the style property for this element.", "docstring_tokens": ["Normalizes", "currentStyle", "and", "computedStyle", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dom/Element.style.js#L650-L678", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dom/Element.style.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wrapper for setting style properties, also takes single object parameter of multiple styles.\n@param {String/Object} property The style property to be set, or an object of multiple styles.\n@param {String} [value] The value to apply to the given property, or `null` if an object was passed.\n@return {Ext.dom.Element} this", "docstring_tokens": ["Wrapper", "for", "setting", "style", "properties", "also", "takes", "single", "object", "parameter", "of", "multiple", "styles", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dom/Element.style.js#L686-L731", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dom/Element.style.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the dimensions of the element available to lay content out in.\n\nIf the element (or any ancestor element) has CSS style `display: none`, the dimensions will be zero.\n\nExample:\n\nvar vpSize = Ext.getBody().getViewSize();\n\n// all Windows created afterwards will have a default value of 90% height and 95% width\nExt.Window.override({\nwidth: vpSize.width * 0.9,\nheight: vpSize.height * 0.95\n});\n// To handle window resizing you would have to hook onto onWindowResize.\n\n@deprecated 2.0.0\n@return {Object} Object describing `width` and `height`:\n@return {Number} return.width\n@return {Number} return.height", "docstring_tokens": ["Returns", "the", "dimensions", "of", "the", "element", "available", "to", "lay", "content", "out", "in", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dom/Element.style.js#L885-L905", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dom/Element.style.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns `true` if the value of the given property is visually transparent. This\nmay be due to a 'transparent' style value or an rgba value with 0 in the alpha\ncomponent.\n@deprecated 2.0.0\n@param {String} prop The style property whose value is to be tested.\n@return {Boolean} `true` if the style property is visually transparent.", "docstring_tokens": ["Returns", "true", "if", "the", "value", "of", "the", "given", "property", "is", "visually", "transparent", ".", "This", "may", "be", "due", "to", "a", "transparent", "style", "value", "or", "an", "rgba", "value", "with", "0", "in", "the", "alpha", "component", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dom/Element.style.js#L915-L923", "partition": "test"} +{"repo": "weikinhuang/closedinterval-git-hooks", "path": "lib/hooks/pre-commit.js", "func_name": "printCounter", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Write a character to the screen indicating lint status\n@param {String} indicator", "docstring_tokens": ["Write", "a", "character", "to", "the", "screen", "indicating", "lint", "status"], "sha": "42d7e6874a4500bc3d6f9aaadf03324748930e44", "url": "https://github.com/weikinhuang/closedinterval-git-hooks/blob/42d7e6874a4500bc3d6f9aaadf03324748930e44/lib/hooks/pre-commit.js#L24-L32", "partition": "test"} +{"repo": "bytespider/OAuthRequest", "path": "lib/Request.js", "func_name": "encode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "rfc3986 compatable encode of a string\n\n@param {String} string", "docstring_tokens": ["rfc3986", "compatable", "encode", "of", "a", "string"], "sha": "0968d1d0a5702ba21feee52a959bfaceb5fa2ad0", "url": "https://github.com/bytespider/OAuthRequest/blob/0968d1d0a5702ba21feee52a959bfaceb5fa2ad0/lib/Request.js#L20-L53", "partition": "test"} +{"repo": "bytespider/OAuthRequest", "path": "lib/Request.js", "func_name": "decode", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "rfc3986 compatable decode of a string\n\n@param {String} string", "docstring_tokens": ["rfc3986", "compatable", "decode", "of", "a", "string"], "sha": "0968d1d0a5702ba21feee52a959bfaceb5fa2ad0", "url": "https://github.com/bytespider/OAuthRequest/blob/0968d1d0a5702ba21feee52a959bfaceb5fa2ad0/lib/Request.js#L61-L65", "partition": "test"} +{"repo": "bytespider/OAuthRequest", "path": "lib/Request.js", "func_name": "getNonce", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate a nonce for the request\n\n@param key_length {number} Optional nonce length", "docstring_tokens": ["Generate", "a", "nonce", "for", "the", "request"], "sha": "0968d1d0a5702ba21feee52a959bfaceb5fa2ad0", "url": "https://github.com/bytespider/OAuthRequest/blob/0968d1d0a5702ba21feee52a959bfaceb5fa2ad0/lib/Request.js#L82-L106", "partition": "test"} +{"repo": "bytespider/OAuthRequest", "path": "lib/Request.js", "func_name": "toHeaderString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get a string of the parameters for the OAuth Authorization header\n\n@param params {object} A key value paired object of data\nexample: {'q':'foobar'}\nfor GET this will append a query string", "docstring_tokens": ["Get", "a", "string", "of", "the", "parameters", "for", "the", "OAuth", "Authorization", "header"], "sha": "0968d1d0a5702ba21feee52a959bfaceb5fa2ad0", "url": "https://github.com/bytespider/OAuthRequest/blob/0968d1d0a5702ba21feee52a959bfaceb5fa2ad0/lib/Request.js#L116-L132", "partition": "test"} +{"repo": "bytespider/OAuthRequest", "path": "lib/Request.js", "func_name": "toSignatureBaseString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate a signature base string for the request\n\n@param method {string} ['GET', 'POST', 'PUT', ...]\n@param url {string} A valid http(s) url\n@param header_params A key value paired object of additional headers\n@param query_params {object} A key value paired object of data\nexample: {'q':'foobar'}\nfor GET this will append a query string", "docstring_tokens": ["Generate", "a", "signature", "base", "string", "for", "the", "request"], "sha": "0968d1d0a5702ba21feee52a959bfaceb5fa2ad0", "url": "https://github.com/bytespider/OAuthRequest/blob/0968d1d0a5702ba21feee52a959bfaceb5fa2ad0/lib/Request.js#L145-L180", "partition": "test"} +{"repo": "bytespider/OAuthRequest", "path": "lib/Request.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sign the request\n\n@param consumer_secret {string} the consumer secret\n@param token_secret {string} the token secret\n@param signature_base {string} the signature base string", "docstring_tokens": ["Sign", "the", "request"], "sha": "0968d1d0a5702ba21feee52a959bfaceb5fa2ad0", "url": "https://github.com/bytespider/OAuthRequest/blob/0968d1d0a5702ba21feee52a959bfaceb5fa2ad0/lib/Request.js#L363-L374", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/picker/Picker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets the values of the pickers slots.\n@param {Object} values The values in a {name:'value'} format.\n@param {Boolean} animated `true` to animate setting the values.\n@return {Ext.Picker} this This picker.", "docstring_tokens": ["Sets", "the", "values", "of", "the", "pickers", "slots", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/picker/Picker.js#L533-L570", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/picker/Picker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the values of each of the pickers slots\n@return {Object} The values of the pickers slots", "docstring_tokens": ["Returns", "the", "values", "of", "each", "of", "the", "pickers", "slots"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/picker/Picker.js#L580-L598", "partition": "test"} +{"repo": "apentle/react-native-apentle", "path": "local-cli/apentle-generator/templates/app/bootstrap/i18n.js", "func_name": "addTranslation", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "addTranslation - add translations\n\n@param {object} translations translations object\n@param {string} locale locale name\n@returns {undefined}", "docstring_tokens": ["addTranslation", "-", "add", "translations"], "sha": "c83f97fa3ee36236344b070728804facb82ce31e", "url": "https://github.com/apentle/react-native-apentle/blob/c83f97fa3ee36236344b070728804facb82ce31e/local-cli/apentle-generator/templates/app/bootstrap/i18n.js#L34-L54", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/SegmentedButton.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "We override `initItems` so we can check for the pressed config.", "docstring_tokens": ["We", "override", "initItems", "so", "we", "can", "check", "for", "the", "pressed", "config", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/SegmentedButton.js#L131-L152", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/SegmentedButton.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Updates the pressed buttons.\n@private", "docstring_tokens": ["Updates", "the", "pressed", "buttons", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/SegmentedButton.js#L268-L314", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/field/Select.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Resets the Select field to the value of the first record in the store.\n@return {Ext.field.Select} this\n@chainable", "docstring_tokens": ["Resets", "the", "Select", "field", "to", "the", "value", "of", "the", "first", "record", "in", "the", "store", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/field/Select.js#L609-L633", "partition": "test"} +{"repo": "MicroMinion/mm-services-kademlia", "path": "src/kad/rpc.js", "func_name": "RPC", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Represents an RPC interface\n@constructor\n@param {Contact} contact - Your node's {@link Contact} information\n@param {Object} options\n@param {Contact} options.replyto - Optional alternate public contact\n@param {Logger} options.logger - Logger instance to use\n@property {Number} readyState - Closed: 0, Transitioning: 1, Open: 2", "docstring_tokens": ["Represents", "an", "RPC", "interface"], "sha": "05792cbc0351ab7d5ca3491cb0a7ff83a95c3407", "url": "https://github.com/MicroMinion/mm-services-kademlia/blob/05792cbc0351ab7d5ca3491cb0a7ff83a95c3407/src/kad/rpc.js#L20-L42", "partition": "test"} +{"repo": "NathanGRomano/message-exchange", "path": "lib/channel.js", "func_name": "Channel", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "An Channel is where messages are sent to and receive\n\n@param {string} id\n@param {Exchange} exchange", "docstring_tokens": ["An", "Channel", "is", "where", "messages", "are", "sent", "to", "and", "receive"], "sha": "bc10f64fbda6a62bc02d53fd4dabb859643350e9", "url": "https://github.com/NathanGRomano/message-exchange/blob/bc10f64fbda6a62bc02d53fd4dabb859643350e9/lib/channel.js#L13-L22", "partition": "test"} +{"repo": "chakrit/jam", "path": "lib/jam.js", "func_name": "continuable", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Subsequent invocation of the function returned from the `jam` function simply adds the given function to the chain.", "docstring_tokens": ["Subsequent", "invocation", "of", "the", "function", "returned", "from", "the", "jam", "function", "simply", "adds", "the", "given", "function", "to", "the", "chain", "."], "sha": "cec411501db983f0627a4e83710d414c0ee8fc02", "url": "https://github.com/chakrit/jam/blob/cec411501db983f0627a4e83710d414c0ee8fc02/lib/jam.js#L314-L323", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "extractDescription", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Extracts description from contents of a readme file in markdown format", "docstring_tokens": ["Extracts", "description", "from", "contents", "of", "a", "readme", "file", "in", "markdown", "format"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L6047-L6057", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "addComment", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "7.4 Comments", "docstring_tokens": ["7", ".", "4", "Comments"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L7300-L7328", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "expectKeyword", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Expect the next token to match the specified keyword. If not, an exception will be thrown.", "docstring_tokens": ["Expect", "the", "next", "token", "to", "match", "the", "specified", "keyword", ".", "If", "not", "an", "exception", "will", "be", "thrown", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L9727-L9733", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "parseArrayInitialiser", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "11.1.4 Array Initialiser", "docstring_tokens": ["11", ".", "1", ".", "4", "Array", "Initialiser"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L9850-L9910", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "parsePropertyFunction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "11.1.5 Object Initialiser", "docstring_tokens": ["11", ".", "1", ".", "5", "Object", "Initialiser"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L9914-L9946", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "parsePostfixExpression", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "11.3 Postfix Expressions", "docstring_tokens": ["11", ".", "3", "Postfix", "Expressions"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L10551-L10575", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "parseUnaryExpression", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "11.4 Unary Operators", "docstring_tokens": ["11", ".", "4", "Unary", "Operators"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L10579-L10621", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "reinterpretAsAssignmentBindingPattern", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "11.13 Assignment Operators 12.14.5 AssignmentPattern", "docstring_tokens": ["11", ".", "13", "Assignment", "Operators", "12", ".", "14", ".", "5", "AssignmentPattern"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L10791-L10834", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "parseExpressionStatement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "12.4 Expression Statement", "docstring_tokens": ["12", ".", "4", "Expression", "Statement"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L12001-L12005", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "parseReturnStatement", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "12.9 The return statement", "docstring_tokens": ["12", ".", "9", "The", "return", "statement"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L12270-L12301", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "extend", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is used to modify the delegate.", "docstring_tokens": ["This", "is", "used", "to", "modify", "the", "delegate", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L14370-L14388", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "reflowText", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Munge \\n's and spaces in \"text\" so that the number of characters between \\n's is less than or equal to \"width\".", "docstring_tokens": ["Munge", "\\", "n", "s", "and", "spaces", "in", "text", "so", "that", "the", "number", "of", "characters", "between", "\\", "n", "s", "is", "less", "than", "or", "equal", "to", "width", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L42898-L42925", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "isAbsolute", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if a file path is absolute.\n\n@param {String} `fp`\n@return {Boolean}", "docstring_tokens": ["Returns", "true", "if", "a", "file", "path", "is", "absolute", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L43334-L43342", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "repeat", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Repeat the given `string` the specified `number`\nof times.\n\n**Example:**\n\n```js\nvar repeat = require('repeat-string');\nrepeat('A', 5);\n//=> AAAAA\n```\n\n@param {String} `string` The string to repeat\n@param {Number} `number` The number of times to repeat the string\n@return {String} Repeated string\n@api public", "docstring_tokens": ["Repeat", "the", "given", "string", "the", "specified", "number", "of", "times", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L44231-L44256", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "uniqSet", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "2 - a simple Set type is defined", "docstring_tokens": ["2", "-", "a", "simple", "Set", "type", "is", "defined"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L44468-L44476", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "error", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Shows error message. Throws unless _continue or config.fatal are true", "docstring_tokens": ["Shows", "error", "message", ".", "Throws", "unless", "_continue", "or", "config", ".", "fatal", "are", "true"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L48898-L48911", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "wrap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Common wrapper for all Unix-like commands", "docstring_tokens": ["Common", "wrapper", "for", "all", "Unix", "-", "like", "commands"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L49040-L49071", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "writeableDir", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns false if 'dir' is not a writeable directory, 'dir' otherwise", "docstring_tokens": ["Returns", "false", "if", "dir", "is", "not", "a", "writeable", "directory", "dir", "otherwise"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L49226-L49241", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "mkdirSyncRecursive", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recursively creates 'dir'", "docstring_tokens": ["Recursively", "creates", "dir"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L49835-L49849", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "splitPath", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Cross-platform method for splitting environment PATH variables", "docstring_tokens": ["Cross", "-", "platform", "method", "for", "splitting", "environment", "PATH", "variables"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L50261-L50271", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "updateStdout", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Echoes stdout changes from running process, if not silent", "docstring_tokens": ["Echoes", "stdout", "changes", "from", "running", "process", "if", "not", "silent"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L50672-L50683", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "formatArgs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds ANSI color escape codes if enabled.\n\n@api public", "docstring_tokens": ["Adds", "ANSI", "color", "escape", "codes", "if", "enabled", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L51639-L51656", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "GNTP", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a new GNTP request of the given `type`.\n\n@param {String} type either NOTIFY or REGISTER\n@api private", "docstring_tokens": ["Create", "a", "new", "GNTP", "request", "of", "the", "given", "type", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L51852-L51861", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "Growly", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Interface for registering Growl applications and sending Growl notifications.\n\n@api private", "docstring_tokens": ["Interface", "for", "registering", "Growl", "applications", "and", "sending", "Growl", "notifications", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L52057-L52065", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "Command", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize a new `Command`.\n\n@param {String} name\n@api public", "docstring_tokens": ["Initialize", "a", "new", "Command", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L53387-L53394", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "baseDifference", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The base implementation of `_.difference` which accepts a single array\nof values to exclude.\n\n@private\n@param {Array} array The array to inspect.\n@param {Array} values The values to exclude.\n@returns {Array} Returns the new array of filtered values.", "docstring_tokens": ["The", "base", "implementation", "of", "_", ".", "difference", "which", "accepts", "a", "single", "array", "of", "values", "to", "exclude", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L55035-L55071", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "peek", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "We need a peek function. If it has an argument, it peeks that much farther ahead. It is used to distinguish for ( var i in ... from for ( var i = ...", "docstring_tokens": ["We", "need", "a", "peek", "function", ".", "If", "it", "has", "an", "argument", "it", "peeks", "that", "much", "farther", "ahead", ".", "It", "is", "used", "to", "distinguish", "for", "(", "var", "i", "in", "...", "from", "for", "(", "var", "i", "=", "..."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L61498-L61515", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "identifier", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "fnparam means that this identifier is being defined as a function argument prop means that this identifier is that of an object property", "docstring_tokens": ["fnparam", "means", "that", "this", "identifier", "is", "being", "defined", "as", "a", "function", "argument", "prop", "means", "that", "this", "identifier", "is", "that", "of", "an", "object", "property"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L62256-L62293", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "destructuringAssignOrJsonValue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check whether this function has been reached for a destructuring assign with undeclared values", "docstring_tokens": ["Check", "whether", "this", "function", "has", "been", "reached", "for", "a", "destructuring", "assign", "with", "undeclared", "values"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L65581-L65598", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "shouldGetter", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "explicitly define this method as function as to have it's name to include as `ssfi`", "docstring_tokens": ["explicitly", "define", "this", "method", "as", "function", "as", "to", "have", "it", "s", "name", "to", "include", "as", "ssfi"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L71805-L71810", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "isA", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns true if the given object is an instanceof value\nor its typeof is the given value.", "docstring_tokens": ["Returns", "true", "if", "the", "given", "object", "is", "an", "instanceof", "value", "or", "its", "typeof", "is", "the", "given", "value", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L73829-L73835", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "add all options to the default command", "docstring_tokens": ["add", "all", "options", "to", "the", "default", "command"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L76433-L76471", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "eatNargs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "how many arguments should we consume, based on the nargs option?", "docstring_tokens": ["how", "many", "arguments", "should", "we", "consume", "based", "on", "the", "nargs", "option?"], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L76925-L76935", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "setConfig", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "set args from config.json file, this should be applied last so that defaults can be applied.", "docstring_tokens": ["set", "args", "from", "config", ".", "json", "file", "this", "should", "be", "applied", "last", "so", "that", "defaults", "can", "be", "applied", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L77006-L77032", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "extendAliases", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "extend the aliases list with inferred aliases.", "docstring_tokens": ["extend", "the", "aliases", "list", "with", "inferred", "aliases", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L77078-L77095", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "checkAllAliases", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "check if a flag is set for any of a key's aliases.", "docstring_tokens": ["check", "if", "a", "flag", "is", "set", "for", "any", "of", "a", "key", "s", "aliases", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L77098-L77107", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "guessType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "given a flag, enforce a default type.", "docstring_tokens": ["given", "a", "flag", "enforce", "a", "default", "type", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L77134-L77141", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "maxWidth", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "return the maximum width of a string in the left-hand column of a table.", "docstring_tokens": ["return", "the", "maximum", "width", "of", "a", "string", "in", "the", "left", "-", "hand", "column", "of", "a", "table", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L77395-L77415", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "normalizeAliases", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "make sure any options set for aliases, are copied to the keys being aliased.", "docstring_tokens": ["make", "sure", "any", "options", "set", "for", "aliases", "are", "copied", "to", "the", "keys", "being", "aliased", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L77419-L77438", "partition": "test"} +{"repo": "cubicmushroom/gulp-cm-phpspec-tasks", "path": "pakmanaged.js", "func_name": "defaultString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "format the default-value-string displayed in the right-hand column.", "docstring_tokens": ["format", "the", "default", "-", "value", "-", "string", "displayed", "in", "the", "right", "-", "hand", "column", "."], "sha": "671b5e6e9545c7a6a027f8b93c1349d491cf429e", "url": "https://github.com/cubicmushroom/gulp-cm-phpspec-tasks/blob/671b5e6e9545c7a6a027f8b93c1349d491cf429e/pakmanaged.js#L77467-L77488", "partition": "test"} +{"repo": "darrencruse/sugarlisp-htmlreader", "path": "readfuncs.js", "func_name": "find_attr_value", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "find the value form with the given name in the attribute forms, otherwise undefined", "docstring_tokens": ["find", "the", "value", "form", "with", "the", "given", "name", "in", "the", "attribute", "forms", "otherwise", "undefined"], "sha": "7e336435c1d0311504a9aa8909fef35a4d231a33", "url": "https://github.com/darrencruse/sugarlisp-htmlreader/blob/7e336435c1d0311504a9aa8909fef35a4d231a33/readfuncs.js#L148-L161", "partition": "test"} +{"repo": "CaliStyle/trailpack-proxy-passport", "path": "api/models/User.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get's user's passports if not on DAO\n@param options", "docstring_tokens": ["Get", "s", "user", "s", "passports", "if", "not", "on", "DAO"], "sha": "40d52fee67cf8bbe0ccf916035726d7521274d18", "url": "https://github.com/CaliStyle/trailpack-proxy-passport/blob/40d52fee67cf8bbe0ccf916035726d7521274d18/api/models/User.js#L180-L199", "partition": "test"} +{"repo": "shinuza/captain", "path": "lib/helpers.js", "func_name": "write", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "echo str > path.\n\n@param {String} path\n@param {String} str", "docstring_tokens": ["echo", "str", ">", "path", "."], "sha": "cbc7473f82d0c593bb2f5a250b66266a40d6452d", "url": "https://github.com/shinuza/captain/blob/cbc7473f82d0c593bb2f5a250b66266a40d6452d/lib/helpers.js#L36-L39", "partition": "test"} +{"repo": "shinuza/captain", "path": "lib/helpers.js", "func_name": "mkdir", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "mkdir -p\n\n@param {String} path", "docstring_tokens": ["mkdir", "-", "p"], "sha": "cbc7473f82d0c593bb2f5a250b66266a40d6452d", "url": "https://github.com/shinuza/captain/blob/cbc7473f82d0c593bb2f5a250b66266a40d6452d/lib/helpers.js#L67-L72", "partition": "test"} +{"repo": "shinuza/captain", "path": "lib/helpers.js", "func_name": "isEmptyDirectory", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Tests if `path` is empty.\n\n@param {String} path\n@returns {Boolean}", "docstring_tokens": ["Tests", "if", "path", "is", "empty", "."], "sha": "cbc7473f82d0c593bb2f5a250b66266a40d6452d", "url": "https://github.com/shinuza/captain/blob/cbc7473f82d0c593bb2f5a250b66266a40d6452d/lib/helpers.js#L132-L147", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/platform/src/data/sync/DatabaseDefinition.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "of the storage scheme JCM include the epoch of the clock here?", "docstring_tokens": ["of", "the", "storage", "scheme", "JCM", "include", "the", "epoch", "of", "the", "clock", "here?"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/platform/src/data/sync/DatabaseDefinition.js#L16-L23", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/app/History.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Navigate to the previous active action. This changes the page url.", "docstring_tokens": ["Navigate", "to", "the", "previous", "active", "action", ".", "This", "changes", "the", "page", "url", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/app/History.js#L80-L92", "partition": "test"} +{"repo": "nicu/grel", "path": "grel.js", "func_name": "GrelRequest", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new instance of the GrelRequest class.\n\nThis class is used when sending HTTP requests to GitHub and it automatically handles\nuser authentication and a few other things.\n\n@param {Grel} grel Grel object that is used for authentication", "docstring_tokens": ["Creates", "a", "new", "instance", "of", "the", "GrelRequest", "class", "."], "sha": "cbcf42c88317e38330ef42902e11a6d3c5fb50cc", "url": "https://github.com/nicu/grel/blob/cbcf42c88317e38330ef42902e11a6d3c5fb50cc/grel.js#L53-L70", "partition": "test"} +{"repo": "nicu/grel", "path": "grel.js", "func_name": "handleResponse", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Private method that handles HTTP responses we get from GitHub.\nThis method will always be executed in the context of a GrelRequest.\n\n@param {String} response HTTP response\n@param {Function} callback Callback function\n@return {null} No return value", "docstring_tokens": ["Private", "method", "that", "handles", "HTTP", "responses", "we", "get", "from", "GitHub", ".", "This", "method", "will", "always", "be", "executed", "in", "the", "context", "of", "a", "GrelRequest", "."], "sha": "cbcf42c88317e38330ef42902e11a6d3c5fb50cc", "url": "https://github.com/nicu/grel/blob/cbcf42c88317e38330ef42902e11a6d3c5fb50cc/grel.js#L140-L157", "partition": "test"} +{"repo": "quantmind/d3-fluid", "path": "server/utils/meta.js", "func_name": "splitHeader", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "split markdown header", "docstring_tokens": ["split", "markdown", "header"], "sha": "2db980acc9740dd726cde67a00d005d71d5d41c9", "url": "https://github.com/quantmind/d3-fluid/blob/2db980acc9740dd726cde67a00d005d71d5d41c9/server/utils/meta.js#L37-L53", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/scroll/Scroller.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Scrolls to the given location.\n\n@param {Number} x The scroll position on the x axis.\n@param {Number} y The scroll position on the y axis.\n@param {Boolean/Object} animation (optional) Whether or not to animate the scrolling to the new position.\n\n@return {Ext.scroll.Scroller} this\n@chainable", "docstring_tokens": ["Scrolls", "to", "the", "given", "location", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/scroll/Scroller.js#L758-L819", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/scroll/Scroller.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Scrolls to the end of the scrollable view.\n@return {Ext.scroll.Scroller} this\n@chainable", "docstring_tokens": ["Scrolls", "to", "the", "end", "of", "the", "scrollable", "view", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/scroll/Scroller.js#L837-L842", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/scroll/Scroller.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Change the scroll offset by the given amount.\n@param {Number} x The offset to scroll by on the x axis.\n@param {Number} y The offset to scroll by on the y axis.\n@param {Boolean/Object} animation (optional) Whether or not to animate the scrolling to the new position.\n@return {Ext.scroll.Scroller} this\n@chainable", "docstring_tokens": ["Change", "the", "scroll", "offset", "by", "the", "given", "amount", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/scroll/Scroller.js#L852-L859", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/Draggable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates new Draggable.\n@param {Object} config The configuration object for this Draggable.", "docstring_tokens": ["Creates", "new", "Draggable", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/Draggable.js#L99-L129", "partition": "test"} +{"repo": "apentle/react-native-apentle", "path": "local-cli/apentle-generator/templates/app/bootstrap/addActions.js", "func_name": "addActions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "addActions - add actions util\n\n@param {array|object} actions actions to add\n@returns {undefined}", "docstring_tokens": ["addActions", "-", "add", "actions", "util"], "sha": "c83f97fa3ee36236344b070728804facb82ce31e", "url": "https://github.com/apentle/react-native-apentle/blob/c83f97fa3ee36236344b070728804facb82ce31e/local-cli/apentle-generator/templates/app/bootstrap/addActions.js#L18-L28", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/core/lang/String.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a string with a specified number of repetitions a given string pattern.\nThe pattern be separated by a different string.\n\nvar s = Ext.String.repeat('---', 4); // '------------'\nvar t = Ext.String.repeat('--', 3, '/'); // '--/--/--'\n\n@param {String} pattern The pattern to repeat.\n@param {Number} count The number of times to repeat the pattern (may be 0).\n@param {String} sep An option string to separate each pattern.", "docstring_tokens": ["Returns", "a", "string", "with", "a", "specified", "number", "of", "repetitions", "a", "given", "string", "pattern", ".", "The", "pattern", "be", "separated", "by", "a", "different", "string", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/core/lang/String.js#L228-L233", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/filesystem/Cordova.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Send a file to a server\n\n@param {Object} config\n\n@param {String} config.url\nURL of server to receive the file\n\n@param {Boolean} config.trustAllHosts\n(Optional) If true it will accept all security certificates. Defaults to false\n\n@param {String} config.fileKey\nName of the form element. Defaults to \"file\"\n\n@param {String} config.fileName\nName of the file on the server\n\n@param {String} config.mimeType\nmime type of the data being uploaded. defaults to \"image/jpeg\"\n\n@param {Object} config.params\n(Optional) set of key/value pairs to be passed along with the request\n\n@param {Boolean} config.chunkMode\nShould the data be uploaded in a chunked streaming mode. defaults to true\n\n@param {Object} config.headers\nMap of header name => header values. Multiple values should be specified an array of values\nvar headers={'headerParam':'headerValue'};\n\n@param {Function} config.success\nThe function called when the File is uploaded successfully\n\n@param {Function} config.success.metadata\n\n@param {Function} config.failure\nThe function called when the File upload fails\n\n@param {FileError} config.failure.error\n\n@returns {FileTransfer}", "docstring_tokens": ["Send", "a", "file", "to", "a", "server"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/filesystem/Cordova.js#L155-L167", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/filesystem/Cordova.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Downloads a file from the server saving it into the Local File System\n\n@param {Object} config\n\n@param {String} config.source\nURL of file to download\n\n@param {Boolean} config.trustAllHosts\nif true it will accept all security certificates. Defaults to false\n\n@param {Object} config.options\nHeader parameters (Auth, etc)\n\n{\nheaders: {\n\"Authorization\": \"Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA==\"\n}\n}\n\n@param {Function} config.success\nThe function called when the File is downloaded successfully\n\n@param {Function} config.success.entry\nFile Entry object of the downloaded file\n\n@param {Function} config.failure\nThe function called when the File download fails\n\n@param {FileError} config.failure.error\n\n@returns {FileTransfer}", "docstring_tokens": ["Downloads", "a", "file", "from", "the", "server", "saving", "it", "into", "the", "Local", "File", "System"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/filesystem/Cordova.js#L202-L214", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/Collection.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method will sort a collection based on the currently configured sorters.\n@param {Object} property\n@param {Object} value\n@param {Object} anyMatch\n@param {Object} caseSensitive\n@return {Array}", "docstring_tokens": ["This", "method", "will", "sort", "a", "collection", "based", "on", "the", "currently", "configured", "sorters", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/Collection.js#L143-L167", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/Collection.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Executes the specified function once for every key in the collection, passing each key, and its associated item\nas the first two parameters.\n@param {Function} fn The function to execute for each item.\n@param {Object} scope The scope (`this` reference) in which the function is executed. Defaults to the browser\nwindow.", "docstring_tokens": ["Executes", "the", "specified", "function", "once", "for", "every", "key", "in", "the", "collection", "passing", "each", "key", "and", "its", "associated", "item", "as", "the", "first", "two", "parameters", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/Collection.js#L580-L588", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/Collection.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Filter by a function. Returns a _new_ collection that has been filtered. The passed function will be called with\neach object in the collection. If the function returns `true`, the value is included otherwise it is filtered.\n@param {Function} fn The function to be called.\n@param {Object} fn.o The object.\n@param {String} fn.k The key.\n@param {Object} scope The scope (`this` reference) in which the function is executed. Defaults to this\nMixedCollection.\n@return {Ext.util.MixedCollection} The new filtered collection", "docstring_tokens": ["Filter", "by", "a", "function", ".", "Returns", "a", "_new_", "collection", "that", "has", "been", "filtered", ".", "The", "passed", "function", "will", "be", "called", "with", "each", "object", "in", "the", "collection", ".", "If", "the", "function", "returns", "true", "the", "value", "is", "included", "otherwise", "it", "is", "filtered", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/Collection.js#L621-L638", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/Collection.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove an item from the collection.\n@param {Object} item The item to remove.\n@return {Object} The item removed or `false` if no item was removed.", "docstring_tokens": ["Remove", "an", "item", "from", "the", "collection", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/Collection.js#L773-L788", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/Collection.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove all items in the passed array from the collection.\n@param {Array} items An array of items to be removed.\n@return {Ext.util.MixedCollection} this object", "docstring_tokens": ["Remove", "all", "items", "in", "the", "passed", "array", "from", "the", "collection", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/Collection.js#L795-L805", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/Collection.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns index within the collection of the passed Object.\n@param {Object} item The item to find the index of.\n@return {Number} Index of the item. Returns -1 if not found.", "docstring_tokens": ["Returns", "index", "within", "the", "collection", "of", "the", "passed", "Object", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/Collection.js#L865-L872", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/Collection.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns `true` if the collection contains the passed Object as an item.\n@param {Object} item The Object to look for in the collection.\n@return {Boolean} `true` if the collection contains the Object as an item.", "docstring_tokens": ["Returns", "true", "if", "the", "collection", "contains", "the", "passed", "Object", "as", "an", "item", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/Collection.js#L948-L955", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/Collection.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a range of items in this collection\n@param {Number} [start=0] The starting index.\n@param {Number} [end=-1] The ending index. Defaults to the last item.\n@return {Array} An array of items.", "docstring_tokens": ["Returns", "a", "range", "of", "items", "in", "this", "collection"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/Collection.js#L1003-L1026", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/Collection.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find the index of the first matching object in this collection by a function. If the function returns `true` it\nis considered a match.\n@param {Function} fn The function to be called.\n@param {Object} fn.o The object.\n@param {String} fn.k The key.\n@param {Object} scope The scope (`this` reference) in which the function is executed. Defaults to this\nMixedCollection.\n@param {Number} [start=0] The index to start searching at.\n@return {Number} The matched index, or -1 if the item was not found.", "docstring_tokens": ["Find", "the", "index", "of", "the", "first", "matching", "object", "in", "this", "collection", "by", "a", "function", ".", "If", "the", "function", "returns", "true", "it", "is", "considered", "a", "match", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/Collection.js#L1039-L1053", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/Collection.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a shallow copy of this collection\n@return {Ext.util.MixedCollection}", "docstring_tokens": ["Creates", "a", "shallow", "copy", "of", "this", "collection"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/Collection.js#L1059-L1073", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/picker/Date.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Updates the monthText configuration", "docstring_tokens": ["Updates", "the", "monthText", "configuration"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/picker/Date.js#L218-L233", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/picker/Date.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Updates the yearText configuration", "docstring_tokens": ["Updates", "the", "yearText", "configuration"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/picker/Date.js#L258-L273", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/picker/Date.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generates all slots for all years specified by this component, and then sets them on the component\n@private", "docstring_tokens": ["Generates", "all", "slots", "for", "all", "years", "specified", "by", "this", "component", "and", "then", "sets", "them", "on", "the", "component"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/picker/Date.js#L285-L336", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/picker/Date.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a slot config for a specified date.\n@private", "docstring_tokens": ["Returns", "a", "slot", "config", "for", "a", "specified", "date", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/picker/Date.js#L342-L369", "partition": "test"} +{"repo": "akshaylive/live.io", "path": "example/ChatExample/public/modules/core/services/menus.client.service.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A private function for rendering decision", "docstring_tokens": ["A", "private", "function", "for", "rendering", "decision"], "sha": "44f68d61eb47d06cef1e2b7bb7d026cd204b72d2", "url": "https://github.com/akshaylive/live.io/blob/44f68d61eb47d06cef1e2b7bb7d026cd204b72d2/example/ChatExample/public/modules/core/services/menus.client.service.js#L14-L32", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/navigation/Bar.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the text needed for the current back button at anytime.\n@private", "docstring_tokens": ["Returns", "the", "text", "needed", "for", "the", "current", "back", "button", "at", "anytime", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/navigation/Bar.js#L529-L540", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/navigation/Bar.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a proxy element of the passed element, and positions it in the same position, using absolute positioning.\nThe createNavigationBarProxy method uses this to create proxies of the backButton and the title elements.\n@private", "docstring_tokens": ["Creates", "a", "proxy", "element", "of", "the", "passed", "element", "and", "positions", "it", "in", "the", "same", "position", "using", "absolute", "positioning", ".", "The", "createNavigationBarProxy", "method", "uses", "this", "to", "create", "proxies", "of", "the", "backButton", "and", "the", "title", "elements", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/navigation/Bar.js#L590-L618", "partition": "test"} +{"repo": "gillesfabio/metalsmith-untemplatize", "path": "lib/index.js", "func_name": "plugin", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A Metalsmith plugin to extract untemplatized file contents.\n\n@param {Object} options\n@return {Function}", "docstring_tokens": ["A", "Metalsmith", "plugin", "to", "extract", "untemplatized", "file", "contents", "."], "sha": "836fbddb05e8548487d15f03f51dae21a4c08475", "url": "https://github.com/gillesfabio/metalsmith-untemplatize/blob/836fbddb05e8548487d15f03f51dae21a4c08475/lib/index.js#L16-L29", "partition": "test"} +{"repo": "serby/object-to-csv-stream", "path": "index.js", "func_name": "defaultMapFn", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Default map will take the first this.header.length items from the object as\nthe row values", "docstring_tokens": ["Default", "map", "will", "take", "the", "first", "this", ".", "header", ".", "length", "items", "from", "the", "object", "as", "the", "row", "values"], "sha": "0ddd2fb1f6f593c8d3daef56320d5049bad88c6c", "url": "https://github.com/serby/object-to-csv-stream/blob/0ddd2fb1f6f593c8d3daef56320d5049bad88c6c/index.js#L10-L14", "partition": "test"} +{"repo": "JohnnieFucker/dreamix-scheduler", "path": "lib/schedule.js", "func_name": "scheduleJob", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Schedule a new Job", "docstring_tokens": ["Schedule", "a", "new", "Job"], "sha": "6f3deb83765b0e3b08b3efc82da56bb7e1d8b0bd", "url": "https://github.com/JohnnieFucker/dreamix-scheduler/blob/6f3deb83765b0e3b08b3efc82da56bb7e1d8b0bd/lib/schedule.js#L77-L98", "partition": "test"} +{"repo": "beyo/model", "path": "lib/types.js", "func_name": "defineType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Define a new type.\n\n@param {String|Funciton} type the type's name or constructor function to define\n@param {Function} validator the validator function (ignored if type is a Function", "docstring_tokens": ["Define", "a", "new", "type", "."], "sha": "625b386b6e1141e1869ede753640850c0c9f0971", "url": "https://github.com/beyo/model/blob/625b386b6e1141e1869ede753640850c0c9f0971/lib/types.js#L111-L139", "partition": "test"} +{"repo": "beyo/model", "path": "lib/types.js", "func_name": "undefineType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Undefine a type.", "docstring_tokens": ["Undefine", "a", "type", "."], "sha": "625b386b6e1141e1869ede753640850c0c9f0971", "url": "https://github.com/beyo/model/blob/625b386b6e1141e1869ede753640850c0c9f0971/lib/types.js#L144-L158", "partition": "test"} +{"repo": "beyo/model", "path": "lib/types.js", "func_name": "checkType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check value against type", "docstring_tokens": ["Check", "value", "against", "type"], "sha": "625b386b6e1141e1869ede753640850c0c9f0971", "url": "https://github.com/beyo/model/blob/625b386b6e1141e1869ede753640850c0c9f0971/lib/types.js#L163-L176", "partition": "test"} +{"repo": "beyo/model", "path": "lib/types.js", "func_name": "getDefinedNames", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Return all defined type names", "docstring_tokens": ["Return", "all", "defined", "type", "names"], "sha": "625b386b6e1141e1869ede753640850c0c9f0971", "url": "https://github.com/beyo/model/blob/625b386b6e1141e1869ede753640850c0c9f0971/lib/types.js#L181-L185", "partition": "test"} +{"repo": "aaronshaf/dem", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "don't include redundant license or copyright notice", "docstring_tokens": ["don", "t", "include", "redundant", "license", "or", "copyright", "notice"], "sha": "d213d50d57ed64d0f37a600a8dfc4acf380742ff", "url": "https://github.com/aaronshaf/dem/blob/d213d50d57ed64d0f37a600a8dfc4acf380742ff/index.js#L53-L66", "partition": "test"} +{"repo": "snapptop/ninjs-lodash", "path": "lib/settings/settings.js", "func_name": "get", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "get setting key", "docstring_tokens": ["get", "setting", "key"], "sha": "fab253b7d96cc9bb3f2a1057efff2684c200bcee", "url": "https://github.com/snapptop/ninjs-lodash/blob/fab253b7d96cc9bb3f2a1057efff2684c200bcee/lib/settings/settings.js#L44-L52", "partition": "test"} +{"repo": "snapptop/ninjs-lodash", "path": "lib/settings/settings.js", "func_name": "load", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "require src and merge with SETTINGS if exists", "docstring_tokens": ["require", "src", "and", "merge", "with", "SETTINGS", "if", "exists"], "sha": "fab253b7d96cc9bb3f2a1057efff2684c200bcee", "url": "https://github.com/snapptop/ninjs-lodash/blob/fab253b7d96cc9bb3f2a1057efff2684c200bcee/lib/settings/settings.js#L64-L69", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dom/Element.static.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Test if size has a unit, otherwise appends the passed unit string, or the default for this Element.\n@param {Object} size The size to set.\n@param {String} units The units to append to a numeric size value.\n@return {String}\n@private\n@static", "docstring_tokens": ["Test", "if", "size", "has", "a", "unit", "otherwise", "appends", "the", "passed", "unit", "string", "or", "the", "default", "for", "this", "Element", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dom/Element.static.js#L29-L47", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dom/Element.static.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Serializes a DOM form into a url encoded string\n@deprecated 2.0.0 Please see {@link Ext.form.Panel#getValues} instead\n@param {Object} form The form\n@return {String} The url encoded form", "docstring_tokens": ["Serializes", "a", "DOM", "form", "into", "a", "url", "encoded", "string"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dom/Element.static.js#L200-L231", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dom/Element.static.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieves the document width\n@deprecated 2.0.0 Please use {@link Ext.Viewport#getWindowWidth} instead\n@static\n@return {Number} documentWidth", "docstring_tokens": ["Retrieves", "the", "document", "width"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dom/Element.static.js#L253-L259", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dom/Element.static.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieves the current orientation of the window. This is calculated by\ndetermining if the height is greater than the width.\n@deprecated 2.0.0 Please use {@link Ext.Viewport#getOrientation} instead\n@static\n@return {String} Orientation of window: 'portrait' or 'landscape'", "docstring_tokens": ["Retrieves", "the", "current", "orientation", "of", "the", "window", ".", "This", "is", "calculated", "by", "determining", "if", "the", "height", "is", "greater", "than", "the", "width", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dom/Element.static.js#L313-L323", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Sortable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates new Sortable.\n@param {Mixed} el\n@param {Object} config", "docstring_tokens": ["Creates", "new", "Sortable", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Sortable.js#L111-L166", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Sortable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Enables sorting for this Sortable.\nThis method is invoked immediately after construction of a Sortable unless\nthe disabled configuration is set to `true`.", "docstring_tokens": ["Enables", "sorting", "for", "this", "Sortable", ".", "This", "method", "is", "invoked", "immediately", "after", "construction", "of", "a", "Sortable", "unless", "the", "disabled", "configuration", "is", "set", "to", "true", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Sortable.js#L284-L287", "partition": "test"} +{"repo": "SoftwarePlumbers/typed-patch", "path": "patch.js", "func_name": "_compareMaps", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Patch for objects\n\nFunctions that should allow us to compare two objects, compute a difference, send the difference over the wire, and apply a patch at the far end\nto sync a remote object with the changes.\n\nFor 'patch' to work properly, the patched object (and child objects) should have a static 'fromJSON' method somewhere in its inheritance tree.\nYou may also implement a static 'getAttrProps(name)' object, which may return a variety of options that are applied to\nchild properties with the given name (see {@link DEFAULT_OPTIONS}).\n\nWon't work with cyclic data structures.\n Compare two Map-like objects.", "docstring_tokens": ["Patch", "for", "objects"], "sha": "2f34206a74a11ca9866c399049ab6bd3b1d7518a", "url": "https://github.com/SoftwarePlumbers/typed-patch/blob/2f34206a74a11ca9866c399049ab6bd3b1d7518a/patch.js#L27-L81", "partition": "test"} +{"repo": "SoftwarePlumbers/typed-patch", "path": "patch.js", "func_name": "compare", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Compare two object to produce a patch object.\n\n@param a First object for comparison\n@param b Second object for comparison\n@param options (optional) options to control comparison operation (see {@link DEFAULT_OPTIONS})", "docstring_tokens": ["Compare", "two", "object", "to", "produce", "a", "patch", "object", "."], "sha": "2f34206a74a11ca9866c399049ab6bd3b1d7518a", "url": "https://github.com/SoftwarePlumbers/typed-patch/blob/2f34206a74a11ca9866c399049ab6bd3b1d7518a/patch.js#L124-L152", "partition": "test"} +{"repo": "SoftwarePlumbers/typed-patch", "path": "patch.js", "func_name": "fromJSON", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Convert over-the-wire JSON format back into typed patch object", "docstring_tokens": ["Convert", "over", "-", "the", "-", "wire", "JSON", "format", "back", "into", "typed", "patch", "object"], "sha": "2f34206a74a11ca9866c399049ab6bd3b1d7518a", "url": "https://github.com/SoftwarePlumbers/typed-patch/blob/2f34206a74a11ca9866c399049ab6bd3b1d7518a/patch.js#L156-L178", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/MixedCollection.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sorts the collection by a single sorter function.\n@param {Function} sorterFn The function to sort by.", "docstring_tokens": ["Sorts", "the", "collection", "by", "a", "single", "sorter", "function", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/MixedCollection.js#L107-L140", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/MixedCollection.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Reorders each of the items based on a mapping from old index to new index. Internally this just translates into a\nsort. The `sort` event is fired whenever reordering has occured.\n@param {Object} mapping Mapping from old item index to new item index.", "docstring_tokens": ["Reorders", "each", "of", "the", "items", "based", "on", "a", "mapping", "from", "old", "index", "to", "new", "index", ".", "Internally", "this", "just", "translates", "into", "a", "sort", ".", "The", "sort", "event", "is", "fired", "whenever", "reordering", "has", "occured", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/MixedCollection.js#L147-L180", "partition": "test"} +{"repo": "wilmoore/apply-or.js", "path": "index.js", "func_name": "apply", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Invoke .apply if value is a function, otherwise, return default value.\n\n@param {Function|*} func\nFunction to be invoked.\n\n@param {Array|*} [args]\nArguments to apply to function.\n\n@param {*} [self]\n`this` value.\n\n@return {*}\nResult of applying function or default value.", "docstring_tokens": ["Invoke", ".", "apply", "if", "value", "is", "a", "function", "otherwise", "return", "default", "value", "."], "sha": "12e94d7f3f8ce94bb3599ada79cc570d1ef5025a", "url": "https://github.com/wilmoore/apply-or.js/blob/12e94d7f3f8ce94bb3599ada79cc570d1ef5025a/index.js#L31-L35", "partition": "test"} +{"repo": "SmartTeleMax/stm-detector", "path": "lib/detector.js", "func_name": "detectDeviceClass", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Following functions are not executed on import anymore", "docstring_tokens": ["Following", "functions", "are", "not", "executed", "on", "import", "anymore"], "sha": "620d774d18d132b51905ddbef99493d623c3acc2", "url": "https://github.com/SmartTeleMax/stm-detector/blob/620d774d18d132b51905ddbef99493d623c3acc2/lib/detector.js#L60-L73", "partition": "test"} +{"repo": "SmartTeleMax/stm-detector", "path": "lib/detector.js", "func_name": "detectWindowWidth", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This function can be triggered on window resize", "docstring_tokens": ["This", "function", "can", "be", "triggered", "on", "window", "resize"], "sha": "620d774d18d132b51905ddbef99493d623c3acc2", "url": "https://github.com/SmartTeleMax/stm-detector/blob/620d774d18d132b51905ddbef99493d623c3acc2/lib/detector.js#L107-L117", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/platform/src/data/sync/CSV.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "array of change stamps", "docstring_tokens": ["array", "of", "change", "stamps"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/platform/src/data/sync/CSV.js#L6-L21", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Splices `insert` into `array` at index `at`.", "docstring_tokens": ["Splices", "insert", "into", "array", "at", "index", "at", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L13333-L13340", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove a model, or a list of models from the set.", "docstring_tokens": ["Remove", "a", "model", "or", "a", "list", "of", "models", "from", "the", "set", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L13372-L13379", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal method called by both remove and set.", "docstring_tokens": ["Internal", "method", "called", "by", "both", "remove", "and", "set", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L13661-L13680", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Does the pathname match the root?", "docstring_tokens": ["Does", "the", "pathname", "match", "the", "root?"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L14142-L14146", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "getViewTemplateData", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the template data associated with a given view, provided that the template is set to a non-empty string.\nOtherwise, it returns undefined. Manages caching behind the scenes.\n\nThe template data is returned as a hash. For a list of properties, see readme.\n\nEvents\n------\n\nThe method fires two events:\n\n- cacheEntry:view:process\n\nFires only once per view, on first access to the template from that particular view. Fires whether or not the\ntemplate is already in the cache.\n\nThe event handler receives a **copy** of the returned cache data. Modifications of the data are ineffective,\nthey don't show up anywhere outside of the handler.\n\n(That is by design. When setting up the el of a view, the cache is accessed several times - once for each\nel-related property. The handler would be able to modify the data during the very first access, when the\n`attributes` property is requested, but not for `className`, `tagName`, `id`. That behaviour can be confusing\nand cause bugs which are difficult to track down. Hence data modification is actively prevented even during\nfirst access, making the behaviour consistent.)\n\nBut there is an exception: the _pluginData property. If the handler needs to change or store data, it can write\nto the _pluginData hash. Changes to the hash are persistent. They are stored in the original cache entry and\nhence show up in every subsequent cache query for that entry.\n\nNB: When `el`-related properties from the cache, like tagName or html, need to be manipulated on the fly, it\nmust be done in a handler for another event: cacheEntry:view:fetch. That handler _is_ allowed to change the\nreturned data. It also has access to the _pluginData created during the cacheEntry:view:process event.\n\n- cacheEntry:view:fetch\n\nFires every time data is requested from the cache in the context of a querying view. The event fires on first\naccess as well. On that occasion, it is preceded by the cacheEntry:view:process event.\n\nThe event handler receives the returned cache data and has full access to it. If the handler modifies the data,\nthe modifications show up in the returned result.\n\nHowever, the original cache entry is protected from modification (with the exception of the _pluginData\nproperty, see above), so changes made by the event handler do not alter the values stored in the cache.\n\nThe events fire only if the cache is accessed with getViewTemplateData(), ie when the cache is queried from a\nview: during view instantiation, or when called with `view.declarativeViews.getCachedTemplate()`.\n\nThe events do **not** fire when the cache is queried from the global API, even if a view is provided as an\nadditional argument, as in `Backbone.DeclarativeViews.getCachedTemplate( \"#template\", view )`.\n\n@param {Backbone.View} view\n@param {Object} [viewOptions] the options passed to the view during instantiation. Only available when\ncalled during view instantiation, and only if the component has been\nconfigured to enforce template loading, with _enforceTemplateLoading()\n@returns {CachedTemplateData|undefined}", "docstring_tokens": ["Returns", "the", "template", "data", "associated", "with", "a", "given", "view", "provided", "that", "the", "template", "is", "set", "to", "a", "non", "-", "empty", "string", ".", "Otherwise", "it", "returns", "undefined", ".", "Manages", "caching", "behind", "the", "scenes", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L15284-L15317", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "clearCache", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Clears the cache as a whole.\n\nAlso clears the Marionette cache (if Marionette is available).\n\n@param {boolean} [fromMarionette=false] internal flag to prevent circular calls to and from Marionette", "docstring_tokens": ["Clears", "the", "cache", "as", "a", "whole", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L15326-L15329", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "clearCachedTemplate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes one or more cache entries.\n\nArguments\n---------\n\nThe strings identifying the cache entries can be passed in as individual arguments (prop1, prop2, ...), or as an\narray. Each string must be\n\n- a template selector\n- raw HTML of a template, if that's what the template property held when a view made use of it.\n\nA template selector must be identical to the one which was used when creating the cache entry, ie the selector\nspecified in the template property or template option of a view. Mere selector equivalence (e.g. \"#template\" and\n\"script#template\") won't match the cache.\n\nStrings not matching a cache entry are ignored, as are non-string arguments.\n\nMarionette.TemplateCache\n------------------------\n\nWhen templates are cleared here, they are removed from the Marionette template cache as well (if Marionette is\nloaded).\n\n@param {...string|string[]} [templateProp] template selector(s), or raw template HTML, identifying the cache\nentry. NB The last argument can also be an internal \"fromMarionette\"\nflag to prevent circular calls to and from Marionette", "docstring_tokens": ["Removes", "one", "or", "more", "cache", "entries", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L15359-L15397", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "clearViewTemplateCache", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes the template cache entry associated with a given view, provided that a cache entry exists.\n\n@param {Backbone.View} view", "docstring_tokens": ["Removes", "the", "template", "cache", "entry", "associated", "with", "a", "given", "view", "provided", "that", "a", "cache", "entry", "exists", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L15404-L15412", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "_copyCacheEntry", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a copy of a cache entry and returns it. Protects the original cache entry from modification, except for\nthe _pluginData property, which remains writable and can be accessed from the copy.\n\nNB The `attribute` property is cloned and protected, too, if it exists.\n\n@param {CachedTemplateData} cacheEntry\n@returns {CachedTemplateData}", "docstring_tokens": ["Creates", "a", "copy", "of", "a", "cache", "entry", "and", "returns", "it", ".", "Protects", "the", "original", "cache", "entry", "from", "modification", "except", "for", "the", "_pluginData", "property", "which", "remains", "writable", "and", "can", "be", "accessed", "from", "the", "copy", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L15507-L15511", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "_createTemplateCache", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a cache entry for a given template property.\n\nReturns the cached entry if creating it has succeeded. In case of failure, it returns the hash { invalid: true }.\nIt signals that the template has been processed, but that the returned hash, as well as the cache itself, does\nnot contain valid data for the template property.\n\nThe creation of a cache entry can fail if the template property is an empty string, or a selector which doesn't\nmatch anything, or a string which jQuery can't process.\n\nUses a custom loader if specified, instead of loading the template with jQuery (default).\n\nEvents\n------\n\nThe method fires the following event:\n\n- cacheEntry:create\n\nFires only once per cache entry, when a valid cache entry is created. That may happen in the context of a view,\nor with a global query.\n\nThe event handler receives the original cache entry. If the handler modifies the data, the modifications show\nup in the returned result **and** alter the content in the cache.\n\nIf a valid cache entry can't be created (flagged as invalid), the event does NOT fire.\n\n@param {string} templateProp template selector, or raw template HTML, identifying the cache entry\n@param {Backbone.View} [view] the view which requested the template\n@param {Object} [viewOptions] the options passed to the view during instantiation. For availability,\nsee getViewTemplateData()\n@returns {CachedTemplateData|Uncacheable}", "docstring_tokens": ["Creates", "a", "cache", "entry", "for", "a", "given", "template", "property", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L15546-L15598", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "_updateJQueryDataCache", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Reads registered data attributes of a given element from the DOM, and updates an existing jQuery data cache with\nthese values.\n\nIf no jQuery data cache exists, it is NOT created by the call. (This function is meant to be used as an efficient,\ninternal tool.) If you need to make sure the jQuery data cache is current and in sync with the DOM, and also\ncreate it if it doesn't exist, just call _getDataAttributes() instead.\n\nThe function is needed because jQuery keeps its own cache of data attributes, but there is no API to clear or\ncircumvent that cache. The jQuery functions $.fn.removeData() and $.removeData() don't do that job: despite their\nname, they don't actually remove the cached values but set them to undefined. So undefined is returned on next\naccess - not the actual values in the DOM.\n\nHere, we force-update the jQuery cache, making sure that changes of the HTML5 data-* attributes in the DOM are\npicked up.\n\nThe implementation circumvents the numerous bugs of jQuery.fn.data(), in particular when removing data. The\nbehaviour and bugs of a .data() call vary by jQuery version. For an overview of that mess, see\nhttp://jsbin.com/venuqo/4/edit?html,js,console\n\nNB The cache update is limited to the data attributes which have been registered with _registerDataAttribute().\nBy default, only attributes which are \"owned\" by Backbone.Declarative.Views are updated - ie, the ones describing\nthe `el` of a view. Other HTML5 data-* attributes are not updated in the jQuery cache because it would interfere\nwith the responsibilities of other code.\n\n@param {jQuery} $elem\n@returns {Object}", "docstring_tokens": ["Reads", "registered", "data", "attributes", "of", "a", "given", "element", "from", "the", "DOM", "and", "updates", "an", "existing", "jQuery", "data", "cache", "with", "these", "values", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L15777-L15818", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "_registerCacheAlias", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Registers an alternative way to access the cache and set up a custom compiler and loader. Intended for use by\nplugins.\n\nA cache alias just adds syntactic sugar for users wanting to manage and access the cache from a plugin namespace.\nThe registration creates references to `getCachedTemplate`, `clearCachedTemplate`, `clearCache`, and the `custom`\nobject in the alternative namespace.\n\nYou can also register the name of an alias to use on view instances (optional). A property of that name will be\ncreated on each view. It references the declarativeViews property of the view.\n\n@param {Object} namespaceObject e.g. Backbone.InlineTemplate\n@param {string} [instanceCachePropertyName] the name of the cache property on a view instance, e.g. \"inlineTemplate\"", "docstring_tokens": ["Registers", "an", "alternative", "way", "to", "access", "the", "cache", "and", "set", "up", "a", "custom", "compiler", "and", "loader", ".", "Intended", "for", "use", "by", "plugins", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L15834-L15844", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "_isDeclarativeViewsErrorType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks if an error belongs to the error types of Backbone.DeclarativeViews.\n\nATTN Update this check as new error types are added to Backbone.DeclarativeViews.\n\n@param {Object} error\n@returns {boolean}", "docstring_tokens": ["Checks", "if", "an", "error", "belongs", "to", "the", "error", "types", "of", "Backbone", ".", "DeclarativeViews", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L15872-L15878", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "createCustomErrorType", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates and returns a custom error type.\n\nSee gist at https://gist.github.com/hashchange/4c1ce239570c77e698c1d2df09d0e540\n\n@param {string} name of the error type\n@returns {Error}", "docstring_tokens": ["Creates", "and", "returns", "a", "custom", "error", "type", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L15955-L15972", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the currently registered handler for the specified name. Throws an exception if no handler is found.", "docstring_tokens": ["Get", "the", "currently", "registered", "handler", "for", "the", "specified", "name", ".", "Throws", "an", "exception", "if", "no", "handler", "is", "found", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L16329-L16337", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Execute a named command with the supplied args", "docstring_tokens": ["Execute", "a", "named", "command", "with", "the", "supplied", "args"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L16413-L16421", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Attach the handlers to a given message system `type`", "docstring_tokens": ["Attach", "the", "handlers", "to", "a", "given", "message", "system", "type"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L16509-L16518", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "iterateEvents", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "generic looping function", "docstring_tokens": ["generic", "looping", "function"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L16911-L16937", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a callback to be executed. Callbacks added here are guaranteed to execute, even if they are added after the `run` method is called.", "docstring_tokens": ["Add", "a", "callback", "to", "be", "executed", ".", "Callbacks", "added", "here", "are", "guaranteed", "to", "execute", "even", "if", "they", "are", "added", "after", "the", "run", "method", "is", "called", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17015-L17024", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Displays a backbone view instance inside of the region. Handles calling the `render` method for you. Reads content directly from the `el` attribute. Also calls an optional `onShow` and `onDestroy` method on your view, just after showing or just before destroying the view, respectively. The `preventDestroy` option can be used to prevent a view from the old view being destroyed on show. The `forceShow` option can be used to force a view to be re-rendered if it's already shown in the region.", "docstring_tokens": ["Displays", "a", "backbone", "view", "instance", "inside", "of", "the", "region", ".", "Handles", "calling", "the", "render", "method", "for", "you", ".", "Reads", "content", "directly", "from", "the", "el", "attribute", ".", "Also", "calls", "an", "optional", "onShow", "and", "onDestroy", "method", "on", "your", "view", "just", "after", "showing", "or", "just", "before", "destroying", "the", "view", "respectively", ".", "The", "preventDestroy", "option", "can", "be", "used", "to", "prevent", "a", "view", "from", "the", "old", "view", "being", "destroyed", "on", "show", ".", "The", "forceShow", "option", "can", "be", "used", "to", "force", "a", "view", "to", "be", "re", "-", "rendered", "if", "it", "s", "already", "shown", "in", "the", "region", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17179-L17286", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Destroy the current view, if there is one. If there is no current view, it does nothing and returns immediately.", "docstring_tokens": ["Destroy", "the", "current", "view", "if", "there", "is", "one", ".", "If", "there", "is", "no", "current", "view", "it", "does", "nothing", "and", "returns", "immediately", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17361-L17385", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add multiple regions using an object literal or a function that returns an object literal, where each key becomes the region name, and each value is the region definition.", "docstring_tokens": ["Add", "multiple", "regions", "using", "an", "object", "literal", "or", "a", "function", "that", "returns", "an", "object", "literal", "where", "each", "key", "becomes", "the", "region", "name", "and", "each", "value", "is", "the", "region", "definition", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17528-L17542", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add an individual region to the region manager, and return the region instance", "docstring_tokens": ["Add", "an", "individual", "region", "to", "the", "region", "manager", "and", "return", "the", "region", "instance"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17546-L17562", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Empty all regions in the region manager, and remove them", "docstring_tokens": ["Empty", "all", "regions", "in", "the", "region", "manager", "and", "remove", "them"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17585-L17592", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "internal method to remove a region", "docstring_tokens": ["internal", "method", "to", "remove", "a", "region"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17619-L17628", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get the specified template by id. Either retrieves the cached version, or loads it from the DOM.", "docstring_tokens": ["Get", "the", "specified", "template", "by", "id", ".", "Either", "retrieves", "the", "cached", "version", "or", "loads", "it", "from", "the", "DOM", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17652-L17661", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal method to load the template", "docstring_tokens": ["Internal", "method", "to", "load", "the", "template"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17691-L17702", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Render a template with data. The `template` parameter is passed to the `TemplateCache` object to retrieve the template function. Override this method to provide your own custom rendering and template handling for all of Marionette.", "docstring_tokens": ["Render", "a", "template", "with", "data", ".", "The", "template", "parameter", "is", "passed", "to", "the", "TemplateCache", "object", "to", "retrieve", "the", "template", "function", ".", "Override", "this", "method", "to", "provide", "your", "own", "custom", "rendering", "and", "template", "handling", "for", "all", "of", "Marionette", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17741-L17752", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Mix in template helper methods. Looks for a `templateHelpers` attribute, which can either be an object literal, or a function that returns an object literal. All methods and attributes from this object are copies to the object passed in.", "docstring_tokens": ["Mix", "in", "template", "helper", "methods", ".", "Looks", "for", "a", "templateHelpers", "attribute", "which", "can", "either", "be", "an", "object", "literal", "or", "a", "function", "that", "returns", "an", "object", "literal", ".", "All", "methods", "and", "attributes", "from", "this", "object", "are", "copies", "to", "the", "object", "passed", "in", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17803-L17808", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Overriding Backbone.View's delegateEvents to handle the `triggers`, `modelEvents`, and `collectionEvents` configuration", "docstring_tokens": ["Overriding", "Backbone", ".", "View", "s", "delegateEvents", "to", "handle", "the", "triggers", "modelEvents", "and", "collectionEvents", "configuration"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17843-L17854", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "internal method to delegate DOM events and triggers", "docstring_tokens": ["internal", "method", "to", "delegate", "DOM", "events", "and", "triggers"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17857-L17875", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Overriding Backbone.View's undelegateEvents to handle unbinding the `triggers`, `modelEvents`, and `collectionEvents` config", "docstring_tokens": ["Overriding", "Backbone", ".", "View", "s", "undelegateEvents", "to", "handle", "unbinding", "the", "triggers", "modelEvents", "and", "collectionEvents", "config"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17879-L17891", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Default `destroy` implementation, for removing a view from the DOM and unbinding it. Regions will call this method for you. You can specify an `onDestroy` method in your view to add custom code that is called after the view is destroyed.", "docstring_tokens": ["Default", "destroy", "implementation", "for", "removing", "a", "view", "from", "the", "DOM", "and", "unbinding", "it", ".", "Regions", "will", "call", "this", "method", "for", "you", ".", "You", "can", "specify", "an", "onDestroy", "method", "in", "your", "view", "to", "add", "custom", "code", "that", "is", "called", "after", "the", "view", "is", "destroyed", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17907-L17935", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method binds the elements specified in the \"ui\" hash inside the view's code with the associated jQuery selectors.", "docstring_tokens": ["This", "method", "binds", "the", "elements", "specified", "in", "the", "ui", "hash", "inside", "the", "view", "s", "code", "with", "the", "associated", "jQuery", "selectors", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L17944-L17963", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "import the `triggerMethod` to trigger events with corresponding methods if the method exists", "docstring_tokens": ["import", "the", "triggerMethod", "to", "trigger", "events", "with", "corresponding", "methods", "if", "the", "method", "exists"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18029-L18036", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an array of every nested view within this view", "docstring_tokens": ["Returns", "an", "array", "of", "every", "nested", "view", "within", "this", "view"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18080-L18089", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Serialize the model or collection for the view. If a model is found, the view's `serializeModel` is called. If a collection is found, each model in the collection is serialized by calling the view's `serializeCollection` and put into an `items` array in the resulting data. If both are found, defaults to the model. You can override the `serializeData` method in your own view definition, to provide custom serialization for your view's data.", "docstring_tokens": ["Serialize", "the", "model", "or", "collection", "for", "the", "view", ".", "If", "a", "model", "is", "found", "the", "view", "s", "serializeModel", "is", "called", ".", "If", "a", "collection", "is", "found", "each", "model", "in", "the", "collection", "is", "serialized", "by", "calling", "the", "view", "s", "serializeCollection", "and", "put", "into", "an", "items", "array", "in", "the", "resulting", "data", ".", "If", "both", "are", "found", "defaults", "to", "the", "model", ".", "You", "can", "override", "the", "serializeData", "method", "in", "your", "own", "view", "definition", "to", "provide", "custom", "serialization", "for", "your", "view", "s", "data", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18142-L18159", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal method to render the template with the serialized data and template helpers via the `Marionette.Renderer` object. Throws an `UndefinedTemplateError` error if the template is any falsely value but literal `false`.", "docstring_tokens": ["Internal", "method", "to", "render", "the", "template", "with", "the", "serialized", "data", "and", "template", "helpers", "via", "the", "Marionette", ".", "Renderer", "object", ".", "Throws", "an", "UndefinedTemplateError", "error", "if", "the", "template", "is", "any", "falsely", "value", "but", "literal", "false", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18189-L18212", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Configured the initial events that the collection view binds to.", "docstring_tokens": ["Configured", "the", "initial", "events", "that", "the", "collection", "view", "binds", "to", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18320-L18330", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handle a child added to the collection", "docstring_tokens": ["Handle", "a", "child", "added", "to", "the", "collection"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18333-L18347", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal method. This checks for any changes in the order of the collection. If the index of any view doesn't match, it will render.", "docstring_tokens": ["Internal", "method", ".", "This", "checks", "for", "any", "changes", "in", "the", "order", "of", "the", "collection", ".", "If", "the", "index", "of", "any", "view", "doesn", "t", "match", "it", "will", "render", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18453-L18465", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal method. Separated so that CompositeView can have more control over events being triggered, around the rendering process", "docstring_tokens": ["Internal", "method", ".", "Separated", "so", "that", "CompositeView", "can", "have", "more", "control", "over", "events", "being", "triggered", "around", "the", "rendering", "process"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18479-L18497", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal method to loop through collection and show each child view.", "docstring_tokens": ["Internal", "method", "to", "loop", "through", "collection", "and", "show", "each", "child", "view", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18500-L18509", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Allow the collection to be sorted by a custom view comparator", "docstring_tokens": ["Allow", "the", "collection", "to", "be", "sorted", "by", "a", "custom", "view", "comparator"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18512-L18538", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal method to show an empty view in place of a collection of child views, when the collection is empty", "docstring_tokens": ["Internal", "method", "to", "show", "an", "empty", "view", "in", "place", "of", "a", "collection", "of", "child", "views", "when", "the", "collection", "is", "empty"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18554-L18566", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Render the child's view and add it to the HTML for the collection view at a given index. This will also update the indices of later views in the collection in order to keep the children in sync with the collection.", "docstring_tokens": ["Render", "the", "child", "s", "view", "and", "add", "it", "to", "the", "HTML", "for", "the", "collection", "view", "at", "a", "given", "index", ".", "This", "will", "also", "update", "the", "indices", "of", "later", "views", "in", "the", "collection", "in", "order", "to", "keep", "the", "children", "in", "sync", "with", "the", "collection", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18664-L18680", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal Method. Add the view to children and render it at the given index.", "docstring_tokens": ["Internal", "Method", ".", "Add", "the", "view", "to", "children", "and", "render", "it", "at", "the", "given", "index", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18704-L18740", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "render the child view", "docstring_tokens": ["render", "the", "child", "view"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18743-L18753", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Build a `childView` for a model in the collection.", "docstring_tokens": ["Build", "a", "childView", "for", "a", "model", "in", "the", "collection", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18756-L18761", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Remove the child view and destroy it. This function also updates the indices of later views in the collection in order to keep the children in sync with the collection.", "docstring_tokens": ["Remove", "the", "child", "view", "and", "destroy", "it", ".", "This", "function", "also", "updates", "the", "indices", "of", "later", "views", "in", "the", "collection", "in", "order", "to", "keep", "the", "children", "in", "sync", "with", "the", "collection", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18767-L18794", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a fragment buffer from the currently buffered children", "docstring_tokens": ["Create", "a", "fragment", "buffer", "from", "the", "currently", "buffered", "children"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18814-L18820", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Append the HTML to the collection's `el`. Override this method to do something other than `.append`.", "docstring_tokens": ["Append", "the", "HTML", "to", "the", "collection", "s", "el", ".", "Override", "this", "method", "to", "do", "something", "other", "than", ".", "append", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18825-L18839", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal method. Check whether we need to insert the view into the correct position.", "docstring_tokens": ["Internal", "method", ".", "Check", "whether", "we", "need", "to", "insert", "the", "view", "into", "the", "correct", "position", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18843-L18859", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handle cleanup and other destroying needs for the collection of views", "docstring_tokens": ["Handle", "cleanup", "and", "other", "destroying", "needs", "for", "the", "collection", "of", "views"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18873-L18881", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Destroy the child views that this collection view is holding on to, if any", "docstring_tokens": ["Destroy", "the", "child", "views", "that", "this", "collection", "view", "is", "holding", "on", "to", "if", "any"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18885-L18900", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Configured the initial events that the composite view binds to. Override this method to prevent the initial events, or to add your own initial events.", "docstring_tokens": ["Configured", "the", "initial", "events", "that", "the", "composite", "view", "binds", "to", ".", "Override", "this", "method", "to", "prevent", "the", "initial", "events", "or", "to", "add", "your", "own", "initial", "events", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L18974-L18988", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Serialize the model for the view. You can override the `serializeData` method in your own view definition, to provide custom serialization for your view's data.", "docstring_tokens": ["Serialize", "the", "model", "for", "the", "view", ".", "You", "can", "override", "the", "serializeData", "method", "in", "your", "own", "view", "definition", "to", "provide", "custom", "serialization", "for", "your", "view", "s", "data", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19003-L19011", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Renders the model and the collection.", "docstring_tokens": ["Renders", "the", "model", "and", "the", "collection", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19014-L19028", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Render the root template that the children views are appended to", "docstring_tokens": ["Render", "the", "root", "template", "that", "the", "children", "views", "are", "appended", "to"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19038-L19054", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Ensure the regions are available when the `initialize` method is called.", "docstring_tokens": ["Ensure", "the", "regions", "are", "available", "when", "the", "initialize", "method", "is", "called", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19160-L19167", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "LayoutView's render will use the existing region objects the first time it is called. Subsequent calls will destroy the views that the regions are showing and then reset the `el` for the regions to the newly rendered DOM elements.", "docstring_tokens": ["LayoutView", "s", "render", "will", "use", "the", "existing", "region", "objects", "the", "first", "time", "it", "is", "called", ".", "Subsequent", "calls", "will", "destroy", "the", "views", "that", "the", "regions", "are", "showing", "and", "then", "reset", "the", "el", "for", "the", "regions", "to", "the", "newly", "rendered", "DOM", "elements", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19173-L19187", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handle destroying regions, and then destroy the view itself.", "docstring_tokens": ["Handle", "destroying", "regions", "and", "then", "destroy", "the", "view", "itself", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19190-L19199", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "internal method to build regions", "docstring_tokens": ["internal", "method", "to", "build", "regions"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19242-L19249", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal method to initialize the regions that have been defined in a `regions` attribute on this layoutView.", "docstring_tokens": ["Internal", "method", "to", "initialize", "the", "regions", "that", "have", "been", "defined", "in", "a", "regions", "attribute", "on", "this", "layoutView", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19253-L19272", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal method to initialize the region manager and all regions in it", "docstring_tokens": ["Internal", "method", "to", "initialize", "the", "region", "manager", "and", "all", "regions", "in", "it"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19289-L19310", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Takes care of getting the behavior class given options and a key. If a user passes in options.behaviorClass default to using that. Otherwise delegate the lookup to the users `behaviorsLookup` implementation.", "docstring_tokens": ["Takes", "care", "of", "getting", "the", "behavior", "class", "given", "options", "and", "a", "key", ".", "If", "a", "user", "passes", "in", "options", ".", "behaviorClass", "default", "to", "using", "that", ".", "Otherwise", "delegate", "the", "lookup", "to", "the", "users", "behaviorsLookup", "implementation", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19464-L19471", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Iterate over the behaviors object, for each behavior instantiate it and get its grouped behaviors.", "docstring_tokens": ["Iterate", "over", "the", "behaviors", "object", "for", "each", "behavior", "instantiate", "it", "and", "get", "its", "grouped", "behaviors", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19475-L19484", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal method to build all trigger handlers for a given behavior", "docstring_tokens": ["Internal", "method", "to", "build", "all", "trigger", "handlers", "for", "a", "given", "behavior"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19514-L19520", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal method to create and assign the trigger handler for a given behavior", "docstring_tokens": ["Internal", "method", "to", "create", "and", "assign", "the", "trigger", "handler", "for", "a", "given", "behavior"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19524-L19531", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "process the route event and trigger the onRoute method call, if it exists", "docstring_tokens": ["process", "the", "route", "event", "and", "trigger", "the", "onRoute", "method", "call", "if", "it", "exists"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19583-L19590", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a module, attached to the application", "docstring_tokens": ["Create", "a", "module", "attached", "to", "the", "application"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19706-L19716", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal method to initialize the regions that have been defined in a `regions` attribute on the application instance", "docstring_tokens": ["Internal", "method", "to", "initialize", "the", "regions", "that", "have", "been", "defined", "in", "a", "regions", "attribute", "on", "the", "application", "instance"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19727-L19746", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal method to set up the region manager", "docstring_tokens": ["Internal", "method", "to", "set", "up", "the", "region", "manager"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19749-L19770", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Internal method to setup the Wreqr.radio channel", "docstring_tokens": ["Internal", "method", "to", "setup", "the", "Wreqr", ".", "radio", "channel"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19773-L19779", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Stop this module by running its finalizers and then stop all of the sub-modules for this module", "docstring_tokens": ["Stop", "this", "module", "by", "running", "its", "finalizers", "and", "then", "stop", "all", "of", "the", "sub", "-", "modules", "for", "this", "module"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19860-L19879", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a module, hanging off the app parameter as the parent object.", "docstring_tokens": ["Create", "a", "module", "hanging", "off", "the", "app", "parameter", "as", "the", "parent", "object", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19923-L19949", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/marionette-build.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add the module definition and add a startWithParent initializer function. This is complicated because module definitions are heavily overloaded and support an anonymous function, module class, or options object", "docstring_tokens": ["Add", "the", "module", "definition", "and", "add", "a", "startWithParent", "initializer", "function", ".", "This", "is", "complicated", "because", "module", "definitions", "are", "heavily", "overloaded", "and", "support", "an", "anonymous", "function", "module", "class", "or", "options", "object"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/marionette-build.js#L19994-L20003", "partition": "test"} +{"repo": "snapptop/ninjs-lodash", "path": "lib/files/js.js", "func_name": "_sigName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "returns function signature name", "docstring_tokens": ["returns", "function", "signature", "name"], "sha": "fab253b7d96cc9bb3f2a1057efff2684c200bcee", "url": "https://github.com/snapptop/ninjs-lodash/blob/fab253b7d96cc9bb3f2a1057efff2684c200bcee/lib/files/js.js#L54-L59", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/filesystem/HTML5.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the name of the entry, excluding the path leading to it.\n\n@return {String}\nThe entry name.", "docstring_tokens": ["Returns", "the", "name", "of", "the", "entry", "excluding", "the", "path", "leading", "to", "it", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/filesystem/HTML5.js#L133-L142", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/filesystem/HTML5.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Moves the entry to a different location on the file system.\n\n@param {Object} config\nThe object which contains the following config options:\n\n@param {Ext.device.filesystem.DirectoryEntry} config.parent This is required.\nThe directory to which to move the entry.\n\n@param {String} config.newName This is optional.\nThe new name of the entry to move. Defaults to the entry's current name if unspecified.\n\n@param {Function} config.success This is optional.\nThe callback to be called when the entry has been successfully moved.\n\n@param {Ext.device.filesystem.Entry} config.success.entry\nThe entry for the new location.\n\n@param {Function} config.failure This is optional.\nThe callback to be called when an error occurred.\n\n@param {Object} config.failure.error\nThe occurred error.\n\n@param {Object} config.scope\nThe scope object", "docstring_tokens": ["Moves", "the", "entry", "to", "a", "different", "location", "on", "the", "file", "system", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/filesystem/HTML5.js#L195-L234", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/filesystem/HTML5.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Looks up the parent directory containing the entry.\n\n@param {Object} config\nThe object which contains the following config options:\n\n@param {Function} config.success This is required.\nThe callback to be called when the parent directory has been successfully selected.\n\n@param {Ext.device.filesystem.DirectoryEntry} config.success.entry\nThe parent directory of the entry.\n\n@param {Function} config.failure This is optional.\nThe callback to be called when an error occurred.\n\n@param {Object} config.failure.error\nThe occurred error.\n\n@param {Object} config.scope\nThe scope object", "docstring_tokens": ["Looks", "up", "the", "parent", "directory", "containing", "the", "entry", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/filesystem/HTML5.js#L302-L329", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/filesystem/HTML5.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Requests a Directory from the Local File System\n\n@param {Object} config\n\n@param {Object} config.options\nFile creation options {create:true, exclusive:false}\n\n@param {Boolean} config.options.create\nIndicates if the directory should be created if it doesn't exist\n\n@param {Boolean} config.options.exclusive\nUsed with the create option only indicates whether a creation causes an error if the directory already exists\n\n@param {Function} config.success\nThe function called when the Directory is returned successfully\n\n@param {Ext.device.filesystem.DirectoryEntry} config.success.directory\nDirectoryEntry Object\n\n@param {Function} config.failure\nThe function called when the Directory request causes an error\n\n@param {FileError} config.failure.error", "docstring_tokens": ["Requests", "a", "Directory", "from", "the", "Local", "File", "System"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/filesystem/HTML5.js#L368-L395", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/filesystem/HTML5.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Requests a File Handle from the Local File System\n\n@param {Object} config\n\n@param {String} config.file\nFilename optionally including path in string format '/tmp/debug.txt' or a File Object\n\n@param {Object} config.options\nFile creation options {create:true, exclusive:false}\n\n@param {Boolean} config.options.create\nIndicates if the file should be created if it doesn't exist\n\n@param {Boolean} config.options.exclusive\nUsed with the create option only indicates whether a creation causes an error if the file already exists\n\n@param {Function} config.success\nThe function called when the filesystem is returned successfully\n\n@param {FileSystem} config.success.entry\n\n@param {Function} config.failure\nThe function called when the filesystem request causes and error\n\n@param {FileError} config.failure.error", "docstring_tokens": ["Requests", "a", "File", "Handle", "from", "the", "Local", "File", "System"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/filesystem/HTML5.js#L586-L642", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/filesystem/HTML5.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Truncates or extends the file to the specified size in bytes.\nIf the file is extended, the added bytes are null bytes.\n\n@param {Object} config\nThe object which contains the following config options:\n\n@param {Number} config.size This is required.\nThe new file size.\n\n@param {Function} config.success This is optional.\nThe callback to be called when the file size has been successfully changed.\n\n@param {Function} config.failure This is optional.\nThe callback to be called when an error occurred.\n\n@param {Object} config.failure.error\nThe occurred error.\n\n@param {Object} config.scope\nThe scope object", "docstring_tokens": ["Truncates", "or", "extends", "the", "file", "to", "the", "specified", "size", "in", "bytes", ".", "If", "the", "file", "is", "extended", "the", "added", "bytes", "are", "null", "bytes", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/filesystem/HTML5.js#L895-L921", "partition": "test"} +{"repo": "ctr-lang/ctr", "path": "lib/ctr-nodes/helpers/helper-style-default.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "sorts keys for better readablity", "docstring_tokens": ["sorts", "keys", "for", "better", "readablity"], "sha": "f73465cb7420bcc4f18a892a37529b3b366fb08a", "url": "https://github.com/ctr-lang/ctr/blob/f73465cb7420bcc4f18a892a37529b3b366fb08a/lib/ctr-nodes/helpers/helper-style-default.js#L7-L14", "partition": "test"} +{"repo": "cortexjs-legacy/cortex-deps-traveller", "path": "lib/traveller.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "all dependencies done", "docstring_tokens": ["all", "dependencies", "done"], "sha": "1a7977385a7cb61d0f0cc6ea3b2e3c540fe09385", "url": "https://github.com/cortexjs-legacy/cortex-deps-traveller/blob/1a7977385a7cb61d0f0cc6ea3b2e3c540fe09385/lib/traveller.js#L216-L229", "partition": "test"} +{"repo": "rsandor/mkc", "path": "index.js", "func_name": "MultiKeyCache", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Multi-Key LRU cache.\n@class\n@param {object} options Options for the cache.", "docstring_tokens": ["Multi", "-", "Key", "LRU", "cache", "."], "sha": "376c369bf86efab62538e5a8f643c7331563a00a", "url": "https://github.com/rsandor/mkc/blob/376c369bf86efab62538e5a8f643c7331563a00a/index.js#L17-L30", "partition": "test"} +{"repo": "jasmith79/decorators-js", "path": "dist/decorators.js", "func_name": "pipe", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "pipe Forward function composition.", "docstring_tokens": ["pipe", "Forward", "function", "composition", "."], "sha": "9d34c8056f6ffa7dba07cc4e0919e6e243beea33", "url": "https://github.com/jasmith79/decorators-js/blob/9d34c8056f6ffa7dba07cc4e0919e6e243beea33/dist/decorators.js#L225-L243", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "spec/helpers/fixture-utils.js", "func_name": "createRawHtml", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a raw HTML string for a template. A comment containing the el configuration can be inserted into it.\n\nBy default, the comment is inserted at the beginning of the HTML string.\n\n@param {Function} createTemplateFn the function returning the template HTML, except for the el comment. It must\nbe possible to pass the el comment as an insertion. Expected signature:\ncreateTemplateFn( templateLanguage, insertion )\n@param {string} templateLanguage currently supported: \"Handlebars\", \"EJS\" (EJS), \"ES6\". It is up to the template\ncreation function what to make of it (e.g., can be ignored if there are no\ntemplate vars)\n@param {Object} elCommentConfig\n@param {Function} [elCommentConfig.createContent] a function generating the content of the comment which defines\nthe el, except for the outer comment tags (not wrapped in\n\"\"). Called with the data attributes (as a hash).\nExpected signature: createContent( dataAttributes )\n@param {boolean} [elCommentConfig.noComment=false] flag: comment should be omitted\n@param {boolean} [elCommentConfig.trailing=false] flag: comment should be placed at the end of the HTML\n@param {boolean} [elCommentConfig.among=false] flag: comment should be placed inside the HTML\n@param {Object} [dataAttributes] hash containing the data attributes to be set in the comment\n\n@returns {string}", "docstring_tokens": ["Creates", "a", "raw", "HTML", "string", "for", "a", "template", ".", "A", "comment", "containing", "the", "el", "configuration", "can", "be", "inserted", "into", "it", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/spec/helpers/fixture-utils.js#L24-L35", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "spec/helpers/fixture-utils.js", "func_name": "createComplexTemplate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates the content of a complex template. It should contain as many pitfalls for correct processing as possible.\n\nFeatures:\n\n- has a top-level comment (single line)\n- has a top-level comment (multi-line)\n- has a comment containing a tag\n- has numerous top-level tags\n- has text at top level, not enclosed in another tag\n- has tags nested in invalid ways, creating invalid HTML (

        inside

        )\n- has significant whitespace which must be preserved\n- has template vars inside a tag itself (defining attributes)\n- has a template var define the tag type\n- has templating instructions (if/else)\n- has a script tag inside the template, containing Javascript\n- has a reference to a partial template\n\nNB For ES6 templates, only the start and end delimiters used for a variable are supported, other constructs (if, loop,\npartial) are omitted here.\n\n@param {string} templateLanguage values are \"Handlebars\", \"EJS\" (EJS), \"ES6\"\n@param {object} [options]\n@param {string} [options.indentation=\"\"] a string of whitespace, e.g. \" \" or \"\" (no indentation)\n@param {string} [options.insertion=\"\"] an additional string which is inserted somewhere in the middle of the\ncontent (if left undefined, a blank line, plus insertion, appears instead)\n@returns {string}", "docstring_tokens": ["Creates", "the", "content", "of", "a", "complex", "template", ".", "It", "should", "contain", "as", "many", "pitfalls", "for", "correct", "processing", "as", "possible", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/spec/helpers/fixture-utils.js#L65-L114", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "spec/helpers/fixture-utils.js", "func_name": "getTemplateLanguageConstructs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the language constructs for a given template language, for use in template creation.\n\nNB For ES6 templates, only the start and end delimiters used for a variable are supported, other constructs (if, loop,\npartial) are omitted here. Empty strings are returned for the instead.\n\n@param {string} templateLanguage\n@returns {Object}", "docstring_tokens": ["Returns", "the", "language", "constructs", "for", "a", "given", "template", "language", "for", "use", "in", "template", "creation", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/spec/helpers/fixture-utils.js#L125-L172", "partition": "test"} +{"repo": "beyo/model", "path": "lib/model.js", "func_name": "defineModel", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Define a new model prototype.\n\nThis will define a new model\n\n@param {String} modelType the model type name\n@param {Object} options the model options\n@return {Function} the model constructor", "docstring_tokens": ["Define", "a", "new", "model", "prototype", "."], "sha": "625b386b6e1141e1869ede753640850c0c9f0971", "url": "https://github.com/beyo/model/blob/625b386b6e1141e1869ede753640850c0c9f0971/lib/model.js#L88-L159", "partition": "test"} +{"repo": "beyo/model", "path": "lib/model.js", "func_name": "Model", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Base Model function constructor\n\n@param {Object} data the model data", "docstring_tokens": ["Base", "Model", "function", "constructor"], "sha": "625b386b6e1141e1869ede753640850c0c9f0971", "url": "https://github.com/beyo/model/blob/625b386b6e1141e1869ede753640850c0c9f0971/lib/model.js#L439-L507", "partition": "test"} +{"repo": "kuno/node-pachube", "path": "lib/point.js", "func_name": "Point", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create an instance of Point\n\n@constructor {Point}\n@this {Point}\n@param {string} masterApikey Your pachube api key.", "docstring_tokens": ["Create", "an", "instance", "of", "Point"], "sha": "a72d64c6050c372ccbe1c6eb78db665b6afdb66e", "url": "https://github.com/kuno/node-pachube/blob/a72d64c6050c372ccbe1c6eb78db665b6afdb66e/lib/point.js#L17-L21", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/tab/Panel.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Updates this container with the new active item.\n@param {Object} tabBar\n@param {Object} newTab\n@return {Boolean}", "docstring_tokens": ["Updates", "this", "container", "with", "the", "new", "active", "item", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/tab/Panel.js#L203-L210", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/LineSegment.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates new LineSegment out of two points.\n@param {Ext.util.Point} point1\n@param {Ext.util.Point} point2", "docstring_tokens": ["Creates", "new", "LineSegment", "out", "of", "two", "points", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/LineSegment.js#L14-L19", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/LineSegment.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the point where two lines intersect.\n@param {Ext.util.LineSegment} lineSegment The line to intersect with.\n@return {Ext.util.Point}", "docstring_tokens": ["Returns", "the", "point", "where", "two", "lines", "intersect", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/LineSegment.js#L26-L57", "partition": "test"} +{"repo": "jesusprubio/sip-fake-stack", "path": "src/steroidsSocket.js", "func_name": "SteroidsSocket", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Public stuff Constructor", "docstring_tokens": ["Public", "stuff", "Constructor"], "sha": "696754011043a9d75f3cde7de638690a9eca1c81", "url": "https://github.com/jesusprubio/sip-fake-stack/blob/696754011043a9d75f3cde7de638690a9eca1c81/src/steroidsSocket.js#L54-L74", "partition": "test"} +{"repo": "jesusprubio/sip-fake-stack", "path": "src/steroidsSocket.js", "func_name": "timeoutCb", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The libraries don't support any close function, so we need this to emulate it.", "docstring_tokens": ["The", "libraries", "don", "t", "support", "any", "close", "function", "so", "we", "need", "this", "to", "emulate", "it", "."], "sha": "696754011043a9d75f3cde7de638690a9eca1c81", "url": "https://github.com/jesusprubio/sip-fake-stack/blob/696754011043a9d75f3cde7de638690a9eca1c81/src/steroidsSocket.js#L89-L103", "partition": "test"} +{"repo": "shinate/pretty-columns", "path": "index.js", "func_name": "realWidth", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "String real width\n\n@param {string} str\n@returns {number}\n\nEmoji: 2\nDouble-byte character: 2\nOthers: 1", "docstring_tokens": ["String", "real", "width"], "sha": "0caaf212f3db424aa7d5b6352da2c749a4323aad", "url": "https://github.com/shinate/pretty-columns/blob/0caaf212f3db424aa7d5b6352da2c749a4323aad/index.js#L76-L81", "partition": "test"} +{"repo": "impaler/ide-template", "path": "util.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Recursivley copy a folder to a given destination, if there are conflicts prompt the user.\n@param source\n@param destination", "docstring_tokens": ["Recursivley", "copy", "a", "folder", "to", "a", "given", "destination", "if", "there", "are", "conflicts", "prompt", "the", "user", "."], "sha": "d9a9822786075cc0b0de788d8aa4ab2045bf2210", "url": "https://github.com/impaler/ide-template/blob/d9a9822786075cc0b0de788d8aa4ab2045bf2210/util.js#L37-L42", "partition": "test"} +{"repo": "impaler/ide-template", "path": "util.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Shortcut for copying a folder and it's contents recursively to a given destination,\nif the source does not exist, it will do nothing.\n@param source\n@param destination", "docstring_tokens": ["Shortcut", "for", "copying", "a", "folder", "and", "it", "s", "contents", "recursively", "to", "a", "given", "destination", "if", "the", "source", "does", "not", "exist", "it", "will", "do", "nothing", "."], "sha": "d9a9822786075cc0b0de788d8aa4ab2045bf2210", "url": "https://github.com/impaler/ide-template/blob/d9a9822786075cc0b0de788d8aa4ab2045bf2210/util.js#L116-L122", "partition": "test"} +{"repo": "MellowMelon/object-track", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add assignable properties for tracking.", "docstring_tokens": ["Add", "assignable", "properties", "for", "tracking", "."], "sha": "27129c55df889f7d20a0f7da35d77ef21a99d99b", "url": "https://github.com/MellowMelon/object-track/blob/27129c55df889f7d20a0f7da35d77ef21a99d99b/index.js#L55-L73", "partition": "test"} +{"repo": "MellowMelon/object-track", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add callable methods for tracking.", "docstring_tokens": ["Add", "callable", "methods", "for", "tracking", "."], "sha": "27129c55df889f7d20a0f7da35d77ef21a99d99b", "url": "https://github.com/MellowMelon/object-track/blob/27129c55df889f7d20a0f7da35d77ef21a99d99b/index.js#L76-L94", "partition": "test"} +{"repo": "MellowMelon/object-track", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find all existing properties and methods in the object.", "docstring_tokens": ["Find", "all", "existing", "properties", "and", "methods", "in", "the", "object", "."], "sha": "27129c55df889f7d20a0f7da35d77ef21a99d99b", "url": "https://github.com/MellowMelon/object-track/blob/27129c55df889f7d20a0f7da35d77ef21a99d99b/index.js#L97-L111", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/platform/src/data/proxies/SyncProxy.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "JCM constructor should not be async, delay until first operation", "docstring_tokens": ["JCM", "constructor", "should", "not", "be", "async", "delay", "until", "first", "operation"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/platform/src/data/proxies/SyncProxy.js#L14-L41", "partition": "test"} +{"repo": "Katochimoto/xblocks-core", "path": "src/xblocks/block.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Installing a new content.\n@param {string} content", "docstring_tokens": ["Installing", "a", "new", "content", "."], "sha": "714102b7c2adb4ae197403df252e967a1b967bb1", "url": "https://github.com/Katochimoto/xblocks-core/blob/714102b7c2adb4ae197403df252e967a1b967bb1/src/xblocks/block.js#L58-L68", "partition": "test"} +{"repo": "Katochimoto/xblocks-core", "path": "src/xblocks/block.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Getting object properties.\n@returns {Object}\n@readonly", "docstring_tokens": ["Getting", "object", "properties", "."], "sha": "714102b7c2adb4ae197403df252e967a1b967bb1", "url": "https://github.com/Katochimoto/xblocks-core/blob/714102b7c2adb4ae197403df252e967a1b967bb1/src/xblocks/block.js#L88-L104", "partition": "test"} +{"repo": "Katochimoto/xblocks-core", "path": "src/xblocks/block.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Cloning a node.\n@param {boolean} deep true if the content to be saved\n@returns {HTMLElement}", "docstring_tokens": ["Cloning", "a", "node", "."], "sha": "714102b7c2adb4ae197403df252e967a1b967bb1", "url": "https://github.com/Katochimoto/xblocks-core/blob/714102b7c2adb4ae197403df252e967a1b967bb1/src/xblocks/block.js#L142-L158", "partition": "test"} +{"repo": "Katochimoto/xblocks-core", "path": "src/xblocks/block.js", "func_name": "blockInit", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialization of the element.\n@example\nblockInit(node);\n@param {HTMLElement} node\n@returns {boolean}\n@private", "docstring_tokens": ["Initialization", "of", "the", "element", "."], "sha": "714102b7c2adb4ae197403df252e967a1b967bb1", "url": "https://github.com/Katochimoto/xblocks-core/blob/714102b7c2adb4ae197403df252e967a1b967bb1/src/xblocks/block.js#L195-L206", "partition": "test"} +{"repo": "Katochimoto/xblocks-core", "path": "src/xblocks/block.js", "func_name": "blockCreate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creating an item.\n@example\nblockCreate(node);\n@param {HTMLElement} node\n@private", "docstring_tokens": ["Creating", "an", "item", "."], "sha": "714102b7c2adb4ae197403df252e967a1b967bb1", "url": "https://github.com/Katochimoto/xblocks-core/blob/714102b7c2adb4ae197403df252e967a1b967bb1/src/xblocks/block.js#L215-L225", "partition": "test"} +{"repo": "Katochimoto/xblocks-core", "path": "src/xblocks/block.js", "func_name": "accessorsCustomizer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Inheritance events \"set\" property changes.\n@example\n_.mergeWith(objValue, srcValue, accessorsCustomizer);\n@param {Object} [objValue] the current value\n@param {Object} [srcValue] the new value\n@returns {Object}\n@private", "docstring_tokens": ["Inheritance", "events", "set", "property", "changes", "."], "sha": "714102b7c2adb4ae197403df252e967a1b967bb1", "url": "https://github.com/Katochimoto/xblocks-core/blob/714102b7c2adb4ae197403df252e967a1b967bb1/src/xblocks/block.js#L320-L327", "partition": "test"} +{"repo": "Katochimoto/xblocks-core", "path": "src/xblocks/block.js", "func_name": "wrapperEvents", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Implementation of inherited event.\n@example\n// call objFunc, srcFunc\n_.wrap(objFunc, _.wrap(srcFunc, wrapperEvents));\n@param {function} [srcFunc]\n@param {function} [objFunc]\n@param {...*} args\n@private", "docstring_tokens": ["Implementation", "of", "inherited", "event", "."], "sha": "714102b7c2adb4ae197403df252e967a1b967bb1", "url": "https://github.com/Katochimoto/xblocks-core/blob/714102b7c2adb4ae197403df252e967a1b967bb1/src/xblocks/block.js#L339-L350", "partition": "test"} +{"repo": "Katochimoto/xblocks-core", "path": "src/xblocks/block.js", "func_name": "accessorsIterator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The assignment of parameters accessors.\n@example\n_.forEach({}, accessorsIterator);\n@param {Object} options\n@param {string} name\n@param {Object} accessors\n@private", "docstring_tokens": ["The", "assignment", "of", "parameters", "accessors", "."], "sha": "714102b7c2adb4ae197403df252e967a1b967bb1", "url": "https://github.com/Katochimoto/xblocks-core/blob/714102b7c2adb4ae197403df252e967a1b967bb1/src/xblocks/block.js#L361-L368", "partition": "test"} +{"repo": "Katochimoto/xblocks-core", "path": "src/xblocks/block.js", "func_name": "wrapperAccessorsSetUpdate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Update element when a property is changed.\n@example\n// call node.xblock.update();\n_.wrap(\"accessor-name\", wrapperAccessorsSetUpdate).call(node, 'newValue', 'oldValue');\n@param {string} accessorName the name of the property\n@param {*} nextValue\n@param {*} prevValue\n@this HTMLElement\n@private", "docstring_tokens": ["Update", "element", "when", "a", "property", "is", "changed", "."], "sha": "714102b7c2adb4ae197403df252e967a1b967bb1", "url": "https://github.com/Katochimoto/xblocks-core/blob/714102b7c2adb4ae197403df252e967a1b967bb1/src/xblocks/block.js#L381-L385", "partition": "test"} +{"repo": "Katochimoto/xblocks-core", "path": "src/xblocks/block.js", "func_name": "lifecycleRemoved", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The callback of the remote in DOM.\n@this HTMLElement\n@private", "docstring_tokens": ["The", "callback", "of", "the", "remote", "in", "DOM", "."], "sha": "714102b7c2adb4ae197403df252e967a1b967bb1", "url": "https://github.com/Katochimoto/xblocks-core/blob/714102b7c2adb4ae197403df252e967a1b967bb1/src/xblocks/block.js#L392-L401", "partition": "test"} +{"repo": "Katochimoto/xblocks-core", "path": "src/xblocks/block.js", "func_name": "lifecycleInserted", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The callback of the insert in DOM.\n@this HTMLElement\n@private", "docstring_tokens": ["The", "callback", "of", "the", "insert", "in", "DOM", "."], "sha": "714102b7c2adb4ae197403df252e967a1b967bb1", "url": "https://github.com/Katochimoto/xblocks-core/blob/714102b7c2adb4ae197403df252e967a1b967bb1/src/xblocks/block.js#L417-L436", "partition": "test"} +{"repo": "Industryswarm/isnode-mod-utilities", "path": "lib/node-rsa/src/utils.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns copy of `obj` without `removeProp` field.\n@param obj\n@param removeProp\n@returns Object", "docstring_tokens": ["Returns", "copy", "of", "obj", "without", "removeProp", "field", "."], "sha": "cc2164117e1c20bcbf29653d38f1f968648cf234", "url": "https://github.com/Industryswarm/isnode-mod-utilities/blob/cc2164117e1c20bcbf29653d38f1f968648cf234/lib/node-rsa/src/utils.js#L76-L86", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "spec/helpers/various-utils.js", "func_name": "toDashedProperties", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a transformed hash in which all camelCased property names have been replaced by dashed property names. The\ninput hash remains untouched.\n\nProperty values are not modified.\n\nSimple implementation, but good enough for the attribute names we deal with here.\n\nExample: { fooBar: \"whatEver\" } => { \"foo-bar\": \"whatEver\" }\n\n@param {Object} hash\n@returns {Object}", "docstring_tokens": ["Returns", "a", "transformed", "hash", "in", "which", "all", "camelCased", "property", "names", "have", "been", "replaced", "by", "dashed", "property", "names", ".", "The", "input", "hash", "remains", "untouched", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/spec/helpers/various-utils.js#L111-L119", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "spec/helpers/various-utils.js", "func_name": "toCamelCasedProperties", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a transformed hash in which all dashed property names have been replaced by camelCased property names. The\ninput hash remains untouched.\n\nProperty values are not modified.\n\nSimple implementation, but good enough for the attribute names we deal with here.\n\nExample: { \"foo-bar\": \"what-ever\" } => { fooBar: \"what-ever\" }\n\n@param {Object} hash\n@returns {Object}", "docstring_tokens": ["Returns", "a", "transformed", "hash", "in", "which", "all", "dashed", "property", "names", "have", "been", "replaced", "by", "camelCased", "property", "names", ".", "The", "input", "hash", "remains", "untouched", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/spec/helpers/various-utils.js#L134-L142", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "spec/helpers/various-utils.js", "func_name": "dashedKeyAlternatives", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an array of dashed key names, which are the alternative names for all camel-cased key names in a hash.\n\nSimple key names (not camel-cased) are ignored and don't show up in the array.\n\nE.g., dashedKeyAlternatives( { foo: \"whatever\", barBaz: \"whatever\" } ) returns [ \"bar-baz\" ].\n\n@param {Object} hash\n@returns {string[]}", "docstring_tokens": ["Returns", "an", "array", "of", "dashed", "key", "names", "which", "are", "the", "alternative", "names", "for", "all", "camel", "-", "cased", "key", "names", "in", "a", "hash", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/spec/helpers/various-utils.js#L182-L187", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/ComponentQuery.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an array of matched Components from within the passed root object.\n\nThis method filters returned Components in a similar way to how CSS selector based DOM\nqueries work using a textual selector string.\n\nSee class summary for details.\n\n@param {String} selector The selector string to filter returned Components\n@param {Ext.Container} root The Container within which to perform the query.\nIf omitted, all Components within the document are included in the search.\n\nThis parameter may also be an array of Components to filter according to the selector.\n@return {Ext.Component[]} The matched Components.\n\n@member Ext.ComponentQuery", "docstring_tokens": ["Returns", "an", "array", "of", "matched", "Components", "from", "within", "the", "passed", "root", "object", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/ComponentQuery.js#L433-L466", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/ComponentQuery.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Tests whether the passed Component matches the selector string.\n@param {Ext.Component} component The Component to test.\n@param {String} selector The selector string to test against.\n@return {Boolean} `true` if the Component matches the selector.\n@member Ext.ComponentQuery", "docstring_tokens": ["Tests", "whether", "the", "passed", "Component", "matches", "the", "selector", "string", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/ComponentQuery.js#L475-L484", "partition": "test"} +{"repo": "MicroMinion/mm-services-kademlia", "path": "src/telemetry/router-decorator.js", "func_name": "RouterDecorator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a decorated router that wraps node selection\n@constructor\n@param {kad.Router} Router", "docstring_tokens": ["Returns", "a", "decorated", "router", "that", "wraps", "node", "selection"], "sha": "05792cbc0351ab7d5ca3491cb0a7ff83a95c3407", "url": "https://github.com/MicroMinion/mm-services-kademlia/blob/05792cbc0351ab7d5ca3491cb0a7ff83a95c3407/src/telemetry/router-decorator.js#L15-L109", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/sqlite/Sencha.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Executes an SQL statement.\n\n@param {Object} config\nThe object which contains the following config options:\n\n@param {String} config.sqlStatement This is required.\nThe SQL statement to execute.\n\n@param {Array} config.arguments This is optional.\nThe arguments array to bind each '?' placeholder in the SQL statement.\n\n@param {Function} config.callback This is optional.\nThe callback to be called when the SQL statement succeeded.\n\n@param {Ext.device.sqlite.SQLTransaction} config.callback.transaction\nThe transaction of the SQL statement.\n\n@param {Ext.device.sqlite.SQLTransaction} config.callback.resultSet\nThe result of the SQL statement.\n\n@param {Function} config.failure This is optional.\nThe callback to be called when an error occurred.\nIf the callback returns false, next SQL statement will be executed.\n\n@param {Ext.device.sqlite.SQLTransaction} config.failure.transaction\nThe transaction of the SQL statement.\n\n@param {Object} config.failure.error\nThe occurred error.\n\n@param {Object} config.scope\nThe scope object", "docstring_tokens": ["Executes", "an", "SQL", "statement", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/sqlite/Sencha.js#L386-L404", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/sqlite/Sencha.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a row at specified index returned by the SQL statement.\nIf there is no such row, returns null.\n\n@param {Number} index This is required.\nThe index of a row.\n\n@return {Object}\nThe row.", "docstring_tokens": ["Returns", "a", "row", "at", "specified", "index", "returned", "by", "the", "SQL", "statement", ".", "If", "there", "is", "no", "such", "row", "returns", "null", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/sqlite/Sencha.js#L490-L502", "partition": "test"} +{"repo": "MiguelCastillo/loggero", "path": "src/index.js", "func_name": "createPayload", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Function that create a JSON structure to be logged\n\n@param {string} name - Name of the logger\n@param {int} level - Logging level. E.g. log, warn, error\n@param {object} data - application data to be logged\n\n@returns {{date: Date, level: int, name: string, data: object}}\nMeta data to be logged", "docstring_tokens": ["Function", "that", "create", "a", "JSON", "structure", "to", "be", "logged"], "sha": "3c9795d81a5a563c14cacbd0e7b015d50ae32766", "url": "https://github.com/MiguelCastillo/loggero/blob/3c9795d81a5a563c14cacbd0e7b015d50ae32766/src/index.js#L195-L202", "partition": "test"} +{"repo": "phillt/project-helpers", "path": "js/helpers.js", "func_name": "__ENFORCETYPE", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Takes the arguments of a function ensures that the type provided is the type\nbeing bassed.\n@function\n@param {object} a - The arguments object of the function.\n@param {string} [types] - The types of variables you are expecting. (string, array, object, null, number)", "docstring_tokens": ["Takes", "the", "arguments", "of", "a", "function", "ensures", "that", "the", "type", "provided", "is", "the", "type", "being", "bassed", "."], "sha": "66c865e25e0fe1cc8a0a25b4a2dcbac53dec8ad6", "url": "https://github.com/phillt/project-helpers/blob/66c865e25e0fe1cc8a0a25b4a2dcbac53dec8ad6/js/helpers.js#L351-L411", "partition": "test"} +{"repo": "NFNChris/json-transmute", "path": "index.js", "func_name": "assign", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Ensure object tree exists as dictated by the key", "docstring_tokens": ["Ensure", "object", "tree", "exists", "as", "dictated", "by", "the", "key"], "sha": "ae8f9015b2fd43b9982e60080e9d196b2937f690", "url": "https://github.com/NFNChris/json-transmute/blob/ae8f9015b2fd43b9982e60080e9d196b2937f690/index.js#L105-L125", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/NodeStore.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is a custom tree sorting algorithm. It uses the index property on each node to determine\nhow to sort siblings. It uses the depth property plus the index to create a weight for each node.\nThis weight algorithm has the limitation of not being able to go more then 80 levels in depth, or\nmore then 10k nodes per parent. The end result is a flat collection being correctly sorted based\non this one single sort function.\n@param {Ext.data.NodeInterface} node1\n@param {Ext.data.NodeInterface} node2\n@return {Number}\n@private", "docstring_tokens": ["This", "is", "a", "custom", "tree", "sorting", "algorithm", ".", "It", "uses", "the", "index", "property", "on", "each", "node", "to", "determine", "how", "to", "sort", "siblings", ".", "It", "uses", "the", "depth", "property", "plus", "the", "index", "to", "create", "a", "weight", "for", "each", "node", ".", "This", "weight", "algorithm", "has", "the", "limitation", "of", "not", "being", "able", "to", "go", "more", "then", "80", "levels", "in", "depth", "or", "more", "then", "10k", "nodes", "per", "parent", ".", "The", "end", "result", "is", "a", "flat", "collection", "being", "correctly", "sorted", "based", "on", "this", "one", "single", "sort", "function", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/NodeStore.js#L116-L144", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/NodeStore.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Private method used to deeply retrieve the children of a record without recursion.\n@private\n@param {Ext.data.NodeInterface} root\n@return {Array}", "docstring_tokens": ["Private", "method", "used", "to", "deeply", "retrieve", "the", "children", "of", "a", "record", "without", "recursion", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/NodeStore.js#L223-L259", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/filesystem/Chrome.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Requests access to the Local File System\n\nvar me = this;\nvar fs = Ext.create(\"Ext.device.File\", {});\nfs.requestFileSystem({\ntype: window.PERSISTENT,\nsize: 1024 * 1024,\nsuccess: function(fileSystem) {\nme.fs = fileSystem;\n},\nfailure: function(err) {\nconsole.log(\"FileSystem Failure: \" + err.code);\n}\n});\n\n\n@param {Object} config An object which contains the follow options\n@param {Number} config.type\nwindow.TEMPORARY (0) or window.PERSISTENT (1)\n\n@param {Number} config.size\nStorage space, in Bytes, needed by the application\n\n@param {Function} config.success\nThe function called when the filesystem is returned successfully\n\n@param {FileSystem} config.success.fs\n\n@param {Function} config.failure\nThe function called when the filesystem request causes and error\n\n@param {FileError} config.failure.error", "docstring_tokens": ["Requests", "access", "to", "the", "Local", "File", "System"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/filesystem/Chrome.js#L41-L78", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/proxy/Ajax.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Performs Ajax request.\n@protected\n@param {Ext.data.Operation} operation\n@param {Function} callback\n@param {Object} scope\n@return {Object}", "docstring_tokens": ["Performs", "Ajax", "request", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/proxy/Ajax.js#L292-L319", "partition": "test"} +{"repo": "akshaylive/live.io", "path": "example/ChatExample/app/controllers/errors.server.controller.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get unique error field name", "docstring_tokens": ["Get", "unique", "error", "field", "name"], "sha": "44f68d61eb47d06cef1e2b7bb7d026cd204b72d2", "url": "https://github.com/akshaylive/live.io/blob/44f68d61eb47d06cef1e2b7bb7d026cd204b72d2/example/ChatExample/app/controllers/errors.server.controller.js#L6-L18", "partition": "test"} +{"repo": "ralt/tartempion", "path": "cli/project.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a project with the default files and folders.\n\nThe default hierarchy can be found in the folder cli/default/\nof the tartempion module.\n\nThe only thing to dynamically create is the package.json file.", "docstring_tokens": ["Create", "a", "project", "with", "the", "default", "files", "and", "folders", "."], "sha": "0de497437261229575d40f49f20f9630bf6053e2", "url": "https://github.com/ralt/tartempion/blob/0de497437261229575d40f49f20f9630bf6053e2/cli/project.js#L16-L54", "partition": "test"} +{"repo": "gulp-cookery/gulp-ccr-browserify", "path": "index.js", "func_name": "prewatch", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add watchify args", "docstring_tokens": ["Add", "watchify", "args"], "sha": "f03736aba15e5bdd70c3982dec32833044943435", "url": "https://github.com/gulp-cookery/gulp-ccr-browserify/blob/f03736aba15e5bdd70c3982dec32833044943435/index.js#L463-L468", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/mixin/Filterable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method inserts all the filters in the passed array at the given index.\n@param {Number} index The index at which to insert the filters.\n@param {Array} filters Each filter can be an instance of {@link Ext.util.Filter},\nan object representing an Ext.util.Filter configuration, or a filter function.\n@return {Array}", "docstring_tokens": ["This", "method", "inserts", "all", "the", "filters", "in", "the", "passed", "array", "at", "the", "given", "index", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/mixin/Filterable.js#L115-L184", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/mixin/Filterable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method removes all the filters in a passed array.\n@param {Array} filters Each value in the array can be a string (property name),\nfunction (sorterFn), an object containing a property and value keys or\n{@link Ext.util.Sorter Sorter} instance.", "docstring_tokens": ["This", "method", "removes", "all", "the", "filters", "in", "a", "passed", "array", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/mixin/Filterable.js#L192-L236", "partition": "test"} +{"repo": "Katochimoto/xblocks-core", "path": "src/xblocks/view.js", "func_name": "wrapperMergeResult", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The implementation of the merger result.\n@example\n// call objFunc, srcFunc\n_.wrap(objFunc, _.wrap(srcFunc, wrapperMergeResult));\n@param {function} [srcFunc]\n@param {function} [objFunc]\n@param {...*} args\n@returns {Object}\n@private", "docstring_tokens": ["The", "implementation", "of", "the", "merger", "result", "."], "sha": "714102b7c2adb4ae197403df252e967a1b967bb1", "url": "https://github.com/Katochimoto/xblocks-core/blob/714102b7c2adb4ae197403df252e967a1b967bb1/src/xblocks/view.js#L208-L221", "partition": "test"} +{"repo": "Katochimoto/xblocks-core", "path": "src/xblocks/view.js", "func_name": "wrapperOrResult", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Merging the result of the logical \"or\".\n@example\n// call objFunc, srcFunc\n_.wrap(objFunc, _.wrap(srcFunc, wrapperOrResult));\n@param {function} [srcFunc]\n@param {function} [objFunc]\n@param {...*} args\n@returns {boolean}\n@private", "docstring_tokens": ["Merging", "the", "result", "of", "the", "logical", "or", "."], "sha": "714102b7c2adb4ae197403df252e967a1b967bb1", "url": "https://github.com/Katochimoto/xblocks-core/blob/714102b7c2adb4ae197403df252e967a1b967bb1/src/xblocks/view.js#L234-L247", "partition": "test"} +{"repo": "bvellacott/sforce-mocks", "path": "mocks.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A mock of the ember Snapshot object", "docstring_tokens": ["A", "mock", "of", "the", "ember", "Snapshot", "object"], "sha": "d49129d81cb41a820621a4cf38766f0e85db7f43", "url": "https://github.com/bvellacott/sforce-mocks/blob/d49129d81cb41a820621a4cf38766f0e85db7f43/mocks.js#L30-L40", "partition": "test"} +{"repo": "bvellacott/sforce-mocks", "path": "mocks.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Normalises a json string to a valid deserialisable json string", "docstring_tokens": ["Normalises", "a", "json", "string", "to", "a", "valid", "deserialisable", "json", "string"], "sha": "d49129d81cb41a820621a4cf38766f0e85db7f43", "url": "https://github.com/bvellacott/sforce-mocks/blob/d49129d81cb41a820621a4cf38766f0e85db7f43/mocks.js#L46-L51", "partition": "test"} +{"repo": "bvellacott/sforce-mocks", "path": "mocks.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A mock of the salesforce SObject object", "docstring_tokens": ["A", "mock", "of", "the", "salesforce", "SObject", "object"], "sha": "d49129d81cb41a820621a4cf38766f0e85db7f43", "url": "https://github.com/bvellacott/sforce-mocks/blob/d49129d81cb41a820621a4cf38766f0e85db7f43/mocks.js#L53-L58", "partition": "test"} +{"repo": "bvellacott/sforce-mocks", "path": "mocks.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generates a new fake salesforce id", "docstring_tokens": ["Generates", "a", "new", "fake", "salesforce", "id"], "sha": "d49129d81cb41a820621a4cf38766f0e85db7f43", "url": "https://github.com/bvellacott/sforce-mocks/blob/d49129d81cb41a820621a4cf38766f0e85db7f43/mocks.js#L90-L93", "partition": "test"} +{"repo": "bvellacott/sforce-mocks", "path": "mocks.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an antlr4 parse tree for a select query string", "docstring_tokens": ["Returns", "an", "antlr4", "parse", "tree", "for", "a", "select", "query", "string"], "sha": "d49129d81cb41a820621a4cf38766f0e85db7f43", "url": "https://github.com/bvellacott/sforce-mocks/blob/d49129d81cb41a820621a4cf38766f0e85db7f43/mocks.js#L95-L102", "partition": "test"} +{"repo": "bvellacott/sforce-mocks", "path": "mocks.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validates a given objects against the schema", "docstring_tokens": ["Validates", "a", "given", "objects", "against", "the", "schema"], "sha": "d49129d81cb41a820621a4cf38766f0e85db7f43", "url": "https://github.com/bvellacott/sforce-mocks/blob/d49129d81cb41a820621a4cf38766f0e85db7f43/mocks.js#L104-L123", "partition": "test"} +{"repo": "bvellacott/sforce-mocks", "path": "mocks.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validates a list of field names against a type in the schema", "docstring_tokens": ["Validates", "a", "list", "of", "field", "names", "against", "a", "type", "in", "the", "schema"], "sha": "d49129d81cb41a820621a4cf38766f0e85db7f43", "url": "https://github.com/bvellacott/sforce-mocks/blob/d49129d81cb41a820621a4cf38766f0e85db7f43/mocks.js#L125-L128", "partition": "test"} +{"repo": "bvellacott/sforce-mocks", "path": "mocks.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validates a field name against a type in the schema", "docstring_tokens": ["Validates", "a", "field", "name", "against", "a", "type", "in", "the", "schema"], "sha": "d49129d81cb41a820621a4cf38766f0e85db7f43", "url": "https://github.com/bvellacott/sforce-mocks/blob/d49129d81cb41a820621a4cf38766f0e85db7f43/mocks.js#L130-L136", "partition": "test"} +{"repo": "bvellacott/sforce-mocks", "path": "mocks.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validates a relationship name against a type in the schema", "docstring_tokens": ["Validates", "a", "relationship", "name", "against", "a", "type", "in", "the", "schema"], "sha": "d49129d81cb41a820621a4cf38766f0e85db7f43", "url": "https://github.com/bvellacott/sforce-mocks/blob/d49129d81cb41a820621a4cf38766f0e85db7f43/mocks.js#L138-L144", "partition": "test"} +{"repo": "bvellacott/sforce-mocks", "path": "mocks.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get all SObjects of the given type", "docstring_tokens": ["Get", "all", "SObjects", "of", "the", "given", "type"], "sha": "d49129d81cb41a820621a4cf38766f0e85db7f43", "url": "https://github.com/bvellacott/sforce-mocks/blob/d49129d81cb41a820621a4cf38766f0e85db7f43/mocks.js#L146-L151", "partition": "test"} +{"repo": "bvellacott/sforce-mocks", "path": "mocks.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a wrapped result in the form that you would expect the salesforce soap api to return a result", "docstring_tokens": ["Creates", "a", "wrapped", "result", "in", "the", "form", "that", "you", "would", "expect", "the", "salesforce", "soap", "api", "to", "return", "a", "result"], "sha": "d49129d81cb41a820621a4cf38766f0e85db7f43", "url": "https://github.com/bvellacott/sforce-mocks/blob/d49129d81cb41a820621a4cf38766f0e85db7f43/mocks.js#L246-L267", "partition": "test"} +{"repo": "bvellacott/sforce-mocks", "path": "mocks.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Runs the conditions in the condition set and returns a boolean as a result", "docstring_tokens": ["Runs", "the", "conditions", "in", "the", "condition", "set", "and", "returns", "a", "boolean", "as", "a", "result"], "sha": "d49129d81cb41a820621a4cf38766f0e85db7f43", "url": "https://github.com/bvellacott/sforce-mocks/blob/d49129d81cb41a820621a4cf38766f0e85db7f43/mocks.js#L390-L399", "partition": "test"} +{"repo": "luics/markdown-util", "path": "lib/tpl/md-plugin.js", "func_name": "addContents", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add Contents for page", "docstring_tokens": ["Add", "Contents", "for", "page"], "sha": "74eddaefe769d74c852c1e2f20ee2f915662e534", "url": "https://github.com/luics/markdown-util/blob/74eddaefe769d74c852c1e2f20ee2f915662e534/lib/tpl/md-plugin.js#L64-L123", "partition": "test"} +{"repo": "luics/markdown-util", "path": "lib/tpl/md-plugin.js", "func_name": "addTop", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add \"to Top\" link for mark h", "docstring_tokens": ["Add", "to", "Top", "link", "for", "mark", "h"], "sha": "74eddaefe769d74c852c1e2f20ee2f915662e534", "url": "https://github.com/luics/markdown-util/blob/74eddaefe769d74c852c1e2f20ee2f915662e534/lib/tpl/md-plugin.js#L128-L153", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/direct/RemotingProvider.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize the API\n@private", "docstring_tokens": ["Initialize", "the", "API"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/direct/RemotingProvider.js#L165-L185", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/direct/RemotingProvider.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Run any callbacks related to the transaction.\n@private\n@param {Ext.direct.Transaction} transaction The transaction\n@param {Ext.direct.Event} event The event", "docstring_tokens": ["Run", "any", "callbacks", "related", "to", "the", "transaction", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/direct/RemotingProvider.js#L250-L267", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/direct/RemotingProvider.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "React to the AJAX request being completed.\n@private", "docstring_tokens": ["React", "to", "the", "AJAX", "request", "being", "completed", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/direct/RemotingProvider.js#L273-L313", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/direct/RemotingProvider.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get transaction from XHR options.\n@private\n@param {Object} options The options sent to the AJAX request.\n@return {Ext.direct.Transaction/null} The transaction, `null` if not found.", "docstring_tokens": ["Get", "transaction", "from", "XHR", "options", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/direct/RemotingProvider.js#L321-L323", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/direct/RemotingProvider.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Configure a direct request.\n@private\n@param {String} action The action being executed.\n@param {Object} method The method being executed.\n@param {Array} args", "docstring_tokens": ["Configure", "a", "direct", "request", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/direct/RemotingProvider.js#L332-L354", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/direct/RemotingProvider.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the AJAX call info for a transaction.\n@private\n@param {Ext.direct.Transaction} transaction The transaction.\n@return {Object} The call params.", "docstring_tokens": ["Gets", "the", "AJAX", "call", "info", "for", "a", "transaction", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/direct/RemotingProvider.js#L362-L370", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/direct/RemotingProvider.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add a new transaction to the queue.\n@private\n@param {Ext.direct.Transaction} transaction The transaction.", "docstring_tokens": ["Add", "a", "new", "transaction", "to", "the", "queue", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/direct/RemotingProvider.js#L415-L433", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/direct/RemotingProvider.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Combine any buffered requests and send them off.\n@private", "docstring_tokens": ["Combine", "any", "buffered", "requests", "and", "send", "them", "off", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/direct/RemotingProvider.js#L439-L447", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/direct/RemotingProvider.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Configure a form submission request\n\n@param {String} action The action being executed\n@param {Object} method The method being executed\n@param {HTMLElement} form The form being submitted\n@param {Function} [callback] A callback to run after the form submits\n@param {Object} [scope] A scope to execute the callback in\n\n@private", "docstring_tokens": ["Configure", "a", "form", "submission", "request"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/direct/RemotingProvider.js#L460-L496", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/direct/RemotingProvider.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sends a form request\n\n@param {Ext.direct.Transaction} transaction The transaction to send\n\n@private", "docstring_tokens": ["Sends", "a", "form", "request"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/direct/RemotingProvider.js#L505-L517", "partition": "test"} +{"repo": "hszy00232/postcss-inline-block", "path": "index.js", "func_name": "inlineBlockFix", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Work with options here", "docstring_tokens": ["Work", "with", "options", "here"], "sha": "a27f67b773bc9510d1802acc5822e8408fa40c59", "url": "https://github.com/hszy00232/postcss-inline-block/blob/a27f67b773bc9510d1802acc5822e8408fa40c59/index.js#L6-L18", "partition": "test"} +{"repo": "impaler/ide-template", "path": "ide/webstorm/webstorm.js", "func_name": "stubPlainTextFiles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "When generating the .idea project WebStorm will remove any plain text files specified\non first open if they do not exist.\nFor example this lets files from a build be marked as plain text before they exist\nby stubbing an empty file at their expected position.\n@param resourceRoots\n@param destination", "docstring_tokens": ["When", "generating", "the", ".", "idea", "project", "WebStorm", "will", "remove", "any", "plain", "text", "files", "specified", "on", "first", "open", "if", "they", "do", "not", "exist", ".", "For", "example", "this", "lets", "files", "from", "a", "build", "be", "marked", "as", "plain", "text", "before", "they", "exist", "by", "stubbing", "an", "empty", "file", "at", "their", "expected", "position", "."], "sha": "d9a9822786075cc0b0de788d8aa4ab2045bf2210", "url": "https://github.com/impaler/ide-template/blob/d9a9822786075cc0b0de788d8aa4ab2045bf2210/ide/webstorm/webstorm.js#L281-L295", "partition": "test"} +{"repo": "impaler/ide-template", "path": "ide/webstorm/webstorm.js", "func_name": "resolveJetbrainsExe", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check if a Webstorm.exe exists in a given windows program files directory.\n@param {string} Jetbrains install directory eg, C:/Program Files/JetBrains.\n@returns {string|boolean} A true concatenated path where found, else false.", "docstring_tokens": ["Check", "if", "a", "Webstorm", ".", "exe", "exists", "in", "a", "given", "windows", "program", "files", "directory", "."], "sha": "d9a9822786075cc0b0de788d8aa4ab2045bf2210", "url": "https://github.com/impaler/ide-template/blob/d9a9822786075cc0b0de788d8aa4ab2045bf2210/ide/webstorm/webstorm.js#L347-L364", "partition": "test"} +{"repo": "jsantell/GhostTrain", "path": "lib/route.js", "func_name": "Route", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Mostly from Express' router `Route`.\n\nInitialize `Route` with the given HTTP `method`, `path`,\nand an array of `callbacks` and `options`.\n\nOptions:\n\n- `sensitive` enable case-sensitive routes\n- `strict` enable strict matching for trailing slashes\n\n@param {String} method\n@param {String} path\n@param {Array} callbacks\n@param {Object} options", "docstring_tokens": ["Mostly", "from", "Express", "router", "Route", "."], "sha": "e69b6cc33669035c1d571bff3805e1b6d8a50ccb", "url": "https://github.com/jsantell/GhostTrain/blob/e69b6cc33669035c1d571bff3805e1b6d8a50ccb/lib/route.js#L20-L25", "partition": "test"} +{"repo": "MicroMinion/mm-services-kademlia", "path": "src/telemetry/transport-decorator.js", "func_name": "TransportDecorator", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a decorated transport adapter that writes telemetry data\n@constructor\n@param {kad.RPC} Transport", "docstring_tokens": ["Returns", "a", "decorated", "transport", "adapter", "that", "writes", "telemetry", "data"], "sha": "05792cbc0351ab7d5ca3491cb0a7ff83a95c3407", "url": "https://github.com/MicroMinion/mm-services-kademlia/blob/05792cbc0351ab7d5ca3491cb0a7ff83a95c3407/src/telemetry/transport-decorator.js#L17-L69", "partition": "test"} +{"repo": "aldeste/dinosaur-fetcher", "path": "src/index.js", "func_name": "getRandomArrValue", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get a random value from an array\n@param {Array} arr Array of values\n@param {Number} min Minimum key value\n@param {Number} max Maximum key value\n@return Random value from initial array", "docstring_tokens": ["Get", "a", "random", "value", "from", "an", "array"], "sha": "7eeebacdcdfc3808a9728099160a310246bdbdb6", "url": "https://github.com/aldeste/dinosaur-fetcher/blob/7eeebacdcdfc3808a9728099160a310246bdbdb6/src/index.js#L22-L24", "partition": "test"} +{"repo": "aldeste/dinosaur-fetcher", "path": "src/index.js", "func_name": "random", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a random dinosaur or more random dinosaurs if number is set\n@param {Number} number If set, returns an array of dinosaurs\n@return {String|Array} Single dinosaur or array of dinosaurs", "docstring_tokens": ["Returns", "a", "random", "dinosaur", "or", "more", "random", "dinosaurs", "if", "number", "is", "set"], "sha": "7eeebacdcdfc3808a9728099160a310246bdbdb6", "url": "https://github.com/aldeste/dinosaur-fetcher/blob/7eeebacdcdfc3808a9728099160a310246bdbdb6/src/index.js#L31-L42", "partition": "test"} +{"repo": "jsantell/GhostTrain", "path": "lib/response.js", "func_name": "Response", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Shims features of Express's `response` object in routes.\nAccepts a `callback` function to be called with the data to send.\n\n@param {Object} ghosttrain\n@param {Function} callback\n@return {Object}", "docstring_tokens": ["Shims", "features", "of", "Express", "s", "response", "object", "in", "routes", ".", "Accepts", "a", "callback", "function", "to", "be", "called", "with", "the", "data", "to", "send", "."], "sha": "e69b6cc33669035c1d571bff3805e1b6d8a50ccb", "url": "https://github.com/jsantell/GhostTrain/blob/e69b6cc33669035c1d571bff3805e1b6d8a50ccb/lib/response.js#L14-L21", "partition": "test"} +{"repo": "jsantell/GhostTrain", "path": "lib/response.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sends a response\n\nExamples:\nres.send({})\nres.send('text')\nres.send(404, 'Message')\nres.send(200)\n\n@param {Mixed} body or status code\n@param {Mixed} body\n@return {Response}", "docstring_tokens": ["Sends", "a", "response"], "sha": "e69b6cc33669035c1d571bff3805e1b6d8a50ccb", "url": "https://github.com/jsantell/GhostTrain/blob/e69b6cc33669035c1d571bff3805e1b6d8a50ccb/lib/response.js#L40-L79", "partition": "test"} +{"repo": "jsantell/GhostTrain", "path": "lib/response.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sends a JSON response\n\nExamples:\nres.json(null);\nres.json({});\nres.json(200, 'text');\nres.json(404, 'woops');\n\n@param {Mixed} body or status code\n@param {Mixed} object data\n@return {Response}", "docstring_tokens": ["Sends", "a", "JSON", "response"], "sha": "e69b6cc33669035c1d571bff3805e1b6d8a50ccb", "url": "https://github.com/jsantell/GhostTrain/blob/e69b6cc33669035c1d571bff3805e1b6d8a50ccb/lib/response.js#L95-L108", "partition": "test"} +{"repo": "jsantell/GhostTrain", "path": "lib/response.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets `field` header to `value`, or accepts an object and applies\nthose key value pairs to the Response object's headers.\n\n@param {String|Object} field\n@param {String} value\n@return {Response}", "docstring_tokens": ["Sets", "field", "header", "to", "value", "or", "accepts", "an", "object", "and", "applies", "those", "key", "value", "pairs", "to", "the", "Response", "object", "s", "headers", "."], "sha": "e69b6cc33669035c1d571bff3805e1b6d8a50ccb", "url": "https://github.com/jsantell/GhostTrain/blob/e69b6cc33669035c1d571bff3805e1b6d8a50ccb/lib/response.js#L131-L139", "partition": "test"} +{"repo": "jsantell/GhostTrain", "path": "lib/response.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Formats response and calls initial callback\n\n@param {String} body", "docstring_tokens": ["Formats", "response", "and", "calls", "initial", "callback"], "sha": "e69b6cc33669035c1d571bff3805e1b6d8a50ccb", "url": "https://github.com/jsantell/GhostTrain/blob/e69b6cc33669035c1d571bff3805e1b6d8a50ccb/lib/response.js#L218-L225", "partition": "test"} +{"repo": "blakevanlan/insist", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Asserts that the arguments supplied are what's expected. If an argument can be multiples\ntypes, use an array of acceptable types.\n@param {Array.} args\n@param {?,..} expected types\n@return Returns an array with the arguments shifted into the correct indices.", "docstring_tokens": ["Asserts", "that", "the", "arguments", "supplied", "are", "what", "s", "expected", ".", "If", "an", "argument", "can", "be", "multiples", "types", "use", "an", "array", "of", "acceptable", "types", "."], "sha": "a5f557f4fd48029e20ae0d66912f701d0577feb5", "url": "https://github.com/blakevanlan/insist/blob/a5f557f4fd48029e20ae0d66912f701d0577feb5/index.js#L23-L64", "partition": "test"} +{"repo": "blakevanlan/insist", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an array of all of the arguments shifted into the correct place.\n@param {Array} expected\n@param {Array} actual\n@returns {Array}\n@private", "docstring_tokens": ["Returns", "an", "array", "of", "all", "of", "the", "arguments", "shifted", "into", "the", "correct", "place", "."], "sha": "a5f557f4fd48029e20ae0d66912f701d0577feb5", "url": "https://github.com/blakevanlan/insist/blob/a5f557f4fd48029e20ae0d66912f701d0577feb5/index.js#L74-L156", "partition": "test"} +{"repo": "blakevanlan/insist", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Capture groups of available arguments separated by ones that have been used.", "docstring_tokens": ["Capture", "groups", "of", "available", "arguments", "separated", "by", "ones", "that", "have", "been", "used", "."], "sha": "a5f557f4fd48029e20ae0d66912f701d0577feb5", "url": "https://github.com/blakevanlan/insist/blob/a5f557f4fd48029e20ae0d66912f701d0577feb5/index.js#L87-L94", "partition": "test"} +{"repo": "blakevanlan/insist", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks if the current argument should be left for an optional argument.\n@param {Array} expected\n@param {number} expectedIndex\n@param {?} value\n@returns {bool}\n@private", "docstring_tokens": ["Checks", "if", "the", "current", "argument", "should", "be", "left", "for", "an", "optional", "argument", "."], "sha": "a5f557f4fd48029e20ae0d66912f701d0577feb5", "url": "https://github.com/blakevanlan/insist/blob/a5f557f4fd48029e20ae0d66912f701d0577feb5/index.js#L166-L192", "partition": "test"} +{"repo": "blakevanlan/insist", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Counts the number of trailing, consecutive optional arguments.\n@param {Array} expected\n@param {number} expectedIndex\n@param {?} value\n@returns {number}\n@private", "docstring_tokens": ["Counts", "the", "number", "of", "trailing", "consecutive", "optional", "arguments", "."], "sha": "a5f557f4fd48029e20ae0d66912f701d0577feb5", "url": "https://github.com/blakevanlan/insist/blob/a5f557f4fd48029e20ae0d66912f701d0577feb5/index.js#L202-L218", "partition": "test"} +{"repo": "blakevanlan/insist", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Counts the number of leading required arguments.\n@param {Array} expected\n@param {number} expectedIndex\n@param {?} value\n@returns {number}\n@private", "docstring_tokens": ["Counts", "the", "number", "of", "leading", "required", "arguments", "."], "sha": "a5f557f4fd48029e20ae0d66912f701d0577feb5", "url": "https://github.com/blakevanlan/insist/blob/a5f557f4fd48029e20ae0d66912f701d0577feb5/index.js#L228-L238", "partition": "test"} +{"repo": "blakevanlan/insist", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a string of expected arguments vs actual.\n@param {Array} expected\n@param {Array} actual\n@returns {string}\n@private", "docstring_tokens": ["Returns", "a", "string", "of", "expected", "arguments", "vs", "actual", "."], "sha": "a5f557f4fd48029e20ae0d66912f701d0577feb5", "url": "https://github.com/blakevanlan/insist/blob/a5f557f4fd48029e20ae0d66912f701d0577feb5/index.js#L247-L258", "partition": "test"} +{"repo": "blakevanlan/insist", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Asserts that the supplied value is of the supplied type.\n@param {?} value\n@param {type} types", "docstring_tokens": ["Asserts", "that", "the", "supplied", "value", "is", "of", "the", "supplied", "type", "."], "sha": "a5f557f4fd48029e20ae0d66912f701d0577feb5", "url": "https://github.com/blakevanlan/insist/blob/a5f557f4fd48029e20ae0d66912f701d0577feb5/index.js#L265-L274", "partition": "test"} +{"repo": "blakevanlan/insist", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determines if the argument is a valid type.\n@param {type} type\n@return {boolean}", "docstring_tokens": ["Determines", "if", "the", "argument", "is", "a", "valid", "type", "."], "sha": "a5f557f4fd48029e20ae0d66912f701d0577feb5", "url": "https://github.com/blakevanlan/insist/blob/a5f557f4fd48029e20ae0d66912f701d0577feb5/index.js#L290-L305", "partition": "test"} +{"repo": "blakevanlan/insist", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the pretty name for the type of the value.\n@param {?} value\n@return {string}", "docstring_tokens": ["Gets", "the", "pretty", "name", "for", "the", "type", "of", "the", "value", "."], "sha": "a5f557f4fd48029e20ae0d66912f701d0577feb5", "url": "https://github.com/blakevanlan/insist/blob/a5f557f4fd48029e20ae0d66912f701d0577feb5/index.js#L326-L358", "partition": "test"} +{"repo": "blakevanlan/insist", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the pretty name for the type.\n@param {type} type\n@return {string}", "docstring_tokens": ["Gets", "the", "pretty", "name", "for", "the", "type", "."], "sha": "a5f557f4fd48029e20ae0d66912f701d0577feb5", "url": "https://github.com/blakevanlan/insist/blob/a5f557f4fd48029e20ae0d66912f701d0577feb5/index.js#L365-L387", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/proxy/JsonP.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generates a url based on a given Ext.data.Request object. Adds the params and callback function name to the url\n@param {Ext.data.Request} request The request object.\n@return {String} The url.", "docstring_tokens": ["Generates", "a", "url", "based", "on", "a", "given", "Ext", ".", "data", ".", "Request", "object", ".", "Adds", "the", "params", "and", "callback", "function", "name", "to", "the", "url"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/proxy/JsonP.js#L249-L273", "partition": "test"} +{"repo": "campsi/campsi-service-docs", "path": "lib/modules/queryBuilder.js", "func_name": "getStateFromOptions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retreive the state object descriptor from its name\n@param {object} options\n@param {string} [propertyName]\n@returns {State}", "docstring_tokens": ["Retreive", "the", "state", "object", "descriptor", "from", "its", "name"], "sha": "ce08f9599f9e96a6d57daac5975da7b041b0236c", "url": "https://github.com/campsi/campsi-service-docs/blob/ce08f9599f9e96a6d57daac5975da7b041b0236c/lib/modules/queryBuilder.js#L19-L25", "partition": "test"} +{"repo": "campsi/campsi-service-docs", "path": "lib/modules/queryBuilder.js", "func_name": "validate", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validate a document against its resource\n@param {object} resource\n@param {object} doc\n@param {boolean} doValidate\n@returns {Promise}", "docstring_tokens": ["Validate", "a", "document", "against", "its", "resource"], "sha": "ce08f9599f9e96a6d57daac5975da7b041b0236c", "url": "https://github.com/campsi/campsi-service-docs/blob/ce08f9599f9e96a6d57daac5975da7b041b0236c/lib/modules/queryBuilder.js#L34-L46", "partition": "test"} +{"repo": "snapptop/ninjs-lodash", "path": "lib/str.js", "func_name": "prune", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "trims end of string, can trimmed back to next clean word, or add suffix to end of trimmed string", "docstring_tokens": ["trims", "end", "of", "string", "can", "trimmed", "back", "to", "next", "clean", "word", "or", "add", "suffix", "to", "end", "of", "trimmed", "string"], "sha": "fab253b7d96cc9bb3f2a1057efff2684c200bcee", "url": "https://github.com/snapptop/ninjs-lodash/blob/fab253b7d96cc9bb3f2a1057efff2684c200bcee/lib/str.js#L41-L48", "partition": "test"} +{"repo": "weikinhuang/closedinterval-git-hooks", "path": "lib/pre-commit/plugins/less.js", "func_name": "attemptRender", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Attempt to validate the less file\n@param {Function} reporter\n@param {String} filename\n@param {String} src\n@param {Function} resolve\n@param {Function} reject\n@param {Object} [globals]", "docstring_tokens": ["Attempt", "to", "validate", "the", "less", "file"], "sha": "42d7e6874a4500bc3d6f9aaadf03324748930e44", "url": "https://github.com/weikinhuang/closedinterval-git-hooks/blob/42d7e6874a4500bc3d6f9aaadf03324748930e44/lib/pre-commit/plugins/less.js#L15-L43", "partition": "test"} +{"repo": "beyo/model", "path": "lib/array-validator.js", "func_name": "validateArray", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validate the given value and make sure it is valid array indexes. The value must\nbe a valid String\n\n@param {String} indexes the value to validate\n@return {Boolean} true if the val is valid, false otherwise", "docstring_tokens": ["Validate", "the", "given", "value", "and", "make", "sure", "it", "is", "valid", "array", "indexes", ".", "The", "value", "must", "be", "a", "valid", "String"], "sha": "625b386b6e1141e1869ede753640850c0c9f0971", "url": "https://github.com/beyo/model/blob/625b386b6e1141e1869ede753640850c0c9f0971/lib/array-validator.js#L20-L30", "partition": "test"} +{"repo": "ralt/tartempion", "path": "lib/routes.js", "func_name": "addRoutes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add ALL the routes!", "docstring_tokens": ["Add", "ALL", "the", "routes!"], "sha": "0de497437261229575d40f49f20f9630bf6053e2", "url": "https://github.com/ralt/tartempion/blob/0de497437261229575d40f49f20f9630bf6053e2/lib/routes.js#L25-L51", "partition": "test"} +{"repo": "arizonatribe/utilitarian", "path": "src/string.util.js", "func_name": "generateUUID", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generates a unique 36 character hyphenated GUID\n@method utilitarian.string.util#generateUUID\n@returns {string} A string GUID", "docstring_tokens": ["Generates", "a", "unique", "36", "character", "hyphenated", "GUID"], "sha": "3472a16265d0810eb2873e80211199a83825d230", "url": "https://github.com/arizonatribe/utilitarian/blob/3472a16265d0810eb2873e80211199a83825d230/src/string.util.js#L51-L60", "partition": "test"} +{"repo": "arizonatribe/utilitarian", "path": "src/string.util.js", "func_name": "randomString", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generates a random string of text of a given length.\nWill generate an alpha-numeric string unless you specify a different character set as the second argument\n@method utilitarian.string.util#randomString\n@param {number} length The length of the string to generate\n@param {string|number} [charSet] optional set of characters to use when generating a random string\n(defaults to full alpha-numeric set)\n@returns {string|number} A randomly generated string or number", "docstring_tokens": ["Generates", "a", "random", "string", "of", "text", "of", "a", "given", "length", ".", "Will", "generate", "an", "alpha", "-", "numeric", "string", "unless", "you", "specify", "a", "different", "character", "set", "as", "the", "second", "argument"], "sha": "3472a16265d0810eb2873e80211199a83825d230", "url": "https://github.com/arizonatribe/utilitarian/blob/3472a16265d0810eb2873e80211199a83825d230/src/string.util.js#L79-L120", "partition": "test"} +{"repo": "arizonatribe/utilitarian", "path": "src/string.util.js", "func_name": "toUint", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Converts a string value to `Uint8array`\n@method utilitarian.string.util#toUint\n@param {string} str A string value to convert to `Uint8array`\n@returns {Uint8Array} A `Uint8Array` representation of the original string", "docstring_tokens": ["Converts", "a", "string", "value", "to", "Uint8array"], "sha": "3472a16265d0810eb2873e80211199a83825d230", "url": "https://github.com/arizonatribe/utilitarian/blob/3472a16265d0810eb2873e80211199a83825d230/src/string.util.js#L177-L186", "partition": "test"} +{"repo": "arizonatribe/utilitarian", "path": "src/string.util.js", "func_name": "toArrayBuffer", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Converts a string value to an `ArrayBuffer`\n@method utilitarian.string.util#toArrayBuffer\n@param {string} str A string value to convert to `ArrayBuffer`\n@returns {Uint8Array} An `ArrayBuffer` representation of the original string", "docstring_tokens": ["Converts", "a", "string", "value", "to", "an", "ArrayBuffer"], "sha": "3472a16265d0810eb2873e80211199a83825d230", "url": "https://github.com/arizonatribe/utilitarian/blob/3472a16265d0810eb2873e80211199a83825d230/src/string.util.js#L194-L203", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/navigation/View.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This is used for Blackberry SplitNavigation to monitor the state of child items in the bottom toolbar.\nif no visible children exist the toolbar will be hidden\n@private", "docstring_tokens": ["This", "is", "used", "for", "Blackberry", "SplitNavigation", "to", "monitor", "the", "state", "of", "child", "items", "in", "the", "bottom", "toolbar", ".", "if", "no", "visible", "children", "exist", "the", "toolbar", "will", "be", "hidden"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/navigation/View.js#L404-L422", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/log/Logger.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Logs a message to help with debugging.\n@param {String} message Message to log.\n@param {Number} priority Priority of the log message.", "docstring_tokens": ["Logs", "a", "message", "to", "help", "with", "debugging", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/log/Logger.js#L60-L137", "partition": "test"} +{"repo": "impaler/ide-template", "path": "lib/io.js", "func_name": "copyFileSync", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Shortcut to copy a file Synchronously\n@param source\n@param destination", "docstring_tokens": ["Shortcut", "to", "copy", "a", "file", "Synchronously"], "sha": "d9a9822786075cc0b0de788d8aa4ab2045bf2210", "url": "https://github.com/impaler/ide-template/blob/d9a9822786075cc0b0de788d8aa4ab2045bf2210/lib/io.js#L63-L67", "partition": "test"} +{"repo": "impaler/ide-template", "path": "lib/io.js", "func_name": "copyFilesMatchSync", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If there are any files in the source folder that are a match copy them to the destination.\n@param match\n@param source\n@param destination", "docstring_tokens": ["If", "there", "are", "any", "files", "in", "the", "source", "folder", "that", "are", "a", "match", "copy", "them", "to", "the", "destination", "."], "sha": "d9a9822786075cc0b0de788d8aa4ab2045bf2210", "url": "https://github.com/impaler/ide-template/blob/d9a9822786075cc0b0de788d8aa4ab2045bf2210/lib/io.js#L75-L83", "partition": "test"} +{"repo": "impaler/ide-template", "path": "lib/io.js", "func_name": "replaceMatchFilesSync", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Copy any number files that are a match to a regex to a given destination.\nIf there are any files in the destination that are also a match replace them.\n@param match\n@param source\n@param destination", "docstring_tokens": ["Copy", "any", "number", "files", "that", "are", "a", "match", "to", "a", "regex", "to", "a", "given", "destination", ".", "If", "there", "are", "any", "files", "in", "the", "destination", "that", "are", "also", "a", "match", "replace", "them", "."], "sha": "d9a9822786075cc0b0de788d8aa4ab2045bf2210", "url": "https://github.com/impaler/ide-template/blob/d9a9822786075cc0b0de788d8aa4ab2045bf2210/lib/io.js#L92-L95", "partition": "test"} +{"repo": "impaler/ide-template", "path": "lib/io.js", "func_name": "unlinkFilesMatchSync", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If there are any files in the location folder that are a match remove them.\n@param match\n@param location", "docstring_tokens": ["If", "there", "are", "any", "files", "in", "the", "location", "folder", "that", "are", "a", "match", "remove", "them", "."], "sha": "d9a9822786075cc0b0de788d8aa4ab2045bf2210", "url": "https://github.com/impaler/ide-template/blob/d9a9822786075cc0b0de788d8aa4ab2045bf2210/lib/io.js#L102-L111", "partition": "test"} +{"repo": "impaler/ide-template", "path": "lib/io.js", "func_name": "validateDirectorySync", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validate if a given path has a valid directory, is it doesn't console.error with an optional custom message.\n@param path\n@param errorMessage\n@returns {Boolean}", "docstring_tokens": ["Validate", "if", "a", "given", "path", "has", "a", "valid", "directory", "is", "it", "doesn", "t", "console", ".", "error", "with", "an", "optional", "custom", "message", "."], "sha": "d9a9822786075cc0b0de788d8aa4ab2045bf2210", "url": "https://github.com/impaler/ide-template/blob/d9a9822786075cc0b0de788d8aa4ab2045bf2210/lib/io.js#L135-L142", "partition": "test"} +{"repo": "impaler/ide-template", "path": "lib/io.js", "func_name": "validateFileSync", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validate if a given path has a valid file, is it doesn't console.error with an optional custom message.\n@param path\n@param errorMessage\n@returns {Boolean}", "docstring_tokens": ["Validate", "if", "a", "given", "path", "has", "a", "valid", "file", "is", "it", "doesn", "t", "console", ".", "error", "with", "an", "optional", "custom", "message", "."], "sha": "d9a9822786075cc0b0de788d8aa4ab2045bf2210", "url": "https://github.com/impaler/ide-template/blob/d9a9822786075cc0b0de788d8aa4ab2045bf2210/lib/io.js#L150-L157", "partition": "test"} +{"repo": "impaler/ide-template", "path": "lib/io.js", "func_name": "subDirectoriesWithFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find all subdirectories of the base, recursively.\n@param base The base directory to start in\n@param filename A filename that needs to be found for the path to be added\n@return all subdirectories of the base, split by path separator", "docstring_tokens": ["Find", "all", "subdirectories", "of", "the", "base", "recursively", "."], "sha": "d9a9822786075cc0b0de788d8aa4ab2045bf2210", "url": "https://github.com/impaler/ide-template/blob/d9a9822786075cc0b0de788d8aa4ab2045bf2210/lib/io.js#L165-L177", "partition": "test"} +{"repo": "impaler/ide-template", "path": "lib/io.js", "func_name": "maximisePath", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Match the path defined by path elements, where some may be RegExp.\nWhen there is more than one candidate, prefer the one with greatest interger value.\n@param {...string|RegExp} elements Any number of path elements\n@returns {string|boolean} A true concatenated path where found, else false", "docstring_tokens": ["Match", "the", "path", "defined", "by", "path", "elements", "where", "some", "may", "be", "RegExp", ".", "When", "there", "is", "more", "than", "one", "candidate", "prefer", "the", "one", "with", "greatest", "interger", "value", "."], "sha": "d9a9822786075cc0b0de788d8aa4ab2045bf2210", "url": "https://github.com/impaler/ide-template/blob/d9a9822786075cc0b0de788d8aa4ab2045bf2210/lib/io.js#L185-L220", "partition": "test"} +{"repo": "impaler/ide-template", "path": "lib/io.js", "func_name": "resolveDirMatches", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "For a given directory find all files that match, the result will be sorted with highest numeric index first.\n@param directory\n@param match\n@returns {T[]}", "docstring_tokens": ["For", "a", "given", "directory", "find", "all", "files", "that", "match", "the", "result", "will", "be", "sorted", "with", "highest", "numeric", "index", "first", "."], "sha": "d9a9822786075cc0b0de788d8aa4ab2045bf2210", "url": "https://github.com/impaler/ide-template/blob/d9a9822786075cc0b0de788d8aa4ab2045bf2210/lib/io.js#L228-L239", "partition": "test"} +{"repo": "impaler/ide-template", "path": "lib/io.js", "func_name": "compareHigher", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Rank a vs b based on any numeric component in their string.", "docstring_tokens": ["Rank", "a", "vs", "b", "based", "on", "any", "numeric", "component", "in", "their", "string", "."], "sha": "d9a9822786075cc0b0de788d8aa4ab2045bf2210", "url": "https://github.com/impaler/ide-template/blob/d9a9822786075cc0b0de788d8aa4ab2045bf2210/lib/io.js#L244-L254", "partition": "test"} +{"repo": "impaler/ide-template", "path": "lib/io.js", "func_name": "reduceDirectories", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Pick the first existing directory from any of the given arguments.\n@param {...string} candidates Any number of possible directories\n@returns {string} The first valid directory or else undefined", "docstring_tokens": ["Pick", "the", "first", "existing", "directory", "from", "any", "of", "the", "given", "arguments", "."], "sha": "d9a9822786075cc0b0de788d8aa4ab2045bf2210", "url": "https://github.com/impaler/ide-template/blob/d9a9822786075cc0b0de788d8aa4ab2045bf2210/lib/io.js#L261-L270", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/viewport/Default.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes a menu from a specified side.\n@param {String} side The side to remove the menu from", "docstring_tokens": ["Removes", "a", "menu", "from", "a", "specified", "side", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/viewport/Default.js#L720-L727", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/viewport/Default.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Shows a menu specified by the menu's side.\n@param {String} side The side which the menu is placed.", "docstring_tokens": ["Shows", "a", "menu", "specified", "by", "the", "menu", "s", "side", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/viewport/Default.js#L746-L847", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/viewport/Default.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Hides a menu specified by the menu's side.\n@param {String} side The side which the menu is placed.", "docstring_tokens": ["Hides", "a", "menu", "specified", "by", "the", "menu", "s", "side", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/viewport/Default.js#L853-L928", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/viewport/Default.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Hides all menus except for the side specified\n@param {String} side Side(s) not to hide\n@param {String} animation Animation to hide with", "docstring_tokens": ["Hides", "all", "menus", "except", "for", "the", "side", "specified"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/viewport/Default.js#L946-L954", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/viewport/Default.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Toggles the menu specified by side\n@param {String} side The side which the menu is placed.", "docstring_tokens": ["Toggles", "the", "menu", "specified", "by", "side"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/viewport/Default.js#L960-L970", "partition": "test"} +{"repo": "olindata/node-puppet-hiera", "path": "index.js", "func_name": "init", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initializes the Hiera module.\n\n@param {string} adapter - which adapter to use\n@param {string} configFile - the path to `hiera.yaml`.\n\n@example init('/path/to/hiera.yaml');", "docstring_tokens": ["Initializes", "the", "Hiera", "module", "."], "sha": "fda35ca55ae054641f428873c9f2f763ea302422", "url": "https://github.com/olindata/node-puppet-hiera/blob/fda35ca55ae054641f428873c9f2f763ea302422/index.js#L24-L30", "partition": "test"} +{"repo": "olindata/node-puppet-hiera", "path": "index.js", "func_name": "getHierarchy", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the Hiera hierarchy.\n\n@param {Function} cb - callback to invoke.\n\n@example getHierarchy(cb);", "docstring_tokens": ["Gets", "the", "Hiera", "hierarchy", "."], "sha": "fda35ca55ae054641f428873c9f2f763ea302422", "url": "https://github.com/olindata/node-puppet-hiera/blob/fda35ca55ae054641f428873c9f2f763ea302422/index.js#L62-L71", "partition": "test"} +{"repo": "olindata/node-puppet-hiera", "path": "index.js", "func_name": "getBackends", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieves all Hiera backend configurations.\n\n@param {Function} cb - callback to invoke.\n\n@example getBackends(cb);", "docstring_tokens": ["Retrieves", "all", "Hiera", "backend", "configurations", "."], "sha": "fda35ca55ae054641f428873c9f2f763ea302422", "url": "https://github.com/olindata/node-puppet-hiera/blob/fda35ca55ae054641f428873c9f2f763ea302422/index.js#L80-L89", "partition": "test"} +{"repo": "olindata/node-puppet-hiera", "path": "index.js", "func_name": "getBackendConfig", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets configuration for a specific backend.\n\n@param {string} backend - the backend to load.\n@param {Function} cb - callback to invoke.\n\n@example getBackendConfig('yaml', cb);", "docstring_tokens": ["Gets", "configuration", "for", "a", "specific", "backend", "."], "sha": "fda35ca55ae054641f428873c9f2f763ea302422", "url": "https://github.com/olindata/node-puppet-hiera/blob/fda35ca55ae054641f428873c9f2f763ea302422/index.js#L99-L108", "partition": "test"} +{"repo": "olindata/node-puppet-hiera", "path": "index.js", "func_name": "getFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Retrieves data from a Hiera file.\n\n@param {string} backend - the backend to load.\n@param {string} file - the Hiera file to load.\n@param {Function} cb - callback to invoke.\n\n@example getFile('yaml', 'defaults.yaml', function (err, data) { ... });", "docstring_tokens": ["Retrieves", "data", "from", "a", "Hiera", "file", "."], "sha": "fda35ca55ae054641f428873c9f2f763ea302422", "url": "https://github.com/olindata/node-puppet-hiera/blob/fda35ca55ae054641f428873c9f2f763ea302422/index.js#L119-L125", "partition": "test"} +{"repo": "olindata/node-puppet-hiera", "path": "index.js", "func_name": "saveFile", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Saves data to a Hiera file.\n\n@param {string} backend - the backend to load.\n@param {string} file - the Hiera file to save to.\n@param {Object} data - contents to save to the Hiera file.\n@param {Function} cb - callback to invoke once file saving completes.\n\n@example saveFile(\n'gpg', '/path/to/file.gpg', fileData,\nfunction (err) { ... }\n);", "docstring_tokens": ["Saves", "data", "to", "a", "Hiera", "file", "."], "sha": "fda35ca55ae054641f428873c9f2f763ea302422", "url": "https://github.com/olindata/node-puppet-hiera/blob/fda35ca55ae054641f428873c9f2f763ea302422/index.js#L140-L149", "partition": "test"} +{"repo": "olindata/node-puppet-hiera", "path": "index.js", "func_name": "getOverrides", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Check for hierarchy overrides for a given file.\n\n@param {string} backend - the backend to load.\n@param {string} file - the Hiera file to check overrides for.\n@param {Function} cb - callback to invoke once override checking completes.\n\n@example getOverrides(\n'gpg', '/path/to/file.gpg', function (err) { ... }\n);", "docstring_tokens": ["Check", "for", "hierarchy", "overrides", "for", "a", "given", "file", "."], "sha": "fda35ca55ae054641f428873c9f2f763ea302422", "url": "https://github.com/olindata/node-puppet-hiera/blob/fda35ca55ae054641f428873c9f2f763ea302422/index.js#L162-L238", "partition": "test"} +{"repo": "snapptop/ninjs-lodash", "path": "lib/async.js", "func_name": "done", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "wrap async success callback", "docstring_tokens": ["wrap", "async", "success", "callback"], "sha": "fab253b7d96cc9bb3f2a1057efff2684c200bcee", "url": "https://github.com/snapptop/ninjs-lodash/blob/fab253b7d96cc9bb3f2a1057efff2684c200bcee/lib/async.js#L30-L33", "partition": "test"} +{"repo": "snapptop/ninjs-lodash", "path": "lib/async.js", "func_name": "fail", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "wrap async error callback", "docstring_tokens": ["wrap", "async", "error", "callback"], "sha": "fab253b7d96cc9bb3f2a1057efff2684c200bcee", "url": "https://github.com/snapptop/ninjs-lodash/blob/fab253b7d96cc9bb3f2a1057efff2684c200bcee/lib/async.js#L36-L41", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/reader/Json.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "We create this method because `root` is now a config so `getRoot` is already defined, but in the old\ndata package `getRoot` was passed a data argument and it would return the data inside of the `root`\nproperty. This method handles both cases.\n@param {Array/Object} [data]\n@return {String/Object} Returns the config root value if this method was called without passing\ndata. Else it returns the object in the data bound to the root.\n@private", "docstring_tokens": ["We", "create", "this", "method", "because", "root", "is", "now", "a", "config", "so", "getRoot", "is", "already", "defined", "but", "in", "the", "old", "data", "package", "getRoot", "was", "passed", "a", "data", "argument", "and", "it", "would", "return", "the", "data", "inside", "of", "the", "root", "property", ".", "This", "method", "handles", "both", "cases", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/reader/Json.js#L269-L288", "partition": "test"} +{"repo": "hybridables/redolent", "path": "dist/redolent.es.js", "func_name": "arrIncludes", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "> Check any of `values` exists on `arr`.\n\n**Example**\n\n```js\nvar arrIncludes = require('arr-includes')\n\nconsole.log(arrIncludes([1, 'bar', 55], 2)) // => false\nconsole.log(arrIncludes([1, 'bar', 3], 3)) // => 2\n\nconsole.log(arrIncludes([1, 'bar', 3, true], false)) // => false\nconsole.log(arrIncludes([1, 'bar', 44, true], true)) // => 3\n\nconsole.log(arrIncludes(['foo', 'bar'], 'baz')) // => false\nconsole.log(arrIncludes(['foo', 'bar'], 'foo')) // => true\nconsole.log(arrIncludes(['qux', 'foo', 'bar'], 'foo')) // => 1\nconsole.log(arrIncludes([true, 'qqq', 'bar'], true)) // => true\nconsole.log(arrIncludes(['true', 'qqq', 'bar'], true)) // => false\nconsole.log(arrIncludes(['qqq', 'bar', true], true)) // => 2\nconsole.log(arrIncludes(['qqq', 'true', 'bar'], true)) // => false\nconsole.log(arrIncludes([false, 'foo', null, 'bar'], null)) // => 2\n\nconsole.log(arrIncludes(['foo', 'bar', 'qux'], ['a', 'b', 'c'])) // => false\nconsole.log(arrIncludes(['b', 'a', 'c'], ['a', 'b', 'c'])) // => 1\nconsole.log(arrIncludes(['foo', 'bb', 'b'], ['a', 'b'])) // => 2\nconsole.log(arrIncludes(['foo', 'bar', 'qux'], ['a', 'b', 'foo'])) // => true\nconsole.log(arrIncludes(['bar', 123, 'foo', 'qux'], ['a', 'b', 'foo'])) // => 2\n```\n\n@param {Array} `arr` array to check\n@param {Array|String} `values` array or string\n@return {Boolean|Number} returns `false` if not found, `true` if **index is 0**\nfrom the array, otherwise `number` index\n@api public", "docstring_tokens": [">", "Check", "any", "of", "values", "exists", "on", "arr", "."], "sha": "59fd76047529da2305cf682a0e95528a2279196b", "url": "https://github.com/hybridables/redolent/blob/59fd76047529da2305cf682a0e95528a2279196b/dist/redolent.es.js#L125-L138", "partition": "test"} +{"repo": "snapptop/ninjs-lodash", "path": "lib/url.js", "func_name": "clean", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "cleans url to be properly formatted", "docstring_tokens": ["cleans", "url", "to", "be", "properly", "formatted"], "sha": "fab253b7d96cc9bb3f2a1057efff2684c200bcee", "url": "https://github.com/snapptop/ninjs-lodash/blob/fab253b7d96cc9bb3f2a1057efff2684c200bcee/lib/url.js#L95-L99", "partition": "test"} +{"repo": "snapptop/ninjs-lodash", "path": "lib/url.js", "func_name": "jquery", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "return json query object", "docstring_tokens": ["return", "json", "query", "object"], "sha": "fab253b7d96cc9bb3f2a1057efff2684c200bcee", "url": "https://github.com/snapptop/ninjs-lodash/blob/fab253b7d96cc9bb3f2a1057efff2684c200bcee/lib/url.js#L149-L156", "partition": "test"} +{"repo": "repetere/typesettin-style-guide", "path": "lib/typesettin-style-guide.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A module that represents a componentTabs object, a componentTab is a page composition tool.\n@{@link https://github.com/typesettin/typesettin-style-guide}\n@author Yaw Joseph Etse\n@copyright Copyright (c) 2014 Typesettin. All rights reserved.\n@license MIT\n@constructor componentTabs\n@requires module:util-extent\n@requires module:util\n@requires module:events\n@param {object} el element of tab container\n@param {object} options configuration options", "docstring_tokens": ["A", "module", "that", "represents", "a", "componentTabs", "object", "a", "componentTab", "is", "a", "page", "composition", "tool", "."], "sha": "096201783637af935c951a0a609482863f638ce6", "url": "https://github.com/repetere/typesettin-style-guide/blob/096201783637af935c951a0a609482863f638ce6/lib/typesettin-style-guide.js#L27-L35", "partition": "test"} +{"repo": "arizonatribe/utilitarian", "path": "src/obj.util.js", "func_name": "toParam", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Serializes an object's properties into JSON string then URI encoded\n@method utilitarian.obj.util#toParam\n@param {object} obj A JSON object to serialize into a query string parameter\n@param {boolean} [dontEncode] An optional boolean value to control whether or not to URI encode the resulting query parameter (defaults to `false`)\n@returns {string} A query string parameter representation of the original object", "docstring_tokens": ["Serializes", "an", "object", "s", "properties", "into", "JSON", "string", "then", "URI", "encoded"], "sha": "3472a16265d0810eb2873e80211199a83825d230", "url": "https://github.com/arizonatribe/utilitarian/blob/3472a16265d0810eb2873e80211199a83825d230/src/obj.util.js#L117-L141", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dom/Element.alignment.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the x,y coordinates specified by the anchor position on the element.\n\n@deprecated 2.0.0 This method is no longer available for Ext.Element. Please see {@link Ext.Component#showBy}\nto do anchoring at Component level instead.\n\n@param {String} [anchor=c] (optional) The specified anchor position.\n@param {Boolean} local (optional) `true` to get the local (element top/left-relative) anchor position instead\nof page coordinates.\n@param {Object} size (optional) An object containing the size to use for calculating anchor position.\n`{width: (target width), height: (target height)}` (defaults to the element's current size)\n@return {Array} [x, y] An array containing the element's x and y coordinates.", "docstring_tokens": ["Gets", "the", "x", "y", "coordinates", "specified", "by", "the", "anchor", "position", "on", "the", "element", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dom/Element.alignment.js#L24-L58", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/AbstractMixedCollection.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Executes the specified function once for every item in the collection.\n\n@param {Function} fn The function to execute for each item.\n@param {Mixed} fn.item The collection item.\n@param {Number} fn.index The item's index.\n@param {Number} fn.length The total number of items in the collection.\n@param {Boolean} fn.return Returning `false` will stop the iteration.\n@param {Object} scope (optional) The scope (`this` reference) in which the function is executed.\nDefaults to the current item in the iteration.", "docstring_tokens": ["Executes", "the", "specified", "function", "once", "for", "every", "item", "in", "the", "collection", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/AbstractMixedCollection.js#L212-L224", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/filesystem/Sencha.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates or looks up a file.\n\n@param {Object} config\nThe object which contains the following config options:\n\n@param {String} config.path This is required.\nThe absolute path or relative path from the entry to the file to create or select.\n\n@param {Object} config.options This is optional.\nThe object which contains the following options:\n\n@param {Boolean} config.options.create This is optional.\nIndicates whether to create a file, if path does not exist.\n\n@param {Boolean} config.options.exclusive This is optional. Used with 'create', by itself has no effect.\nIndicates that method should fail, if path already exists.\n\n@param {Function} config.success This is optional.\nThe callback to be called when the file has been successfully created or selected.\n\n@param {Ext.device.filesystem.Entry} config.success.entry\nThe created or selected file.\n\n@param {Function} config.failure This is optional.\nThe callback to be called when an error occurred.\n\n@param {Object} config.failure.error\nThe occurred error.\n\n@param {Object} config.scope\nThe scope object", "docstring_tokens": ["Creates", "or", "looks", "up", "a", "file", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/filesystem/Sencha.js#L405-L442", "partition": "test"} +{"repo": "nkbt/react-jasmine-matchers", "path": "lib/index.js", "func_name": "toHaveText", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Validate if element's DOM node has text", "docstring_tokens": ["Validate", "if", "element", "s", "DOM", "node", "has", "text"], "sha": "70076fea55b208aa70f4c1f2ce29e906f55e9b0b", "url": "https://github.com/nkbt/react-jasmine-matchers/blob/70076fea55b208aa70f4c1f2ce29e906f55e9b0b/lib/index.js#L48-L57", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dataview/List.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "We create complex instance arrays and objects in beforeInitialize so that we can use these inside of the initConfig process.", "docstring_tokens": ["We", "create", "complex", "instance", "arrays", "and", "objects", "in", "beforeInitialize", "so", "that", "we", "can", "use", "these", "inside", "of", "the", "initConfig", "process", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dataview/List.js#L350-L413", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dataview/List.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "We override DataView's initialize method with an empty function", "docstring_tokens": ["We", "override", "DataView", "s", "initialize", "method", "with", "an", "empty", "function"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dataview/List.js#L416-L462", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dataview/List.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an item at the specified index.\n@param {Number} index Index of the item.\n@return {Ext.dom.Element/Ext.dataview.component.DataItem} item Item at the specified index.", "docstring_tokens": ["Returns", "an", "item", "at", "the", "specified", "index", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dataview/List.js#L1408-L1419", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/core/class/Loader.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Inject a script element to document's head, call onLoad and onError accordingly\n@private", "docstring_tokens": ["Inject", "a", "script", "element", "to", "document", "s", "head", "call", "onLoad", "and", "onError", "accordingly"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/core/class/Loader.js#L582-L611", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/core/class/Loader.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Load a script file, supports both asynchronous and synchronous approaches\n@private", "docstring_tokens": ["Load", "a", "script", "file", "supports", "both", "asynchronous", "and", "synchronous", "approaches"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/core/class/Loader.js#L643-L716", "partition": "test"} +{"repo": "akashacms/mahabhuta", "path": "maha/partial.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Replaceable function to handle rendering", "docstring_tokens": ["Replaceable", "function", "to", "handle", "rendering"], "sha": "8d893b758fcd64698a3894bfc359e1390511f24b", "url": "https://github.com/akashacms/mahabhuta/blob/8d893b758fcd64698a3894bfc359e1390511f24b/maha/partial.js#L93-L135", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/proxy/Sql.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Formats the data for each record before sending it to the server. This\nmethod should be overridden to format the data in a way that differs from the default.\n@param {Object} record The record that we are writing to the server.\n@return {Object} An object literal of name/value keys to be written to the server.\nBy default this method returns the data property on the record.", "docstring_tokens": ["Formats", "the", "data", "for", "each", "record", "before", "sending", "it", "to", "the", "server", ".", "This", "method", "should", "be", "overridden", "to", "format", "the", "data", "in", "a", "way", "that", "differs", "from", "the", "default", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/proxy/Sql.js#L536-L559", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/direct/Manager.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Adds an Ext.Direct Provider and creates the proxy or stub methods to execute server-side methods. If the provider\nis not already connected, it will auto-connect.\n\nExt.direct.Manager.addProvider({\ntype: \"remoting\", // create a {@link Ext.direct.RemotingProvider}\nurl: \"php/router.php\", // url to connect to the Ext.Direct server-side router.\nactions: { // each property within the actions object represents a Class\nTestAction: [ // array of methods within each server side Class\n{\nname: \"doEcho\", // name of method\nlen: 1\n},{\nname: \"multiply\",\nlen: 1\n},{\nname: \"doForm\",\nformHandler: true, // handle form on server with Ext.Direct.Transaction\nlen: 1\n}]\n},\nnamespace: \"myApplication\" // namespace to create the Remoting Provider in\n});\n\n@param {Ext.direct.Provider/Object...} provider\nAccepts any number of Provider descriptions (an instance or config object for\na Provider). Each Provider description instructs Ext.Direct how to create\nclient-side stub methods.\n@return {Object}", "docstring_tokens": ["Adds", "an", "Ext", ".", "Direct", "Provider", "and", "creates", "the", "proxy", "or", "stub", "methods", "to", "execute", "server", "-", "side", "methods", ".", "If", "the", "provider", "is", "not", "already", "connected", "it", "will", "auto", "-", "connect", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/direct/Manager.js#L117-L141", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/direct/Manager.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes the provider.\n@param {String/Ext.direct.Provider} provider The provider instance or the id of the provider.\n@return {Ext.direct.Provider/null} The provider, `null` if not found.", "docstring_tokens": ["Removes", "the", "provider", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/direct/Manager.js#L158-L170", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/app/Application.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Constructs a new Application instance.", "docstring_tokens": ["Constructs", "a", "new", "Application", "instance", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/app/Application.js#L447-L480", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/app/Application.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the Controller instance for the given controller name.\n@param {String} name The name of the Controller.\n@param {String} [profileName] Optional profile name. If passed, this is the same as calling\n`getController('profileName.controllerName')`.\n@return {Ext.app.Controller} controller instance or undefined.", "docstring_tokens": ["Returns", "the", "Controller", "instance", "for", "the", "given", "controller", "name", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/app/Application.js#L580-L598", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Container.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Initialize layout and event listeners the very first time an item is added\n@private", "docstring_tokens": ["Initialize", "layout", "and", "event", "listeners", "the", "very", "first", "time", "an", "item", "is", "added"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Container.js#L548-L561", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Container.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes an item from this Container, optionally destroying it.\n@param {Object} item The item to remove.\n@param {Boolean} [destroy] Calls the Component's {@link Ext.Component#method-destroy destroy}\nmethod if `true`.\n@return {Ext.Component} this", "docstring_tokens": ["Removes", "an", "item", "from", "this", "Container", "optionally", "destroying", "it", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Container.js#L728-L758", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Container.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes all items currently in the Container, optionally destroying them all.\n@param {Boolean} destroy If `true`, {@link Ext.Component#method-destroy destroys}\neach removed Component.\n@param {Boolean} everything If `true`, completely remove all items including\ndocked / centered and floating items.\n@return {Ext.Component} this", "docstring_tokens": ["Removes", "all", "items", "currently", "in", "the", "Container", "optionally", "destroying", "them", "all", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Container.js#L795-L824", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Container.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Animates to the supplied `activeItem` with a specified animation. Currently this only works\nwith a Card layout. This passed animation will override any default animations on the\ncontainer, for a single card switch. The animation will be destroyed when complete.\n@param {Object/Number} activeItem The item or item index to make active.\n@param {Object/Ext.fx.layout.Card} animation Card animation configuration or instance.", "docstring_tokens": ["Animates", "to", "the", "supplied", "activeItem", "with", "a", "specified", "animation", ".", "Currently", "this", "only", "works", "with", "a", "Card", "layout", ".", "This", "passed", "animation", "will", "override", "any", "default", "animations", "on", "the", "container", "for", "a", "single", "card", "switch", ".", "The", "animation", "will", "be", "destroyed", "when", "complete", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Container.js#L1233-L1255", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Container.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Used by ComponentQuery to retrieve all of the items which can potentially be considered a child of this Container. This should be overridden by components which have child items that are not contained in items. For example `dockedItems`, `menu`, etc @private", "docstring_tokens": ["Used", "by", "ComponentQuery", "to", "retrieve", "all", "of", "the", "items", "which", "can", "potentially", "be", "considered", "a", "child", "of", "this", "Container", ".", "This", "should", "be", "overridden", "by", "components", "which", "have", "child", "items", "that", "are", "not", "contained", "in", "items", ".", "For", "example", "dockedItems", "menu", "etc"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Container.js#L1374-L1390", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/viewport/WindowsPhone.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "There is -ms-user-select CSS property for IE10, but it seems it works only in desktop browser. So we need to prevent selection event.", "docstring_tokens": ["There", "is", "-", "ms", "-", "user", "-", "select", "CSS", "property", "for", "IE10", "but", "it", "seems", "it", "works", "only", "in", "desktop", "browser", ".", "So", "we", "need", "to", "prevent", "selection", "event", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/viewport/WindowsPhone.js#L26-L33", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/core/lang/Number.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks whether or not the passed number is within a desired range. If the number is already within the\nrange it is returned, otherwise the min or max value is returned depending on which side of the range is\nexceeded. Note that this method returns the constrained value but does not change the current number.\n@param {Number} number The number to check\n@param {Number} min The minimum number in the range\n@param {Number} max The maximum number in the range\n@return {Number} The constrained value if outside the range, otherwise the current value", "docstring_tokens": ["Checks", "whether", "or", "not", "the", "passed", "number", "is", "within", "a", "desired", "range", ".", "If", "the", "number", "is", "already", "within", "the", "range", "it", "is", "returned", "otherwise", "the", "min", "or", "max", "value", "is", "returned", "depending", "on", "which", "side", "of", "the", "range", "is", "exceeded", ".", "Note", "that", "this", "method", "returns", "the", "constrained", "value", "but", "does", "not", "change", "the", "current", "number", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/core/lang/Number.js#L26-L36", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/core/lang/Number.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Snaps the passed number between stopping points based upon a passed increment value.\n@param {Number} value The unsnapped value.\n@param {Number} increment The increment by which the value must move.\n@param {Number} minValue The minimum value to which the returned value must be constrained. Overrides the increment..\n@param {Number} maxValue The maximum value to which the returned value must be constrained. Overrides the increment..\n@return {Number} The value of the nearest snap target.", "docstring_tokens": ["Snaps", "the", "passed", "number", "between", "stopping", "points", "based", "upon", "a", "passed", "increment", "value", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/core/lang/Number.js#L46-L63", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/core/lang/Number.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Formats a number using fixed-point notation\n@param {Number} value The number to format\n@param {Number} precision The number of digits to show after the decimal point", "docstring_tokens": ["Formats", "a", "number", "using", "fixed", "-", "point", "notation"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/core/lang/Number.js#L70-L78", "partition": "test"} +{"repo": "jdiehl/restify-magic", "path": "lib/create-server.js", "func_name": "logger", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "simple logger middleware", "docstring_tokens": ["simple", "logger", "middleware"], "sha": "6bdce13c59c771327c1d06a5bd9da5830236fc75", "url": "https://github.com/jdiehl/restify-magic/blob/6bdce13c59c771327c1d06a5bd9da5830236fc75/lib/create-server.js#L10-L15", "partition": "test"} +{"repo": "jdiehl/restify-magic", "path": "lib/create-server.js", "func_name": "typeConvert", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "simple string to native-type conversion middleware", "docstring_tokens": ["simple", "string", "to", "native", "-", "type", "conversion", "middleware"], "sha": "6bdce13c59c771327c1d06a5bd9da5830236fc75", "url": "https://github.com/jdiehl/restify-magic/blob/6bdce13c59c771327c1d06a5bd9da5830236fc75/lib/create-server.js#L18-L37", "partition": "test"} +{"repo": "jdiehl/restify-magic", "path": "lib/create-server.js", "func_name": "typeConvertMiddleware", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "middleware that executes typeconvert on the query and the body", "docstring_tokens": ["middleware", "that", "executes", "typeconvert", "on", "the", "query", "and", "the", "body"], "sha": "6bdce13c59c771327c1d06a5bd9da5830236fc75", "url": "https://github.com/jdiehl/restify-magic/blob/6bdce13c59c771327c1d06a5bd9da5830236fc75/lib/create-server.js#L40-L44", "partition": "test"} +{"repo": "jdiehl/restify-magic", "path": "lib/create-server.js", "func_name": "defineRoute", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "convenience method to define a restify route", "docstring_tokens": ["convenience", "method", "to", "define", "a", "restify", "route"], "sha": "6bdce13c59c771327c1d06a5bd9da5830236fc75", "url": "https://github.com/jdiehl/restify-magic/blob/6bdce13c59c771327c1d06a5bd9da5830236fc75/lib/create-server.js#L62-L78", "partition": "test"} +{"repo": "jdiehl/restify-magic", "path": "lib/create-server.js", "func_name": "routeURL", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "convenience method to create a routing URL", "docstring_tokens": ["convenience", "method", "to", "create", "a", "routing", "URL"], "sha": "6bdce13c59c771327c1d06a5bd9da5830236fc75", "url": "https://github.com/jdiehl/restify-magic/blob/6bdce13c59c771327c1d06a5bd9da5830236fc75/lib/create-server.js#L81-L85", "partition": "test"} +{"repo": "jdiehl/restify-magic", "path": "lib/create-server.js", "func_name": "createPasswordHash", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "create password salt and hash", "docstring_tokens": ["create", "password", "salt", "and", "hash"], "sha": "6bdce13c59c771327c1d06a5bd9da5830236fc75", "url": "https://github.com/jdiehl/restify-magic/blob/6bdce13c59c771327c1d06a5bd9da5830236fc75/lib/create-server.js#L88-L97", "partition": "test"} +{"repo": "wzrdtales/node-dynamic-columns", "path": "lib/index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "A non recursive way to resolve our json schema to the create query.\n\nWe handle Numbers by default as double, booleans as unsigned integer\nand everything else as string.\n\nIf you need or want to specify the types, you can set the second parameter\nto call the type defined variant instead.\n\n@return string", "docstring_tokens": ["A", "non", "recursive", "way", "to", "resolve", "our", "json", "schema", "to", "the", "create", "query", "."], "sha": "da7a4c38e0b24b623140b4e56fa24af38eac6cb9", "url": "https://github.com/wzrdtales/node-dynamic-columns/blob/da7a4c38e0b24b623140b4e56fa24af38eac6cb9/lib/index.js#L35-L183", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/NodeInterface.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Ensures that the passed object is an instance of a Record with the NodeInterface applied\n@return {Boolean}\n@private", "docstring_tokens": ["Ensures", "that", "the", "passed", "object", "is", "an", "instance", "of", "a", "Record", "with", "the", "NodeInterface", "applied"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/NodeInterface.js#L280-L286", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/NodeInterface.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Updates general data of this node like isFirst, isLast, depth. This\nmethod is internally called after a node is moved. This shouldn't\nhave to be called by the developer unless they are creating custom\nTree plugins.\n@return {Boolean}", "docstring_tokens": ["Updates", "general", "data", "of", "this", "node", "like", "isFirst", "isLast", "depth", ".", "This", "method", "is", "internally", "called", "after", "a", "node", "is", "moved", ".", "This", "shouldn", "t", "have", "to", "be", "called", "by", "the", "developer", "unless", "they", "are", "creating", "custom", "Tree", "plugins", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/NodeInterface.js#L321-L353", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/NodeInterface.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes a child node from this node.\n@param {Ext.data.NodeInterface} node The node to remove.\n@param {Boolean} [destroy=false] `true` to destroy the node upon removal.\n@return {Ext.data.NodeInterface} The removed node.", "docstring_tokens": ["Removes", "a", "child", "node", "from", "this", "node", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/NodeInterface.js#L490-L535", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/NodeInterface.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Clear the node.\n@private\n@param {Boolean} destroy `true` to destroy the node.", "docstring_tokens": ["Clear", "the", "node", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/NodeInterface.js#L564-L572", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/NodeInterface.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Destroys the node.", "docstring_tokens": ["Destroys", "the", "node", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/NodeInterface.js#L577-L600", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/NodeInterface.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Inserts the first node before the second node in this nodes `childNodes` collection.\n@param {Ext.data.NodeInterface} node The node to insert.\n@param {Ext.data.NodeInterface} refNode The node to insert before (if `null` the node is appended).\n@return {Ext.data.NodeInterface} The inserted node.", "docstring_tokens": ["Inserts", "the", "first", "node", "before", "the", "second", "node", "in", "this", "nodes", "childNodes", "collection", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/NodeInterface.js#L608-L682", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/NodeInterface.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes this node from its parent.\n@param {Boolean} [destroy=false] `true` to destroy the node upon removal.\n@return {Ext.data.NodeInterface} this", "docstring_tokens": ["Removes", "this", "node", "from", "its", "parent", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/NodeInterface.js#L705-L712", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/NodeInterface.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes all child nodes from this node.\n@param {Boolean} [destroy=false] `true` to destroy the node upon removal.\n@return {Ext.data.NodeInterface} this", "docstring_tokens": ["Removes", "all", "child", "nodes", "from", "this", "node", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/NodeInterface.js#L719-L727", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/NodeInterface.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sorts this nodes children using the supplied sort function.\n@param {Function} sortFn A function which, when passed two Nodes, returns -1, 0 or 1 depending upon required sort order.\n@param {Boolean} recursive Whether or not to apply this sort recursively.\n@param {Boolean} suppressEvent Set to true to not fire a sort event.", "docstring_tokens": ["Sorts", "this", "nodes", "children", "using", "the", "supplied", "sort", "function", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/NodeInterface.js#L927-L959", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/NodeInterface.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Expand this node.\n@param {Function} recursive (Optional) `true` to recursively expand all the children.\n@param {Function} callback (Optional) The function to execute once the expand completes.\n@param {Object} scope (Optional) The scope to run the callback in.", "docstring_tokens": ["Expand", "this", "node", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/NodeInterface.js#L1014-L1041", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/NodeInterface.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Collapse this node.\n@param {Function} recursive (Optional) `true` to recursively collapse all the children.\n@param {Function} callback (Optional) The function to execute once the collapse completes.\n@param {Object} scope (Optional) The scope to run the callback in.", "docstring_tokens": ["Collapse", "this", "node", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/NodeInterface.js#L1049-L1061", "partition": "test"} +{"repo": "rathbone1200cc/easy-async", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "set the next fn, allowing the tail to advance", "docstring_tokens": ["set", "the", "next", "fn", "allowing", "the", "tail", "to", "advance"], "sha": "42ae882b55a24544c71bd52eb7c37967fc29abc1", "url": "https://github.com/rathbone1200cc/easy-async/blob/42ae882b55a24544c71bd52eb7c37967fc29abc1/index.js#L92-L100", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/core/Ext-more.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Repaints the whole page. This fixes frequently encountered painting issues in mobile Safari.", "docstring_tokens": ["Repaints", "the", "whole", "page", ".", "This", "fixes", "frequently", "encountered", "painting", "issues", "in", "mobile", "Safari", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/core/Ext-more.js#L52-L59", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/core/Ext-more.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generates unique ids. If the element is passes and it already has an `id`, it is unchanged.\n@param {Mixed} el (optional) The element to generate an id for.\n@param {String} [prefix=ext-gen] (optional) The `id` prefix.\n@return {String} The generated `id`.", "docstring_tokens": ["Generates", "unique", "ids", ".", "If", "the", "element", "is", "passes", "and", "it", "already", "has", "an", "id", "it", "is", "unchanged", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/core/Ext-more.js#L67-L87", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/core/Ext-more.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Copies a set of named properties from the source object to the destination object.\n\nExample:\n\nImageComponent = Ext.extend(Ext.Component, {\ninitComponent: function() {\nthis.autoEl = { tag: 'img' };\nMyComponent.superclass.initComponent.apply(this, arguments);\nthis.initialBox = Ext.copyTo({}, this.initialConfig, 'x,y,width,height');\n}\n});\n\nImportant note: To borrow class prototype methods, use {@link Ext.Base#borrow} instead.\n\n@param {Object} dest The destination object.\n@param {Object} source The source object.\n@param {String/String[]} names Either an Array of property names, or a comma-delimited list\nof property names to copy.\n@param {Boolean} [usePrototypeKeys=false] (optional) Pass `true` to copy keys off of the prototype as well as the instance.\n@return {Object} The modified object.", "docstring_tokens": ["Copies", "a", "set", "of", "named", "properties", "from", "the", "source", "object", "to", "the", "destination", "object", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/core/Ext-more.js#L162-L172", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/core/Ext-more.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes this element from the document, removes all DOM event listeners, and deletes the cache reference.\nAll DOM event listeners are removed from this element.\n@param {HTMLElement} node The node to remove.", "docstring_tokens": ["Removes", "this", "element", "from", "the", "document", "removes", "all", "DOM", "event", "listeners", "and", "deletes", "the", "cache", "reference", ".", "All", "DOM", "event", "listeners", "are", "removed", "from", "this", "element", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/core/Ext-more.js#L236-L242", "partition": "test"} +{"repo": "BeneathTheInk/temple-mustache", "path": "src/plugins/actions.js", "func_name": "addAction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Msutache Instance Methods", "docstring_tokens": ["Msutache", "Instance", "Methods"], "sha": "5a66d6a443f5f98f09483fd03d9ba9ee11fb4ae9", "url": "https://github.com/BeneathTheInk/temple-mustache/blob/5a66d6a443f5f98f09483fd03d9ba9ee11fb4ae9/src/plugins/actions.js#L77-L91", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/field/Field.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "helper method for deprecating a property", "docstring_tokens": ["helper", "method", "for", "deprecating", "a", "property"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/field/Field.js#L356-L371", "partition": "test"} +{"repo": "cwebbdesign/store-object", "path": "index.js", "func_name": "Store", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Version 0.1.0 Create Store Objects", "docstring_tokens": ["Version", "0", ".", "1", ".", "0", "Create", "Store", "Objects"], "sha": "936f03b3632242f6504bbd77e5b618a76a88b41d", "url": "https://github.com/cwebbdesign/store-object/blob/936f03b3632242f6504bbd77e5b618a76a88b41d/index.js#L15-L26", "partition": "test"} +{"repo": "vedmalex/fte2", "path": "grammar/raw.pegjs.js", "func_name": "node", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "join an array", "docstring_tokens": ["join", "an", "array"], "sha": "5a516114deb8c4fa37936d83cebf6e8cc1825cd8", "url": "https://github.com/vedmalex/fte2/blob/5a516114deb8c4fa37936d83cebf6e8cc1825cd8/grammar/raw.pegjs.js#L2317-L2332", "partition": "test"} +{"repo": "vedmalex/fte2", "path": "grammar/raw.pegjs.js", "func_name": "f", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "flatten an array and join it", "docstring_tokens": ["flatten", "an", "array", "and", "join", "it"], "sha": "5a516114deb8c4fa37936d83cebf6e8cc1825cd8", "url": "https://github.com/vedmalex/fte2/blob/5a516114deb8c4fa37936d83cebf6e8cc1825cd8/grammar/raw.pegjs.js#L2339-L2344", "partition": "test"} +{"repo": "apentle/react-native-apentle", "path": "local-cli/apentle-generator/templates/app/store/configureStore.js", "func_name": "configureStore", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "configureStore - create redux-store\n\n@param {function} onComplete callback after init store\n@returns {object} redux-store", "docstring_tokens": ["configureStore", "-", "create", "redux", "-", "store"], "sha": "c83f97fa3ee36236344b070728804facb82ce31e", "url": "https://github.com/apentle/react-native-apentle/blob/c83f97fa3ee36236344b070728804facb82ce31e/local-cli/apentle-generator/templates/app/store/configureStore.js#L23-L46", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/Droppable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates new Droppable.\n@param {Mixed} el String, HtmlElement or Ext.Element representing an\nelement on the page.\n@param {Object} config Configuration options for this class.", "docstring_tokens": ["Creates", "new", "Droppable", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/Droppable.js#L69-L120", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/Droppable.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Enable the Droppable target.\nThis is invoked immediately after constructing a Droppable if the\ndisabled parameter is NOT set to true.", "docstring_tokens": ["Enable", "the", "Droppable", "target", ".", "This", "is", "invoked", "immediately", "after", "constructing", "a", "Droppable", "if", "the", "disabled", "parameter", "is", "NOT", "set", "to", "true", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/Droppable.js#L210-L219", "partition": "test"} +{"repo": "snapptop/ninjs-lodash", "path": "lib/path.js", "func_name": "rel", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "returns rel path of src from root", "docstring_tokens": ["returns", "rel", "path", "of", "src", "from", "root"], "sha": "fab253b7d96cc9bb3f2a1057efff2684c200bcee", "url": "https://github.com/snapptop/ninjs-lodash/blob/fab253b7d96cc9bb3f2a1057efff2684c200bcee/lib/path.js#L171-L176", "partition": "test"} +{"repo": "snapptop/ninjs-lodash", "path": "lib/path.js", "func_name": "rebase", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "returns rel appended to dest root", "docstring_tokens": ["returns", "rel", "appended", "to", "dest", "root"], "sha": "fab253b7d96cc9bb3f2a1057efff2684c200bcee", "url": "https://github.com/snapptop/ninjs-lodash/blob/fab253b7d96cc9bb3f2a1057efff2684c200bcee/lib/path.js#L179-L182", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/plain-precompiled-build.js", "func_name": "lookupLevel", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Maps a given level value to the `methodMap` indexes above.", "docstring_tokens": ["Maps", "a", "given", "level", "value", "to", "the", "methodMap", "indexes", "above", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/plain-precompiled-build.js#L17115-L17126", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/plain-precompiled-build.js", "func_name": "log", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Can be overridden in the host environment", "docstring_tokens": ["Can", "be", "overridden", "in", "the", "host", "environment"], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/plain-precompiled-build.js#L17129-L17145", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/plain-precompiled-build.js", "func_name": "simpleId", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "an ID is simple if it only has one part, and that part is not `..` or `this`.", "docstring_tokens": ["an", "ID", "is", "simple", "if", "it", "only", "has", "one", "part", "and", "that", "part", "is", "not", "..", "or", "this", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/plain-precompiled-build.js#L17512-L17514", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/plain-precompiled-build.js", "func_name": "acceptKey", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Visits a given value. If mutating, will replace the value if necessary.", "docstring_tokens": ["Visits", "a", "given", "value", ".", "If", "mutating", "will", "replace", "the", "value", "if", "necessary", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/plain-precompiled-build.js#L18561-L18571", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/plain-precompiled-build.js", "func_name": "acceptRequired", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Performs an accept operation with added sanity check to ensure required keys are not removed.", "docstring_tokens": ["Performs", "an", "accept", "operation", "with", "added", "sanity", "check", "to", "ensure", "required", "keys", "are", "not", "removed", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/plain-precompiled-build.js#L18575-L18581", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/plain-precompiled-build.js", "func_name": "acceptArray", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Traverses a given array. If mutating, empty respnses will be removed for child elements.", "docstring_tokens": ["Traverses", "a", "given", "array", ".", "If", "mutating", "empty", "respnses", "will", "be", "removed", "for", "child", "elements", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/plain-precompiled-build.js#L18585-L18595", "partition": "test"} +{"repo": "hashchange/backbone.declarative.views", "path": "demo/amd/rjs/output/unified/plain-precompiled-build.js", "func_name": "ret", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Template is only compiled on first use and cached after that point.", "docstring_tokens": ["Template", "is", "only", "compiled", "on", "first", "use", "and", "cached", "after", "that", "point", "."], "sha": "612ceb080fb3101d766f31be1ed3eee5d8e80a9d", "url": "https://github.com/hashchange/backbone.declarative.views/blob/612ceb080fb3101d766f31be1ed3eee5d8e80a9d/demo/amd/rjs/output/unified/plain-precompiled-build.js#L19437-L19442", "partition": "test"} +{"repo": "Katochimoto/xblocks-core", "path": "src/xblocks/element.js", "func_name": "reduceChildListMutation", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The allocation of the changed nodes.\n@param {HTMLElement} mutationContent\n@param {MutationRecord} record\n@returns {HTMLElement}\n@private", "docstring_tokens": ["The", "allocation", "of", "the", "changed", "nodes", "."], "sha": "714102b7c2adb4ae197403df252e967a1b967bb1", "url": "https://github.com/Katochimoto/xblocks-core/blob/714102b7c2adb4ae197403df252e967a1b967bb1/src/xblocks/element.js#L334-L364", "partition": "test"} +{"repo": "MicroMinion/mm-services-kademlia", "path": "src/kad/node.js", "func_name": "Node", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Represents a Kademlia node\n@constructor\n@param {Object} options\n@param {Router} options.router - Custom router instance to use\n@param {RPC} options.transport - Transport (RPC) adapter to use\n@param {Object} options.storage - Storage adapter to use\n@param {Logger} options.logger - Logger instance to use\n@param {Node~validator} options.validator - Key-Value validation function\n@emits Node#join\n@emits Node#leave\n@emits Node#connect\n@emits Node#disconnect\n@emits Node#error", "docstring_tokens": ["Represents", "a", "Kademlia", "node"], "sha": "05792cbc0351ab7d5ca3491cb0a7ff83a95c3407", "url": "https://github.com/MicroMinion/mm-services-kademlia/blob/05792cbc0351ab7d5ca3491cb0a7ff83a95c3407/src/kad/node.js#L27-L53", "partition": "test"} +{"repo": "Qwerios/madlib-promise-queue", "path": "lib/queue.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets a promise from the queue that will resolve when there is a slot available\n\n@function ready\n\n@return {Promise} Will resolve when a slot if available in the queue", "docstring_tokens": ["Gets", "a", "promise", "from", "the", "queue", "that", "will", "resolve", "when", "there", "is", "a", "slot", "available"], "sha": "201172ab5a9ebe5ee6649627bce456e26cedc539", "url": "https://github.com/Qwerios/madlib-promise-queue/blob/201172ab5a9ebe5ee6649627bce456e26cedc539/lib/queue.js#L41-L51", "partition": "test"} +{"repo": "Qwerios/madlib-promise-queue", "path": "lib/queue.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Signals the queue an item is done running\n\n@function ready\n\n@return None", "docstring_tokens": ["Signals", "the", "queue", "an", "item", "is", "done", "running"], "sha": "201172ab5a9ebe5ee6649627bce456e26cedc539", "url": "https://github.com/Qwerios/madlib-promise-queue/blob/201172ab5a9ebe5ee6649627bce456e26cedc539/lib/queue.js#L61-L75", "partition": "test"} +{"repo": "Qwerios/madlib-promise-queue", "path": "lib/queue.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Flushes the queue. Will reject any remaining promises\n\n@function flush\n\n@return None", "docstring_tokens": ["Flushes", "the", "queue", ".", "Will", "reject", "any", "remaining", "promises"], "sha": "201172ab5a9ebe5ee6649627bce456e26cedc539", "url": "https://github.com/Qwerios/madlib-promise-queue/blob/201172ab5a9ebe5ee6649627bce456e26cedc539/lib/queue.js#L85-L93", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/form/Panel.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Loads matching fields from a model instance into this form.\n@param {Ext.data.Model} record The model instance.\n@return {Ext.form.Panel} This form.", "docstring_tokens": ["Loads", "matching", "fields", "from", "a", "model", "instance", "into", "this", "form", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/form/Panel.js#L379-L389", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/form/Panel.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an array of fields in this formpanel.\n@return {Ext.field.Field[]} An array of fields in this form panel.\n@private", "docstring_tokens": ["Returns", "an", "array", "of", "fields", "in", "this", "formpanel", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/form/Panel.js#L1223-L1239", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/form/Panel.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns the currently focused field\n@return {Ext.field.Field} The currently focused field, if one is focused or `null`.\n@private", "docstring_tokens": ["Returns", "the", "currently", "focused", "field"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/form/Panel.js#L1291-L1304", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/Point.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Whether the given point is not away from this point within the given threshold amount.\n@param {Ext.util.Point/Object} point The point to check with, either an instance\nof {@link Ext.util.Point} or an object with `x` and `y` properties.\n@param {Object/Number} threshold Can be either an object with `x` and `y` properties or a number.\n@return {Boolean}", "docstring_tokens": ["Whether", "the", "given", "point", "is", "not", "away", "from", "this", "point", "within", "the", "given", "threshold", "amount", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/Point.js#L129-L142", "partition": "test"} +{"repo": "raoul2000/ssh-utils", "path": "src/exec.js", "func_name": "sshCommandSequence", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sequentially execute a list of Promised based SSH command and\nreturns a Promise whose value is resvoled as an array. This array\ncontains objects that holds the SSH command success or error.\n\n@param {[type]} connection [description]\n@param {[type]} commands [description]\n@return {[type]} [description]", "docstring_tokens": ["Sequentially", "execute", "a", "list", "of", "Promised", "based", "SSH", "command", "and", "returns", "a", "Promise", "whose", "value", "is", "resvoled", "as", "an", "array", ".", "This", "array", "contains", "objects", "that", "holds", "the", "SSH", "command", "success", "or", "error", "."], "sha": "e0ed6f05fff95052da17bbcd86e5c781e72c2661", "url": "https://github.com/raoul2000/ssh-utils/blob/e0ed6f05fff95052da17bbcd86e5c781e72c2661/src/exec.js#L107-L151", "partition": "test"} +{"repo": "LivelyKernel/lively.source-transform", "path": "capturing.js", "func_name": "replaceRefs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- replacement helpers", "docstring_tokens": ["-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "replacement", "helpers"], "sha": "4827c85699e6151b592cdab3a9638bbcb48b45aa", "url": "https://github.com/LivelyKernel/lively.source-transform/blob/4827c85699e6151b592cdab3a9638bbcb48b45aa/capturing.js#L246-L295", "partition": "test"} +{"repo": "LivelyKernel/lively.source-transform", "path": "capturing.js", "func_name": "generateUniqueName", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- naming -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-", "docstring_tokens": ["-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "naming", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-"], "sha": "4827c85699e6151b592cdab3a9638bbcb48b45aa", "url": "https://github.com/LivelyKernel/lively.source-transform/blob/4827c85699e6151b592cdab3a9638bbcb48b45aa/capturing.js#L377-L384", "partition": "test"} +{"repo": "LivelyKernel/lively.source-transform", "path": "capturing.js", "func_name": "replaceClassDecls", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- capturing specific code -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-", "docstring_tokens": ["-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "capturing", "specific", "code", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-"], "sha": "4827c85699e6151b592cdab3a9638bbcb48b45aa", "url": "https://github.com/LivelyKernel/lively.source-transform/blob/4827c85699e6151b592cdab3a9638bbcb48b45aa/capturing.js#L451-L465", "partition": "test"} +{"repo": "LivelyKernel/lively.source-transform", "path": "capturing.js", "func_name": "varDeclOrAssignment", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- code generation helpers -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-", "docstring_tokens": ["-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "code", "generation", "helpers", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-", "=", "-"], "sha": "4827c85699e6151b592cdab3a9638bbcb48b45aa", "url": "https://github.com/LivelyKernel/lively.source-transform/blob/4827c85699e6151b592cdab3a9638bbcb48b45aa/capturing.js#L890-L900", "partition": "test"} +{"repo": "MicroMinion/mm-services-kademlia", "path": "src/kad/item.js", "func_name": "Item", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Storage model for DHT items, which is serialized to JSON before being passed\nto the storage adapter\n@constructor\n@param {String} key - Lookup key\n@param {String|Object|Array} value - Stored value\n@param {String} publisher - Original publisher's nodeID\n@param {Number} timestamp - Optional UNIX timestamp of original publication", "docstring_tokens": ["Storage", "model", "for", "DHT", "items", "which", "is", "serialized", "to", "JSON", "before", "being", "passed", "to", "the", "storage", "adapter"], "sha": "05792cbc0351ab7d5ca3491cb0a7ff83a95c3407", "url": "https://github.com/MicroMinion/mm-services-kademlia/blob/05792cbc0351ab7d5ca3491cb0a7ff83a95c3407/src/kad/item.js#L15-L32", "partition": "test"} +{"repo": "ForbesLindesay/handle", "path": "index.js", "func_name": "on", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get a handle function for a given top\n\n@param {Element} top The element to begin delegating from\n@return {Function}\n@api public", "docstring_tokens": ["Get", "a", "handle", "function", "for", "a", "given", "top"], "sha": "b87a9091e39a8a528b86bae766a14d9c026cbcff", "url": "https://github.com/ForbesLindesay/handle/blob/b87a9091e39a8a528b86bae766a14d9c026cbcff/index.js#L17-L22", "partition": "test"} +{"repo": "ForbesLindesay/handle", "path": "index.js", "func_name": "handleElements", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Bind `elements` event `type` to `fn`.\n\n@param {Element} elements\n@param {String} type\n@param {Function} fn\n@param {Boolean} capture\n@return {Function}\n@api public", "docstring_tokens": ["Bind", "elements", "event", "type", "to", "fn", "."], "sha": "b87a9091e39a8a528b86bae766a14d9c026cbcff", "url": "https://github.com/ForbesLindesay/handle/blob/b87a9091e39a8a528b86bae766a14d9c026cbcff/index.js#L69-L86", "partition": "test"} +{"repo": "YannickBochatay/JSYG.CropAndResize", "path": "JSYG.CropAndResize.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Active le recadrage\n@param opt optionnel, objet d\u00e9finissant les options\n@returns {CropAndResize}", "docstring_tokens": ["Active", "le", "recadrage"], "sha": "a48e13e5dfa393dc88fbd7d34118cabc7da7db75", "url": "https://github.com/YannickBochatay/JSYG.CropAndResize/blob/a48e13e5dfa393dc88fbd7d34118cabc7da7db75/JSYG.CropAndResize.js#L149-L207", "partition": "test"} +{"repo": "75lb/reduce-without", "path": "lib/reduce-without.js", "func_name": "without", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns a new array with the same content as the input minus the specified values.\n\n@param {any | any[]} - one, or more [test-value](https://github.com/75lb/test-value) queries\n@returns {Array}\n@example\n> [ 1, 2, 3 ].reduce(without(2))\n[ 1, 3 ]\n\n> [ 1, 2, 3 ].reduce(without([ 2, 3 ]))\n[ 1 ]\n\n> data = [\n{ name: \"Dana\", age: 30 },\n{ name: \"Yana\", age: 20 },\n{ name: \"Zhana\", age: 10 }\n]\n> data.reduce(without({ name: /ana/ }))\n[]\n\n@alias module:reduce-without", "docstring_tokens": ["Returns", "a", "new", "array", "with", "the", "same", "content", "as", "the", "input", "minus", "the", "specified", "values", "."], "sha": "ffadbc3dd3334ead18bc35b394aef73be30fb7dc", "url": "https://github.com/75lb/reduce-without/blob/ffadbc3dd3334ead18bc35b394aef73be30fb7dc/lib/reduce-without.js#L33-L43", "partition": "test"} +{"repo": "igalarza/dhtmlx-e6", "path": "dist/dhtmlx-e6.js", "func_name": "initDhtmlxToolbar", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates the dhtmlXToolbarObject inside its container.", "docstring_tokens": ["Creates", "the", "dhtmlXToolbarObject", "inside", "its", "container", "."], "sha": "e111c6ecec68f1ab18092ee74a440389edff1a39", "url": "https://github.com/igalarza/dhtmlx-e6/blob/e111c6ecec68f1ab18092ee74a440389edff1a39/dist/dhtmlx-e6.js#L1127-L1144", "partition": "test"} +{"repo": "BeneathTheInk/temple-mustache", "path": "src/model.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "sets the data on the model", "docstring_tokens": ["sets", "the", "data", "on", "the", "model"], "sha": "5a66d6a443f5f98f09483fd03d9ba9ee11fb4ae9", "url": "https://github.com/BeneathTheInk/temple-mustache/blob/5a66d6a443f5f98f09483fd03d9ba9ee11fb4ae9/src/model.js#L43-L48", "partition": "test"} +{"repo": "BeneathTheInk/temple-mustache", "path": "src/model.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "an array of models in the current stack, with the root as the first", "docstring_tokens": ["an", "array", "of", "models", "in", "the", "current", "stack", "with", "the", "root", "as", "the", "first"], "sha": "5a66d6a443f5f98f09483fd03d9ba9ee11fb4ae9", "url": "https://github.com/BeneathTheInk/temple-mustache/blob/5a66d6a443f5f98f09483fd03d9ba9ee11fb4ae9/src/model.js#L51-L60", "partition": "test"} +{"repo": "BeneathTheInk/temple-mustache", "path": "src/model.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "gets the model in the stack at the index negative values start at root", "docstring_tokens": ["gets", "the", "model", "in", "the", "stack", "at", "the", "index", "negative", "values", "start", "at", "root"], "sha": "5a66d6a443f5f98f09483fd03d9ba9ee11fb4ae9", "url": "https://github.com/BeneathTheInk/temple-mustache/blob/5a66d6a443f5f98f09483fd03d9ba9ee11fb4ae9/src/model.js#L64-L76", "partition": "test"} +{"repo": "BeneathTheInk/temple-mustache", "path": "src/model.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "returns the first model which passes the function", "docstring_tokens": ["returns", "the", "first", "model", "which", "passes", "the", "function"], "sha": "5a66d6a443f5f98f09483fd03d9ba9ee11fb4ae9", "url": "https://github.com/BeneathTheInk/temple-mustache/blob/5a66d6a443f5f98f09483fd03d9ba9ee11fb4ae9/src/model.js#L86-L94", "partition": "test"} +{"repo": "BeneathTheInk/temple-mustache", "path": "src/model.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "returns the value at path, but only looks in the data on this model", "docstring_tokens": ["returns", "the", "value", "at", "path", "but", "only", "looks", "in", "the", "data", "on", "this", "model"], "sha": "5a66d6a443f5f98f09483fd03d9ba9ee11fb4ae9", "url": "https://github.com/BeneathTheInk/temple-mustache/blob/5a66d6a443f5f98f09483fd03d9ba9ee11fb4ae9/src/model.js#L97-L113", "partition": "test"} +{"repo": "BeneathTheInk/temple-mustache", "path": "src/model.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "retrieves value with path query", "docstring_tokens": ["retrieves", "value", "with", "path", "query"], "sha": "5a66d6a443f5f98f09483fd03d9ba9ee11fb4ae9", "url": "https://github.com/BeneathTheInk/temple-mustache/blob/5a66d6a443f5f98f09483fd03d9ba9ee11fb4ae9/src/model.js#L116-L158", "partition": "test"} +{"repo": "akshaylive/live.io", "path": "example/ChatExample/app/controllers/users/users.password.server.controller.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generate random token", "docstring_tokens": ["Generate", "random", "token"], "sha": "44f68d61eb47d06cef1e2b7bb7d026cd204b72d2", "url": "https://github.com/akshaylive/live.io/blob/44f68d61eb47d06cef1e2b7bb7d026cd204b72d2/example/ChatExample/app/controllers/users/users.password.server.controller.js#L22-L27", "partition": "test"} +{"repo": "akshaylive/live.io", "path": "example/ChatExample/app/controllers/users/users.password.server.controller.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Lookup user by username", "docstring_tokens": ["Lookup", "user", "by", "username"], "sha": "44f68d61eb47d06cef1e2b7bb7d026cd204b72d2", "url": "https://github.com/akshaylive/live.io/blob/44f68d61eb47d06cef1e2b7bb7d026cd204b72d2/example/ChatExample/app/controllers/users/users.password.server.controller.js#L29-L56", "partition": "test"} +{"repo": "akshaylive/live.io", "path": "example/ChatExample/app/controllers/users/users.password.server.controller.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "If valid email, send reset email using service", "docstring_tokens": ["If", "valid", "email", "send", "reset", "email", "using", "service"], "sha": "44f68d61eb47d06cef1e2b7bb7d026cd204b72d2", "url": "https://github.com/akshaylive/live.io/blob/44f68d61eb47d06cef1e2b7bb7d026cd204b72d2/example/ChatExample/app/controllers/users/users.password.server.controller.js#L169-L181", "partition": "test"} +{"repo": "rhyolight/sprinter.js", "path": "sprinter.js", "func_name": "sortIssues", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sorts array of issue objects by last updated date.", "docstring_tokens": ["Sorts", "array", "of", "issue", "objects", "by", "last", "updated", "date", "."], "sha": "6b8cd6ed85a41d407787090c74a76efb981d13e0", "url": "https://github.com/rhyolight/sprinter.js/blob/6b8cd6ed85a41d407787090c74a76efb981d13e0/sprinter.js#L23-L42", "partition": "test"} +{"repo": "rhyolight/sprinter.js", "path": "sprinter.js", "func_name": "deduplicateCollaborators", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Removes duplicate collaborators.\n@param collaborators\n@returns {Array}", "docstring_tokens": ["Removes", "duplicate", "collaborators", "."], "sha": "6b8cd6ed85a41d407787090c74a76efb981d13e0", "url": "https://github.com/rhyolight/sprinter.js/blob/6b8cd6ed85a41d407787090c74a76efb981d13e0/sprinter.js#L95-L107", "partition": "test"} +{"repo": "rhyolight/sprinter.js", "path": "sprinter.js", "func_name": "extractSuperIssueSubTaskNumbers", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Using regex, finds subtasks within a super issue's body string and returns\nthem in an array of issue numbers.\n@param superIssue\n@returns {Array}", "docstring_tokens": ["Using", "regex", "finds", "subtasks", "within", "a", "super", "issue", "s", "body", "string", "and", "returns", "them", "in", "an", "array", "of", "issue", "numbers", "."], "sha": "6b8cd6ed85a41d407787090c74a76efb981d13e0", "url": "https://github.com/rhyolight/sprinter.js/blob/6b8cd6ed85a41d407787090c74a76efb981d13e0/sprinter.js#L115-L125", "partition": "test"} +{"repo": "rhyolight/sprinter.js", "path": "sprinter.js", "func_name": "formatIssues", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Takes an array of issue objects and presents them differently depending on\n'format'. The only valid option now is \"network\", which groups super issue\nsubtasks into a \"subtasks\" array on the super issue object.\n@param format {string} 'network' or null\n@param issues {array}\n@returns {object} with 'supers' array, 'singletons' array and 'size' for\ntotal number of issues in all.", "docstring_tokens": ["Takes", "an", "array", "of", "issue", "objects", "and", "presents", "them", "differently", "depending", "on", "format", ".", "The", "only", "valid", "option", "now", "is", "network", "which", "groups", "super", "issue", "subtasks", "into", "a", "subtasks", "array", "on", "the", "super", "issue", "object", "."], "sha": "6b8cd6ed85a41d407787090c74a76efb981d13e0", "url": "https://github.com/rhyolight/sprinter.js/blob/6b8cd6ed85a41d407787090c74a76efb981d13e0/sprinter.js#L136-L175", "partition": "test"} +{"repo": "rhyolight/sprinter.js", "path": "sprinter.js", "func_name": "mergeIssuesAndPrs", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Given a list of issues and pull requests, populate the additional properties\nthat exist within any issues into the PR objects so they contain as much info\nas possible.\n@param issues {Object[]}\n@param prs {Object[]}", "docstring_tokens": ["Given", "a", "list", "of", "issues", "and", "pull", "requests", "populate", "the", "additional", "properties", "that", "exist", "within", "any", "issues", "into", "the", "PR", "objects", "so", "they", "contain", "as", "much", "info", "as", "possible", "."], "sha": "6b8cd6ed85a41d407787090c74a76efb981d13e0", "url": "https://github.com/rhyolight/sprinter.js/blob/6b8cd6ed85a41d407787090c74a76efb981d13e0/sprinter.js#L184-L196", "partition": "test"} +{"repo": "rhyolight/sprinter.js", "path": "sprinter.js", "func_name": "Sprinter", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Wrapper class around the GitHub API client, providing some authentication\nconvenience and additional utility functions for executing operations across\nthe issue trackers of several repositories at once.\n@param username {string} GitHub username credential for authentication.\n@param password {string} GitHub password credential for authentication.\n@param repoSlugs {string[]} List of repository slug strings to operate upon.\n@param cache {int} How many seconds to cache fetched results. Default is 0.", "docstring_tokens": ["Wrapper", "class", "around", "the", "GitHub", "API", "client", "providing", "some", "authentication", "convenience", "and", "additional", "utility", "functions", "for", "executing", "operations", "across", "the", "issue", "trackers", "of", "several", "repositories", "at", "once", "."], "sha": "6b8cd6ed85a41d407787090c74a76efb981d13e0", "url": "https://github.com/rhyolight/sprinter.js/blob/6b8cd6ed85a41d407787090c74a76efb981d13e0/sprinter.js#L207-L233", "partition": "test"} +{"repo": "rhyolight/sprinter.js", "path": "sprinter.js", "func_name": "getFetchByStateCallback", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This exists so we can populate an errors object from the async calls. Otherwise if there is an error passed to the async callback, the async module will stop executing remaining functions.", "docstring_tokens": ["This", "exists", "so", "we", "can", "populate", "an", "errors", "object", "from", "the", "async", "calls", ".", "Otherwise", "if", "there", "is", "an", "error", "passed", "to", "the", "async", "callback", "the", "async", "module", "will", "stop", "executing", "remaining", "functions", "."], "sha": "6b8cd6ed85a41d407787090c74a76efb981d13e0", "url": "https://github.com/rhyolight/sprinter.js/blob/6b8cd6ed85a41d407787090c74a76efb981d13e0/sprinter.js#L440-L447", "partition": "test"} +{"repo": "malko/whitewalker-adapters", "path": "utils.js", "func_name": "listAvailables", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "return a cached list of availables adapter unless forceRefresh is true\n@param {boolean} forceRefresh force to refresh the cache of availables adapter", "docstring_tokens": ["return", "a", "cached", "list", "of", "availables", "adapter", "unless", "forceRefresh", "is", "true"], "sha": "7ad332f061e034a3722a1892510e40b7d5b48338", "url": "https://github.com/malko/whitewalker-adapters/blob/7ad332f061e034a3722a1892510e40b7d5b48338/utils.js#L24-L35", "partition": "test"} +{"repo": "malko/whitewalker-adapters", "path": "utils.js", "func_name": "readConfig", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "read a config for given adapter at path\n@param {string} adapterName the name of the adapter we want to use\n@param {string} path file or directory to read the config from. In case of a directory will automatically append the adapter.configFileName", "docstring_tokens": ["read", "a", "config", "for", "given", "adapter", "at", "path"], "sha": "7ad332f061e034a3722a1892510e40b7d5b48338", "url": "https://github.com/malko/whitewalker-adapters/blob/7ad332f061e034a3722a1892510e40b7d5b48338/utils.js#L50-L53", "partition": "test"} +{"repo": "malko/whitewalker-adapters", "path": "utils.js", "func_name": "writeConfig", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "write a config for given adapter in given path\n@param {string} adapterName the name of the adapter we want to use\n@param {string} path file or directory where to write the config. In case of a directory will automatically append the adapter.configFileName\n@param {object} config the config to write", "docstring_tokens": ["write", "a", "config", "for", "given", "adapter", "in", "given", "path"], "sha": "7ad332f061e034a3722a1892510e40b7d5b48338", "url": "https://github.com/malko/whitewalker-adapters/blob/7ad332f061e034a3722a1892510e40b7d5b48338/utils.js#L69-L72", "partition": "test"} +{"repo": "blinkylights23/grunt-swigtemplates", "path": "tasks/swigtemplates.js", "func_name": "handleFiles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handle non-i18n files", "docstring_tokens": ["Handle", "non", "-", "i18n", "files"], "sha": "3a0d19f45aae7dc35efe3b5a08376be629498b7c", "url": "https://github.com/blinkylights23/grunt-swigtemplates/blob/3a0d19f45aae7dc35efe3b5a08376be629498b7c/tasks/swigtemplates.js#L81-L89", "partition": "test"} +{"repo": "blinkylights23/grunt-swigtemplates", "path": "tasks/swigtemplates.js", "func_name": "handleI18nFiles", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Handle i18n files", "docstring_tokens": ["Handle", "i18n", "files"], "sha": "3a0d19f45aae7dc35efe3b5a08376be629498b7c", "url": "https://github.com/blinkylights23/grunt-swigtemplates/blob/3a0d19f45aae7dc35efe3b5a08376be629498b7c/tasks/swigtemplates.js#L92-L101", "partition": "test"} +{"repo": "blinkylights23/grunt-swigtemplates", "path": "tasks/swigtemplates.js", "func_name": "getContext", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Get swig context", "docstring_tokens": ["Get", "swig", "context"], "sha": "3a0d19f45aae7dc35efe3b5a08376be629498b7c", "url": "https://github.com/blinkylights23/grunt-swigtemplates/blob/3a0d19f45aae7dc35efe3b5a08376be629498b7c/tasks/swigtemplates.js#L139-L154", "partition": "test"} +{"repo": "butlerx/event-page", "path": "src/generate.js", "func_name": "render", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Render pages with handle bar template\n@param {string} templateFile - filename of the template\n@param {?} page - data for page\n@param {string} url - url for page to live at\n@return {Promise} - resolves once rendered", "docstring_tokens": ["Render", "pages", "with", "handle", "bar", "template"], "sha": "eddd2b530908c3ad8a95a13e822010691b3d2dc8", "url": "https://github.com/butlerx/event-page/blob/eddd2b530908c3ad8a95a13e822010691b3d2dc8/src/generate.js#L34-L55", "partition": "test"} +{"repo": "fasttime/eslint-plugin-fasttime-rules", "path": "lib/nice-space-before-function-paren.js", "func_name": "isNamedFunction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determines whether a function has a name.\n@param {ASTNode} node The function node.\n@returns {boolean} Whether the function has a name.", "docstring_tokens": ["Determines", "whether", "a", "function", "has", "a", "name", "."], "sha": "57580844e4c88cb1353581a3b7281983793039aa", "url": "https://github.com/fasttime/eslint-plugin-fasttime-rules/blob/57580844e4c88cb1353581a3b7281983793039aa/lib/nice-space-before-function-paren.js#L26-L36", "partition": "test"} +{"repo": "fasttime/eslint-plugin-fasttime-rules", "path": "lib/nice-space-before-function-paren.js", "func_name": "getConfigForFunction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Gets the config for a given function.\n@param {ASTNode} node The function node.\n@returns {string} 'always', 'never', or 'ignore'.", "docstring_tokens": ["Gets", "the", "config", "for", "a", "given", "function", "."], "sha": "57580844e4c88cb1353581a3b7281983793039aa", "url": "https://github.com/fasttime/eslint-plugin-fasttime-rules/blob/57580844e4c88cb1353581a3b7281983793039aa/lib/nice-space-before-function-paren.js#L43-L59", "partition": "test"} +{"repo": "fasttime/eslint-plugin-fasttime-rules", "path": "lib/nice-space-before-function-paren.js", "func_name": "checkFunction", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks the parens of a function node.\n@param {ASTNode} node A function node.\n@returns {void}", "docstring_tokens": ["Checks", "the", "parens", "of", "a", "function", "node", "."], "sha": "57580844e4c88cb1353581a3b7281983793039aa", "url": "https://github.com/fasttime/eslint-plugin-fasttime-rules/blob/57580844e4c88cb1353581a3b7281983793039aa/lib/nice-space-before-function-paren.js#L66-L103", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/TapRepeater.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates new TapRepeater.\n@param {Object} config", "docstring_tokens": ["Creates", "new", "TapRepeater", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/TapRepeater.js#L49-L60", "partition": "test"} +{"repo": "four43/node-crisp-cache", "path": "main.js", "func_name": "bindEventMap", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Bind to user supplied event map, where key is event name\n@param {{}} eventMap\n@param {EventEmitter} eventEmitter", "docstring_tokens": ["Bind", "to", "user", "supplied", "event", "map", "where", "key", "is", "event", "name"], "sha": "716f55d62b946a950d036a93d84010178f0df6be", "url": "https://github.com/four43/node-crisp-cache/blob/716f55d62b946a950d036a93d84010178f0df6be/main.js#L648-L653", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/util/DelayedTask.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Cancels any pending timeout and queues a new one.\n@param {Number} delay The milliseconds to delay\n@param {Function} newFn Overrides the original function passed when instantiated.\n@param {Object} newScope Overrides the original `scope` passed when instantiated. Remember that if no scope\nis specified, `this` will refer to the browser window.\n@param {Array} newArgs Overrides the original `args` passed when instantiated.", "docstring_tokens": ["Cancels", "any", "pending", "timeout", "and", "queues", "a", "new", "one", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/util/DelayedTask.js#L90-L121", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/proxy/Server.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "This method handles the processing of the response and is usually overridden by subclasses to\ndo additional processing.\n@param {Boolean} success Whether or not this request was successful\n@param {Ext.data.Operation} operation The operation we made this request for\n@param {Ext.data.Request} request The request that was made\n@param {Object} response The response that we got\n@param {Function} callback The callback to be fired onces the response is processed\n@param {Object} scope The scope in which we call the callback\n@protected", "docstring_tokens": ["This", "method", "handles", "the", "processing", "of", "the", "response", "and", "is", "usually", "overridden", "by", "subclasses", "to", "do", "additional", "processing", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/proxy/Server.js#L222-L266", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/proxy/Server.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets up an exception on the operation\n@private\n@param {Ext.data.Operation} operation The operation\n@param {Object} response The response", "docstring_tokens": ["Sets", "up", "an", "exception", "on", "the", "operation"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/proxy/Server.js#L281-L288", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/data/proxy/Server.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Generates a url based on a given Ext.data.Request object. By default, ServerProxy's buildUrl will add the\ncache-buster param to the end of the url. Subclasses may need to perform additional modifications to the url.\n@param {Ext.data.Request} request The request object\n@return {String} The url", "docstring_tokens": ["Generates", "a", "url", "based", "on", "a", "given", "Ext", ".", "data", ".", "Request", "object", ".", "By", "default", "ServerProxy", "s", "buildUrl", "will", "add", "the", "cache", "-", "buster", "param", "to", "the", "end", "of", "the", "url", ".", "Subclasses", "may", "need", "to", "perform", "additional", "modifications", "to", "the", "url", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/data/proxy/Server.js#L406-L421", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/field/DatePicker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Updates the date format in the field.\n@private", "docstring_tokens": ["Updates", "the", "date", "format", "in", "the", "field", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/field/DatePicker.js#L230-L235", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/field/DatePicker.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called when the picker changes its value.\n@param {Ext.picker.Date} picker The date picker.\n@param {Object} value The new value from the date picker.\n@private", "docstring_tokens": ["Called", "when", "the", "picker", "changes", "its", "value", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/field/DatePicker.js#L311-L318", "partition": "test"} +{"repo": "jsantell/GhostTrain", "path": "lib/utils.js", "func_name": "clone", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Clones an object properties onto a new object\n\n@param {Object} obj\n@return {Object}", "docstring_tokens": ["Clones", "an", "object", "properties", "onto", "a", "new", "object"], "sha": "e69b6cc33669035c1d571bff3805e1b6d8a50ccb", "url": "https://github.com/jsantell/GhostTrain/blob/e69b6cc33669035c1d571bff3805e1b6d8a50ccb/lib/utils.js#L50-L60", "partition": "test"} +{"repo": "codeactual/impulse-bin", "path": "lib/impulse-bin/index.js", "func_name": "ImpulseBin", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "ImpulseBin constructor.\n\nconst bin = require('impulse-bin').create();\n\nExample configuration:\n\nbin\n.set('adapter', 'optimist')\n.set('quietOption', 'silent');\n\nConfiguration:\n\n- `{string} [adapter='commander]` Valid name of adapter in `./lib/adapter/`\n- `{string} [quietOption='quiet']` Silence all loggers on `--quiet`\n- `{string} [requiredOptionTmpl='--%s is required']` `exitOnMissingOption()` message template\n- `{string} [verboseOption='verbose']` Enable verbose logger on `--verbose`\n- `{string} [verboseLogName='[verbose]']` Prepended to each message\n- `{string} [stdoutLogName='[stdout]']` Prepended to each message\n- `{string} [stderrLogName='[stderr]']` Prepended to each message\n\nProperties:\n\n- `{object} adapter` Ex. `require('./lib/adapter/commander')`\n- `{object} console` `LongCon` instance\n- `{object} options` CLI options extracted by adapter\n- `{object} provider` commander.js, optimist, etc.\n\n@see LongCon https://github.com/codeactual/long-con/blob/master/docs/LongCon.md", "docstring_tokens": ["ImpulseBin", "constructor", "."], "sha": "23630b465fa921ef06b89739884d5bda013103e3", "url": "https://github.com/codeactual/impulse-bin/blob/23630b465fa921ef06b89739884d5bda013103e3/lib/impulse-bin/index.js#L66-L83", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Component.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates new Component.\n@param {Object} config The standard configuration object.", "docstring_tokens": ["Creates", "new", "Component", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Component.js#L952-L1002", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Component.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add or removes a class based on if the class is already added to the Component.\n\n@param {String} className The class to toggle.\n@chainable", "docstring_tokens": ["Add", "or", "removes", "a", "class", "based", "on", "if", "the", "class", "is", "already", "added", "to", "the", "Component", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Component.js#L1368-L1381", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Component.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Hides this Component optionally using an animation.\n@param {Object/Boolean} [animation] You can specify an animation here or a bool to use the {@link #hideAnimation} config.\n@return {Ext.Component}\n@chainable", "docstring_tokens": ["Hides", "this", "Component", "optionally", "using", "an", "animation", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Component.js#L1998-L2030", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Component.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Shows this component optionally using an animation.\n@param {Object/Boolean} [animation] You can specify an animation here or a bool to use the {@link #showAnimation} config.\n@return {Ext.Component}\n@chainable", "docstring_tokens": ["Shows", "this", "component", "optionally", "using", "an", "animation", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Component.js#L2038-L2073", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Component.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets the size of the Component.\n@param {Number} width The new width for the Component.\n@param {Number} height The new height for the Component.", "docstring_tokens": ["Sets", "the", "size", "of", "the", "Component", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Component.js#L2327-L2334", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Component.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Shows this component by another component. If you specify no alignment, it will automatically\nposition this component relative to the reference component.\n\nFor example, say we are aligning a Panel next to a Button, the alignment string would look like this:\n\n[panel-vertical (t/b/c)][panel-horizontal (l/r/c)]-[button-vertical (t/b/c)][button-horizontal (l/r/c)]\n\nwhere t = top, b = bottom, c = center, l = left, r = right.\n\n## Examples\n\n- `tl-tr` means top-left corner of the Panel to the top-right corner of the Button\n- `tc-bc` means top-center of the Panel to the bottom-center of the Button\n\nYou can put a '?' at the end of the alignment string to constrain the floating element to the\n{@link Ext.Viewport Viewport}\n\n// show `panel` by `button` using the default positioning (auto fit)\npanel.showBy(button);\n\n// align the top left corner of `panel` with the top right corner of `button` (constrained to viewport)\npanel.showBy(button, \"tl-tr?\");\n\n// align the bottom right corner of `panel` with the center left edge of `button` (not constrained by viewport)\npanel.showBy(button, \"br-cl\");\n\n@param {Ext.Component} component The target component to show this component by.\n@param {String} alignment (optional) The specific alignment.", "docstring_tokens": ["Shows", "this", "component", "by", "another", "component", ".", "If", "you", "specify", "no", "alignment", "it", "will", "automatically", "position", "this", "component", "relative", "to", "the", "reference", "component", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Component.js#L2408-L2431", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Component.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Prepares information on aligning this to component using alignment.\nAlso checks to see if this is already aligned to component according to alignment.\n@protected", "docstring_tokens": ["Prepares", "information", "on", "aligning", "this", "to", "component", "using", "alignment", ".", "Also", "checks", "to", "see", "if", "this", "is", "already", "aligned", "to", "component", "according", "to", "alignment", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Component.js#L2446-L2477", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Component.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Sets the current Alignment information, called by alignTo\n@private", "docstring_tokens": ["Sets", "the", "current", "Alignment", "information", "called", "by", "alignTo"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Component.js#L2491-L2493", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Component.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Walks up the `ownerCt` axis looking for an ancestor Container which matches\nthe passed simple selector.\n\nExample:\n\nvar owningTabPanel = grid.up('tabpanel');\n\n@param {String} selector (optional) The simple selector to test.\n@return {Ext.Container} The matching ancestor Container (or `undefined` if no match was found).", "docstring_tokens": ["Walks", "up", "the", "ownerCt", "axis", "looking", "for", "an", "ancestor", "Container", "which", "matches", "the", "passed", "simple", "selector", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Component.js#L2658-L2669", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/Component.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Destroys this Component. If it is currently added to a Container it will first be removed from that Container.\nAll Ext.Element references are also deleted and the Component is de-registered from Ext.ComponentManager", "docstring_tokens": ["Destroys", "this", "Component", ".", "If", "it", "is", "currently", "added", "to", "a", "Container", "it", "will", "first", "be", "removed", "from", "that", "Container", ".", "All", "Ext", ".", "Element", "references", "are", "also", "deleted", "and", "the", "Component", "is", "de", "-", "registered", "from", "Ext", ".", "ComponentManager"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/Component.js#L2679-L2707", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dataview/NestedList.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called when an list item has been tapped.\n@param {Ext.List} list The subList the item is on.\n@param {Number} index The id of the item tapped.\n@param {Ext.Element} target The list item tapped.\n@param {Ext.data.Record} record The record which as tapped.\n@param {Ext.event.Event} e The event.", "docstring_tokens": ["Called", "when", "an", "list", "item", "has", "been", "tapped", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dataview/NestedList.js#L474-L487", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dataview/NestedList.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Called when the backButton has been tapped.", "docstring_tokens": ["Called", "when", "the", "backButton", "has", "been", "tapped", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dataview/NestedList.js#L536-L544", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dataview/NestedList.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "The leaf you want to navigate to. You should pass a node instance.\n@param {Ext.data.NodeInterface} node The specified node to navigate to.", "docstring_tokens": ["The", "leaf", "you", "want", "to", "navigate", "to", ".", "You", "should", "pass", "a", "node", "instance", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dataview/NestedList.js#L825-L853", "partition": "test"} +{"repo": "GabrielRatener/tangler", "path": "src/utils.js", "func_name": "hoistFunctions", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "bring all function declarations and exports containing them to top of the program", "docstring_tokens": ["bring", "all", "function", "declarations", "and", "exports", "containing", "them", "to", "top", "of", "the", "program"], "sha": "2673b665f737080c06fa4ed92f0aa7f4d5d574dd", "url": "https://github.com/GabrielRatener/tangler/blob/2673b665f737080c06fa4ed92f0aa7f4d5d574dd/src/utils.js#L196-L230", "partition": "test"} +{"repo": "todvora/policecz-vehicles-client", "path": "lib/client.js", "func_name": "parseVehicleID", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Parse vehicle ID from the search results table", "docstring_tokens": ["Parse", "vehicle", "ID", "from", "the", "search", "results", "table"], "sha": "5b0bdb38c7cb135adf03edf89f77adadb280af0d", "url": "https://github.com/todvora/policecz-vehicles-client/blob/5b0bdb38c7cb135adf03edf89f77adadb280af0d/lib/client.js#L42-L46", "partition": "test"} +{"repo": "todvora/policecz-vehicles-client", "path": "lib/client.js", "func_name": "formatDetails", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Add current timestamp and results count to the output object", "docstring_tokens": ["Add", "current", "timestamp", "and", "results", "count", "to", "the", "output", "object"], "sha": "5b0bdb38c7cb135adf03edf89f77adadb280af0d", "url": "https://github.com/todvora/policecz-vehicles-client/blob/5b0bdb38c7cb135adf03edf89f77adadb280af0d/lib/client.js#L49-L56", "partition": "test"} +{"repo": "todvora/policecz-vehicles-client", "path": "lib/client.js", "func_name": "getByID", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Read all possible information about desired vehicle. Loads vehicle details page", "docstring_tokens": ["Read", "all", "possible", "information", "about", "desired", "vehicle", ".", "Loads", "vehicle", "details", "page"], "sha": "5b0bdb38c7cb135adf03edf89f77adadb280af0d", "url": "https://github.com/todvora/policecz-vehicles-client/blob/5b0bdb38c7cb135adf03edf89f77adadb280af0d/lib/client.js#L59-L79", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/purchases/Sencha.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Checks if the current user is able to make payments.\n\n## Example\n\nExt.device.Purchases.canMakePayments({\ncallback: function(flag) {\nconsole.log(flag ? 'Yup! :)' : 'Nope! :(');\n}\n});\n\n@param {Object} config\n@param {Function} config.callback\n@param {Boolean} config.callback.flag whether current user is able to make payments.\n@param {Object} config.scope", "docstring_tokens": ["Checks", "if", "the", "current", "user", "is", "able", "to", "make", "payments", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/purchases/Sencha.js#L25-L40", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/purchases/Sencha.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Will attempt to purchase this product.\n\n## Example\n\nproduct.purchase({\nsuccess: function() {\nconsole.log(product.get('localizedTitle') + ' purchased!');\n},\nfailure: function() {\nconsole.log('Something went wrong while trying to purchase ' + product.get('localizedTitle'));\n}\n});\n\n@param {Object} config\n@param {Ext.data.Model/String} config.product\n@param {Function} config.success\n@param {Function} config.failure", "docstring_tokens": ["Will", "attempt", "to", "purchase", "this", "product", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/purchases/Sencha.js#L200-L220", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/purchases/Sencha.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Attempts to mark this purchase as complete\n@param {Object} config\n@param {Function} config.success\n@param {Function} config.failure\n@param {Object} config.scope", "docstring_tokens": ["Attempts", "to", "mark", "this", "purchase", "as", "complete"], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/purchases/Sencha.js#L244-L276", "partition": "test"} +{"repo": "jkingsman/openssh-rsa-dsa-parse", "path": "index.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Simple, fast parsing of OpenSSH RSA and DSA keys to programmatically access key type, length, and and multiple key formats\n\n@param {String} key\n@module OpenSSLKey", "docstring_tokens": ["Simple", "fast", "parsing", "of", "OpenSSH", "RSA", "and", "DSA", "keys", "to", "programmatically", "access", "key", "type", "length", "and", "and", "multiple", "key", "formats"], "sha": "332413b78efd886b1c6aac7f888a025f9d4fa754", "url": "https://github.com/jkingsman/openssh-rsa-dsa-parse/blob/332413b78efd886b1c6aac7f888a025f9d4fa754/index.js#L9-L24", "partition": "test"} +{"repo": "dryjs/dry-underscore", "path": "dry.underscore.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Determines whether to execute a function as a constructor or a normal function with the provided arguments", "docstring_tokens": ["Determines", "whether", "to", "execute", "a", "function", "as", "a", "constructor", "or", "a", "normal", "function", "with", "the", "provided", "arguments"], "sha": "32dff1d8abf575b3576406049dd02f0f7d946187", "url": "https://github.com/dryjs/dry-underscore/blob/32dff1d8abf575b3576406049dd02f0f7d946187/dry.underscore.js#L651-L659", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/field/Checkbox.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Fires the `check` or `uncheck` event when the checked value of this component changes.\n@private", "docstring_tokens": ["Fires", "the", "check", "or", "uncheck", "event", "when", "the", "checked", "value", "of", "this", "component", "changes", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/field/Checkbox.js#L246-L261", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/field/Checkbox.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an array of values from the checkboxes in the group that are checked.\n@return {Array}", "docstring_tokens": ["Returns", "an", "array", "of", "values", "from", "the", "checkboxes", "in", "the", "group", "that", "are", "checked", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/field/Checkbox.js#L337-L347", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/field/Checkbox.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Set the status of all matched checkboxes in the same group to checked.\n@param {Array} values An array of values.\n@return {Ext.field.Checkbox} This checkbox.", "docstring_tokens": ["Set", "the", "status", "of", "all", "matched", "checkboxes", "in", "the", "same", "group", "to", "checked", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/field/Checkbox.js#L354-L360", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/dataview/DataView.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Refreshes the view by reloading the data from the store and re-rendering the template.", "docstring_tokens": ["Refreshes", "the", "view", "by", "reloading", "the", "data", "from", "the", "store", "and", "re", "-", "rendering", "the", "template", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/dataview/DataView.js#L884-L897", "partition": "test"} +{"repo": "farmdawgnation/vain", "path": "lib/vain.js", "func_name": "processParams", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Utility method to process a params string in a snippet invocation\nand corretly parse out the various parameters in it.\n\nFor example, given the string\n\nbacon=one&winning=two\n\nit would produce the object\n\n{bacon: \"one\", winning: \"two\"}", "docstring_tokens": ["Utility", "method", "to", "process", "a", "params", "string", "in", "a", "snippet", "invocation", "and", "corretly", "parse", "out", "the", "various", "parameters", "in", "it", "."], "sha": "0a30de09f443c9c313223b338a8892b6ef9ddf1d", "url": "https://github.com/farmdawgnation/vain/blob/0a30de09f443c9c313223b338a8892b6ef9ddf1d/lib/vain.js#L41-L57", "partition": "test"} +{"repo": "olegtaranenko/sencha-touch-node", "path": "lib/Ext/device/contacts/Abstract.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Returns an Array of contact objects.\n@return {Object[]} An array of contact objects.", "docstring_tokens": ["Returns", "an", "Array", "of", "contact", "objects", "."], "sha": "a46194e840a0c952503c08df39ed45a1f5e9887a", "url": "https://github.com/olegtaranenko/sencha-touch-node/blob/a46194e840a0c952503c08df39ed45a1f5e9887a/lib/Ext/device/contacts/Abstract.js#L19-L40", "partition": "test"} +{"repo": "beyo/model", "path": "lib/collection.js", "func_name": "Collection", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Create a new collection\n\n@param {Object} options the options", "docstring_tokens": ["Create", "a", "new", "collection"], "sha": "625b386b6e1141e1869ede753640850c0c9f0971", "url": "https://github.com/beyo/model/blob/625b386b6e1141e1869ede753640850c0c9f0971/lib/collection.js#L20-L38", "partition": "test"} +{"repo": "beyo/model", "path": "lib/collection.js", "func_name": "find", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Find the first item matching filter\n\n@param {string|Object} filter the filter\n@return {Object} the model found", "docstring_tokens": ["Find", "the", "first", "item", "matching", "filter"], "sha": "625b386b6e1141e1869ede753640850c0c9f0971", "url": "https://github.com/beyo/model/blob/625b386b6e1141e1869ede753640850c0c9f0971/lib/collection.js#L54-L123", "partition": "test"} +{"repo": "dherges/grunt-bower-event", "path": "tasks/lib/BowerTask.js", "func_name": "", "original_string": "", "language": "javascript", "code": "", "code_tokens": [], "docstring": "Creates a new task.\n\n@param context Task function context (='this' inside a grunt task function)\n@param grunt Grunt object", "docstring_tokens": ["Creates", "a", "new", "task", "."], "sha": "ce7dc2303ef186ccf5eaa8d5b691102e13523076", "url": "https://github.com/dherges/grunt-bower-event/blob/ce7dc2303ef186ccf5eaa8d5b691102e13523076/tasks/lib/BowerTask.js#L24-L30", "partition": "test"}